openapi: 3.0.1
info:
  version: "1.0.0"
  title: API
  description: ""
servers:
- url: /
tags: []
paths:
  /status:
    get:
      operationId: StatusView
      responses:
        200:
          description: ""
          content: {}
  /profile/{user_id}:
    get:
      summary: Build user profile from cached chunks
      operationId: profile_handler
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: ""
          content:
            application/json:
              schema:
                type: object
                properties:
                  nessie.account:
                    type: object
                    properties:
                      id:
                        type: integer
                        format: int64
                      email:
                        type: string
                      phone_number:
                        type: string
                      created_at:
                        type: string
                        format: date-time
                      modified_at:
                        type: string
                        format: date-time
                      vm_user_id:
                        type: integer
                        format: int64
                      is_active:
                        type: boolean
                      is_mailing_allowed:
                        type: boolean
                      is_phone_confirmed:
                        type: boolean
                      is_email_confirmed:
                        type: boolean
                  billing.subscriptions:
                    type: array
                    items:
                      type: object
                      properties:
                        uid:
                          type: integer
                          format: int64
                        productId:
                          type: integer
                          format: int64
                        paymentMethodId:
                          type: integer
                          format: int64
                        paymentMethodType:
                          type: integer
                          format: int64
                        paymentPending:
                          type: boolean
                        enabled:
                          type: boolean
                        autoRenewing:
                          type: boolean
                        notify:
                          type: boolean
                        startTime:
                          type: string
                          format: date-time
                        expiryTime:
                          type: string
                          format: date-time
                        promocodeActivationId:
                          type: integer
                          format: int64
                        clientId:
                          type: integer
                          format: int64
                        card:
                          type: object
                          properties:
                            card_id:
                              type: integer
                              format: int64
                            card_external_id:
                              type: string
                            card_number:
                              type: string
                        servicePackage:
                          type: object
                          properties:
                            id:
                              type: integer
                              format: int64
                            name:
                              type: string
                            shortName:
                              type: string
                            nameForReceipt:
                              type: string
                        nameForReceipt:
                          type: string
  /flush:
    post:
      summary: Flush user profile or it's parts
      operationId: flush_handler
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlushCommand'
        required: true
      responses:
        200:
          description: ""
          content: {}
      x-codegen-request-body-name: body
components:
  schemas:
    FlushCommand:
      type: object
      properties:
        user_id:
          type: integer
          format: int64
        type_keys:
          type: array
          items:
            type: string
