{
  "files": [
    {
      "name": "keyapis/vc/v1/keyapis_vc_company_v1.proto",
      "description": "Сервис управления компаниями",
      "package": "keyapis.vc.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [],
      "extensions": [],
      "messages": [
        {
          "name": "PostCompanyImpersonationRequest",
          "longName": "PostCompanyImpersonationRequest",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationRequest",
          "description": "Запрос генерации имперсонационной ссылки для компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "company_id",
              "description": "Идентификатор компании.\n# Диапазон: 1..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "PostCompanyImpersonationResponse",
          "longName": "PostCompanyImpersonationResponse",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationResponse",
          "description": "Ответ на запрос генерации имперсонационной ссылки для компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Имперсонационная ссылка",
              "label": "",
              "type": "CompanyImpersonation",
              "longType": "PostCompanyImpersonationResponse.CompanyImpersonation",
              "fullType": "keyapis.vc.v1.PostCompanyImpersonationResponse.CompanyImpersonation",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PostCompanyImpersonationResponse.Error",
              "fullType": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "CompanyImpersonation",
          "longName": "PostCompanyImpersonationResponse.CompanyImpersonation",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationResponse.CompanyImpersonation",
          "description": "Имперсонационная ссылка",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "url",
              "description": "Одноразовая ссылка для имперсонации",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PostCompanyImpersonationResponse.Error",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error",
          "description": "Ошибка генерации имперсонационной ссылки для компании",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.vc.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "owner_not_found",
              "description": "Владелец компании не найден",
              "label": "",
              "type": "OwnerNotFound",
              "longType": "PostCompanyImpersonationResponse.Error.OwnerNotFound",
              "fullType": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error.OwnerNotFound",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "user_service_error",
              "description": "Ошибка взаимодействия с сервисом User",
              "label": "",
              "type": "UserServiceError",
              "longType": "PostCompanyImpersonationResponse.Error.UserServiceError",
              "fullType": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error.UserServiceError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "vcfront_service_error",
              "description": "Ошибка взаимодействия с сервисом vcfront",
              "label": "",
              "type": "VcfrontServiceError",
              "longType": "PostCompanyImpersonationResponse.Error.VcfrontServiceError",
              "fullType": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error.VcfrontServiceError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 4
            }
          ]
        },
        {
          "name": "OwnerNotFound",
          "longName": "PostCompanyImpersonationResponse.Error.OwnerNotFound",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error.OwnerNotFound",
          "description": "Владелец компании не найден",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "UserServiceError",
          "longName": "PostCompanyImpersonationResponse.Error.UserServiceError",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error.UserServiceError",
          "description": "Ошибка взаимодействия с сервисом User",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "VcfrontServiceError",
          "longName": "PostCompanyImpersonationResponse.Error.VcfrontServiceError",
          "fullName": "keyapis.vc.v1.PostCompanyImpersonationResponse.Error.VcfrontServiceError",
          "description": "Ошибка взаимодействия с сервисом vcfront",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        }
      ],
      "services": [
        {
          "name": "CompanyService",
          "longName": "CompanyService",
          "fullName": "keyapis.vc.v1.CompanyService",
          "description": "Сервис управления компаниями",
          "methods": [
            {
              "name": "PostCompanyImpersonation",
              "description": "Метод генерации имперсонационной ссылки для владельца компании.\nВозвращает одноразовую ссылку для имперсонации в сервисе inkey-front.\nСценарий работы метода: https://confluence.rt.ru/pages/viewpage.action?pageId=1013775798.\nМетод доступен для: service, bti, admin",
              "requestType": "PostCompanyImpersonationRequest",
              "requestLongType": "PostCompanyImpersonationRequest",
              "requestFullType": "keyapis.vc.v1.PostCompanyImpersonationRequest",
              "requestStreaming": false,
              "responseType": "PostCompanyImpersonationResponse",
              "responseLongType": "PostCompanyImpersonationResponse",
              "responseFullType": "keyapis.vc.v1.PostCompanyImpersonationResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/vc/api/v1/company/{company_id}/impersonation",
                      "body": "*"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "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)"
    }
  ]
}