openapi: 3.0.2
info:
  title: dos-sapi
  version: 0.1.0
paths:
  /setWebhook/{buid}:
    post:
      tags:
        - Webhooks
      summary: Set Webhook
      operationId: set_webhook_setWebhook__buid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetWebhookBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetWebhookResponse200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /getWebhook/{buid}:
    post:
      tags:
        - Webhooks
      summary: Get Webhook
      operationId: get_webhook_getWebhook__buid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__webhooks__GetWebhookResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /startDialog/{buid}/{duid}:
    post:
      tags:
        - Speech
      summary: Start Dialog Buid Duid
      operationId: start_dialog_buid_duid_startDialog__buid___duid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
        - required: true
          schema:
            title: Duid
            type: string
            format: uuid
          name: duid
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartDialogBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Start Dialog Buid Duid Startdialog  Buid   Duid  Post
                anyOf:
                  - $ref: >-
                      #/components/schemas/sapi__models__speech__start_dialog_spec__StartDialogResponse200
                  - type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /startDialog/{buid}:
    post:
      tags:
        - Speech
      summary: Start Dialog Buid
      operationId: start_dialog_buid_startDialog__buid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartDialogBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Start Dialog Buid Startdialog  Buid  Post
                anyOf:
                  - $ref: >-
                      #/components/schemas/sapi__models__speech__start_dialog_spec__StartDialogResponse200
                  - type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /sendRequest/{buid}/{duid}:
    post:
      tags:
        - Speech
      summary: Send Request
      operationId: send_request_sendRequest__buid___duid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
        - required: true
          schema:
            title: Duid
            type: string
            format: uuid
          name: duid
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/sapi__models__speech__send_message_spec__SendMessageBody
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Send Request Sendrequest  Buid   Duid  Post
                anyOf:
                  - $ref: >-
                      #/components/schemas/sapi__models__speech__bls_request_spec__SendRequestToBlsResponse200
                  - type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /sendEvent/{buid}/{duid}:
    post:
      tags:
        - Speech
      summary: Send Event
      operationId: send_event_sendEvent__buid___duid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
        - required: true
          schema:
            title: Duid
            type: string
            format: uuid
          name: duid
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/sapi__models__speech__send_event_spec__SendEventBody
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Send Event Sendevent  Buid   Duid  Post
                anyOf:
                  - $ref: >-
                      #/components/schemas/sapi__models__speech__bls_request_spec__SendRequestToBlsResponse200
                  - type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /rateResponse/{buid}/{duid}:
    post:
      tags:
        - Speech
      summary: Send Rate Response
      operationId: send_rate_response_rateResponse__buid___duid__post
      parameters:
        - required: true
          schema:
            title: Buid
            type: string
            format: uuid
          name: buid
          in: path
        - required: true
          schema:
            title: Duid
            type: string
            format: uuid
          name: duid
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/sapi__models__speech__send_message_spec__RateResponseRequestBody
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Send Rate Response Rateresponse  Buid   Duid  Post
                anyOf:
                  - $ref: >-
                      #/components/schemas/sapi__models__speech__bls_request_spec__SendRequestToBlsResponse200
                  - type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/setWebhook/{ChannelUID}:
    post:
      tags:
        - Webhooks.v1
      summary: Set Webhook
      operationId: set_webhook_api_v1_setWebhook__ChannelUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetWebhookBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetWebhookResponse200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/getWebhook/{ChannelUID}:
    post:
      tags:
        - Webhooks.v1
      summary: Get Webhook
      operationId: get_webhook_api_v1_getWebhook__ChannelUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__webhooks_v1__GetWebhookResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/startDialog/{ChannelUID}/{DialogUID}:
    post:
      tags:
        - Speech.v1
      summary: Start Dialog Buid Duid
      operationId: start_dialog_buid_duid_api_v1_startDialog__ChannelUID___DialogUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
        - required: true
          schema:
            title: Dialoguid
            type: string
            format: uuid
          name: DialogUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartDialogBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__speech__v1__start_dialog_spec__StartDialogResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/startDialog/{ChannelUID}:
    post:
      tags:
        - Speech.v1
      summary: Start Dialog Buid
      operationId: start_dialog_buid_api_v1_startDialog__ChannelUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartDialogBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__speech__v1__start_dialog_spec__StartDialogResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/sendRequest/{ChannelUID}/{DialogUID}:
    post:
      tags:
        - Speech.v1
      summary: Send Request
      operationId: send_request_api_v1_sendRequest__ChannelUID___DialogUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
        - required: true
          schema:
            title: Dialoguid
            type: string
            format: uuid
          name: DialogUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/sapi__models__speech__v1__send_message_spec__SendMessageBody
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__speech__v1__bls_request_spec__SendRequestToBlsResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/sendEvent/{ChannelUID}/{DialogUID}:
    post:
      tags:
        - Speech.v1
      summary: Send Event
      operationId: send_event_api_v1_sendEvent__ChannelUID___DialogUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
        - required: true
          schema:
            title: Dialoguid
            type: string
            format: uuid
          name: DialogUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/sapi__models__speech__v1__send_event_spec__SendEventBody
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__speech__v1__bls_request_spec__SendRequestToBlsResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/event/{ChannelUID}/{DialogUID}:
    post:
      tags:
        - Speech.v1
      summary: Event
      operationId: event_api_v1_event__ChannelUID___DialogUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
        - required: true
          schema:
            title: Dialoguid
            type: string
            format: uuid
          name: DialogUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__speech__v1__bls_request_spec__SendRequestToBlsResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /api/v1/rateResponse/{ChannelUID}/{DialogUID}:
    post:
      tags:
        - Speech.v1
      summary: Send Rate Response
      operationId: send_rate_response_api_v1_rateResponse__ChannelUID___DialogUID__post
      parameters:
        - required: true
          schema:
            title: Channeluid
            type: string
            format: uuid
          name: ChannelUID
          in: path
        - required: true
          schema:
            title: Dialoguid
            type: string
            format: uuid
          name: DialogUID
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/sapi__models__speech__v1__send_message_spec__RateResponseRequestBody
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sapi__models__speech__v1__bls_request_spec__SendRequestToBlsResponse200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure400'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFailure500'
  /health_check:
    get:
      tags:
        - Misc
      summary: Health Check
      description: Server status.
      operationId: health_check_health_check_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /startup:
    get:
      tags:
        - Misc
      summary: Method
      description: Server startup.
      operationId: method_startup_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /readiness:
    get:
      tags:
        - Misc
      summary: Method
      description: Server readiness.
      operationId: method_readiness_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /liveness:
    get:
      tags:
        - Misc
      summary: Method
      description: Server liveness.
      operationId: method_liveness_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /:
    get:
      tags:
        - Misc
      summary: Redirect Doc
      description: Documentation redirection.
      operationId: redirect_doc__get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /metrics:
    get:
      tags:
        - Misc
      summary: Metrics
      description: Prometheus metrics.
      operationId: metrics_metrics_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    ErrorResult:
      title: ErrorResult
      type: object
      properties:
        error_type:
          title: Error Type
          type: string
          description: Тип ошибки.
          default: ''
        error_message:
          title: Error Message
          type: string
          description: Описание ошибки.
          default: ''
        error_data:
          title: Error Data
          anyOf:
            - type: object
            - type: array
              items: {}
          description: Дополнительная информация об ошибке.
    EventBody:
      title: EventBody
      required:
        - event_uid
      type: object
      properties:
        context:
          title: Context
          type: object
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответа
        event_uid:
          title: Event Uid
          type: string
          format: uuid
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    ReplyTo:
      title: ReplyTo
      type: object
      properties:
        host:
          title: Host
          maxLength: 65536
          minLength: 1
          type: string
          description: URL для отправки ответов
          format: uri
        auth_key:
          title: Auth Key
          type: string
          description: Ключ авторизации
      additionalProperties: false
    ResponseFailure400:
      title: ResponseFailure400
      type: object
      properties:
        success:
          title: Success
          type: boolean
          description: Успех выполнения операции.
          default: false
        result:
          title: Результат выполнения операции.
          allOf:
            - $ref: '#/components/schemas/ErrorResult'
          default:
            error_type: Ошибка клиента
            error_message: Клиент допустил ошибку.
    ResponseFailure422:
      title: ResponseFailure422
      type: object
      properties:
        success:
          title: Success
          type: boolean
          description: Успех выполнения операции.
          default: false
        result:
          title: Результат выполнения операции.
          allOf:
            - $ref: '#/components/schemas/ErrorResult'
          default:
            error_type: RequestValidationError
            error_message: |-
              1 validation error for Request
              body -> params -> branch_id
                field required (type=value_error.missing)
            error_data:
              - loc:
                  - body
                  - params
                  - branch_id
                msg: field required
                type: value_error.missing
    ResponseFailure500:
      title: ResponseFailure500
      type: object
      properties:
        success:
          title: Success
          type: boolean
          description: Успех выполнения операции.
          default: false
        result:
          title: Результат выполнения операции.
          allOf:
            - $ref: '#/components/schemas/ErrorResult'
          default:
            error_type: Ошибка сервера
            error_message: Сервер допустил ошибку.
    SetWebhookBody:
      title: SetWebhookBody
      required:
        - url
        - key
        - verify
      type: object
      properties:
        url:
          title: Url
          maxLength: 65536
          minLength: 1
          type: string
          format: uri
        key:
          title: Key
          type: string
        verify:
          title: Verify
          type: string
    SetWebhookResponse200:
      title: SetWebhookResponse200
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
    StartDialogBody:
      title: StartDialogBody
      type: object
      properties:
        context:
          title: Context
          type: object
        new:
          title: New
          type: boolean
      additionalProperties: false
    sapi__models__speech__bls_request_spec__SendRequestToBlsResponse200:
      title: SendRequestToBlsResponse200
      required:
        - cuid
        - duid
        - buid
        - reqid
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
        cuid:
          title: Cuid
          type: string
          format: uuid
        duid:
          title: Duid
          type: string
          format: uuid
        buid:
          title: Buid
          type: string
          format: uuid
        reqid:
          title: Reqid
          type: string
          format: uuid
      additionalProperties: false
    sapi__models__speech__send_event_spec__SendEventBody:
      title: SendEventBody
      required:
        - euid
      type: object
      properties:
        context:
          title: Context
          type: object
        using_cache:
          title: Using Cache
          type: boolean
          default: true
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответв
        euid:
          title: Euid
          type: string
          format: uuid
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    sapi__models__speech__send_message_spec__RateResponseRequestBody:
      title: RateResponseRequestBody
      required:
        - rate
        - msgid
      type: object
      properties:
        context:
          title: Context
          type: object
        using_cache:
          title: Using Cache
          type: boolean
          default: true
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответв
        rate:
          title: Rate
          type: integer
        msgid:
          title: Msgid
          type: string
          format: uuid
        comment:
          title: Comment
          type: string
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    sapi__models__speech__send_message_spec__SendMessageBody:
      title: SendMessageBody
      required:
        - text
      type: object
      properties:
        context:
          title: Context
          type: object
        using_cache:
          title: Using Cache
          type: boolean
          default: true
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответв
        text:
          title: Text
          type: string
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    sapi__models__speech__start_dialog_spec__StartDialogResponse200:
      title: StartDialogResponse200
      required:
        - CUID
        - duid
        - bot
        - events
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
        CUID:
          title: Cuid
          type: string
          format: uuid
        duid:
          title: Duid
          type: string
          format: uuid
        bot:
          title: Bot
          type: object
        events:
          title: Events
          type: object
      additionalProperties: false
    sapi__models__speech__v1__bls_request_spec__SendRequestToBlsResponse200:
      title: SendRequestToBlsResponse200
      required:
        - reqid
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
        reqid:
          title: Reqid
          type: string
          format: uuid
      additionalProperties: false
    sapi__models__speech__v1__send_event_spec__SendEventBody:
      title: SendEventBody
      required:
        - event_uid
      type: object
      properties:
        context:
          title: Context
          type: object
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответа
        event_uid:
          title: Event Uid
          type: string
          format: uuid
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    sapi__models__speech__v1__send_message_spec__RateResponseRequestBody:
      title: RateResponseRequestBody
      required:
        - rate
        - reqid
      type: object
      properties:
        context:
          title: Context
          type: object
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответа
        rate:
          title: Rate
          type: integer
          description: Оценка.
        reqid:
          title: Reqid
          type: string
          description: UUID оцениваемого сообщения.
          format: uuid
        comment:
          title: Comment
          type: string
          description: Комментарий к оценке.
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    sapi__models__speech__v1__send_message_spec__SendMessageBody:
      title: SendMessageBody
      required:
        - message
      type: object
      properties:
        context:
          title: Context
          type: object
        reply_to:
          title: Reply To
          allOf:
            - $ref: '#/components/schemas/ReplyTo'
          description: URL и ключ авторизации для ответа
        message:
          title: Message
          type: string
      additionalProperties: false
      description: |-
        Base class for SAPI speech api (sendEvent, sendRequest, etc).
        It describe abstract http body with required params for all bodies
    sapi__models__speech__v1__start_dialog_spec__StartDialogResponse200:
      title: StartDialogResponse200
      required:
        - dialog_uid
        - events
        - bot
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
        dialog_uid:
          title: Dialog Uid
          type: string
          format: uuid
        events:
          title: Events
          type: object
        bot:
          title: Bot
          type: object
      additionalProperties: false
    sapi__models__webhooks__GetWebhookResponse200:
      title: GetWebhookResponse200
      required:
        - url
        - key
        - verify
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
        url:
          title: Url
          maxLength: 65536
          minLength: 1
          type: string
          format: uri
        key:
          title: Key
          type: string
        verify:
          title: Verify
          type: string
    sapi__models__webhooks_v1__GetWebhookResponse200:
      title: GetWebhookResponse200
      required:
        - url
        - key
        - verify
      type: object
      properties:
        success:
          title: Success
          type: boolean
          default: true
        url:
          title: Url
          maxLength: 65536
          minLength: 1
          type: string
          format: uri
        key:
          title: Key
          type: string
        verify:
          title: Verify
          type: string
