{
  "openapi": "3.0.0",
  "info": {
    "title": "api/catalogs/autopark",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    },
    {
      "url": "https://api.ati.su"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1.2/catalogs/trucks": {
      "get": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Получение транспортных средств пользователя",
        "operationId": "Trucks_GetTrucks",
        "responses": {
          "200": {
            "description": "Список транспортных средств",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TruckView4"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "post": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Создание транспортного средства",
        "operationId": "Trucks_CreateTruck",
        "requestBody": {
          "x-name": "dto",
          "description": "Информация о транспортном средстве",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TruckDto2"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Созданное транспортное средство",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TruckView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/gw/oauth2/catalogs/v1.2/trucks": {
      "get": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Получение транспортных средств пользователя",
        "operationId": "Trucks_GetTrucks2",
        "responses": {
          "200": {
            "description": "Список транспортных средств",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TruckView4"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "post": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Создание транспортного средства",
        "operationId": "Trucks_CreateTruck2",
        "requestBody": {
          "x-name": "dto",
          "description": "Информация о транспортном средстве",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TruckDto2"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Созданное транспортное средство",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TruckView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/v1.2/catalogs/trucks/{truckId}": {
      "get": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Получение транспортного средства пользователя",
        "operationId": "Trucks_GetTruck",
        "parameters": [
          {
            "name": "truckId",
            "in": "path",
            "required": true,
            "description": "Id транспотрного средства",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Транспортное средство",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TruckView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "put": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Редактирование транспортного средства",
        "operationId": "Trucks_UpdateTruck",
        "parameters": [
          {
            "name": "truckId",
            "in": "path",
            "required": true,
            "description": "Id транспортного средства",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "dto",
          "description": "Данные транспортного средства",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TruckDto2"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "Отредактированное транспортное средство",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TruckView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Удаление транспортного средства",
        "operationId": "Trucks_DeleteTruck",
        "parameters": [
          {
            "name": "truckId",
            "in": "path",
            "required": true,
            "description": "Id транспортного средства",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Успешное удаление транспортного средства",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/gw/oauth2/catalogs/v1.2/trucks/{truckId}": {
      "get": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Получение транспортного средства пользователя",
        "operationId": "Trucks_GetTruck2",
        "parameters": [
          {
            "name": "truckId",
            "in": "path",
            "required": true,
            "description": "Id транспотрного средства",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Транспортное средство",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TruckView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "put": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Редактирование транспортного средства",
        "operationId": "Trucks_UpdateTruck2",
        "parameters": [
          {
            "name": "truckId",
            "in": "path",
            "required": true,
            "description": "Id транспортного средства",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "dto",
          "description": "Данные транспортного средства",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TruckDto2"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "Отредактированное транспортное средство",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TruckView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Автопарк"
        ],
        "summary": "Удаление транспортного средства",
        "operationId": "Trucks_DeleteTruck2",
        "parameters": [
          {
            "name": "truckId",
            "in": "path",
            "required": true,
            "description": "Id транспортного средства",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Успешное удаление транспортного средства",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/v1.2/catalogs/drivers": {
      "get": {
        "tags": [
          "Водители"
        ],
        "summary": "Получение водителей пользователя",
        "operationId": "Drivers_GetDrivers",
        "parameters": [
          {
            "name": "cargoOwnerAtiId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Список водителей",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DriverView4"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "post": {
        "tags": [
          "Водители"
        ],
        "summary": "Создание водителя",
        "operationId": "Drivers_CreateDriver",
        "requestBody": {
          "x-name": "dto",
          "description": "Данные водителя",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriverDto2"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Созданный водитель",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/gw/oauth2/catalogs/v1.2/drivers": {
      "get": {
        "tags": [
          "Водители"
        ],
        "summary": "Получение водителей пользователя",
        "operationId": "Drivers_GetDrivers2",
        "parameters": [
          {
            "name": "cargoOwnerAtiId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Список водителей",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DriverView4"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "post": {
        "tags": [
          "Водители"
        ],
        "summary": "Создание водителя",
        "operationId": "Drivers_CreateDriver2",
        "requestBody": {
          "x-name": "dto",
          "description": "Данные водителя",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriverDto2"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Созданный водитель",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/v1.2/catalogs/drivers/{driverId}": {
      "get": {
        "tags": [
          "Водители"
        ],
        "summary": "Получение водителя пользователя",
        "operationId": "Drivers_GetDriver",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "required": true,
            "description": "Id водителя",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "cargoOwnerAtiId",
            "in": "query",
            "description": "Код АТИ фирмы-грузовладельца, для проверки Черного списка",
            "schema": {
              "type": "string"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "Водитель",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "put": {
        "tags": [
          "Водители"
        ],
        "summary": "Редактирование водителя",
        "operationId": "Drivers_UpdateDriver",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "required": true,
            "description": "Id водителя",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "dto",
          "description": "Данные водителя",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriverDto2"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "Отредактированный водитель",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Водители"
        ],
        "summary": "Удаление водителя",
        "operationId": "Drivers_DeleteDriver",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "required": true,
            "description": "Id водителя",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Успешное удаление водителя, в ответе Id удалённого водителя",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/gw/oauth2/catalogs/v1.2/drivers/{driverId}": {
      "get": {
        "tags": [
          "Водители"
        ],
        "summary": "Получение водителя пользователя",
        "operationId": "Drivers_GetDriver2",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "required": true,
            "description": "Id водителя",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "cargoOwnerAtiId",
            "in": "query",
            "description": "Код АТИ фирмы-грузовладельца, для проверки Черного списка",
            "schema": {
              "type": "string"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "Водитель",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "put": {
        "tags": [
          "Водители"
        ],
        "summary": "Редактирование водителя",
        "operationId": "Drivers_UpdateDriver2",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "required": true,
            "description": "Id водителя",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "dto",
          "description": "Данные водителя",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriverDto2"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "Отредактированный водитель",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverView4"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Водители"
        ],
        "summary": "Удаление водителя",
        "operationId": "Drivers_DeleteDriver2",
        "parameters": [
          {
            "name": "driverId",
            "in": "path",
            "required": true,
            "description": "Id водителя",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Успешное удаление водителя, в ответе Id удалённого водителя",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/v1.2/catalogs/relations": {
      "post": {
        "tags": [
          "Связи"
        ],
        "summary": "Создание связей",
        "description": "Старые связи разрываются. Возможно передавать Id одной сущности для отвязывания её.",
        "operationId": "Relations_Create",
        "requestBody": {
          "x-name": "dto",
          "description": "Информация о связях",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriversTrucksRelationDto"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Успешное создание",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    },
    "/gw/oauth2/catalogs/v1.2/relations": {
      "post": {
        "tags": [
          "Связи"
        ],
        "summary": "Создание связей",
        "description": "Старые связи разрываются. Возможно передавать Id одной сущности для отвязывания её.",
        "operationId": "Relations_Create2",
        "requestBody": {
          "x-name": "dto",
          "description": "Информация о связях",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriversTrucksRelationDto"
              }
            }
          },
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Успешное создание",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "4XX": {
            "description": "Ошибка запроса. [Подробнее про ошибки API](https://ati.su/developers/documentation/errors/)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalExceptionView"
                }
              }
            }
          }
        },
        "security": [
          {
            "JWT": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "FinalExceptionView": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Код ошибки"
          },
          "reason": {
            "type": "string",
            "description": "Причина ошибки"
          }
        }
      },
      "PhoneOwnerType": {
        "type": "integer",
        "description": "Тип сущности\n            \n* `0` — Водитель\n* `1` — ТС",
        "x-enumNames": [
          "Driver",
          "Truck"
        ],
        "enum": [
          0,
          1
        ]
      },
      "PhoneBindingStatus": {
        "type": "integer",
        "description": "Статус привязки\n            \n* `0` - Эксклюзивный доступ\n* `1` - Запрос на эксклюзивный доступ\n* `2` - Запрос отклонен владельцем номера телефона\n* `3` - Фирма \"уволила\" владельца номера\n* `4` - Владелец номера \"уволился\"\n* `5` - Запрос удален",
        "x-enumNames": [
          "Employee",
          "Request",
          "Reject",
          "Fired",
          "Retired",
          "Deleted"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ]
      },
      "ScanType": {
        "type": "integer",
        "description": "Тип документа\n            \n* `1` — Скан водительского удостоверения\n* `2` — Скан гражданского паспорта",
        "x-enumNames": [
          "DriverLicense",
          "Passport"
        ],
        "enum": [
          1,
          2
        ]
      },
      "DriversTrucksRelationDto": {
        "type": "object",
        "description": "Информация о связях",
        "additionalProperties": false,
        "properties": {
          "truck_id": {
            "type": "string",
            "description": "Id грузовика",
            "format": "guid",
            "nullable": true,
            "example": "75fdfa06-287b-47ff-a6e7-1d9edfa5ac29"
          },
          "tractor_id": {
            "type": "string",
            "description": "Id тягача",
            "format": "guid",
            "nullable": true,
            "example": "75fdfa06-287b-47ff-a6e7-1d9edfa5ac29"
          },
          "trailer_id": {
            "type": "string",
            "description": "Id прицепа",
            "format": "guid",
            "nullable": true,
            "example": "75fdfa06-287b-47ff-a6e7-1d9edfa5ac29"
          },
          "semitrailer_id": {
            "type": "string",
            "description": "Id полуприцепа",
            "format": "guid",
            "nullable": true,
            "example": "75fdfa06-287b-47ff-a6e7-1d9edfa5ac29"
          },
          "driver_ids": {
            "type": "array",
            "description": "Список Id водителей",
            "example": [
              "c063e1c5-a58f-4f6b-b805-62d0715f4fba"
            ],
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "TruckKinds": {
        "type": "integer",
        "description": "Тип транспортного средства\n            \n* `1` — Грузовик\n* `2` — Тягач\n* `4` — Полуприцеп\n* `8` — Прицеп",
        "x-enumNames": [
          "Truck",
          "Tractor",
          "Semitrailer",
          "Trailer"
        ],
        "enum": [
          1,
          2,
          4,
          8
        ]
      },
      "TruckOwnershipType": {
        "type": "integer",
        "description": "Тип владения ТС\n            \n* `0` - Собственное\n* `1` - Привлеченное\n* `2` - Аренда\n* `3` - Лизинг\n* `4` - Совместная собственность супругов\n* `5` - Безвозмездное пользование",
        "x-enumNames": [
          "Own",
          "Attracted",
          "Rent",
          "Leasing",
          "SpousesJointOwnership",
          "GratuitousUse"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ]
      },
      "ScanType2": {
        "type": "integer",
        "description": "Тип документа\n            \n* `3` — Скан ПТС\n* `4` — Скан пластикового ПТС\n* `6` — Скан договора аренеды\n* `7` — Скан свидетельства о браке\n* `8` — Скан договора безвозмездного пользования",
        "x-enumNames": [
          "TechPassport",
          "PlasticTechPassport",
          "RentContract",
          "Marriage",
          "GratuitousContract"
        ],
        "enum": [
          3,
          4,
          6,
          7,
          8
        ]
      },
      "SMSStatus": {
        "type": "integer",
        "description": "Статус отправки СМС\n            \n* `0` - Нет информации\n* `1` - Создано\n* `2` - Ошибка\n* `3` - Отправлено\n* `4` - Доставлено",
        "x-enumNames": [
          "Empty",
          "Created",
          "Error",
          "Sent",
          "Delivered"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4
        ]
      },
      "DriverView4": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "driver_id": {
            "type": "string",
            "description": "Id водителя",
            "format": "guid",
            "example": "c063e1c5-a58f-4f6b-b805-62d0715f4fba"
          },
          "first_name": {
            "type": "string",
            "description": "Имя",
            "example": "Иван"
          },
          "second_name": {
            "type": "string",
            "description": "Фамилия",
            "example": "Иванов"
          },
          "patronymic": {
            "type": "string",
            "description": "Отчество",
            "example": "Иванович"
          },
          "phone": {
            "description": "Информация о номерe телефона водителя",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PhoneView2"
              }
            ]
          },
          "driver_license_number": {
            "type": "string",
            "description": "Номер водительского удостоверения",
            "example": "77 77 123456"
          },
          "driver_license_when_issued": {
            "type": "string",
            "description": "Когда выдано водительское удостоверение",
            "format": "date-time",
            "nullable": true
          },
          "passport_series": {
            "type": "string",
            "description": "Серия паспорта",
            "example": "4010"
          },
          "passport_number": {
            "type": "string",
            "description": "Номер паспорта",
            "example": "123456"
          },
          "passport_issued_by": {
            "type": "string",
            "description": "Кем выдан",
            "example": "УФМС России"
          },
          "passport_when_issued": {
            "type": "string",
            "description": "Когда выдан",
            "format": "date-time",
            "example": "2018-01-01"
          },
          "registration": {
            "type": "string",
            "description": "Прописка",
            "example": "гор. Санкт-Петербург"
          },
          "is_attracted_driver": {
            "type": "boolean",
            "description": "Флаг привлеченного водителя (со стороны)"
          },
          "related_id": {
            "type": "string",
            "description": "Идентификатор связанного ТС, которое пользователь задал в кабинете",
            "format": "guid",
            "nullable": true,
            "example": "75fdfa06-287b-47ff-a6e7-1d9edfa5ac29"
          },
          "last_deal_related_id": {
            "type": "string",
            "description": "Идентификатор ТС, с которым был связан водитель во время выполнения последней сделки",
            "format": "guid",
            "nullable": true,
            "example": "75fdfa06-287b-47ff-a6e7-1d9edfa5ac29"
          },
          "description": {
            "type": "string",
            "description": "Краткое описание водителя",
            "example": "Иванов Иван Иванович"
          },
          "attracted_from": {
            "type": "string",
            "description": "Фирма от которой привлечен водитель.",
            "example": "ООО Название фирмы"
          },
          "scans": {
            "type": "array",
            "description": "Сканы документов водителя",
            "items": {
              "$ref": "#/components/schemas/ScanViewOfScanType7"
            }
          },
          "date_of_birth": {
            "type": "string",
            "description": "Дата рождения",
            "format": "date-time",
            "nullable": true
          },
          "department_code_in_passport": {
            "type": "string",
            "description": "Код подразделения"
          },
          "driver_inn": {
            "type": "string",
            "description": "ИНН водителя"
          },
          "in_cargo_owner_black_list": {
            "type": "boolean",
            "description": "Есть в Черном списке у запрашиваемого грузовладельца"
          },
          "external_id": {
            "type": "string",
            "description": "Идентификатор"
          }
        }
      },
      "PhoneView2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "phone": {
            "type": "number",
            "description": "Номер телефона",
            "format": "decimal"
          },
          "phone_string": {
            "type": "string",
            "description": "Номер телефона, как указан пользователем "
          },
          "presence": {
            "description": "Статус приложения АТИ Водитель",
            "oneOf": [
              {
                "$ref": "#/components/schemas/TrackerPresenceView2"
              }
            ]
          },
          "binding": {
            "description": "Информация об актуальной привязке",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PhoneBindingView2"
              }
            ]
          },
          "binding_type": {
            "description": "Тип привязки (Эксклюзивности) номера телефона\n            \n* `0` - Номер не привязан\n* `1` - Номер привязан к водителю текущей фирмы\n* `2` - Номер привязан к ТС текущей фирмы\n* `3` - Номер привязан к водителю другой фирмы\n* `4` - Номер привязан к ТС другой фирмы",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/PhoneBindingType"
              }
            ]
          }
        }
      },
      "TrackerPresenceView2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "phone": {
            "type": "number",
            "description": "Номер телефона, приведенный к числовому формату",
            "format": "decimal"
          },
          "initial_phone": {
            "type": "string",
            "description": "Номер телефона в том виде, в котором его указал пользователь "
          },
          "last_active": {
            "type": "string",
            "description": "Время последней активности в приложении",
            "format": "date-time",
            "nullable": true
          },
          "has_tracker": {
            "type": "boolean",
            "description": "Авторизация в приложении",
            "nullable": true
          },
          "sms_invite_status": {
            "description": "Статус приглашения в приложение",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SmsInviteStatusView2"
              }
            ]
          }
        }
      },
      "SmsInviteStatusView2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invite_sent": {
            "type": "boolean",
            "description": "Было ли отправлено приглашение"
          },
          "contact_name": {
            "type": "string",
            "description": "Имя пригласившего контакта"
          },
          "firm_id": {
            "type": "integer",
            "description": "Id пригласившей фирмы",
            "format": "int32",
            "nullable": true
          },
          "contact_id": {
            "type": "integer",
            "description": "Id пригласившего контакт",
            "format": "int32",
            "nullable": true
          },
          "sms_status": {
            "description": "Статус отправки СМС\n            \n* `0` - Нет информации\n* `1` - Создано\n* `2` - Ошибка\n* `3` - Отправлено\n* `4` - Доставлено",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SMSStatus"
              }
            ]
          },
          "when": {
            "type": "string",
            "description": "Время отправки SMS",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "PhoneBindingView2": {
        "type": "object",
        "description": "Информация о привязке (Эксклюзивности) номера телефона ",
        "additionalProperties": false,
        "properties": {
          "status": {
            "description": "Статус привязки\n            \n* `0` - Эксклюзивный доступ\n* `1` - Запрос на эксклюзивный доступ\n* `2` - Запрос отклонен владельцем номера телефона\n* `3` - Фирма \"уволила\" владельца номера\n* `4` - Владелец номера \"уволился\"\n* `5` - Запрос удален",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PhoneBindingStatus"
              }
            ]
          },
          "account_id": {
            "type": "string",
            "description": "Фирма, запрашивающая \"Эксклюзивный доступ\""
          },
          "firm_name": {
            "type": "string",
            "description": "Название фирмы, запрашивающей \"Эксклюзивный доступ\""
          },
          "owner_type": {
            "description": "Тип сущности, к которой привязан телефон\n            \n* `0` — Водитель\n* `1` — ТС",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PhoneOwnerType"
              }
            ]
          }
        }
      },
      "PhoneBindingType": {
        "type": "integer",
        "description": "Тип привязки (Эксклюзивности) номера телефона\n            \n* `0` - Номер не привязан\n* `1` - Номер привязан к водителю текущей фирмы\n* `2` - Номер привязан к ТС текущей фирмы\n* `3` - Номер привязан к водителю другой фирмы\n* `4` - Номер привязан к ТС другой фирмы",
        "x-enumNames": [
          "None",
          "Driver",
          "Truck",
          "AnotherFirmDriver",
          "AnotherFirmTruck"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4
        ]
      },
      "ScanViewOfScanType7": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "scan_id": {
            "type": "string",
            "description": "Id скана",
            "format": "guid",
            "example": "1bb60c95-957b-473f-b664-4026533fa5a9"
          },
          "scan_owner_id": {
            "type": "string",
            "format": "guid"
          },
          "scan_file_id": {
            "type": "string"
          },
          "scan_path": {
            "type": "string",
            "description": "Адрес расположения файла скана в хранилище",
            "example": "https://d.ati.su/api/next/filestorage/cf91cb04-80a1-4b97-8ea2-2f0ad3a4d579"
          },
          "scan_name": {
            "type": "string",
            "description": "Имя файла скана",
            "example": "ВУ.pdf"
          },
          "scan_type": {
            "$ref": "#/components/schemas/ScanType"
          }
        }
      },
      "DriverDto2": {
        "type": "object",
        "description": "Данные водителя",
        "additionalProperties": false,
        "properties": {
          "first_name": {
            "type": "string",
            "description": "Имя",
            "example": "Иван"
          },
          "second_name": {
            "type": "string",
            "description": "Фамилия",
            "example": "Иванов"
          },
          "patronymic": {
            "type": "string",
            "description": "Отчество",
            "example": "Иванович"
          },
          "phone_number": {
            "type": "string",
            "description": "Номер телефона",
            "example": "+7(910)333-33-33"
          },
          "driver_license_number": {
            "type": "string",
            "description": "Номер водительского удостоверения",
            "example": "77 77 123456"
          },
          "driver_license_when_issued": {
            "type": "string",
            "description": "Когда выдано водительское удостоверение",
            "format": "date-time",
            "nullable": true,
            "example": "2018-01-01"
          },
          "passport_series": {
            "type": "string",
            "description": "Серия паспорта",
            "example": "4010"
          },
          "passport_number": {
            "type": "string",
            "description": "Номер паспорта",
            "example": "123456"
          },
          "passport_issued_by": {
            "type": "string",
            "description": "Кем выдан паспорт",
            "example": "УФМС России"
          },
          "passport_when_issued": {
            "type": "string",
            "description": "Когда выдан паспорт",
            "format": "date-time",
            "example": "2018-01-01"
          },
          "registration": {
            "type": "string",
            "description": "Адрес регистрации",
            "example": "гор. Санкт-Петербург"
          },
          "is_attracted_driver": {
            "type": "boolean",
            "description": "Флаг привлеченного водителя"
          },
          "attracted_from": {
            "type": "string",
            "description": "Фирма, от которой привлечен водитель",
            "example": "ООО Название фирмы"
          },
          "date_of_birth": {
            "type": "string",
            "description": "Дата рождения",
            "format": "date-time",
            "nullable": true,
            "example": "1985-01-01"
          },
          "department_code_in_passport": {
            "type": "string",
            "description": "Код подразделения"
          },
          "driver_inn": {
            "type": "string",
            "description": "ИНН водителя"
          },
          "external_id": {
            "type": "string",
            "description": "Идентификатор"
          }
        }
      },
      "TruckView4": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "truck_info_id": {
            "type": "string",
            "description": "Id транспортного средства",
            "format": "guid"
          },
          "related_id": {
            "type": "string",
            "description": "Id связанного транспортного средства",
            "format": "guid",
            "nullable": true
          },
          "is_attracted_truck": {
            "type": "boolean",
            "description": "Привлеченное ТС. Устарело, используйте ownership_type",
            "deprecated": true
          },
          "ownership_type": {
            "description": "Тип владения ТС\n            \n* `0` - Собственное\n* `1` - Привлеченное\n* `2` - Аренда\n* `3` - Лизинг\n* `4` - Совместная собственность супругов\n* `5` - Безвозмездное пользование",
            "oneOf": [
              {
                "$ref": "#/components/schemas/TruckOwnershipType"
              }
            ]
          },
          "type": {
            "description": "Тип транспортного средства\n            \n* `1` — Грузовик\n* `2` — Тягач\n* `4` — Полуприцеп\n* `8` — Прицеп",
            "oneOf": [
              {
                "$ref": "#/components/schemas/TruckKinds"
              }
            ]
          },
          "car_type_id": {
            "type": "integer",
            "description": "Тип кузова\\\nЗначение из [словаря кузовов АТИ](https://ati.su/developers/api/dictionaries/cargoes/#get-v1.0-dictionaries-carTypes)",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "description": "Короткое описание"
          },
          "brand_id": {
            "type": "integer",
            "description": "Марка\\\nЗначение из [словаря](https://ati.su/developers/api/dictionaries/catalogs/#get-v1.2-catalogs-dictionaries-truckbrands)",
            "format": "int32",
            "nullable": true
          },
          "model": {
            "type": "string",
            "description": "Модель\\\nЗначение из [словаря](https://ati.su/developers/api/dictionaries/catalogs/#get-v1.2-catalogs-dictionaries-truckmodels)"
          },
          "number": {
            "type": "string",
            "description": "Госномер"
          },
          "capacity": {
            "type": "number",
            "description": "Грузоподъемность",
            "format": "decimal",
            "nullable": true
          },
          "volume": {
            "type": "number",
            "description": "Объем",
            "format": "decimal",
            "nullable": true
          },
          "length": {
            "type": "number",
            "description": "Длина",
            "format": "decimal",
            "nullable": true
          },
          "width": {
            "type": "number",
            "description": "Ширина",
            "format": "decimal",
            "nullable": true
          },
          "height": {
            "type": "number",
            "description": "Высота",
            "format": "decimal",
            "nullable": true
          },
          "last_deal_related_id": {
            "type": "string",
            "description": "Id связанного во время последней сделки транспортного средства",
            "format": "guid",
            "nullable": true
          },
          "manufacture_year": {
            "type": "integer",
            "description": "Год выпуска",
            "format": "int32",
            "nullable": true
          },
          "hidden_in_firm_info": {
            "type": "boolean",
            "description": "Не отображать в карточке фирмы"
          },
          "vin": {
            "type": "string",
            "description": "VIN"
          },
          "vrc": {
            "type": "string",
            "description": "СТС"
          },
          "body_number": {
            "type": "string",
            "description": "Номер кузова"
          },
          "dimension": {
            "type": "integer",
            "description": "Размерность контейнера\\\nЗначение из [словаря](https://ati.su/developers/api/dictionaries/catalogs/#get-v1.2-catalogs-dictionaries-container_dimensions)",
            "format": "int32",
            "nullable": true
          },
          "truck_passport_number": {
            "type": "string",
            "description": "Номер ПТС"
          },
          "can_refrigerator": {
            "type": "boolean",
            "description": "Способность возить реф-контейнеры",
            "nullable": true
          },
          "has_gen_set": {
            "type": "boolean",
            "description": "Есть GenSet",
            "nullable": true
          },
          "truck_owner_name": {
            "type": "string",
            "description": "Имя владельца по СТС"
          },
          "can_carry_heavy_container": {
            "type": "boolean",
            "description": "Способность перевозить тяжелые контейнеры\n ",
            "nullable": true
          },
          "can_carry_tall_container": {
            "type": "boolean",
            "description": "Способность перевозить высокие контейнеры",
            "nullable": true
          },
          "external_id": {
            "type": "string",
            "description": "Идентификатор"
          },
          "scans": {
            "type": "array",
            "description": "Сканы документов ТС",
            "items": {
              "$ref": "#/components/schemas/ScanViewOfScanType8"
            }
          },
          "photos": {
            "type": "array",
            "description": "Фото ТС",
            "items": {
              "$ref": "#/components/schemas/TruckPhotoView4"
            }
          },
          "sensors": {
            "type": "array",
            "description": "Датчики мониторинга транспорта",
            "items": {
              "$ref": "#/components/schemas/SensorView3"
            }
          }
        }
      },
      "ScanViewOfScanType8": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "scan_id": {
            "type": "string",
            "description": "Id скана",
            "format": "guid",
            "example": "1bb60c95-957b-473f-b664-4026533fa5a9"
          },
          "scan_owner_id": {
            "type": "string",
            "format": "guid"
          },
          "scan_file_id": {
            "type": "string"
          },
          "scan_path": {
            "type": "string",
            "description": "Адрес расположения файла скана в хранилище",
            "example": "https://d.ati.su/api/next/filestorage/cf91cb04-80a1-4b97-8ea2-2f0ad3a4d579"
          },
          "scan_name": {
            "type": "string",
            "description": "Имя файла скана",
            "example": "ВУ.pdf"
          },
          "scan_type": {
            "$ref": "#/components/schemas/ScanType2"
          }
        }
      },
      "TruckPhotoView4": {
        "type": "object",
        "description": "Фото ТС",
        "additionalProperties": false,
        "properties": {
          "owner_id": {
            "type": "string",
            "format": "guid"
          },
          "id": {
            "type": "string",
            "description": "Id фото",
            "format": "guid"
          },
          "file_id": {
            "type": "string"
          },
          "path": {
            "type": "string",
            "description": "Адрес расположения файла в хранилище"
          },
          "name": {
            "type": "string",
            "description": "Имя файла"
          }
        }
      },
      "SensorView3": {
        "type": "object",
        "description": "Датчик мониторинга транспортного средства",
        "additionalProperties": false,
        "properties": {
          "sensor_id": {
            "type": "integer",
            "description": "Идентификатор датчика",
            "format": "int32"
          },
          "sensor_name": {
            "type": "string",
            "description": "Наименование датчика"
          },
          "provider_id": {
            "type": "integer",
            "description": "Идентификатор поставщика датчиков мониторинга транспорта",
            "format": "int32"
          },
          "provider_sensor_id": {
            "type": "string",
            "description": "Идентификатор датчика из внешней системы мониторинга"
          },
          "is_active": {
            "type": "boolean",
            "description": "Статус активности датчика"
          },
          "unactivate_date": {
            "type": "string",
            "description": "Дата окончания действия датчика",
            "format": "date-time",
            "nullable": true
          },
          "host": {
            "description": "Информация о сервере поставщика устройства мониторинга транспорта",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SensorHostView3"
              }
            ]
          }
        }
      },
      "SensorHostView3": {
        "type": "object",
        "description": "Информация о сервере поставщика устройства мониторинга транспорта",
        "additionalProperties": false,
        "properties": {
          "sensor_host_id": {
            "type": "integer",
            "description": "Идентификатор сервера",
            "format": "int32"
          },
          "url": {
            "type": "string",
            "description": "Адрес сервера"
          }
        }
      },
      "TruckDto2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "$ref": "#/components/schemas/TruckKinds"
          },
          "car_type_id": {
            "type": "integer",
            "description": "Тип кузова\\\nЗначение из [словаря кузовов АТИ](https://ati.su/developers/api/dictionaries/cargoes/#get-v1.0-dictionaries-carTypes)",
            "format": "int32"
          },
          "brand_id": {
            "type": "integer",
            "description": "Марка\\\nЗначение из [словаря](https://ati.su/developers/api/dictionaries/catalogs/#get-v1.2-catalogs-dictionaries-truckbrands)",
            "format": "int32",
            "nullable": true
          },
          "model": {
            "type": "string",
            "description": "Модель\\\nЗначение из [словаря](https://ati.su/developers/api/dictionaries/catalogs/#get-v1.2-catalogs-dictionaries-truckmodels)"
          },
          "number": {
            "type": "string",
            "description": "Госномер"
          },
          "manufacture_year": {
            "type": "integer",
            "description": "Год выпуска",
            "format": "int32",
            "nullable": true
          },
          "ownership_type": {
            "description": "Тип владения ТС.\\\n            \n* `0` - Собственное\n* `1` - Привлеченное\n* `2` - Аренда\n* `3` - Лизинг\n* `4` - Совместная собственность супругов\n* `5` - Безвозмездное пользование",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/TruckOwnershipType"
              }
            ]
          },
          "phone_number": {
            "type": "string",
            "description": "Номер телефона"
          },
          "bind_phone": {
            "type": "boolean",
            "description": "Эксклюзивный доступ к приложению Ати-Водитель",
            "nullable": true
          },
          "capacity": {
            "type": "number",
            "description": "Грузоподъемность",
            "format": "decimal",
            "nullable": true
          },
          "volume": {
            "type": "number",
            "description": "Объем",
            "format": "decimal",
            "nullable": true
          },
          "length": {
            "type": "number",
            "description": "Длина",
            "format": "decimal",
            "nullable": true
          },
          "width": {
            "type": "number",
            "description": "Ширина",
            "format": "decimal",
            "nullable": true
          },
          "height": {
            "type": "number",
            "description": "Высота",
            "format": "decimal",
            "nullable": true
          },
          "hidden_in_firm_info": {
            "type": "boolean",
            "description": "Не отображать в карточке фирмы."
          },
          "vin": {
            "type": "string",
            "description": "VIN"
          },
          "vrc": {
            "type": "string",
            "description": "СТС"
          },
          "body_number": {
            "type": "string",
            "description": "Номер кузова"
          },
          "can_refrigerator": {
            "type": "boolean",
            "description": "Способность возить реф-контейнеры",
            "nullable": true
          },
          "has_gen_set": {
            "type": "boolean",
            "description": "Есть GenSet",
            "nullable": true
          },
          "dimension": {
            "type": "integer",
            "description": "Размерность контейнера\\\nЗначение из [словаря](https://ati.su/developers/api/dictionaries/catalogs/#get-v1.2-catalogs-dictionaries-container_dimensions)",
            "format": "int32",
            "nullable": true
          },
          "truck_owner_name": {
            "type": "string",
            "description": "Имя владельца по СТС"
          },
          "can_carry_heavy_container": {
            "type": "boolean",
            "description": "Способность перевозить тяжелые контейнеры\n ",
            "nullable": true
          },
          "can_carry_tall_container": {
            "type": "boolean",
            "description": "Способность перевозить высокие контейнеры",
            "nullable": true
          },
          "truck_passport_number": {
            "type": "string",
            "description": "Номер ПТС"
          },
          "external_id": {
            "type": "string",
            "description": "Идентификатор"
          },
          "sensors": {
            "type": "array",
            "description": "Датчики мониторинга",
            "items": {
              "$ref": "#/components/schemas/SensorDto2"
            }
          }
        }
      },
      "SensorDto2": {
        "type": "object",
        "description": "Датчик мониторинга транспортного средства",
        "additionalProperties": false,
        "required": [
          "sensor_name",
          "provider_id",
          "host"
        ],
        "properties": {
          "sensor_id": {
            "type": "integer",
            "description": "Идентификатор датчика",
            "format": "int32"
          },
          "sensor_name": {
            "type": "string",
            "description": "Наименование датчика",
            "minLength": 1
          },
          "provider_id": {
            "type": "integer",
            "description": "Идентификатор поставщика датчиков мониторинга транспорта",
            "format": "int32"
          },
          "provider_sensor_id": {
            "type": "string",
            "description": "Идентификатор датчика из внешней системы мониторинга"
          },
          "unactivate_date": {
            "type": "string",
            "description": "Дата окончания действия датчика",
            "format": "date-time",
            "nullable": true
          },
          "host": {
            "description": "Информация о сервере поставщика устройства мониторинга транспорта",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SensorHostDto2"
              }
            ]
          }
        }
      },
      "SensorHostDto2": {
        "type": "object",
        "description": "Информация о сервере поставщика устройства мониторинга транспорта",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "sensor_host_id": {
            "type": "integer",
            "description": "Идентификатор сервера",
            "format": "int32"
          },
          "url": {
            "type": "string",
            "description": "Адрес сервера",
            "minLength": 1
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Authorization: Bearer {authorizationToken}"
      },
      "JWT": {
        "type": "apiKey",
        "description": "Bearer {access_token}",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}