{
  "files": [
    {
      "name": "keyapis/event/v1/keyapis_event_event_v1.proto",
      "description": "Сервис реализует функционал управления событиями",
      "package": "keyapis.event.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": false,
      "enums": [
        {
          "name": "DeviceType",
          "longName": "Event.DeviceType",
          "fullName": "keyapis.event.v1.Event.DeviceType",
          "description": "Тип устройства",
          "values": [
            {
              "name": "DEVICE_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "INTERCOM",
              "number": "1",
              "description": "Домофон"
            },
            {
              "name": "BARRIER",
              "number": "2",
              "description": "Шлагбаум"
            },
            {
              "name": "GATE",
              "number": "3",
              "description": "Калитка"
            },
            {
              "name": "ACCESS_CONTROL_PANEL",
              "number": "4",
              "description": "СКУД"
            },
            {
              "name": "VIDEOCAMERA",
              "number": "5",
              "description": "Камера"
            }
          ]
        },
        {
          "name": "Type",
          "longName": "Event.Type",
          "fullName": "keyapis.event.v1.Event.Type",
          "description": "Тип события",
          "values": [
            {
              "name": "TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "API_OPEN_REMOTE",
              "number": "1",
              "description": "Удалённое открытие"
            },
            {
              "name": "FACE_OPEN_REMOTE",
              "number": "2",
              "description": "Открытие по лицу"
            },
            {
              "name": "PIN_CODE_OPEN_REMOTE",
              "number": "3",
              "description": "Открытие по звонку"
            },
            {
              "name": "DTMF_OPEN_REMOTE",
              "number": "4",
              "description": "Открытие по DTMF коду"
            },
            {
              "name": "EMERGENCY_MODE_ON_REMOTE",
              "number": "5",
              "description": "Включение аварийного режима"
            },
            {
              "name": "EMERGENCY_MODE_OFF_REMOTE",
              "number": "6",
              "description": "Отключение аварийного режима"
            },
            {
              "name": "CODE_OPEN_LOCAL",
              "number": "7",
              "description": "Открытие по коду"
            },
            {
              "name": "RFID_OPEN_LOCAL",
              "number": "8",
              "description": "Открытие по ключу"
            },
            {
              "name": "EMERGENCY_ALARM_REMOTE",
              "number": "9",
              "description": "Включение проигрывания звукового предупреждения"
            },
            {
              "name": "GET_CREDENTIALS",
              "number": "10",
              "description": "Получение логопас УЗ устройства в админке"
            },
            {
              "name": "CHANGE_PASSWORD",
              "number": "11",
              "description": "Смена пароля на устройстве, логируется как успешная, так и неуспешная"
            },
            {
              "name": "USER_ENTRY",
              "number": "12",
              "description": "Вход пользователя"
            },
            {
              "name": "DTMF_OPEN_LOCAL",
              "number": "13",
              "description": "Открытие по DTMF коду"
            },
            {
              "name": "CAR_NUMBER_OPEN_REMOTE",
              "number": "14",
              "description": "Открытие по номеру машины"
            },
            {
              "name": "EMERGENCY_ALARM_OFF_REMOTE",
              "number": "15",
              "description": "Выключение проигрывания звукового предупреждения"
            },
            {
              "name": "EMERGENCY_ALARM_ON_REMOTE",
              "number": "16",
              "description": "Включение проигрывания звукового предупреждения"
            },
            {
              "name": "DISPATCHER_OPEN",
              "number": "17",
              "description": "Устройство открыто сотрудником ЛТП"
            },
            {
              "name": "DISPATCHER_DENIED_OPEN",
              "number": "18",
              "description": "Отказано в доступе сотрудником ЛТП"
            },
            {
              "name": "VEHICLE_TYPE_OPEN_REMOTE",
              "number": "19",
              "description": "Открытие по типу авто"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "Event",
          "longName": "Event",
          "fullName": "keyapis.event.v1.Event",
          "description": "Событие",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "type",
              "description": "Тип события.\nПоле event_type",
              "label": "",
              "type": "Type",
              "longType": "Event.Type",
              "fullType": "keyapis.event.v1.Event.Type",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "raised_at",
              "description": "Дата создания события.\n# Тип: DateTime",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "device_id",
              "description": "Идентификатор устройства",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "device_type",
              "description": "Тип устройства на момент события",
              "label": "",
              "type": "DeviceType",
              "longType": "Event.DeviceType",
              "fullType": "keyapis.event.v1.Event.DeviceType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "company_id",
              "description": "Идентификатор компании",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "room_id",
              "description": "Идентификатор квартиры",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "relay",
              "description": "Индекс реле",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 7
            },
            {
              "name": "user_id",
              "description": "Идентификатор пользователя",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "user_agent",
              "description": "Юзерагент клиента из которого пользователь выполнял запрос",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 9
            },
            {
              "name": "building_id",
              "description": "Идентификатор дома",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 10
            },
            {
              "name": "orpon_id",
              "description": "ОРПОН",
              "label": "",
              "type": "Int64Value",
              "longType": "google.protobuf.Int64Value",
              "fullType": "google.protobuf.Int64Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 11
            },
            {
              "name": "room_number",
              "description": "Номер квартиры",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 12
            },
            {
              "name": "ivr_phone_number",
              "description": "Телефон ИВР",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 13
            },
            {
              "name": "guest_phone_number",
              "description": "Телефон гостя / звонящего",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 14
            },
            {
              "name": "code",
              "description": "Код / пин код при открытии при звонке",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 15
            },
            {
              "name": "rfid",
              "description": "RFID номер",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 16
            },
            {
              "name": "request_id",
              "description": "ИД запроса.\n# Тип: Guid",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 17
            },
            {
              "name": "dtmf_phone_number",
              "description": "Номер телефона с которого было открытие по DTMF коду",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 18
            },
            {
              "name": "user_kind",
              "description": "Тип УЗ на устройстве.\nПоле user_type",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 19
            },
            {
              "name": "login",
              "description": "Логин на устройстве",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 20
            },
            {
              "name": "password",
              "description": "Пароль на устройстве",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 21
            },
            {
              "name": "host",
              "description": "ip адрес устройства",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 22
            },
            {
              "name": "device_model",
              "description": "Модель устройства",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 23
            },
            {
              "name": "rfid_id",
              "description": "Идентификатор ключа",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 24
            },
            {
              "name": "code_id",
              "description": "Идентификатор кода",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 25
            },
            {
              "name": "car_number",
              "description": "Номер машины",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 26
            },
            {
              "name": "os",
              "description": "Операционная система",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 27
            },
            {
              "name": "push_token",
              "description": "Пуш-токен для устройства",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 28
            },
            {
              "name": "camera_uid",
              "description": "ИД камеры.\n# Тип: Guid",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 29
            },
            {
              "name": "screenshot_url",
              "description": "Ссылка на скриншот события",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 30
            },
            {
              "name": "vehicle",
              "description": "Тип ТС",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 31
            },
            {
              "name": "courier_company_name",
              "description": "Наименование курьерской компании",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 32
            },
            {
              "name": "order_number",
              "description": "Номер заказа",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 33
            },
            {
              "name": "courier_id",
              "description": "Идентификатор курьера",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 34
            }
          ]
        }
      ],
      "services": [],
      "syntax": "proto3"
    }
  ],
  "scalarValueTypes": [
    {
      "protoType": "double",
      "notes": "",
      "cppType": "double",
      "csType": "double",
      "goType": "float64",
      "javaType": "double",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "float",
      "notes": "",
      "cppType": "float",
      "csType": "float",
      "goType": "float32",
      "javaType": "float",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "int32",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "int64",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "uint32",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "uint64",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint32",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint64",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "fixed32",
      "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "fixed64",
      "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "sfixed32",
      "notes": "Always four bytes.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sfixed64",
      "notes": "Always eight bytes.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "bool",
      "notes": "",
      "cppType": "bool",
      "csType": "bool",
      "goType": "bool",
      "javaType": "boolean",
      "phpType": "boolean",
      "pythonType": "boolean",
      "rubyType": "TrueClass/FalseClass"
    },
    {
      "protoType": "string",
      "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.",
      "cppType": "string",
      "csType": "string",
      "goType": "string",
      "javaType": "String",
      "phpType": "string",
      "pythonType": "str/unicode",
      "rubyType": "String (UTF-8)"
    },
    {
      "protoType": "bytes",
      "notes": "May contain any arbitrary sequence of bytes.",
      "cppType": "string",
      "csType": "ByteString",
      "goType": "[]byte",
      "javaType": "ByteString",
      "phpType": "string",
      "pythonType": "str",
      "rubyType": "String (ASCII-8BIT)"
    }
  ]
}