{
  "components": {
    "schemas": {
      "AdCreateBody": {
        "properties": {
          "cost": {
            "default": 0.0,
            "title": "Cost",
            "type": "number"
          },
          "source": {
            "title": "Source",
            "type": "string"
          },
          "start_param": {
            "title": "Start Param",
            "type": "string"
          }
        },
        "required": [
          "source",
          "start_param"
        ],
        "title": "AdCreateBody",
        "type": "object"
      },
      "AdOut": {
        "properties": {
          "cost": {
            "title": "Cost",
            "type": "number"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          },
          "start_param": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start Param"
          },
          "stats": {
            "additionalProperties": true,
            "title": "Stats",
            "type": "object"
          }
        },
        "required": [
          "id",
          "cost",
          "is_active"
        ],
        "title": "AdOut",
        "type": "object"
      },
      "AdToggleBody": {
        "properties": {
          "is_active": {
            "default": true,
            "title": "Is Active"
          }
        },
        "title": "AdToggleBody",
        "type": "object"
      },
      "AdminAdsListOut": {
        "properties": {
          "campaigns": {
            "items": {
              "$ref": "#/components/schemas/AdOut"
            },
            "title": "Campaigns",
            "type": "array"
          },
          "totals": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Totals",
            "type": "object"
          }
        },
        "required": [
          "campaigns",
          "totals"
        ],
        "title": "AdminAdsListOut",
        "type": "object"
      },
      "AdminBackupArchiveOut": {
        "properties": {
          "compose_files_count": {
            "title": "Compose Files Count",
            "type": "integer"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "created_at_local": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At Local"
          },
          "database_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Database Name"
          },
          "has_compose": {
            "title": "Has Compose",
            "type": "boolean"
          },
          "has_database": {
            "title": "Has Database",
            "type": "boolean"
          },
          "manifest": {
            "additionalProperties": true,
            "title": "Manifest",
            "type": "object"
          },
          "modified_at": {
            "title": "Modified At",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "name",
          "size_bytes",
          "modified_at",
          "has_database",
          "has_compose",
          "compose_files_count"
        ],
        "title": "AdminBackupArchiveOut",
        "type": "object"
      },
      "AdminBackupCreateOut": {
        "properties": {
          "archive": {
            "$ref": "#/components/schemas/AdminBackupArchiveOut"
          },
          "result": {
            "$ref": "#/components/schemas/AdminBackupCreateResultOut"
          }
        },
        "required": [
          "result",
          "archive"
        ],
        "title": "AdminBackupCreateOut",
        "type": "object"
      },
      "AdminBackupCreateResultOut": {
        "properties": {
          "archive_name": {
            "title": "Archive Name",
            "type": "string"
          },
          "archive_path": {
            "title": "Archive Path",
            "type": "string"
          },
          "completed_at": {
            "title": "Completed At",
            "type": "string"
          },
          "compose_files_count": {
            "title": "Compose Files Count",
            "type": "integer"
          },
          "db_dump_included": {
            "title": "Db Dump Included",
            "type": "boolean"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "started_at": {
            "title": "Started At",
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "archive_name",
          "archive_path",
          "started_at",
          "completed_at",
          "db_dump_included",
          "compose_files_count",
          "size_bytes"
        ],
        "title": "AdminBackupCreateResultOut",
        "type": "object"
      },
      "AdminBackupRestoreBody": {
        "properties": {
          "archive_name": {
            "default": "",
            "title": "Archive Name"
          },
          "confirm": {
            "default": false,
            "title": "Confirm"
          },
          "restore_compose": {
            "default": false,
            "title": "Restore Compose"
          },
          "restore_database": {
            "default": false,
            "title": "Restore Database"
          }
        },
        "title": "AdminBackupRestoreBody",
        "type": "object"
      },
      "AdminBackupRestoreOut": {
        "properties": {
          "result": {
            "$ref": "#/components/schemas/AdminBackupRestoreResultOut"
          }
        },
        "required": [
          "result"
        ],
        "title": "AdminBackupRestoreOut",
        "type": "object"
      },
      "AdminBackupRestoreResultOut": {
        "properties": {
          "archive_name": {
            "title": "Archive Name",
            "type": "string"
          },
          "completed_at": {
            "title": "Completed At",
            "type": "string"
          },
          "compose_files_restored": {
            "title": "Compose Files Restored",
            "type": "integer"
          },
          "compose_pre_restore_archive": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Compose Pre Restore Archive"
          },
          "compose_target_dir": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Compose Target Dir"
          },
          "database_migrations_applied": {
            "items": {
              "type": "string"
            },
            "title": "Database Migrations Applied",
            "type": "array"
          },
          "database_restored": {
            "title": "Database Restored",
            "type": "boolean"
          },
          "started_at": {
            "title": "Started At",
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "archive_name",
          "started_at",
          "completed_at",
          "database_restored",
          "compose_files_restored"
        ],
        "title": "AdminBackupRestoreResultOut",
        "type": "object"
      },
      "AdminBackupUploadOut": {
        "properties": {
          "archive": {
            "$ref": "#/components/schemas/AdminBackupArchiveOut"
          }
        },
        "required": [
          "archive"
        ],
        "title": "AdminBackupUploadOut",
        "type": "object"
      },
      "AdminBackupsListOut": {
        "properties": {
          "archives": {
            "items": {
              "$ref": "#/components/schemas/AdminBackupArchiveOut"
            },
            "title": "Archives",
            "type": "array"
          },
          "backup_dir": {
            "title": "Backup Dir",
            "type": "string"
          }
        },
        "required": [
          "backup_dir",
          "archives"
        ],
        "title": "AdminBackupsListOut",
        "type": "object"
      },
      "AdminBroadcastAudienceCountsOut": {
        "properties": {
          "audiences": {
            "items": {
              "$ref": "#/components/schemas/AdminBroadcastAudienceOut"
            },
            "title": "Audiences",
            "type": "array"
          },
          "counts": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Counts",
            "type": "object"
          },
          "email_enabled": {
            "default": false,
            "title": "Email Enabled",
            "type": "boolean"
          }
        },
        "required": [
          "counts"
        ],
        "title": "AdminBroadcastAudienceCountsOut",
        "type": "object"
      },
      "AdminBroadcastAudienceOut": {
        "properties": {
          "fallback_label": {
            "title": "Fallback Label",
            "type": "string"
          },
          "label_key": {
            "title": "Label Key",
            "type": "string"
          },
          "order": {
            "default": 100,
            "title": "Order",
            "type": "integer"
          },
          "target": {
            "title": "Target",
            "type": "string"
          }
        },
        "required": [
          "target",
          "label_key",
          "fallback_label"
        ],
        "title": "AdminBroadcastAudienceOut",
        "type": "object"
      },
      "AdminBroadcastBody": {
        "properties": {
          "buttons": {
            "items": {
              "$ref": "#/components/schemas/AdminBroadcastButtonBody"
            },
            "title": "Buttons",
            "type": "array"
          },
          "channels": {
            "items": {
              "type": "string"
            },
            "title": "Channels",
            "type": "array"
          },
          "email_subject": {
            "default": "",
            "title": "Email Subject"
          },
          "target": {
            "default": "all",
            "title": "Target"
          },
          "text": {
            "default": "",
            "title": "Text"
          }
        },
        "title": "AdminBroadcastBody",
        "type": "object"
      },
      "AdminBroadcastButtonBody": {
        "description": "One inline button attached to a broadcast.\n\n``kind`` selects how the button URL is produced:\n- ``url`` — explicit ``url`` field;\n- ``promo_bot`` — deep link into the bot applying ``promo_code``;\n- ``promo_webapp`` — link into the Mini App checkout with ``promo_code``.",
        "properties": {
          "kind": {
            "default": "url",
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "default": "",
            "title": "Label",
            "type": "string"
          },
          "promo_code": {
            "default": "",
            "title": "Promo Code",
            "type": "string"
          },
          "url": {
            "default": "",
            "title": "Url",
            "type": "string"
          }
        },
        "title": "AdminBroadcastButtonBody",
        "type": "object"
      },
      "AdminBroadcastPreviewBody": {
        "properties": {
          "buttons": {
            "items": {
              "$ref": "#/components/schemas/AdminBroadcastButtonBody"
            },
            "title": "Buttons",
            "type": "array"
          },
          "email_subject": {
            "default": "",
            "title": "Email Subject"
          },
          "mode": {
            "default": "render",
            "title": "Mode",
            "type": "string"
          },
          "text": {
            "default": "",
            "title": "Text"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "User Id"
          }
        },
        "title": "AdminBroadcastPreviewBody",
        "type": "object"
      },
      "AdminBroadcastPreviewOut": {
        "properties": {
          "length": {
            "default": 0,
            "title": "Length",
            "type": "integer"
          },
          "rendered_subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Rendered Subject"
          },
          "rendered_text": {
            "default": "",
            "title": "Rendered Text",
            "type": "string"
          },
          "sent": {
            "default": false,
            "title": "Sent",
            "type": "boolean"
          },
          "unknown_shortcodes": {
            "items": {
              "type": "string"
            },
            "title": "Unknown Shortcodes",
            "type": "array"
          }
        },
        "title": "AdminBroadcastPreviewOut",
        "type": "object"
      },
      "AdminBroadcastShortcodeOut": {
        "properties": {
          "cost": {
            "title": "Cost",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "cost",
          "description"
        ],
        "title": "AdminBroadcastShortcodeOut",
        "type": "object"
      },
      "AdminBroadcastShortcodesOut": {
        "properties": {
          "allowed_tags": {
            "items": {
              "type": "string"
            },
            "title": "Allowed Tags",
            "type": "array"
          },
          "shortcodes": {
            "items": {
              "$ref": "#/components/schemas/AdminBroadcastShortcodeOut"
            },
            "title": "Shortcodes",
            "type": "array"
          }
        },
        "required": [
          "shortcodes",
          "allowed_tags"
        ],
        "title": "AdminBroadcastShortcodesOut",
        "type": "object"
      },
      "AdminHealthOut": {
        "properties": {
          "alerts": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Alerts",
            "type": "array"
          },
          "checked_at": {
            "format": "date-time",
            "title": "Checked At",
            "type": "string"
          }
        },
        "required": [
          "alerts",
          "checked_at"
        ],
        "title": "AdminHealthOut",
        "type": "object"
      },
      "AdminLogsListOut": {
        "properties": {
          "logs": {
            "items": {
              "$ref": "#/components/schemas/LogOut"
            },
            "title": "Logs",
            "type": "array"
          },
          "page": {
            "title": "Page",
            "type": "integer"
          },
          "page_size": {
            "title": "Page Size",
            "type": "integer"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "logs",
          "page",
          "page_size",
          "total"
        ],
        "title": "AdminLogsListOut",
        "type": "object"
      },
      "AdminMeOut": {
        "properties": {
          "admin_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Admin Ids",
            "type": "array"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          }
        },
        "required": [
          "user_id",
          "admin_ids"
        ],
        "title": "AdminMeOut",
        "type": "object"
      },
      "AdminPanelExternalSquadOverrideOut": {
        "properties": {
          "default_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Default Uuid"
          },
          "effective_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Effective Uuid"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Seen At"
          },
          "manual_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Manual Uuid"
          },
          "mode": {
            "title": "Mode",
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          }
        },
        "required": [
          "mode"
        ],
        "title": "AdminPanelExternalSquadOverrideOut",
        "type": "object"
      },
      "AdminPanelInternalSquadOut": {
        "properties": {
          "active_inbounds_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Active Inbounds Count"
          },
          "members_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Members Count"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "name"
        ],
        "title": "AdminPanelInternalSquadOut",
        "type": "object"
      },
      "AdminPanelSquadItemOut": {
        "properties": {
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Label"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Seen At"
          },
          "source": {
            "title": "Source",
            "type": "string"
          },
          "uuid": {
            "title": "Uuid",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "source"
        ],
        "title": "AdminPanelSquadItemOut",
        "type": "object"
      },
      "AdminPanelSquadOverridesOut": {
        "properties": {
          "effective_internal_squad_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Effective Internal Squad Uuids",
            "type": "array"
          },
          "external": {
            "$ref": "#/components/schemas/AdminPanelExternalSquadOverrideOut"
          },
          "managed_internal_squads": {
            "items": {
              "$ref": "#/components/schemas/AdminPanelSquadItemOut"
            },
            "title": "Managed Internal Squads",
            "type": "array"
          },
          "manual_internal_squads": {
            "items": {
              "$ref": "#/components/schemas/AdminPanelSquadItemOut"
            },
            "title": "Manual Internal Squads",
            "type": "array"
          },
          "panel_snapshot_available": {
            "default": false,
            "title": "Panel Snapshot Available",
            "type": "boolean"
          },
          "panel_user_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel User Uuid"
          }
        },
        "required": [
          "external"
        ],
        "title": "AdminPanelSquadOverridesOut",
        "type": "object"
      },
      "AdminPanelSyncOut": {
        "properties": {
          "details": {
            "default": null,
            "title": "Details"
          },
          "last_sync_time": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Sync Time"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "subscriptions_synced": {
            "title": "Subscriptions Synced",
            "type": "integer"
          },
          "users_processed": {
            "title": "Users Processed",
            "type": "integer"
          }
        },
        "required": [
          "status",
          "users_processed",
          "subscriptions_synced"
        ],
        "title": "AdminPanelSyncOut",
        "type": "object"
      },
      "AdminPaymentsListOut": {
        "properties": {
          "page": {
            "title": "Page",
            "type": "integer"
          },
          "page_size": {
            "title": "Page Size",
            "type": "integer"
          },
          "payments": {
            "items": {
              "$ref": "#/components/schemas/PaymentOut"
            },
            "title": "Payments",
            "type": "array"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "payments",
          "page",
          "page_size",
          "total"
        ],
        "title": "AdminPaymentsListOut",
        "type": "object"
      },
      "AdminSettingChoiceOut": {
        "properties": {
          "i18n_label_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "I18N Label Key"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "value": {
            "title": "Value"
          }
        },
        "required": [
          "value",
          "label"
        ],
        "title": "AdminSettingChoiceOut",
        "type": "object"
      },
      "AdminSettingsFieldOut": {
        "additionalProperties": true,
        "properties": {
          "choices": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AdminSettingChoiceOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Choices"
          },
          "default": {
            "default": null,
            "title": "Default"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "has_value": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Has Value"
          },
          "i18n_description_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "I18N Description Key"
          },
          "i18n_label_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "I18N Label Key"
          },
          "i18n_placeholder_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "I18N Placeholder Key"
          },
          "i18n_subsection_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "I18N Subsection Key"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Max"
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min"
          },
          "mutually_exclusive_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Mutually Exclusive Key"
          },
          "optional": {
            "title": "Optional",
            "type": "boolean"
          },
          "overridden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Overridden"
          },
          "placeholder": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Placeholder"
          },
          "provider_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider Id"
          },
          "provider_info_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider Info Url"
          },
          "provider_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider Label"
          },
          "provider_logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider Logo Url"
          },
          "read_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Read Error"
          },
          "secret": {
            "title": "Secret",
            "type": "boolean"
          },
          "section": {
            "title": "Section",
            "type": "string"
          },
          "section_order": {
            "title": "Section Order",
            "type": "integer"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          },
          "subsection": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Subsection"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Updated At"
          },
          "value": {
            "default": null,
            "title": "Value"
          },
          "value_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Value Source"
          },
          "webhook_base_url_configured": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webhook Base Url Configured"
          },
          "webhook_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webhook Hint"
          },
          "webhook_hint_i18n_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webhook Hint I18N Key"
          },
          "webhook_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webhook Path"
          },
          "webhook_requires_base_url": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webhook Requires Base Url"
          },
          "webhook_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webhook Url"
          }
        },
        "required": [
          "key",
          "type",
          "section",
          "section_order",
          "label",
          "optional",
          "secret"
        ],
        "title": "AdminSettingsFieldOut",
        "type": "object"
      },
      "AdminSettingsOut": {
        "properties": {
          "features": {
            "items": {
              "type": "string"
            },
            "title": "Features",
            "type": "array"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/AdminSettingsSectionOut"
            },
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "sections",
          "features"
        ],
        "title": "AdminSettingsOut",
        "type": "object"
      },
      "AdminSettingsPatchBody": {
        "properties": {
          "deletes": {
            "title": "Deletes"
          },
          "updates": {
            "title": "Updates"
          }
        },
        "title": "AdminSettingsPatchBody",
        "type": "object"
      },
      "AdminSettingsSectionOut": {
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/AdminSettingsFieldOut"
            },
            "title": "Fields",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "order": {
            "title": "Order",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "order",
          "fields"
        ],
        "title": "AdminSettingsSectionOut",
        "type": "object"
      },
      "AdminStatsOut": {
        "properties": {
          "currency_symbol": {
            "title": "Currency Symbol",
            "type": "string"
          },
          "financial": {
            "additionalProperties": true,
            "title": "Financial",
            "type": "object"
          },
          "panel": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel"
          },
          "panel_sync": {
            "$ref": "#/components/schemas/AdminPanelSyncOut"
          },
          "queue": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Queue"
          },
          "recent_payments": {
            "items": {
              "$ref": "#/components/schemas/PaymentOut"
            },
            "title": "Recent Payments",
            "type": "array"
          },
          "users": {
            "additionalProperties": true,
            "title": "Users",
            "type": "object"
          }
        },
        "required": [
          "users",
          "financial",
          "panel_sync",
          "recent_payments",
          "currency_symbol"
        ],
        "title": "AdminStatsOut",
        "type": "object"
      },
      "AdminSubscriptionOut": {
        "properties": {
          "auto_renew_enabled": {
            "title": "Auto Renew Enabled",
            "type": "boolean"
          },
          "billing_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Billing Model"
          },
          "display_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Display Label"
          },
          "duration_months": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Duration Months"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "End Date"
          },
          "extra_hwid_devices": {
            "title": "Extra Hwid Devices",
            "type": "integer"
          },
          "hwid_device_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Hwid Device Limit"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_throttled": {
            "title": "Is Throttled",
            "type": "boolean"
          },
          "is_trial": {
            "title": "Is Trial",
            "type": "boolean"
          },
          "panel_subscription_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel Subscription Uuid"
          },
          "panel_user_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel User Uuid"
          },
          "premium_baseline_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Premium Baseline Bytes"
          },
          "premium_bonus_bytes": {
            "title": "Premium Bonus Bytes",
            "type": "integer"
          },
          "premium_is_limited": {
            "title": "Premium Is Limited",
            "type": "boolean"
          },
          "premium_limit_bytes": {
            "title": "Premium Limit Bytes",
            "type": "integer"
          },
          "premium_topup_balance_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Premium Topup Balance Bytes"
          },
          "premium_topup_used_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Premium Topup Used Bytes"
          },
          "premium_unlimited_override": {
            "title": "Premium Unlimited Override",
            "type": "boolean"
          },
          "premium_used_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Premium Used Bytes"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider"
          },
          "regular_bonus_bytes": {
            "title": "Regular Bonus Bytes",
            "type": "integer"
          },
          "regular_unlimited_override": {
            "title": "Regular Unlimited Override",
            "type": "boolean"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start Date"
          },
          "status_from_panel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Status From Panel"
          },
          "subscription_id": {
            "title": "Subscription Id",
            "type": "integer"
          },
          "tariff_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff Key"
          },
          "tier_baseline_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tier Baseline Bytes"
          },
          "topup_balance_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Topup Balance Bytes"
          },
          "traffic_limit_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Limit Bytes"
          },
          "traffic_limit_strategy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Limit Strategy"
          },
          "traffic_strategy_editable": {
            "default": false,
            "title": "Traffic Strategy Editable",
            "type": "boolean"
          },
          "traffic_strategy_lock_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Strategy Lock Reason"
          },
          "traffic_used_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Used Bytes"
          }
        },
        "required": [
          "subscription_id",
          "is_active",
          "premium_limit_bytes",
          "premium_bonus_bytes",
          "regular_bonus_bytes",
          "regular_unlimited_override",
          "premium_unlimited_override",
          "premium_is_limited",
          "extra_hwid_devices",
          "is_trial",
          "auto_renew_enabled",
          "is_throttled"
        ],
        "title": "AdminSubscriptionOut",
        "type": "object"
      },
      "AdminSupportMessageOut": {
        "properties": {
          "author_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Author Name"
          },
          "author_role": {
            "title": "Author Role",
            "type": "string"
          },
          "author_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Author User Id"
          },
          "body": {
            "title": "Body",
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "is_internal_note": {
            "title": "Is Internal Note",
            "type": "boolean"
          },
          "message_id": {
            "title": "Message Id",
            "type": "integer"
          },
          "read_by_admin_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Read By Admin At"
          },
          "read_by_user_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Read By User At"
          },
          "ticket_id": {
            "title": "Ticket Id",
            "type": "integer"
          }
        },
        "required": [
          "message_id",
          "ticket_id",
          "author_role",
          "body",
          "is_internal_note"
        ],
        "title": "AdminSupportMessageOut",
        "type": "object"
      },
      "AdminSupportStatsOut": {
        "additionalProperties": true,
        "properties": {
          "active": {
            "title": "Active",
            "type": "integer"
          },
          "awaiting_admin": {
            "title": "Awaiting Admin",
            "type": "integer"
          },
          "awaiting_user": {
            "title": "Awaiting User",
            "type": "integer"
          },
          "closed": {
            "title": "Closed",
            "type": "integer"
          },
          "open": {
            "title": "Open",
            "type": "integer"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          },
          "total_unread_admin": {
            "title": "Total Unread Admin",
            "type": "integer"
          }
        },
        "required": [
          "active",
          "closed",
          "total",
          "open",
          "awaiting_user",
          "awaiting_admin",
          "total_unread_admin"
        ],
        "title": "AdminSupportStatsOut",
        "type": "object"
      },
      "AdminSupportTicketOut": {
        "properties": {
          "assigned_admin_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Assigned Admin Id"
          },
          "category": {
            "title": "Category",
            "type": "string"
          },
          "closed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Closed At"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "last_message_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Message At"
          },
          "last_message_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Message Role"
          },
          "priority": {
            "title": "Priority",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "subject": {
            "title": "Subject",
            "type": "string"
          },
          "ticket_id": {
            "title": "Ticket Id",
            "type": "integer"
          },
          "unread_admin_count": {
            "title": "Unread Admin Count",
            "type": "integer"
          },
          "unread_user_count": {
            "title": "Unread User Count",
            "type": "integer"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Updated At"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdminSupportUserOut"
              },
              {
                "$ref": "#/components/schemas/EmptyObjectOut"
              }
            ],
            "title": "User"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          }
        },
        "required": [
          "ticket_id",
          "user_id",
          "subject",
          "category",
          "priority",
          "status",
          "unread_user_count",
          "unread_admin_count",
          "user"
        ],
        "title": "AdminSupportTicketOut",
        "type": "object"
      },
      "AdminSupportUserOut": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "First Name"
          },
          "is_banned": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Is Banned"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Name"
          },
          "registration_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Registration Date"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "telegram_photo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Photo Url"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "User Id"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Username"
          }
        },
        "title": "AdminSupportUserOut",
        "type": "object"
      },
      "AdminSupportUserSnapshotOut": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email"
          },
          "email_login": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email Login"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "End Date"
          },
          "is_throttled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Is Throttled"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Language"
          },
          "lifetime_used_traffic_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Lifetime Used Traffic Bytes"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Name"
          },
          "panel_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel Status"
          },
          "premium_topup_balance_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Premium Topup Balance Bytes"
          },
          "registration_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Registration Date"
          },
          "remaining": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Remaining"
          },
          "subscription_active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Subscription Active"
          },
          "tariff": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "topup_balance_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Topup Balance Bytes"
          },
          "traffic_premium": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupportTrafficSnapshotOut"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "traffic_regular": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupportTrafficSnapshotOut"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "User Id"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Username"
          }
        },
        "title": "AdminSupportUserSnapshotOut",
        "type": "object"
      },
      "AdminSyncOut": {
        "properties": {
          "result": {
            "$ref": "#/components/schemas/AdminSyncResultOut"
          }
        },
        "required": [
          "result"
        ],
        "title": "AdminSyncOut",
        "type": "object"
      },
      "AdminSyncResultOut": {
        "properties": {
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "AdminSyncResultOut",
        "type": "object"
      },
      "AdminTariffsCatalogOut": {
        "properties": {
          "default_currency": {
            "default": "rub",
            "title": "Default Currency",
            "type": "string"
          },
          "default_tariff": {
            "title": "Default Tariff",
            "type": "string"
          },
          "tariffs": {
            "items": {
              "$ref": "#/components/schemas/Tariff"
            },
            "title": "Tariffs",
            "type": "array"
          },
          "topup_packages_default": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PackageSet"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "required": [
          "default_tariff",
          "tariffs"
        ],
        "title": "AdminTariffsCatalogOut",
        "type": "object"
      },
      "AdminTariffsOut": {
        "properties": {
          "catalog": {
            "$ref": "#/components/schemas/AdminTariffsCatalogOut"
          },
          "exists": {
            "title": "Exists",
            "type": "boolean"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "provider_currency_support": {
            "items": {
              "$ref": "#/components/schemas/ProviderCurrencySupportOut"
            },
            "title": "Provider Currency Support",
            "type": "array"
          }
        },
        "required": [
          "exists",
          "path",
          "catalog",
          "provider_currency_support"
        ],
        "title": "AdminTariffsOut",
        "type": "object"
      },
      "AdminThemesOut": {
        "properties": {
          "catalog": {
            "$ref": "#/components/schemas/WebappThemesConfig"
          },
          "exists": {
            "title": "Exists",
            "type": "boolean"
          },
          "themes_dir": {
            "title": "Themes Dir",
            "type": "string"
          }
        },
        "required": [
          "exists",
          "themes_dir",
          "catalog"
        ],
        "title": "AdminThemesOut",
        "type": "object"
      },
      "AdminTicketPatchPayload": {
        "properties": {
          "assigned_admin_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Assigned Admin Id"
          },
          "category": {
            "anyOf": [
              {
                "enum": [
                  "billing",
                  "technical",
                  "account",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Category"
          },
          "priority": {
            "anyOf": [
              {
                "enum": [
                  "low",
                  "normal",
                  "high",
                  "urgent"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Priority"
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "open",
                  "awaiting_user",
                  "awaiting_admin",
                  "resolved",
                  "closed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Status"
          }
        },
        "title": "AdminTicketPatchPayload",
        "type": "object"
      },
      "AdminTicketReplyPayload": {
        "properties": {
          "body": {
            "maxLength": 4000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          },
          "is_internal_note": {
            "default": false,
            "title": "Is Internal Note",
            "type": "boolean"
          }
        },
        "required": [
          "body"
        ],
        "title": "AdminTicketReplyPayload",
        "type": "object"
      },
      "AdminTranslationGroupOut": {
        "properties": {
          "audience": {
            "title": "Audience",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "description_key": {
            "title": "Description Key",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/AdminTranslationItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "title_key": {
            "title": "Title Key",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "audience",
          "title_key",
          "description_key",
          "items"
        ],
        "title": "AdminTranslationGroupOut",
        "type": "object"
      },
      "AdminTranslationItemOut": {
        "properties": {
          "audience": {
            "title": "Audience",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "values": {
            "additionalProperties": {
              "$ref": "#/components/schemas/AdminTranslationValueOut"
            },
            "title": "Values",
            "type": "object"
          }
        },
        "required": [
          "key",
          "audience",
          "values"
        ],
        "title": "AdminTranslationItemOut",
        "type": "object"
      },
      "AdminTranslationLanguageOut": {
        "properties": {
          "base": {
            "title": "Base",
            "type": "boolean"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "flag": {
            "title": "Flag",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "code",
          "label",
          "flag",
          "base"
        ],
        "title": "AdminTranslationLanguageOut",
        "type": "object"
      },
      "AdminTranslationValueOut": {
        "properties": {
          "base": {
            "title": "Base",
            "type": "string"
          },
          "effective": {
            "title": "Effective",
            "type": "string"
          },
          "fallback": {
            "title": "Fallback",
            "type": "string"
          },
          "overridden": {
            "title": "Overridden",
            "type": "boolean"
          },
          "override": {
            "title": "Override",
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Updated At"
          },
          "updated_by": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Updated By"
          }
        },
        "required": [
          "base",
          "fallback",
          "effective",
          "override",
          "overridden"
        ],
        "title": "AdminTranslationValueOut",
        "type": "object"
      },
      "AdminTranslationsOut": {
        "properties": {
          "groups": {
            "items": {
              "$ref": "#/components/schemas/AdminTranslationGroupOut"
            },
            "title": "Groups",
            "type": "array"
          },
          "languages": {
            "items": {
              "$ref": "#/components/schemas/AdminTranslationLanguageOut"
            },
            "title": "Languages",
            "type": "array"
          },
          "override_count": {
            "title": "Override Count",
            "type": "integer"
          },
          "path": {
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "languages",
          "groups",
          "path",
          "override_count"
        ],
        "title": "AdminTranslationsOut",
        "type": "object"
      },
      "AdminTranslationsPatchBody": {
        "properties": {
          "deletes": {
            "title": "Deletes"
          },
          "updates": {
            "title": "Updates"
          }
        },
        "title": "AdminTranslationsPatchBody",
        "type": "object"
      },
      "AdminUserBanBody": {
        "properties": {
          "banned": {
            "default": false,
            "title": "Banned"
          }
        },
        "title": "AdminUserBanBody",
        "type": "object"
      },
      "AdminUserExtendBody": {
        "properties": {
          "apply_tariff_hwid_limit": {
            "default": false,
            "title": "Apply Tariff Hwid Limit"
          },
          "days": {
            "default": null,
            "title": "Days"
          },
          "extend_hwid_devices": {
            "default": null,
            "title": "Extend Hwid Devices"
          },
          "tariff_key": {
            "default": null,
            "title": "Tariff Key"
          }
        },
        "title": "AdminUserExtendBody",
        "type": "object"
      },
      "AdminUserHwidDeviceLimitBody": {
        "properties": {
          "hwid_device_limit": {
            "default": null,
            "title": "Hwid Device Limit"
          },
          "limit": {
            "default": null,
            "title": "Limit"
          },
          "reset_to_default": {
            "default": false,
            "title": "Reset To Default"
          },
          "unlimited": {
            "default": false,
            "title": "Unlimited"
          },
          "use_default": {
            "default": false,
            "title": "Use Default"
          }
        },
        "title": "AdminUserHwidDeviceLimitBody",
        "type": "object"
      },
      "AdminUserMessageBody": {
        "properties": {
          "text": {
            "default": "",
            "title": "Text"
          }
        },
        "title": "AdminUserMessageBody",
        "type": "object"
      },
      "AdminUserOut": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "First Name"
          },
          "is_banned": {
            "title": "Is Banned",
            "type": "boolean"
          },
          "language_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Language Code"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Name"
          },
          "panel_user_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel User Uuid"
          },
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referral Code"
          },
          "referred_by_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referred By Id"
          },
          "registration_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Registration Date"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "telegram_photo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Photo Url"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Username"
          }
        },
        "required": [
          "user_id",
          "is_banned"
        ],
        "title": "AdminUserOut",
        "type": "object"
      },
      "AdminUserPremiumOverrideBody": {
        "properties": {
          "bonus_bytes": {
            "default": null,
            "title": "Bonus Bytes"
          },
          "bonus_gb": {
            "default": null,
            "title": "Bonus Gb"
          },
          "unlimited": {
            "default": false,
            "title": "Unlimited"
          }
        },
        "title": "AdminUserPremiumOverrideBody",
        "type": "object"
      },
      "AdminUserRegularTrafficOverrideBody": {
        "properties": {
          "regular_bonus_bytes": {
            "default": null,
            "title": "Regular Bonus Bytes"
          },
          "regular_bonus_gb": {
            "default": null,
            "title": "Regular Bonus Gb"
          },
          "unlimited": {
            "default": false,
            "title": "Unlimited"
          }
        },
        "title": "AdminUserRegularTrafficOverrideBody",
        "type": "object"
      },
      "AdminUserSquadOverridesPatchBody": {
        "properties": {
          "add_internal_squad_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Add Internal Squad Uuids",
            "type": "array"
          },
          "external_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "External Mode"
          },
          "external_squad_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "External Squad Uuid"
          },
          "remove_internal_squad_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Remove Internal Squad Uuids",
            "type": "array"
          },
          "sync_panel": {
            "default": true,
            "title": "Sync Panel",
            "type": "boolean"
          }
        },
        "title": "AdminUserSquadOverridesPatchBody",
        "type": "object"
      },
      "AdminUserTariffBody": {
        "properties": {
          "apply_tariff_hwid_limit": {
            "default": false,
            "title": "Apply Tariff Hwid Limit"
          },
          "tariff_key": {
            "default": null,
            "title": "Tariff Key"
          }
        },
        "title": "AdminUserTariffBody",
        "type": "object"
      },
      "AdminUserTrafficGrantBody": {
        "properties": {
          "bytes": {
            "default": null,
            "title": "Bytes"
          },
          "gb": {
            "default": null,
            "title": "Gb"
          },
          "kind": {
            "default": "regular",
            "title": "Kind"
          }
        },
        "title": "AdminUserTrafficGrantBody",
        "type": "object"
      },
      "AdminUserTrafficStrategyBody": {
        "properties": {
          "traffic_limit_strategy": {
            "default": null,
            "title": "Traffic Limit Strategy"
          }
        },
        "title": "AdminUserTrafficStrategyBody",
        "type": "object"
      },
      "AdminUserTrialOut": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "first_activated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "First Activated At"
          },
          "last_reset_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Reset At"
          },
          "latest_activated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Latest Activated At"
          },
          "latest_end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Latest End Date"
          },
          "used": {
            "title": "Used",
            "type": "boolean"
          }
        },
        "required": [
          "used",
          "count",
          "active"
        ],
        "title": "AdminUserTrialOut",
        "type": "object"
      },
      "AdminUserWithAvatarOut": {
        "properties": {
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Avatar Url"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "First Name"
          },
          "is_banned": {
            "title": "Is Banned",
            "type": "boolean"
          },
          "language_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Language Code"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Name"
          },
          "panel_user_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel User Uuid"
          },
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referral Code"
          },
          "referred_by_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referred By Id"
          },
          "registration_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Registration Date"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "telegram_photo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Photo Url"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Username"
          }
        },
        "required": [
          "user_id",
          "is_banned"
        ],
        "title": "AdminUserWithAvatarOut",
        "type": "object"
      },
      "CreateTicketPayload": {
        "properties": {
          "body": {
            "maxLength": 4000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          },
          "category": {
            "default": "other",
            "enum": [
              "billing",
              "technical",
              "account",
              "other"
            ],
            "title": "Category",
            "type": "string"
          },
          "priority": {
            "default": "normal",
            "enum": [
              "normal",
              "high"
            ],
            "title": "Priority",
            "type": "string"
          },
          "subject": {
            "maxLength": 160,
            "minLength": 1,
            "title": "Subject",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "body"
        ],
        "title": "CreateTicketPayload",
        "type": "object"
      },
      "EmptyObjectOut": {
        "additionalProperties": false,
        "properties": {},
        "title": "EmptyObjectOut",
        "type": "object"
      },
      "HwidDevicePackage": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "min_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Price"
          },
          "price": {
            "title": "Price",
            "type": "number"
          },
          "prices": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Prices",
            "type": "object"
          }
        },
        "required": [
          "count",
          "price"
        ],
        "title": "HwidDevicePackage",
        "type": "object"
      },
      "HwidDevicePackageSet": {
        "additionalProperties": {
          "items": {
            "$ref": "#/components/schemas/HwidDevicePackage"
          },
          "type": "array"
        },
        "title": "HwidDevicePackageSet",
        "type": "object"
      },
      "LogOut": {
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Content"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email"
          },
          "event_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Event Type"
          },
          "is_admin_event": {
            "title": "Is Admin Event",
            "type": "boolean"
          },
          "log_id": {
            "title": "Log Id",
            "type": "integer"
          },
          "target_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Target User Id"
          },
          "target_user_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Target User Label"
          },
          "telegram_first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram First Name"
          },
          "telegram_username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Username"
          },
          "timestamp": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Timestamp"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "User Id"
          },
          "user_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "User Label"
          }
        },
        "required": [
          "log_id",
          "is_admin_event"
        ],
        "title": "LogOut",
        "type": "object"
      },
      "PackageSet": {
        "additionalProperties": {
          "items": {
            "$ref": "#/components/schemas/TrafficPackage"
          },
          "type": "array"
        },
        "title": "PackageSet",
        "type": "object"
      },
      "PaymentDetailOut": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Currency"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "idempotence_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Idempotence Key"
          },
          "payment_id": {
            "title": "Payment Id",
            "type": "integer"
          },
          "promo_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Promo Code"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider"
          },
          "provider_payment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider Payment Id"
          },
          "purchased_gb": {
            "default": null,
            "title": "Purchased Gb"
          },
          "purchased_hwid_devices": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Purchased Hwid Devices"
          },
          "sale_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sale Mode"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Status"
          },
          "subscription_duration_months": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Subscription Duration Months"
          },
          "tariff_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff Key"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "traffic_premium_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Premium Gb"
          },
          "traffic_regular_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Regular Gb"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Updated At"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          },
          "user_label": {
            "title": "User Label",
            "type": "string"
          },
          "yookassa_payment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Yookassa Payment Id"
          }
        },
        "required": [
          "payment_id",
          "user_id",
          "user_label",
          "amount"
        ],
        "title": "PaymentDetailOut",
        "type": "object"
      },
      "PaymentOut": {
        "properties": {
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Currency"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "payment_id": {
            "title": "Payment Id",
            "type": "integer"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider"
          },
          "provider_payment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Provider Payment Id"
          },
          "purchased_gb": {
            "default": null,
            "title": "Purchased Gb"
          },
          "purchased_hwid_devices": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Purchased Hwid Devices"
          },
          "sale_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sale Mode"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Status"
          },
          "subscription_duration_months": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Subscription Duration Months"
          },
          "tariff_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff Key"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "traffic_premium_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Premium Gb"
          },
          "traffic_regular_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Regular Gb"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          },
          "user_label": {
            "title": "User Label",
            "type": "string"
          }
        },
        "required": [
          "payment_id",
          "user_id",
          "user_label",
          "amount"
        ],
        "title": "PaymentOut",
        "type": "object"
      },
      "PromoActivationOut": {
        "properties": {
          "activated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Activated At"
          },
          "activation_id": {
            "title": "Activation Id",
            "type": "integer"
          },
          "applies_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Applies To"
          },
          "base_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Base Amount"
          },
          "bonus_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bonus Days"
          },
          "charged_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Charged Gb"
          },
          "charged_months": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Charged Months"
          },
          "discount_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Discount Amount"
          },
          "discount_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Discount Percent"
          },
          "duration_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Duration Multiplier"
          },
          "effect_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Effect Summary"
          },
          "granted_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Granted Days"
          },
          "granted_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Granted Gb"
          },
          "payment_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Amount"
          },
          "payment_created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Created At"
          },
          "payment_currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Currency"
          },
          "payment_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Description"
          },
          "payment_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Id"
          },
          "payment_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Provider"
          },
          "payment_sale_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Sale Mode"
          },
          "payment_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Payment Status"
          },
          "promo_id": {
            "title": "Promo Id",
            "type": "integer"
          },
          "telegram_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Telegram Id"
          },
          "traffic_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Multiplier"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          },
          "user_label": {
            "title": "User Label",
            "type": "string"
          }
        },
        "required": [
          "activation_id",
          "promo_id",
          "user_id",
          "user_label"
        ],
        "title": "PromoActivationOut",
        "type": "object"
      },
      "PromoCreateBody": {
        "properties": {
          "applies_to": {
            "default": "all",
            "title": "Applies To",
            "type": "string"
          },
          "bonus_days": {
            "default": 0,
            "minimum": 0,
            "title": "Bonus Days",
            "type": "integer"
          },
          "bonus_requires_payment": {
            "default": false,
            "title": "Bonus Requires Payment",
            "type": "boolean"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Code"
          },
          "discount_percent": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "maximum": 100,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Discount Percent"
          },
          "duration_multiplier": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Duration Multiplier"
          },
          "max_activations": {
            "exclusiveMinimum": 0,
            "title": "Max Activations",
            "type": "integer"
          },
          "min_subscription_months": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Subscription Months"
          },
          "min_traffic_gb": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Traffic Gb"
          },
          "origin": {
            "default": "admin",
            "title": "Origin",
            "type": "string"
          },
          "traffic_multiplier": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Multiplier"
          },
          "valid_days": {
            "default": null,
            "title": "Valid Days"
          }
        },
        "required": [
          "max_activations"
        ],
        "title": "PromoCreateBody",
        "type": "object"
      },
      "PromoOut": {
        "properties": {
          "applies_to": {
            "title": "Applies To",
            "type": "string"
          },
          "bonus_days": {
            "title": "Bonus Days",
            "type": "integer"
          },
          "bonus_requires_payment": {
            "default": false,
            "title": "Bonus Requires Payment",
            "type": "boolean"
          },
          "bot_link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bot Link"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "created_by_admin_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created By Admin Id"
          },
          "current_activations": {
            "title": "Current Activations",
            "type": "integer"
          },
          "discount_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Discount Percent"
          },
          "duration_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Duration Multiplier"
          },
          "effect_summary": {
            "title": "Effect Summary",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "max_activations": {
            "title": "Max Activations",
            "type": "integer"
          },
          "min_subscription_months": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Subscription Months"
          },
          "min_traffic_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Traffic Gb"
          },
          "origin": {
            "title": "Origin",
            "type": "string"
          },
          "traffic_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Multiplier"
          },
          "valid_until": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Valid Until"
          },
          "webapp_link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Webapp Link"
          }
        },
        "required": [
          "id",
          "code",
          "bonus_days",
          "applies_to",
          "origin",
          "effect_summary",
          "max_activations",
          "current_activations",
          "is_active"
        ],
        "title": "PromoOut",
        "type": "object"
      },
      "PromoUpdateBody": {
        "properties": {
          "applies_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Applies To"
          },
          "bonus_days": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bonus Days"
          },
          "bonus_requires_payment": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bonus Requires Payment"
          },
          "clear_valid_until": {
            "default": null,
            "title": "Clear Valid Until"
          },
          "discount_percent": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "maximum": 100,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Discount Percent"
          },
          "duration_multiplier": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Duration Multiplier"
          },
          "is_active": {
            "default": null,
            "title": "Is Active"
          },
          "max_activations": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Max Activations"
          },
          "min_subscription_months": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Subscription Months"
          },
          "min_traffic_gb": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Min Traffic Gb"
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Origin"
          },
          "traffic_multiplier": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Multiplier"
          },
          "valid_until": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Valid Until"
          }
        },
        "title": "PromoUpdateBody",
        "type": "object"
      },
      "ProviderCurrencySupportOut": {
        "properties": {
          "accepts_any_currency": {
            "title": "Accepts Any Currency",
            "type": "boolean"
          },
          "admin_only": {
            "title": "Admin Only",
            "type": "boolean"
          },
          "configured": {
            "title": "Configured",
            "type": "boolean"
          },
          "currencies": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Currencies"
          },
          "default_currency": {
            "title": "Default Currency",
            "type": "string"
          },
          "directly_supports_default_currency": {
            "title": "Directly Supports Default Currency",
            "type": "boolean"
          },
          "docs_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Docs Url"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Icon"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "price_source": {
            "title": "Price Source",
            "type": "string"
          },
          "provider_key": {
            "title": "Provider Key",
            "type": "string"
          },
          "provider_label": {
            "title": "Provider Label",
            "type": "string"
          },
          "settings_path": {
            "items": {
              "type": "string"
            },
            "title": "Settings Path",
            "type": "array"
          },
          "supports_default_currency": {
            "title": "Supports Default Currency",
            "type": "boolean"
          },
          "telegram_label": {
            "title": "Telegram Label",
            "type": "string"
          }
        },
        "required": [
          "id",
          "provider_key",
          "provider_label",
          "settings_path",
          "label",
          "telegram_label",
          "enabled",
          "configured",
          "admin_only",
          "price_source",
          "accepts_any_currency",
          "supports_default_currency",
          "directly_supports_default_currency",
          "default_currency",
          "note"
        ],
        "title": "ProviderCurrencySupportOut",
        "type": "object"
      },
      "PublicSubscriptionContextOut": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "config_link": {
            "title": "Config Link",
            "type": "string"
          },
          "connect_url": {
            "title": "Connect Url",
            "type": "string"
          },
          "install_share_token": {
            "title": "Install Share Token",
            "type": "string"
          },
          "panel_short_uuid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel Short Uuid"
          },
          "share_url": {
            "title": "Share Url",
            "type": "string"
          },
          "username": {
            "title": "Username",
            "type": "string"
          }
        },
        "required": [
          "active",
          "config_link",
          "connect_url",
          "install_share_token",
          "username",
          "share_url"
        ],
        "title": "PublicSubscriptionContextOut",
        "type": "object"
      },
      "PublicSubscriptionGuidesOut": {
        "properties": {
          "config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Config"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          },
          "subscription": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicSubscriptionContextOut"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "required": [
          "enabled"
        ],
        "title": "PublicSubscriptionGuidesOut",
        "type": "object"
      },
      "SubscriptionGuidesOut": {
        "properties": {
          "config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Config"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Source"
          }
        },
        "required": [
          "enabled"
        ],
        "title": "SubscriptionGuidesOut",
        "type": "object"
      },
      "SupportCountsOut": {
        "additionalProperties": true,
        "description": "Ticket counters keyed by known statuses, with room for future status keys.",
        "properties": {
          "active": {
            "title": "Active",
            "type": "integer"
          },
          "closed": {
            "title": "Closed",
            "type": "integer"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "active",
          "closed",
          "total"
        ],
        "title": "SupportCountsOut",
        "type": "object"
      },
      "SupportMessageOut": {
        "properties": {
          "author_role": {
            "title": "Author Role",
            "type": "string"
          },
          "author_user_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Author User Id"
          },
          "body": {
            "title": "Body",
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "is_internal_note": {
            "title": "Is Internal Note",
            "type": "boolean"
          },
          "message_id": {
            "title": "Message Id",
            "type": "integer"
          },
          "read_by_admin_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Read By Admin At"
          },
          "read_by_user_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Read By User At"
          },
          "ticket_id": {
            "title": "Ticket Id",
            "type": "integer"
          }
        },
        "required": [
          "message_id",
          "ticket_id",
          "author_role",
          "body",
          "is_internal_note"
        ],
        "title": "SupportMessageOut",
        "type": "object"
      },
      "SupportTicketOut": {
        "properties": {
          "assigned_admin_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Assigned Admin Id"
          },
          "category": {
            "title": "Category",
            "type": "string"
          },
          "closed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Closed At"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "last_message_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Message At"
          },
          "last_message_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Last Message Role"
          },
          "priority": {
            "title": "Priority",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "subject": {
            "title": "Subject",
            "type": "string"
          },
          "ticket_id": {
            "title": "Ticket Id",
            "type": "integer"
          },
          "unread_admin_count": {
            "title": "Unread Admin Count",
            "type": "integer"
          },
          "unread_user_count": {
            "title": "Unread User Count",
            "type": "integer"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Updated At"
          },
          "user_id": {
            "title": "User Id",
            "type": "integer"
          }
        },
        "required": [
          "ticket_id",
          "user_id",
          "subject",
          "category",
          "priority",
          "status",
          "unread_user_count",
          "unread_admin_count"
        ],
        "title": "SupportTicketOut",
        "type": "object"
      },
      "SupportTrafficSnapshotOut": {
        "properties": {
          "left_bytes": {
            "default": 0,
            "title": "Left Bytes",
            "type": "integer"
          },
          "limit_bytes": {
            "default": 0,
            "title": "Limit Bytes",
            "type": "integer"
          },
          "percent": {
            "default": 0.0,
            "title": "Percent",
            "type": "number"
          },
          "used_bytes": {
            "default": 0,
            "title": "Used Bytes",
            "type": "integer"
          }
        },
        "title": "SupportTrafficSnapshotOut",
        "type": "object"
      },
      "SupportTypingIn": {
        "properties": {
          "typing": {
            "title": "Typing",
            "type": "boolean"
          }
        },
        "required": [
          "typing"
        ],
        "title": "SupportTypingIn",
        "type": "object"
      },
      "Tariff": {
        "properties": {
          "billing_model": {
            "enum": [
              "period",
              "traffic"
            ],
            "title": "Billing Model",
            "type": "string"
          },
          "conversion_rate_per_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Conversion Rate Per Gb"
          },
          "conversion_rate_rub_per_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Conversion Rate Rub Per Gb"
          },
          "descriptions": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Descriptions",
            "type": "object"
          },
          "enabled": {
            "default": true,
            "title": "Enabled",
            "type": "boolean"
          },
          "enabled_periods": {
            "items": {
              "type": "integer"
            },
            "title": "Enabled Periods",
            "type": "array"
          },
          "hwid_device_limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Hwid Device Limit"
          },
          "hwid_device_packages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HwidDevicePackageSet"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "legacy_keys": {
            "items": {
              "type": "string"
            },
            "title": "Legacy Keys",
            "type": "array"
          },
          "monthly_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Monthly Gb"
          },
          "names": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Names",
            "type": "object"
          },
          "premium_monthly_gb": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Premium Monthly Gb"
          },
          "premium_names": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Premium Names",
            "type": "object"
          },
          "premium_squad_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Premium Squad Uuids",
            "type": "array"
          },
          "premium_topup_always_available": {
            "default": false,
            "title": "Premium Topup Always Available",
            "type": "boolean"
          },
          "premium_topup_packages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PackageSet"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "prices": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "number"
              },
              "type": "object"
            },
            "title": "Prices",
            "type": "object"
          },
          "prices_rub": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Prices Rub",
            "type": "object"
          },
          "prices_stars": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Prices Stars",
            "type": "object"
          },
          "referral_bonus_days_inviter": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Referral Bonus Days Inviter",
            "type": "object"
          },
          "referral_bonus_days_referee": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Referral Bonus Days Referee",
            "type": "object"
          },
          "squad_uuids": {
            "items": {
              "type": "string"
            },
            "title": "Squad Uuids",
            "type": "array"
          },
          "topup_always_available": {
            "default": false,
            "title": "Topup Always Available",
            "type": "boolean"
          },
          "topup_packages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PackageSet"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "traffic_limit_strategy": {
            "anyOf": [
              {
                "enum": [
                  "NO_RESET",
                  "DAY",
                  "WEEK",
                  "MONTH",
                  "MONTH_ROLLING"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Traffic Limit Strategy"
          },
          "traffic_packages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PackageSet"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "required": [
          "key",
          "billing_model"
        ],
        "title": "Tariff",
        "type": "object"
      },
      "TariffsSaveBody": {
        "additionalProperties": true,
        "properties": {
          "catalog": {
            "default": null,
            "title": "Catalog"
          }
        },
        "title": "TariffsSaveBody",
        "type": "object"
      },
      "ThemeTokens": {
        "description": "CSS design tokens for the subscription Mini App shell.",
        "properties": {
          "accent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Accent"
          },
          "accent_contrast": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Accent Contrast"
          },
          "admin_bg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Bg"
          },
          "admin_border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Border"
          },
          "admin_border_strong": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Border Strong"
          },
          "admin_chart_fill": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Chart Fill"
          },
          "admin_chart_stroke": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Chart Stroke"
          },
          "admin_dim": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Dim"
          },
          "admin_elev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Elev"
          },
          "admin_muted": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Muted"
          },
          "admin_surface": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Surface"
          },
          "admin_surface_2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Surface 2"
          },
          "admin_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Admin Text"
          },
          "bg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bg"
          },
          "blue": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Blue"
          },
          "border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Border"
          },
          "border_strong": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Border Strong"
          },
          "color_scheme": {
            "default": "dark",
            "enum": [
              "light",
              "dark"
            ],
            "title": "Color Scheme",
            "type": "string"
          },
          "danger": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Danger"
          },
          "danger_border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Danger Border"
          },
          "danger_soft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Danger Soft"
          },
          "danger_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Danger Text"
          },
          "dim": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Dim"
          },
          "font_logo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Font Logo"
          },
          "font_mono": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Font Mono"
          },
          "font_sans": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Font Sans"
          },
          "home_logo_scale": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Home Logo Scale"
          },
          "home_logo_scale_desktop": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Home Logo Scale Desktop"
          },
          "home_logo_scale_mobile": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Home Logo Scale Mobile"
          },
          "info": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Info"
          },
          "info_border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Info Border"
          },
          "info_soft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Info Soft"
          },
          "info_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Info Text"
          },
          "inset_highlight": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Inset Highlight"
          },
          "muted": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Muted"
          },
          "nav_bg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Nav Bg"
          },
          "overlay_scrim": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Overlay Scrim"
          },
          "panel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel"
          },
          "panel_2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel 2"
          },
          "panel_3": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Panel 3"
          },
          "radius": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Radius"
          },
          "rail_bg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Rail Bg"
          },
          "shadow_popover": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Shadow Popover"
          },
          "shadow_soft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Shadow Soft"
          },
          "shadow_strong": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Shadow Strong"
          },
          "style_preset": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Style Preset"
          },
          "success": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Success"
          },
          "success_border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Success Border"
          },
          "success_soft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Success Soft"
          },
          "success_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Success Text"
          },
          "surface_hover": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Surface Hover"
          },
          "surface_muted": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Surface Muted"
          },
          "surface_sheen": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Surface Sheen"
          },
          "surface_sheen_soft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Surface Sheen Soft"
          },
          "surface_subtle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Surface Subtle"
          },
          "surface_subtle_border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Surface Subtle Border"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Text"
          },
          "warning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Warning"
          },
          "warning_border": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Warning Border"
          },
          "warning_soft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Warning Soft"
          },
          "warning_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Warning Text"
          }
        },
        "title": "ThemeTokens",
        "type": "object"
      },
      "ThemesSaveBody": {
        "additionalProperties": true,
        "properties": {
          "catalog": {
            "default": null,
            "title": "Catalog"
          }
        },
        "title": "ThemesSaveBody",
        "type": "object"
      },
      "TicketReplyPayload": {
        "properties": {
          "body": {
            "maxLength": 4000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          }
        },
        "required": [
          "body"
        ],
        "title": "TicketReplyPayload",
        "type": "object"
      },
      "TrafficPackage": {
        "properties": {
          "gb": {
            "title": "Gb",
            "type": "number"
          },
          "price": {
            "title": "Price",
            "type": "number"
          }
        },
        "required": [
          "gb",
          "price"
        ],
        "title": "TrafficPackage",
        "type": "object"
      },
      "WebAppAutoRenewPayload": {
        "properties": {
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "title": "WebAppAutoRenewPayload",
        "type": "object"
      },
      "WebAppDeviceDisconnectPayload": {
        "properties": {
          "token": {
            "maxLength": 128,
            "minLength": 8,
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "title": "WebAppDeviceDisconnectPayload",
        "type": "object"
      },
      "WebAppDeviceOut": {
        "properties": {
          "can_disconnect": {
            "title": "Can Disconnect",
            "type": "boolean"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "created_at_text": {
            "title": "Created At Text",
            "type": "string"
          },
          "display_name": {
            "title": "Display Name",
            "type": "string"
          },
          "hwid_short": {
            "title": "Hwid Short",
            "type": "string"
          },
          "index": {
            "title": "Index",
            "type": "integer"
          },
          "os_version": {
            "title": "Os Version",
            "type": "string"
          },
          "platform": {
            "title": "Platform",
            "type": "string"
          },
          "platform_label": {
            "title": "Platform Label",
            "type": "string"
          },
          "token": {
            "title": "Token",
            "type": "string"
          },
          "user_agent": {
            "title": "User Agent",
            "type": "string"
          }
        },
        "required": [
          "index",
          "display_name",
          "platform",
          "os_version",
          "platform_label",
          "user_agent",
          "created_at_text",
          "hwid_short",
          "token",
          "can_disconnect"
        ],
        "title": "WebAppDeviceOut",
        "type": "object"
      },
      "WebAppEmailCodeAuthPayload": {
        "properties": {
          "code": {
            "default": "",
            "title": "Code",
            "type": "string"
          },
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          },
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referral Code"
          },
          "start_param": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start Param"
          }
        },
        "required": [
          "email"
        ],
        "title": "WebAppEmailCodeAuthPayload",
        "type": "object"
      },
      "WebAppEmailCodePayload": {
        "properties": {
          "code": {
            "default": "",
            "title": "Code",
            "type": "string"
          },
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "title": "WebAppEmailCodePayload",
        "type": "object"
      },
      "WebAppEmailMagicAuthPayload": {
        "properties": {
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referral Code"
          },
          "start_param": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start Param"
          },
          "token": {
            "maxLength": 512,
            "minLength": 8,
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "title": "WebAppEmailMagicAuthPayload",
        "type": "object"
      },
      "WebAppEmailPasswordPayload": {
        "properties": {
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          },
          "password": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Password",
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ],
        "title": "WebAppEmailPasswordPayload",
        "type": "object"
      },
      "WebAppEmailPayload": {
        "properties": {
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "title": "WebAppEmailPayload",
        "type": "object"
      },
      "WebAppEmailRequestPayload": {
        "properties": {
          "email": {
            "format": "email",
            "title": "Email",
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Language"
          },
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referral Code"
          },
          "start_param": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start Param"
          }
        },
        "required": [
          "email"
        ],
        "title": "WebAppEmailRequestPayload",
        "type": "object"
      },
      "WebAppLanguagePayload": {
        "properties": {
          "language": {
            "maxLength": 16,
            "minLength": 2,
            "title": "Language",
            "type": "string"
          }
        },
        "required": [
          "language"
        ],
        "title": "WebAppLanguagePayload",
        "type": "object"
      },
      "WebAppPaymentCreatePayload": {
        "properties": {
          "comment": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Comment"
          },
          "description": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "device_count": {
            "default": null,
            "title": "Device Count"
          },
          "method": {
            "default": "",
            "title": "Method",
            "type": "string"
          },
          "months": {
            "default": null,
            "title": "Months"
          },
          "note": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Note"
          },
          "promo_code": {
            "anyOf": [
              {
                "maxLength": 32,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Promo Code"
          },
          "renew_hwid_devices": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Renew Hwid Devices"
          },
          "sale_mode": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sale Mode"
          },
          "tariff_key": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff Key"
          },
          "traffic_gb": {
            "default": null,
            "title": "Traffic Gb"
          }
        },
        "title": "WebAppPaymentCreatePayload",
        "type": "object"
      },
      "WebAppPlansViewedPayload": {
        "properties": {
          "plans_count": {
            "default": 0,
            "title": "Plans Count",
            "type": "integer"
          },
          "tariff_key": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff Key"
          }
        },
        "title": "WebAppPlansViewedPayload",
        "type": "object"
      },
      "WebAppPromoApplyPayload": {
        "properties": {
          "code": {
            "default": "",
            "title": "Code"
          }
        },
        "title": "WebAppPromoApplyPayload",
        "type": "object"
      },
      "WebAppPromoQuotePayload": {
        "properties": {
          "comment": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Comment"
          },
          "description": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Description"
          },
          "device_count": {
            "default": null,
            "title": "Device Count"
          },
          "method": {
            "default": "",
            "title": "Method",
            "type": "string"
          },
          "months": {
            "default": null,
            "title": "Months"
          },
          "note": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Note"
          },
          "promo_code": {
            "maxLength": 32,
            "minLength": 1,
            "title": "Promo Code",
            "type": "string"
          },
          "renew_hwid_devices": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Renew Hwid Devices"
          },
          "sale_mode": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sale Mode"
          },
          "tariff_key": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Tariff Key"
          },
          "traffic_gb": {
            "default": null,
            "title": "Traffic Gb"
          }
        },
        "required": [
          "promo_code"
        ],
        "title": "WebAppPromoQuotePayload",
        "type": "object"
      },
      "WebAppSetPasswordPayload": {
        "properties": {
          "code": {
            "maxLength": 32,
            "minLength": 1,
            "title": "Code",
            "type": "string"
          },
          "password": {
            "maxLength": 128,
            "minLength": 8,
            "title": "Password",
            "type": "string"
          },
          "password_confirm": {
            "maxLength": 128,
            "minLength": 8,
            "title": "Password Confirm",
            "type": "string"
          }
        },
        "required": [
          "password",
          "password_confirm",
          "code"
        ],
        "title": "WebAppSetPasswordPayload",
        "type": "object"
      },
      "WebAppSubscriptionReissuePayload": {
        "description": "Empty body for the subscription reissue action (extra keys ignored).",
        "properties": {},
        "title": "WebAppSubscriptionReissuePayload",
        "type": "object"
      },
      "WebAppTariffChangePayload": {
        "properties": {
          "mode": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Mode",
            "type": "string"
          },
          "tariff_key": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Tariff Key",
            "type": "string"
          }
        },
        "required": [
          "tariff_key",
          "mode"
        ],
        "title": "WebAppTariffChangePayload",
        "type": "object"
      },
      "WebAppTelegramAuthPayload": {
        "properties": {
          "auth_data": {
            "default": null,
            "title": "Auth Data"
          },
          "id_token": {
            "default": "",
            "title": "Id Token",
            "type": "string"
          },
          "init_data": {
            "default": "",
            "title": "Init Data",
            "type": "string"
          },
          "nonce": {
            "default": "",
            "title": "Nonce",
            "type": "string"
          },
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Referral Code"
          },
          "start_param": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Start Param"
          }
        },
        "title": "WebAppTelegramAuthPayload",
        "type": "object"
      },
      "WebappBootstrapConfigOut": {
        "additionalProperties": true,
        "properties": {
          "adminCssAsset": {
            "title": "Admincssasset",
            "type": "string"
          },
          "adminJsAsset": {
            "title": "Adminjsasset",
            "type": "string"
          },
          "apiBase": {
            "title": "Apibase",
            "type": "string"
          },
          "appRepositoryUrl": {
            "title": "Apprepositoryurl",
            "type": "string"
          },
          "appVersion": {
            "title": "Appversion",
            "type": "string"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "emailAuthEnabled": {
            "title": "Emailauthenabled",
            "type": "boolean"
          },
          "faviconUrl": {
            "title": "Faviconurl",
            "type": "string"
          },
          "faviconUseCustom": {
            "title": "Faviconusecustom",
            "type": "boolean"
          },
          "language": {
            "title": "Language",
            "type": "string"
          },
          "languages": {
            "items": {
              "$ref": "#/components/schemas/WebappBootstrapLanguageOut"
            },
            "title": "Languages",
            "type": "array"
          },
          "logoUrl": {
            "title": "Logourl",
            "type": "string"
          },
          "primaryColor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Primarycolor"
          },
          "privacyPolicyUrl": {
            "title": "Privacypolicyurl",
            "type": "string"
          },
          "registrationInviteOnlyEnabled": {
            "title": "Registrationinviteonlyenabled",
            "type": "boolean"
          },
          "serverStatusUrl": {
            "title": "Serverstatusurl",
            "type": "string"
          },
          "supportUrl": {
            "title": "Supporturl",
            "type": "string"
          },
          "telegramLoginBotId": {
            "title": "Telegramloginbotid",
            "type": "integer"
          },
          "telegramLoginBotUsername": {
            "title": "Telegramloginbotusername",
            "type": "string"
          },
          "telegramOAuthClientId": {
            "title": "Telegramoauthclientid",
            "type": "integer"
          },
          "telegramOAuthRequestAccess": {
            "title": "Telegramoauthrequestaccess",
            "type": "string"
          },
          "themePreviewKey": {
            "title": "Themepreviewkey",
            "type": "string"
          },
          "themesCatalog": {
            "additionalProperties": true,
            "title": "Themescatalog",
            "type": "object"
          },
          "themesDir": {
            "title": "Themesdir",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "userAgreementUrl": {
            "title": "Useragreementurl",
            "type": "string"
          }
        },
        "required": [
          "title",
          "themesDir",
          "themePreviewKey",
          "logoUrl",
          "faviconUrl",
          "faviconUseCustom",
          "apiBase",
          "adminJsAsset",
          "adminCssAsset",
          "telegramLoginBotUsername",
          "telegramLoginBotId",
          "telegramOAuthClientId",
          "telegramOAuthRequestAccess",
          "supportUrl",
          "serverStatusUrl",
          "privacyPolicyUrl",
          "userAgreementUrl",
          "currency",
          "language",
          "languages",
          "emailAuthEnabled",
          "registrationInviteOnlyEnabled",
          "appVersion",
          "appRepositoryUrl"
        ],
        "title": "WebappBootstrapConfigOut",
        "type": "object"
      },
      "WebappBootstrapLanguageOut": {
        "properties": {
          "base": {
            "title": "Base",
            "type": "boolean"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "flag": {
            "title": "Flag",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "code",
          "label",
          "flag",
          "base"
        ],
        "title": "WebappBootstrapLanguageOut",
        "type": "object"
      },
      "WebappBootstrapOut": {
        "properties": {
          "config": {
            "$ref": "#/components/schemas/WebappBootstrapConfigOut"
          },
          "i18n": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "I18N",
            "type": "object"
          }
        },
        "required": [
          "config",
          "i18n"
        ],
        "title": "WebappBootstrapOut",
        "type": "object"
      },
      "WebappI18nOut": {
        "properties": {
          "i18n": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "I18N",
            "type": "object"
          },
          "scope": {
            "title": "Scope",
            "type": "string"
          }
        },
        "required": [
          "scope",
          "i18n"
        ],
        "title": "WebappI18nOut",
        "type": "object"
      },
      "WebappTheme": {
        "description": "Single theme descriptor loaded from WEBAPP_THEMES_DIR/<key>/theme.json.",
        "properties": {
          "active_variant": {
            "anyOf": [
              {
                "enum": [
                  "light",
                  "dark"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Active Variant"
          },
          "assets_version": {
            "default": 1,
            "title": "Assets Version",
            "type": "integer"
          },
          "css_file": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Css File"
          },
          "default": {
            "default": false,
            "title": "Default",
            "type": "boolean"
          },
          "enabled": {
            "default": true,
            "title": "Enabled",
            "type": "boolean"
          },
          "hidden": {
            "default": false,
            "title": "Hidden",
            "type": "boolean"
          },
          "key": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Key",
            "type": "string"
          },
          "names": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Names",
            "type": "object"
          },
          "tokens": {
            "$ref": "#/components/schemas/ThemeTokens"
          },
          "use_in_admin": {
            "default": true,
            "title": "Use In Admin",
            "type": "boolean"
          },
          "use_primary_accent": {
            "default": true,
            "title": "Use Primary Accent",
            "type": "boolean"
          },
          "variant_alias_for": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Variant Alias For"
          },
          "variants": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ThemeTokens"
            },
            "title": "Variants",
            "type": "object"
          }
        },
        "required": [
          "key"
        ],
        "title": "WebappTheme",
        "type": "object"
      },
      "WebappThemesConfig": {
        "description": "Runtime catalog assembled from individual theme descriptor files.",
        "properties": {
          "default_theme": {
            "default": "dark",
            "title": "Default Theme",
            "type": "string"
          },
          "themes": {
            "items": {
              "$ref": "#/components/schemas/WebappTheme"
            },
            "title": "Themes",
            "type": "array"
          }
        },
        "title": "WebappThemesConfig",
        "type": "object"
      }
    },
    "securitySchemes": {
      "AdminBearer": {
        "description": "Authenticated admin bearer token.",
        "scheme": "bearer",
        "type": "http"
      },
      "AdminSession": {
        "description": "Authenticated admin webapp session cookie.",
        "in": "cookie",
        "name": "rw_webapp_session",
        "type": "apiKey"
      },
      "UserBearer": {
        "description": "Authenticated Mini App user bearer token.",
        "scheme": "bearer",
        "type": "http"
      },
      "UserSession": {
        "description": "Authenticated Mini App user session cookie.",
        "in": "cookie",
        "name": "rw_webapp_session",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Core and built-in Mini App HTTP API generated from the live aiohttp router.",
    "title": "Remnawave Minishop HTTP API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/account/avatar": {
      "get": {
        "operationId": "get_account_avatar_route",
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Avatar",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/email/request": {
      "post": {
        "operationId": "post_account_email_request_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppEmailPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "already_linked": {
                      "type": "boolean"
                    },
                    "code": {
                      "type": "string"
                    },
                    "email_code": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "retry_after": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Email Request",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/email/verify": {
      "post": {
        "operationId": "post_account_email_verify_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppEmailCodePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_merge": {
                      "additionalProperties": false,
                      "properties": {
                        "final_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "final_end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": "string"
                        },
                        "merged": {
                          "type": "boolean"
                        },
                        "primary_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_user_id": {
                          "type": "integer"
                        },
                        "removed_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "removed_user_id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "merged",
                        "language",
                        "primary_user_id",
                        "removed_user_id",
                        "primary_panel_user_uuid",
                        "removed_panel_user_uuid",
                        "final_end_date",
                        "final_end_date_text"
                      ],
                      "type": "object"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "token",
                    "csrf_token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Email Verify",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/language": {
      "post": {
        "operationId": "post_account_language_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppLanguagePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "language": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "language"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Language",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/password/confirm": {
      "post": {
        "operationId": "post_account_password_confirm_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppSetPasswordPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "password_auth_enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "password_auth_enabled"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Password Confirm",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/password/request": {
      "post": {
        "operationId": "post_account_password_request_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "retry_after": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Password Request",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/telegram/link": {
      "post": {
        "operationId": "post_account_telegram_link_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppTelegramAuthPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_merge": {
                      "additionalProperties": false,
                      "properties": {
                        "final_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "final_end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": "string"
                        },
                        "merged": {
                          "type": "boolean"
                        },
                        "primary_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_user_id": {
                          "type": "integer"
                        },
                        "removed_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "removed_user_id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "merged",
                        "language",
                        "primary_user_id",
                        "removed_user_id",
                        "primary_panel_user_uuid",
                        "removed_panel_user_uuid",
                        "final_end_date",
                        "final_end_date_text"
                      ],
                      "type": "object"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "token",
                    "csrf_token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Telegram Link",
        "tags": [
          "account"
        ]
      }
    },
    "/api/account/telegram/notifications/probe": {
      "post": {
        "operationId": "post_account_telegram_notifications_probe_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_notifications": {
                      "additionalProperties": false,
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "ok": {
                          "type": "boolean"
                        },
                        "start_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ok",
                        "status",
                        "enabled",
                        "start_link"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "telegram_notifications"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Account Telegram Notifications Probe",
        "tags": [
          "account"
        ]
      }
    },
    "/api/admin/ads": {
      "get": {
        "operationId": "get_admin_ads_list_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminAdsListOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Ads List",
        "tags": [
          "admin"
        ]
      },
      "post": {
        "operationId": "post_admin_ad_create_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "campaign": {
                      "$ref": "#/components/schemas/AdOut"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "campaign"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Ad Create",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/ads/{campaign_id}": {
      "delete": {
        "operationId": "delete_admin_ad_delete_route",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Ad Delete",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/ads/{campaign_id}/toggle": {
      "post": {
        "operationId": "post_admin_ad_toggle_route",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdToggleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Ad Toggle",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/appearance/favicon": {
      "post": {
        "operationId": "post_admin_appearance_favicon_upload_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "favicon_url": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "persisted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "persisted"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Appearance Favicon Upload",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/appearance/logo": {
      "post": {
        "operationId": "post_admin_appearance_logo_upload_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "favicon_url": {
                      "type": "string"
                    },
                    "logo_url": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "persisted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "logo_url",
                    "persisted"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Appearance Logo Upload",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/backups": {
      "get": {
        "operationId": "get_admin_backups_list_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBackupsListOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Backups List",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/backups/create": {
      "post": {
        "operationId": "post_admin_backups_create_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBackupCreateOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Backups Create",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/backups/restore": {
      "post": {
        "operationId": "post_admin_backups_restore_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminBackupRestoreBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBackupRestoreOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Backups Restore",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/backups/upload": {
      "post": {
        "operationId": "post_admin_backups_upload_route",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBackupUploadOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Backups Upload",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/broadcast": {
      "post": {
        "operationId": "post_admin_broadcast_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminBroadcastBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "channels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "email_queued": {
                      "type": "integer"
                    },
                    "failed": {
                      "type": "integer"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "queued": {
                      "type": "integer"
                    },
                    "target": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "queued",
                    "failed",
                    "email_queued",
                    "target",
                    "channels"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Broadcast",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/broadcast/audience-counts": {
      "get": {
        "operationId": "get_admin_broadcast_audience_counts_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBroadcastAudienceCountsOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Broadcast Audience Counts",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/broadcast/preview": {
      "post": {
        "operationId": "post_admin_broadcast_preview_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminBroadcastPreviewBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBroadcastPreviewOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Broadcast Preview",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/broadcast/shortcodes": {
      "get": {
        "operationId": "get_admin_broadcast_shortcodes_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminBroadcastShortcodesOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Broadcast Shortcodes",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/health": {
      "get": {
        "operationId": "get_admin_health_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminHealthOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Health",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/logs": {
      "get": {
        "operationId": "get_admin_logs_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminLogsListOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Logs",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/me": {
      "get": {
        "operationId": "get_admin_me_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminMeOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Me",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/panel/internal-squads": {
      "get": {
        "operationId": "get_admin_panel_internal_squads_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "squads": {
                      "items": {
                        "$ref": "#/components/schemas/AdminPanelInternalSquadOut"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok",
                    "squads"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Panel Internal Squads",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/payments": {
      "get": {
        "operationId": "get_admin_payments_list_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminPaymentsListOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Payments List",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/payments/export.csv": {
      "get": {
        "operationId": "get_admin_payments_export_route",
        "responses": {
          "200": {
            "content": {
              "text/csv": {
                "schema": {
                  "contentMediaType": "text/csv",
                  "type": "string"
                }
              }
            },
            "description": "Response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Payments Export",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/payments/{payment_id}": {
      "get": {
        "operationId": "get_admin_payment_detail_route",
        "parameters": [
          {
            "in": "path",
            "name": "payment_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "payment": {
                      "$ref": "#/components/schemas/PaymentDetailOut"
                    }
                  },
                  "required": [
                    "ok",
                    "payment"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Payment Detail",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/promos": {
      "get": {
        "operationId": "get_admin_promos_list_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "page": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "page_size": {
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "promos": {
                      "items": {
                        "$ref": "#/components/schemas/PromoOut"
                      },
                      "type": "array"
                    },
                    "total": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "promos",
                    "page",
                    "page_size",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Promos List",
        "tags": [
          "admin"
        ]
      },
      "post": {
        "operationId": "post_admin_promo_create_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "promo": {
                      "$ref": "#/components/schemas/PromoOut"
                    }
                  },
                  "required": [
                    "ok",
                    "promo"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Promo Create",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/promos/{promo_id}": {
      "delete": {
        "operationId": "delete_admin_promo_delete_route",
        "parameters": [
          {
            "in": "path",
            "name": "promo_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Promo Delete",
        "tags": [
          "admin"
        ]
      },
      "patch": {
        "operationId": "patch_admin_promo_update_route",
        "parameters": [
          {
            "in": "path",
            "name": "promo_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "promo": {
                      "$ref": "#/components/schemas/PromoOut"
                    }
                  },
                  "required": [
                    "ok",
                    "promo"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Promo Update",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/promos/{promo_id}/activations": {
      "get": {
        "operationId": "get_admin_promo_activations_route",
        "parameters": [
          {
            "in": "path",
            "name": "promo_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activations": {
                      "items": {
                        "$ref": "#/components/schemas/PromoActivationOut"
                      },
                      "type": "array"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "page": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "page_size": {
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "total": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "activations",
                    "page",
                    "page_size",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Promo Activations",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/settings": {
      "get": {
        "operationId": "get_admin_settings_get_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminSettingsOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Settings Get",
        "tags": [
          "admin"
        ]
      },
      "patch": {
        "operationId": "patch_admin_settings_patch_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSettingsPatchBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied": {
                      "type": "integer"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "reverted": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "applied",
                    "reverted"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Settings Patch",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/stats": {
      "get": {
        "operationId": "get_admin_stats_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminStatsOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Stats",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/support/stats": {
      "get": {
        "operationId": "get_admin_support_stats_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "stats": {
                      "$ref": "#/components/schemas/AdminSupportStatsOut"
                    }
                  },
                  "required": [
                    "ok",
                    "stats"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Stats",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/support/tickets": {
      "get": {
        "operationId": "get_admin_support_tickets_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "tickets": {
                      "items": {
                        "$ref": "#/components/schemas/AdminSupportTicketOut"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok",
                    "tickets"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Tickets",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/support/tickets/{id}": {
      "get": {
        "operationId": "get_admin_support_ticket_detail_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "messages": {
                      "items": {
                        "$ref": "#/components/schemas/AdminSupportMessageOut"
                      },
                      "type": "array"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "peer_typing": {
                      "type": "boolean"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/AdminSupportTicketOut"
                    },
                    "user_snapshot": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/AdminSupportUserSnapshotOut"
                        },
                        {
                          "$ref": "#/components/schemas/EmptyObjectOut"
                        }
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "ticket",
                    "messages",
                    "user_snapshot",
                    "peer_typing"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Ticket Detail",
        "tags": [
          "admin"
        ]
      },
      "patch": {
        "operationId": "patch_admin_support_ticket_patch_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminTicketPatchPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/SupportTicketOut"
                    }
                  },
                  "required": [
                    "ok",
                    "ticket"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Ticket Patch",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/support/tickets/{id}/messages": {
      "post": {
        "operationId": "post_admin_support_ticket_reply_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminTicketReplyPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "message": {
                      "$ref": "#/components/schemas/AdminSupportMessageOut"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/SupportTicketOut"
                    }
                  },
                  "required": [
                    "ok",
                    "ticket",
                    "message"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Ticket Reply",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/support/tickets/{id}/read": {
      "post": {
        "operationId": "post_admin_support_ticket_read_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Ticket Read",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/support/tickets/{id}/typing": {
      "post": {
        "operationId": "post_admin_support_ticket_typing_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportTypingIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Support Ticket Typing",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/sync": {
      "post": {
        "operationId": "post_admin_sync_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminSyncOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Sync",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/tariffs": {
      "get": {
        "operationId": "get_admin_tariffs_get_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminTariffsOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Tariffs Get",
        "tags": [
          "admin"
        ]
      },
      "put": {
        "operationId": "put_admin_tariffs_save_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TariffsSaveBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminTariffsOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Tariffs Save",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/themes": {
      "get": {
        "operationId": "get_admin_themes_get_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminThemesOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Themes Get",
        "tags": [
          "admin"
        ]
      },
      "put": {
        "operationId": "put_admin_themes_save_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThemesSaveBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminThemesOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Themes Save",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/translations": {
      "get": {
        "operationId": "get_admin_translations_get_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/AdminTranslationsOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Translations Get",
        "tags": [
          "admin"
        ]
      },
      "patch": {
        "operationId": "patch_admin_translations_patch_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminTranslationsPatchBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied": {
                      "type": "integer"
                    },
                    "file_written": {
                      "type": "boolean"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "reverted": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "applied",
                    "reverted",
                    "file_written"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Translations Patch",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users": {
      "get": {
        "operationId": "get_admin_users_list_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "page": {
                      "type": "integer"
                    },
                    "page_size": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "users": {
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/AdminUserWithAvatarOut"
                          },
                          {
                            "properties": {
                              "invited_users_count": {
                                "type": "integer"
                              },
                              "panel_status": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "panel_status_expired_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "payments_count": {
                                "type": "integer"
                              },
                              "payments_currency": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "payments_total_amount": {
                                "type": "number"
                              },
                              "premium_traffic": {
                                "additionalProperties": true,
                                "type": "object"
                              },
                              "subscription_expires_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "panel_status",
                              "subscription_expires_at",
                              "premium_traffic",
                              "payments_total_amount",
                              "payments_count",
                              "payments_currency",
                              "invited_users_count"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok",
                    "users",
                    "page",
                    "page_size",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin Users List",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}": {
      "delete": {
        "operationId": "delete_admin_user_delete_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Delete",
        "tags": [
          "admin"
        ]
      },
      "get": {
        "operationId": "get_admin_user_detail_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "active_subscription": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AdminSubscriptionOut"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "install_share_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_vpn_connected_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "log_count": {
                      "type": "integer"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "panel_squad_overrides": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AdminPanelSquadOverridesOut"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recent_payments": {
                      "items": {
                        "$ref": "#/components/schemas/PaymentOut"
                      },
                      "type": "array"
                    },
                    "referral": {
                      "additionalProperties": false,
                      "properties": {
                        "bot_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invitees_total": {
                          "type": "integer"
                        },
                        "inviter": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/AdminUserWithAvatarOut"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "webapp_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "bot_link",
                        "webapp_link",
                        "inviter",
                        "invitees_total"
                      ],
                      "type": "object"
                    },
                    "subscription_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "subscriptions": {
                      "items": {
                        "$ref": "#/components/schemas/AdminSubscriptionOut"
                      },
                      "type": "array"
                    },
                    "total_paid": {
                      "type": "number"
                    },
                    "trial": {
                      "$ref": "#/components/schemas/AdminUserTrialOut"
                    },
                    "user": {
                      "$ref": "#/components/schemas/AdminUserWithAvatarOut"
                    },
                    "vpn_connection_status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "user",
                    "active_subscription",
                    "subscriptions",
                    "trial",
                    "total_paid",
                    "recent_payments",
                    "log_count",
                    "subscription_url",
                    "install_share_url",
                    "last_vpn_connected_at",
                    "vpn_connection_status",
                    "panel_squad_overrides",
                    "referral"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Detail",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/avatar": {
      "get": {
        "operationId": "get_admin_user_avatar_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Avatar",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/ban": {
      "post": {
        "operationId": "post_admin_user_ban_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserBanBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "user": {
                      "$ref": "#/components/schemas/AdminUserOut"
                    }
                  },
                  "required": [
                    "ok",
                    "user"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Ban",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/extend": {
      "post": {
        "operationId": "post_admin_user_extend_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserExtendBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "$ref": "#/components/schemas/AdminSubscriptionOut"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Extend",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/hwid-device-limit": {
      "post": {
        "operationId": "post_admin_user_hwid_device_limit_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserHwidDeviceLimitBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "$ref": "#/components/schemas/AdminSubscriptionOut"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Hwid Device Limit",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/message": {
      "post": {
        "operationId": "post_admin_user_message_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserMessageBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Message",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/message/preview": {
      "post": {
        "operationId": "post_admin_user_message_preview_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserMessageBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Message Preview",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/premium-override": {
      "post": {
        "operationId": "post_admin_user_premium_override_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserPremiumOverrideBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "$ref": "#/components/schemas/AdminSubscriptionOut"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Premium Override",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/referrals": {
      "get": {
        "operationId": "get_admin_user_referrals_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "invitees": {
                      "items": {
                        "$ref": "#/components/schemas/AdminUserWithAvatarOut"
                      },
                      "type": "array"
                    },
                    "inviter": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AdminUserWithAvatarOut"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "page": {
                      "type": "integer"
                    },
                    "page_size": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "user": {
                      "$ref": "#/components/schemas/AdminUserWithAvatarOut"
                    }
                  },
                  "required": [
                    "ok",
                    "user",
                    "inviter",
                    "invitees",
                    "total",
                    "page",
                    "page_size"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Referrals",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/regular-traffic-override": {
      "post": {
        "operationId": "post_admin_user_regular_traffic_override_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserRegularTrafficOverrideBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "$ref": "#/components/schemas/AdminSubscriptionOut"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Regular Traffic Override",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/reset-trial": {
      "post": {
        "operationId": "post_admin_user_reset_trial_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Reset Trial",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/squad-overrides": {
      "patch": {
        "operationId": "patch_admin_user_squad_overrides_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserSquadOverridesPatchBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "panel_squad_overrides": {
                      "$ref": "#/components/schemas/AdminPanelSquadOverridesOut"
                    }
                  },
                  "required": [
                    "ok",
                    "panel_squad_overrides"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Squad Overrides",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/squad-overrides/refresh": {
      "post": {
        "operationId": "post_admin_user_squad_overrides_refresh_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "panel_squad_overrides": {
                      "$ref": "#/components/schemas/AdminPanelSquadOverridesOut"
                    }
                  },
                  "required": [
                    "ok",
                    "panel_squad_overrides"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Squad Overrides Refresh",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/subscription-reissue": {
      "post": {
        "operationId": "post_admin_user_subscription_reissue_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "email_sent": {
                      "type": "boolean"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "email_sent"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Subscription Reissue",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/tariff": {
      "post": {
        "operationId": "post_admin_user_tariff_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserTariffBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "$ref": "#/components/schemas/AdminSubscriptionOut"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Tariff",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/telegram-profile-link": {
      "post": {
        "operationId": "post_admin_user_telegram_profile_link_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "queued": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "queued"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Telegram Profile Link",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/traffic-grant": {
      "post": {
        "operationId": "post_admin_user_traffic_grant_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserTrafficGrantBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "grant": {
                      "additionalProperties": false,
                      "properties": {
                        "granted_bytes": {
                          "type": "integer"
                        },
                        "granted_gb": {
                          "type": "number"
                        },
                        "kind": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "granted_bytes",
                        "granted_gb"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AdminSubscriptionOut"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "grant"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Traffic Grant",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/admin/users/{user_id}/traffic-strategy": {
      "post": {
        "operationId": "post_admin_user_traffic_strategy_route",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserTrafficStrategyBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription": {
                      "$ref": "#/components/schemas/AdminSubscriptionOut"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "AdminSession": []
          },
          {
            "AdminBearer": []
          }
        ],
        "summary": "Admin User Traffic Strategy",
        "tags": [
          "admin"
        ]
      }
    },
    "/api/auth/email/magic": {
      "post": {
        "operationId": "post_email_auth_magic_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppEmailMagicAuthPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_merge": {
                      "additionalProperties": false,
                      "properties": {
                        "final_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "final_end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": "string"
                        },
                        "merged": {
                          "type": "boolean"
                        },
                        "primary_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_user_id": {
                          "type": "integer"
                        },
                        "removed_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "removed_user_id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "merged",
                        "language",
                        "primary_user_id",
                        "removed_user_id",
                        "primary_panel_user_uuid",
                        "removed_panel_user_uuid",
                        "final_end_date",
                        "final_end_date_text"
                      ],
                      "type": "object"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "token",
                    "csrf_token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Email Auth Magic",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/email/password": {
      "post": {
        "operationId": "post_email_password_auth_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppEmailPasswordPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_merge": {
                      "additionalProperties": false,
                      "properties": {
                        "final_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "final_end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": "string"
                        },
                        "merged": {
                          "type": "boolean"
                        },
                        "primary_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_user_id": {
                          "type": "integer"
                        },
                        "removed_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "removed_user_id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "merged",
                        "language",
                        "primary_user_id",
                        "removed_user_id",
                        "primary_panel_user_uuid",
                        "removed_panel_user_uuid",
                        "final_end_date",
                        "final_end_date_text"
                      ],
                      "type": "object"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "token",
                    "csrf_token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Email Password Auth",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/email/request": {
      "post": {
        "operationId": "post_email_auth_request_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppEmailRequestPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "email_code": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "retry_after": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Email Auth Request",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/email/verify": {
      "post": {
        "operationId": "post_email_auth_verify_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppEmailCodeAuthPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_merge": {
                      "additionalProperties": false,
                      "properties": {
                        "final_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "final_end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": "string"
                        },
                        "merged": {
                          "type": "boolean"
                        },
                        "primary_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_user_id": {
                          "type": "integer"
                        },
                        "removed_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "removed_user_id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "merged",
                        "language",
                        "primary_user_id",
                        "removed_user_id",
                        "primary_panel_user_uuid",
                        "removed_panel_user_uuid",
                        "final_end_date",
                        "final_end_date_text"
                      ],
                      "type": "object"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "token",
                    "csrf_token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Email Auth Verify",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/logout": {
      "post": {
        "operationId": "post_logout_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Logout",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/session": {
      "get": {
        "operationId": "get_session_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "authenticated": {
                      "type": "boolean"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "authenticated"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Session",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/telegram/nonce": {
      "post": {
        "operationId": "post_telegram_oauth_nonce_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "nonce": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "request_access": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "nonce",
                    "client_id",
                    "request_access"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Telegram Oauth Nonce",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/auth/token": {
      "post": {
        "operationId": "post_auth_token_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppTelegramAuthPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_merge": {
                      "additionalProperties": false,
                      "properties": {
                        "final_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "final_end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": "string"
                        },
                        "merged": {
                          "type": "boolean"
                        },
                        "primary_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_user_id": {
                          "type": "integer"
                        },
                        "removed_panel_user_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "removed_user_id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "merged",
                        "language",
                        "primary_user_id",
                        "removed_user_id",
                        "primary_panel_user_uuid",
                        "removed_panel_user_uuid",
                        "final_end_date",
                        "final_end_date_text"
                      ],
                      "type": "object"
                    },
                    "csrf_token": {
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "telegram_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "token",
                    "csrf_token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Auth Token",
        "tags": [
          "auth"
        ]
      }
    },
    "/api/bootstrap": {
      "get": {
        "operationId": "get_bootstrap_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/WebappBootstrapOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Bootstrap",
        "tags": [
          "bootstrap"
        ]
      }
    },
    "/api/devices": {
      "get": {
        "operationId": "get_devices_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "current_devices": {
                      "type": "integer"
                    },
                    "devices": {
                      "items": {
                        "$ref": "#/components/schemas/WebAppDeviceOut"
                      },
                      "type": "array"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "max_devices": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "max_devices_label": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription_active": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Devices",
        "tags": [
          "devices"
        ]
      }
    },
    "/api/devices/disconnect": {
      "post": {
        "operationId": "post_disconnect_device_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppDeviceDisconnectPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Disconnect Device",
        "tags": [
          "devices"
        ]
      }
    },
    "/api/devices/topup-options": {
      "get": {
        "operationId": "get_device_topup_options_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "current_limit": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "extra_hwid_devices": {
                      "type": "integer"
                    },
                    "extra_hwid_devices_valid_until": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "extra_hwid_devices_valid_until_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "plans": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "billing_model": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "device_count": {
                            "type": "integer"
                          },
                          "hwid_device_limit": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "hwid_device_packages": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "billing_model": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "device_count": {
                                  "type": "integer"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "months": {
                                  "type": "number"
                                },
                                "price": {
                                  "type": "number"
                                },
                                "sale_mode": {
                                  "type": "string"
                                },
                                "stars_price": {
                                  "type": "integer"
                                },
                                "subtitle": {
                                  "type": "string"
                                },
                                "tariff_key": {
                                  "type": "string"
                                },
                                "tariff_name": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "hwid_renewal": {
                            "additionalProperties": false,
                            "properties": {
                              "active_until": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "active_until_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": "boolean"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "device_count": {
                                "type": "integer"
                              },
                              "price": {
                                "type": "number"
                              },
                              "pricing_period_months": {
                                "type": "integer"
                              },
                              "stars_price": {
                                "type": "integer"
                              },
                              "valid_from": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_from_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_until": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_until_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "id": {
                            "type": "string"
                          },
                          "is_default_tariff": {
                            "type": "boolean"
                          },
                          "monthly_gb": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "months": {
                            "type": "number"
                          },
                          "price": {
                            "type": "number"
                          },
                          "proration_ratio": {
                            "type": "number"
                          },
                          "sale_mode": {
                            "type": "string"
                          },
                          "squad_uuids": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "stars_price": {
                            "type": "integer"
                          },
                          "subtitle": {
                            "type": "string"
                          },
                          "tariff_key": {
                            "type": "string"
                          },
                          "tariff_name": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "traffic_gb": {
                            "type": "number"
                          },
                          "valid_from": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_from_text": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_until": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_until_text": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "premium_baseline_bytes": {
                      "type": "integer"
                    },
                    "premium_bonus_bytes": {
                      "type": "integer"
                    },
                    "premium_is_limited": {
                      "type": "boolean"
                    },
                    "premium_limit_bytes": {
                      "type": "integer"
                    },
                    "premium_node_labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "premium_squad_labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "premium_title": {
                      "type": "string"
                    },
                    "premium_topup_balance_bytes": {
                      "type": "integer"
                    },
                    "premium_topup_used_bytes": {
                      "type": "integer"
                    },
                    "premium_traffic_percent": {
                      "type": "integer"
                    },
                    "premium_unlimited_override": {
                      "type": "boolean"
                    },
                    "premium_used_bytes": {
                      "type": "integer"
                    },
                    "renewal_available": {
                      "type": "boolean"
                    },
                    "renewal_recommended_count": {
                      "type": "integer"
                    },
                    "tariff_key": {
                      "type": "string"
                    },
                    "tariff_name": {
                      "type": "string"
                    },
                    "topup_kind": {
                      "type": "string"
                    },
                    "traffic_percent": {
                      "type": "integer"
                    },
                    "warning_levels": {
                      "items": {
                        "type": "number"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Device Topup Options",
        "tags": [
          "devices"
        ]
      }
    },
    "/api/i18n": {
      "get": {
        "operationId": "get_i18n_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/WebappI18nOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "I18N",
        "tags": [
          "i18n"
        ]
      }
    },
    "/api/me": {
      "get": {
        "operationId": "get_me_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "payment_methods": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "currency": {
                            "type": "string"
                          },
                          "icon": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "min_amount": {
                            "type": "number"
                          },
                          "minimum_amount": {
                            "type": "number"
                          },
                          "minimum_amount_text": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "plans": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "billing_model": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "device_count": {
                            "type": "integer"
                          },
                          "hwid_device_limit": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "hwid_device_packages": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "billing_model": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "device_count": {
                                  "type": "integer"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "months": {
                                  "type": "number"
                                },
                                "price": {
                                  "type": "number"
                                },
                                "sale_mode": {
                                  "type": "string"
                                },
                                "stars_price": {
                                  "type": "integer"
                                },
                                "subtitle": {
                                  "type": "string"
                                },
                                "tariff_key": {
                                  "type": "string"
                                },
                                "tariff_name": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "hwid_renewal": {
                            "additionalProperties": false,
                            "properties": {
                              "active_until": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "active_until_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": "boolean"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "device_count": {
                                "type": "integer"
                              },
                              "price": {
                                "type": "number"
                              },
                              "pricing_period_months": {
                                "type": "integer"
                              },
                              "stars_price": {
                                "type": "integer"
                              },
                              "valid_from": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_from_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_until": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_until_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "id": {
                            "type": "string"
                          },
                          "is_default_tariff": {
                            "type": "boolean"
                          },
                          "monthly_gb": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "months": {
                            "type": "number"
                          },
                          "price": {
                            "type": "number"
                          },
                          "proration_ratio": {
                            "type": "number"
                          },
                          "sale_mode": {
                            "type": "string"
                          },
                          "squad_uuids": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "stars_price": {
                            "type": "integer"
                          },
                          "subtitle": {
                            "type": "string"
                          },
                          "tariff_key": {
                            "type": "string"
                          },
                          "tariff_name": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "traffic_gb": {
                            "type": "number"
                          },
                          "valid_from": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_from_text": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_until": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_until_text": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "referral": {
                      "additionalProperties": false,
                      "properties": {
                        "bonus_details": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "details": {
                                "items": {
                                  "additionalProperties": true,
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "friend_days": {
                                "type": "integer"
                              },
                              "friend_max_days": {
                                "type": "integer"
                              },
                              "friend_min_days": {
                                "type": "integer"
                              },
                              "id": {
                                "type": "string"
                              },
                              "inviter_days": {
                                "type": "integer"
                              },
                              "inviter_max_days": {
                                "type": "integer"
                              },
                              "inviter_min_days": {
                                "type": "integer"
                              },
                              "months": {
                                "type": "integer"
                              },
                              "tariff_key": {
                                "type": "string"
                              },
                              "tariff_name": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "bot_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invited_count": {
                          "type": "integer"
                        },
                        "one_bonus_per_referee": {
                          "type": "boolean"
                        },
                        "purchased_count": {
                          "type": "integer"
                        },
                        "webapp_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "welcome_bonus_block_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "welcome_bonus_days": {
                          "type": "integer"
                        },
                        "welcome_bonus_requires_telegram": {
                          "type": "boolean"
                        },
                        "welcome_bonus_without_telegram_enabled": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "settings": {
                      "additionalProperties": false,
                      "properties": {
                        "email_auth_enabled": {
                          "type": "boolean"
                        },
                        "my_devices_enabled": {
                          "type": "boolean"
                        },
                        "server_status_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "subscription_guides_enabled": {
                          "type": "boolean"
                        },
                        "subscription_purchase_description": {
                          "type": "string"
                        },
                        "subscription_reissue_enabled": {
                          "type": "boolean"
                        },
                        "support_ticket_max_body_length": {
                          "type": "integer"
                        },
                        "support_ticket_max_subject_length": {
                          "type": "integer"
                        },
                        "support_tickets_enabled": {
                          "type": "boolean"
                        },
                        "support_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "traffic_mode": {
                          "type": "boolean"
                        },
                        "trial_available": {
                          "type": "boolean"
                        },
                        "trial_block_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trial_duration_days": {
                          "type": "integer"
                        },
                        "trial_enabled": {
                          "type": "boolean"
                        },
                        "trial_requires_telegram": {
                          "type": "boolean"
                        },
                        "trial_traffic_limit_gb": {
                          "type": "number"
                        },
                        "trial_traffic_strategy": {
                          "type": "string"
                        },
                        "trial_without_telegram_enabled": {
                          "type": "boolean"
                        },
                        "user_hwid_device_limit": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "subscription": {
                      "additionalProperties": false,
                      "properties": {
                        "active": {
                          "type": "boolean"
                        },
                        "auto_renew_available": {
                          "type": "boolean"
                        },
                        "auto_renew_can_enable": {
                          "type": "boolean"
                        },
                        "auto_renew_enabled": {
                          "type": "boolean"
                        },
                        "auto_renew_provider_label": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "base_hwid_device_limit": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "billing_model": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "can_topup_devices": {
                          "type": "boolean"
                        },
                        "can_topup_premium_traffic": {
                          "type": "boolean"
                        },
                        "can_topup_regular_traffic": {
                          "type": "boolean"
                        },
                        "can_topup_traffic": {
                          "type": "boolean"
                        },
                        "config_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "connect_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "days_left": {
                          "type": "integer"
                        },
                        "device_topup_renewal_available": {
                          "type": "boolean"
                        },
                        "end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "end_date_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "extra_hwid_devices": {
                          "type": "integer"
                        },
                        "extra_hwid_devices_next_valid_from": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "extra_hwid_devices_valid_until": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "extra_hwid_devices_valid_until_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "install_share_token": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "install_share_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "is_throttled": {
                          "type": "boolean"
                        },
                        "max_devices": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "panel_short_uuid": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "period_start_at": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "premium_baseline_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "premium_bonus_bytes": {
                          "type": "integer"
                        },
                        "premium_is_limited": {
                          "type": "boolean"
                        },
                        "premium_limit": {
                          "type": "string"
                        },
                        "premium_limit_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "premium_next_reset_at": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "premium_next_reset_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "premium_node_labels": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "premium_squad_labels": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "premium_title": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "premium_topup_always_available": {
                          "type": "boolean"
                        },
                        "premium_topup_balance_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "premium_topup_used_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "premium_unlimited_override": {
                          "type": "boolean"
                        },
                        "premium_used": {
                          "type": "string"
                        },
                        "premium_used_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "provider": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "regular_bonus_bytes": {
                          "type": "integer"
                        },
                        "regular_unlimited_override": {
                          "type": "boolean"
                        },
                        "remaining_text": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "tariff_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tariff_key": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tariff_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tier_baseline_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "topup_always_available": {
                          "type": "boolean"
                        },
                        "topup_balance_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "traffic_limit": {
                          "type": "string"
                        },
                        "traffic_limit_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "traffic_limit_strategy": {
                          "type": "string"
                        },
                        "traffic_next_reset_at": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "traffic_next_reset_text": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "traffic_used": {
                          "type": "string"
                        },
                        "traffic_used_bytes": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "support_unread_count": {
                      "type": "integer"
                    },
                    "themes_catalog": {
                      "additionalProperties": true,
                      "properties": {
                        "default_theme": {
                          "type": "string"
                        },
                        "themes": {
                          "items": {
                            "additionalProperties": true,
                            "properties": {
                              "default": {
                                "type": "boolean"
                              },
                              "enabled": {
                                "type": "boolean"
                              },
                              "key": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    "user": {
                      "additionalProperties": false,
                      "properties": {
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "email_verified": {
                          "type": "boolean"
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "integer"
                        },
                        "is_admin": {
                          "type": "boolean"
                        },
                        "language_code": {
                          "type": "string"
                        },
                        "password_auth_enabled": {
                          "type": "boolean"
                        },
                        "telegram_id": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "telegram_linked": {
                          "type": "boolean"
                        },
                        "telegram_notifications_enabled": {
                          "type": "boolean"
                        },
                        "telegram_notifications_need_prompt": {
                          "type": "boolean"
                        },
                        "telegram_notifications_start_link": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "telegram_notifications_status": {
                          "type": "string"
                        },
                        "telegram_photo_url": {
                          "type": "string"
                        },
                        "username": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "user",
                    "subscription",
                    "referral",
                    "plans",
                    "payment_methods",
                    "themes_catalog",
                    "support_unread_count",
                    "settings"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Me",
        "tags": [
          "me"
        ]
      }
    },
    "/api/payments": {
      "post": {
        "operationId": "post_create_payment_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppPaymentCreatePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmation_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "payment": {
                      "additionalProperties": true,
                      "description": "Provider-specific payment payload returned by the selected integration.",
                      "type": "object"
                    },
                    "payment_id": {
                      "type": "integer"
                    },
                    "payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Create Payment",
        "tags": [
          "payments"
        ]
      }
    },
    "/api/payments/{payment_id}": {
      "get": {
        "operationId": "get_payment_status_route",
        "parameters": [
          {
            "in": "path",
            "name": "payment_id",
            "required": true,
            "schema": {
              "pattern": "[^{}/]+",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmation_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "payment": {
                      "additionalProperties": true,
                      "description": "Provider-specific payment payload returned by the selected integration.",
                      "type": "object"
                    },
                    "payment_id": {
                      "type": "integer"
                    },
                    "payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Payment Status",
        "tags": [
          "payments"
        ]
      }
    },
    "/api/plans/viewed": {
      "post": {
        "operationId": "post_plans_viewed_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppPlansViewedPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Plans Viewed",
        "tags": [
          "plans"
        ]
      }
    },
    "/api/promo/apply": {
      "post": {
        "operationId": "post_apply_promo_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppPromoApplyPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applies_to": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "effect_summary": {
                      "type": "string"
                    },
                    "end_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "end_date_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "min_subscription_months": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "min_traffic_gb": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "requires_checkout": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Apply Promo",
        "tags": [
          "promo"
        ]
      }
    },
    "/api/promo/status": {
      "post": {
        "operationId": "post_promo_status_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppPromoApplyPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applies_to": {
                      "type": "string"
                    },
                    "bonus_days": {
                      "type": "integer"
                    },
                    "code": {
                      "type": "string"
                    },
                    "effect_summary": {
                      "type": "string"
                    },
                    "end_date_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "min_subscription_months": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "min_traffic_gb": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "status",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Promo Status",
        "tags": [
          "promo"
        ]
      }
    },
    "/api/referral/welcome-bonus/claim": {
      "post": {
        "operationId": "post_referral_welcome_bonus_claim_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "claimed": {
                      "type": "boolean"
                    },
                    "end_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "end_date_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "claimed",
                    "end_date",
                    "end_date_text"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Referral Welcome Bonus Claim",
        "tags": [
          "referral"
        ]
      }
    },
    "/api/subscription-guides": {
      "get": {
        "operationId": "get_subscription_guides_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/SubscriptionGuidesOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Subscription Guides",
        "tags": [
          "subscription-guides"
        ]
      }
    },
    "/api/subscription-guides/public/{share_token}": {
      "get": {
        "operationId": "get_public_subscription_guides_route",
        "parameters": [
          {
            "in": "path",
            "name": "share_token",
            "required": true,
            "schema": {
              "pattern": "[a-f0-9]{32}",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "$ref": "#/components/schemas/PublicSubscriptionGuidesOut"
                    }
                  ]
                }
              }
            },
            "description": "JSON response"
          }
        },
        "summary": "Public Subscription Guides",
        "tags": [
          "subscription-guides"
        ]
      }
    },
    "/api/subscription/auto-renew": {
      "post": {
        "operationId": "post_subscription_auto_renew_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppAutoRenewPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "auto_renew_enabled": {
                      "type": "boolean"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "provider_label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "auto_renew_enabled",
                    "provider",
                    "provider_label"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Subscription Auto Renew",
        "tags": [
          "subscription"
        ]
      }
    },
    "/api/subscription/quote-promo": {
      "post": {
        "operationId": "post_quote_promo_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppPromoQuotePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applies_to": {
                      "type": "string"
                    },
                    "base_amount": {
                      "type": "number"
                    },
                    "base_stars": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "discount_percent": {
                      "type": "number"
                    },
                    "effect_summary": {
                      "type": "string"
                    },
                    "effective_amount": {
                      "type": "number"
                    },
                    "effective_stars": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "min_subscription_months": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "min_traffic_gb": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "payable": {
                      "type": "boolean"
                    },
                    "promo_code_id": {
                      "type": "integer"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason_key": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "valid"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Quote Promo",
        "tags": [
          "subscription"
        ]
      }
    },
    "/api/subscription/reissue": {
      "post": {
        "operationId": "post_subscription_reissue_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppSubscriptionReissuePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "email_sent": {
                      "type": "boolean"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "email_sent"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Subscription Reissue",
        "tags": [
          "subscription"
        ]
      }
    },
    "/api/support/tickets": {
      "get": {
        "operationId": "get_support_tickets_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "counts": {
                      "$ref": "#/components/schemas/SupportCountsOut"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "tickets": {
                      "items": {
                        "$ref": "#/components/schemas/SupportTicketOut"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok",
                    "tickets",
                    "counts"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Tickets",
        "tags": [
          "support"
        ]
      },
      "post": {
        "operationId": "post_support_create_ticket_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTicketPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/SupportTicketOut"
                    }
                  },
                  "required": [
                    "ok",
                    "ticket"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Create Ticket",
        "tags": [
          "support"
        ]
      }
    },
    "/api/support/tickets/{id}": {
      "get": {
        "operationId": "get_support_ticket_detail_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "messages": {
                      "items": {
                        "$ref": "#/components/schemas/SupportMessageOut"
                      },
                      "type": "array"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "peer_typing": {
                      "type": "boolean"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/SupportTicketOut"
                    }
                  },
                  "required": [
                    "ok",
                    "ticket",
                    "messages",
                    "peer_typing"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Ticket Detail",
        "tags": [
          "support"
        ]
      }
    },
    "/api/support/tickets/{id}/messages": {
      "post": {
        "operationId": "post_support_ticket_reply_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketReplyPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "message": {
                      "$ref": "#/components/schemas/SupportMessageOut"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "ticket": {
                      "$ref": "#/components/schemas/SupportTicketOut"
                    }
                  },
                  "required": [
                    "ok",
                    "ticket",
                    "message"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Ticket Reply",
        "tags": [
          "support"
        ]
      }
    },
    "/api/support/tickets/{id}/read": {
      "post": {
        "operationId": "post_support_ticket_read_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Ticket Read",
        "tags": [
          "support"
        ]
      }
    },
    "/api/support/tickets/{id}/typing": {
      "post": {
        "operationId": "post_support_ticket_typing_route",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportTypingIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Ticket Typing",
        "tags": [
          "support"
        ]
      }
    },
    "/api/support/unread": {
      "get": {
        "operationId": "get_support_unread_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "unread": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ok",
                    "unread"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Support Unread",
        "tags": [
          "support"
        ]
      }
    },
    "/api/tariffs/change": {
      "post": {
        "operationId": "post_tariff_change_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppTariffChangePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "subscription_id": {
                      "type": "integer"
                    },
                    "tariff_key": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "subscription_id",
                    "tariff_key"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Tariff Change",
        "tags": [
          "tariffs"
        ]
      }
    },
    "/api/tariffs/change-options": {
      "get": {
        "operationId": "get_tariff_change_options_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "current": {
                      "additionalProperties": false,
                      "properties": {
                        "billing_model": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "tariff_key": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "tariff_key",
                        "title",
                        "description",
                        "billing_model"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "targets": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "actions": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "converted_gb": {
                                  "type": "number"
                                },
                                "converted_hwid_days": {
                                  "type": "integer"
                                },
                                "converted_hwid_gb": {
                                  "type": "number"
                                },
                                "converted_hwid_value_rub": {
                                  "type": "number"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "days_after": {
                                  "type": "integer"
                                },
                                "kind": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string"
                                },
                                "months": {
                                  "type": "integer"
                                },
                                "price": {
                                  "type": "number"
                                },
                                "remaining_days": {
                                  "type": "integer"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "traffic_gb": {
                                  "type": "number"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "billing_model": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "monthly_gb": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "options": {
                            "additionalProperties": true,
                            "description": "Raw switch calculation details from the subscription service.",
                            "type": "object"
                          },
                          "tariff_key": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "tariff_key",
                          "title",
                          "description",
                          "billing_model",
                          "actions"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok",
                    "current",
                    "targets"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Tariff Change Options",
        "tags": [
          "tariffs"
        ]
      }
    },
    "/api/tariffs/change-payment": {
      "post": {
        "operationId": "post_tariff_change_payment_route",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebAppPaymentCreatePayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmation_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "payment": {
                      "additionalProperties": true,
                      "description": "Provider-specific payment payload returned by the selected integration.",
                      "type": "object"
                    },
                    "payment_id": {
                      "type": "integer"
                    },
                    "payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Tariff Change Payment",
        "tags": [
          "tariffs"
        ]
      }
    },
    "/api/tariffs/topup-options": {
      "get": {
        "operationId": "get_tariff_topup_options_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "current_limit": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "extra_hwid_devices": {
                      "type": "integer"
                    },
                    "extra_hwid_devices_valid_until": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "extra_hwid_devices_valid_until_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "plans": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "billing_model": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "device_count": {
                            "type": "integer"
                          },
                          "hwid_device_limit": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "hwid_device_packages": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "billing_model": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "device_count": {
                                  "type": "integer"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "months": {
                                  "type": "number"
                                },
                                "price": {
                                  "type": "number"
                                },
                                "sale_mode": {
                                  "type": "string"
                                },
                                "stars_price": {
                                  "type": "integer"
                                },
                                "subtitle": {
                                  "type": "string"
                                },
                                "tariff_key": {
                                  "type": "string"
                                },
                                "tariff_name": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "hwid_renewal": {
                            "additionalProperties": false,
                            "properties": {
                              "active_until": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "active_until_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": "boolean"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "device_count": {
                                "type": "integer"
                              },
                              "price": {
                                "type": "number"
                              },
                              "pricing_period_months": {
                                "type": "integer"
                              },
                              "stars_price": {
                                "type": "integer"
                              },
                              "valid_from": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_from_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_until": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "valid_until_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "id": {
                            "type": "string"
                          },
                          "is_default_tariff": {
                            "type": "boolean"
                          },
                          "monthly_gb": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "months": {
                            "type": "number"
                          },
                          "price": {
                            "type": "number"
                          },
                          "proration_ratio": {
                            "type": "number"
                          },
                          "sale_mode": {
                            "type": "string"
                          },
                          "squad_uuids": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "stars_price": {
                            "type": "integer"
                          },
                          "subtitle": {
                            "type": "string"
                          },
                          "tariff_key": {
                            "type": "string"
                          },
                          "tariff_name": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "traffic_gb": {
                            "type": "number"
                          },
                          "valid_from": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_from_text": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_until": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "valid_until_text": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "premium_baseline_bytes": {
                      "type": "integer"
                    },
                    "premium_bonus_bytes": {
                      "type": "integer"
                    },
                    "premium_is_limited": {
                      "type": "boolean"
                    },
                    "premium_limit_bytes": {
                      "type": "integer"
                    },
                    "premium_node_labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "premium_squad_labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "premium_title": {
                      "type": "string"
                    },
                    "premium_topup_balance_bytes": {
                      "type": "integer"
                    },
                    "premium_topup_used_bytes": {
                      "type": "integer"
                    },
                    "premium_traffic_percent": {
                      "type": "integer"
                    },
                    "premium_unlimited_override": {
                      "type": "boolean"
                    },
                    "premium_used_bytes": {
                      "type": "integer"
                    },
                    "renewal_available": {
                      "type": "boolean"
                    },
                    "renewal_recommended_count": {
                      "type": "integer"
                    },
                    "tariff_key": {
                      "type": "string"
                    },
                    "tariff_name": {
                      "type": "string"
                    },
                    "topup_kind": {
                      "type": "string"
                    },
                    "traffic_percent": {
                      "type": "integer"
                    },
                    "warning_levels": {
                      "items": {
                        "type": "number"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Tariff Topup Options",
        "tags": [
          "tariffs"
        ]
      }
    },
    "/api/trial/activate": {
      "post": {
        "operationId": "post_activate_trial_route",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "activated": {
                      "type": "boolean"
                    },
                    "config_link": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connect_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "days": {
                      "type": "integer"
                    },
                    "end_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "end_date_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "traffic_gb": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "activated",
                    "days",
                    "end_date",
                    "end_date_text",
                    "traffic_gb",
                    "config_link",
                    "connect_url"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "JSON response"
          }
        },
        "security": [
          {
            "UserSession": []
          },
          {
            "UserBearer": []
          }
        ],
        "summary": "Activate Trial",
        "tags": [
          "trial"
        ]
      }
    }
  },
  "x-generated-from": {
    "plugins": "core+builtin only",
    "router": "bot.app.web.webapp.routes.setup_subscription_webapp_routes"
  }
}
