{
  "openapi": "3.1.0",
  "info": {
    "title": "Geksy Cloud API",
    "version": "2.0.0.dev0",
    "description": "Geksy cloud API: workspaces, browser profiles, proxies, billing. Errors: `{\"error\": {code, params, message, details, action, doc_url}}`; `action` says what to do next, the full catalog is `GET /v1/errors`. Per operation: `x-auth` (public — no authentication; user_session — user access token only (Bearer JWT from /v1/auth/login); API keys are rejected; member — user access token or workspace API key (Bearer ak_…) with the listed permissions; device — Geksy desktop app only (request signed with the device key); staff — staff only), `x-required-permissions`, `x-idempotent`, `x-error-codes`. Rate limits: `RateLimit`/`RateLimit-Policy`, `Retry-After` on 429."
  },
  "paths": {
    "/v1/meta": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Meta",
        "operationId": "meta",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetaOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/auth/register": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Register",
        "operationId": "register",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommonRegisterIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenPair"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "email_taken",
          "invite_required",
          "registration_closed",
          "terms_not_accepted",
          "validation_error"
        ]
      }
    },
    "/v1/auth/verify-email": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Verify Email",
        "operationId": "verifyEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "email_taken",
          "link_invalid",
          "validation_error"
        ]
      }
    },
    "/v1/auth/login": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Login",
        "operationId": "login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginIn"
              },
              "example": {
                "email": "me@example.com",
                "password": "********",
                "device": {
                  "name": "my-script",
                  "kind": "api",
                  "install_id": "my-script-1"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TokenPair"
                    },
                    {
                      "$ref": "#/components/schemas/LoginChallenge"
                    }
                  ],
                  "title": "Response Login V1 Auth Login Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "account_unavailable",
          "invalid_credentials",
          "validation_error"
        ]
      }
    },
    "/v1/auth/login/challenge": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Login Challenge",
        "operationId": "loginChallenge",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChallengeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TokenPair"
                    },
                    {
                      "$ref": "#/components/schemas/LoginChallenge"
                    }
                  ],
                  "title": "Response Login Challenge V1 Auth Login Challenge Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "account_unavailable",
          "bad_request",
          "challenge_invalid",
          "code_invalid",
          "validation_error"
        ]
      }
    },
    "/v1/auth/password/forgot": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Forgot Password",
        "operationId": "forgotPassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/auth/password/reset": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Reset Password",
        "operationId": "resetPassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "link_invalid",
          "validation_error"
        ]
      }
    },
    "/v1/auth/refresh": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Refresh",
        "operationId": "refresh",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenPair"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "account_unavailable",
          "device_key_mismatch",
          "device_revoked",
          "session_expired",
          "unauthorized",
          "validation_error"
        ]
      }
    },
    "/v1/auth/logout": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Logout",
        "operationId": "logout",
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "Me",
        "operationId": "me",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "me"
        ],
        "summary": "Delete Me",
        "operationId": "deleteMe",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteMeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "owned_workspaces_have_members",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "me"
        ],
        "summary": "Patch Me",
        "operationId": "patchMe",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MePatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/email/resend-verification": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Resend Verification",
        "operationId": "resendVerification",
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/email/change": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Change Email",
        "operationId": "changeEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailChangeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "email_taken",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/password": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Change Password",
        "operationId": "changePassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordChangeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "password_not_set",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/password/set": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Set Password",
        "description": "First password of an account created with Google (it has no password of its own, `has_password: false`) — no old password. Confirm with `code` (2FA) if 2FA is on; otherwise a sign-in on this device within the last 15 minutes is required (`reauth_required`).",
        "operationId": "setPassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordSetIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "password_already_set",
          "reauth_required",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/mfa/setup": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Mfa Setup",
        "operationId": "mfaSetup",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaSetupOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "mfa_already_enabled",
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/mfa/enable": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Mfa Enable",
        "operationId": "mfaEnable",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodesOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "code_invalid",
          "mfa_already_enabled",
          "mfa_setup_required",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/mfa/recovery-codes": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Mfa Recovery Codes",
        "operationId": "mfaRecoveryCodes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodesOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "mfa_not_enabled",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/mfa/disable": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Mfa Disable",
        "operationId": "mfaDisable",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaDisableIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "mfa_not_enabled",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/devices": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "Devices",
        "operationId": "devices",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DeviceOut"
                  },
                  "type": "array",
                  "title": "Response Devices V1 Me Devices Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/devices/{device_id}": {
      "delete": {
        "tags": [
          "me"
        ],
        "summary": "Revoke",
        "operationId": "meRevoke",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/workspaces": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "My Workspaces",
        "operationId": "myWorkspaces",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MembershipOut"
                  },
                  "type": "array",
                  "title": "Response My Workspaces V1 Me Workspaces Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/export": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "Export Account",
        "description": "All personal data of the account as one JSON: profile, devices, memberships, API keys (without secrets), your own actions from audit logs, profile transfers. Workspace data (profiles, proxies) has its own export.",
        "operationId": "exportAccount",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/permissions": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "Permission Catalog",
        "operationId": "permissionCatalog",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PermissionInfo"
                  },
                  "type": "array",
                  "title": "Response Permission Catalog V1 Permissions Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/workspaces": {
      "post": {
        "tags": [
          "workspaces"
        ],
        "summary": "Create Workspace",
        "operationId": "createWorkspace",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "Get Workspace",
        "operationId": "getWorkspace",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "workspaces"
        ],
        "summary": "Patch Workspace",
        "operationId": "patchWorkspace",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspacePatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "mfa_needed_first",
          "plan_feature_unavailable",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "workspaces"
        ],
        "summary": "Delete Workspace",
        "description": "Delete immediately — only from the owner's user session. With an API key, use the undo period: `POST …/deletion`.",
        "operationId": "deleteWorkspace",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "api_key_not_allowed",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/transfer-ownership": {
      "post": {
        "tags": [
          "workspaces"
        ],
        "summary": "Transfer Ownership",
        "operationId": "transferOwnership",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferOwnershipIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "already_owner",
          "api_key_not_allowed",
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/usage": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "Usage",
        "description": "Plan limits and usage; with billing.manage also money, Geksy proxies with an \"enough for N days\" forecast, and the spending of the API key making the request.",
        "operationId": "usage",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/members": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "List Members",
        "operationId": "listMembers",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemberOut"
                  },
                  "title": "Response List Members V1 Workspaces  Ws Id  Members Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/members/{user_id}": {
      "patch": {
        "tags": [
          "workspaces"
        ],
        "summary": "Patch Member",
        "operationId": "patchMember",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "workspaces"
        ],
        "summary": "Remove Member",
        "operationId": "removeMember",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "owner_cannot_leave",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/roles": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "List Roles",
        "operationId": "listRoles",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RoleOut"
                  },
                  "title": "Response List Roles V1 Workspaces  Ws Id  Roles Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "workspaces"
        ],
        "summary": "Create Role",
        "operationId": "createRole",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/role-presets": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "Role Presets",
        "description": "Role presets (for example, \"AI agent\"). A role created from a preset is an ordinary role; its permissions can be changed.",
        "operationId": "rolePresets",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RolePresetOut"
                  },
                  "type": "array",
                  "title": "Response Role Presets V1 Role Presets Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/workspaces/{ws_id}/roles/presets/{preset}": {
      "post": {
        "tags": [
          "workspaces"
        ],
        "summary": "Create Role From Preset",
        "description": "Create a role from a preset: the name is in the user's language, the preset permissions are limited to yours (the owner gets all of them).",
        "operationId": "createRoleFromPreset",
        "parameters": [
          {
            "name": "preset",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Preset"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/roles/{role_id}": {
      "patch": {
        "tags": [
          "workspaces"
        ],
        "summary": "Patch Role",
        "operationId": "patchRole",
        "parameters": [
          {
            "name": "role_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Role Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RolePatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "system_role_immutable",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "workspaces"
        ],
        "summary": "Delete Role",
        "operationId": "deleteRole",
        "parameters": [
          {
            "name": "role_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Role Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "role_in_use",
          "subscription_inactive",
          "system_role_immutable",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/export": {
      "get": {
        "tags": [
          "workspaces"
        ],
        "summary": "Export workspace data as JSON",
        "description": "Workspace data as one JSON: profiles (settings and fingerprint without secrets), proxies (without passwords), folders, tags, profile fields, templates, extensions, members (name and role), API keys (without secrets). Browser data of each profile is a separate archive, `GET …/profiles/{id}/export` (links in `profile_archives`). Requires workspace.settings.",
        "operationId": "exportWorkspace",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/deletion": {
      "post": {
        "tags": [
          "workspaces"
        ],
        "summary": "Schedule workspace deletion (with an undo period)",
        "description": "Delete the workspace after `deletion_grace_days` (14 days by default); until then it can be cancelled with `DELETE …/deletion`. Works with the owner's API key too. Repeating the call does not move the date.",
        "operationId": "scheduleDeletion",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "workspaces"
        ],
        "summary": "Cancel scheduled workspace deletion",
        "operationId": "cancelDeletion",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/invites": {
      "get": {
        "tags": [
          "invites"
        ],
        "summary": "List Invites",
        "operationId": "listInvites",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InviteOut"
                  },
                  "title": "Response List Invites V1 Workspaces  Ws Id  Invites Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.invite"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "invites"
        ],
        "summary": "Create Invite",
        "operationId": "createInvite",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.invite"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/invites/{invite_id}": {
      "delete": {
        "tags": [
          "invites"
        ],
        "summary": "Revoke Invite",
        "operationId": "revokeInvite",
        "parameters": [
          {
            "name": "invite_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Invite Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.invite"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/invites/{token}": {
      "get": {
        "tags": [
          "invites"
        ],
        "summary": "Preview Invite",
        "operationId": "previewInvite",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitePreview"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/invites/{token}/accept": {
      "post": {
        "tags": [
          "invites"
        ],
        "summary": "Accept Invite",
        "operationId": "acceptInvite",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/api-keys": {
      "get": {
        "tags": [
          "api-keys"
        ],
        "summary": "List Keys",
        "description": "Your keys; `?all=true` — keys of all members (requires member.manage). With an API key — the key itself and its child keys.",
        "operationId": "listKeys",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "All"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyOut"
                  },
                  "title": "Response List Keys V1 Workspaces  Ws Id  Api Keys Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "api.use",
          "member.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "api-keys"
        ],
        "summary": "Create Key",
        "description": "New key. With an API key that has keys.manage, a child key is created: its permissions are a subset of the parent's (all of them by default), its expiry and spending limits are no wider than the parent's; revoking the parent revokes the child.",
        "operationId": "createKey",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyIn"
              },
              "example": {
                "name": "ci-bot",
                "scopes": [
                  "api.use",
                  "profile.create",
                  "profile.edit"
                ],
                "expires_in_days": 90
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "api.use",
          "keys.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "plan_limit_reached",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/api-keys/{key_id}": {
      "patch": {
        "tags": [
          "api-keys"
        ],
        "summary": "Patch Key",
        "description": "Key name, permissions and spending limits. Permissions stay within those of the key owner and of the person making the change. With a key: the key itself and its children can only be narrowed, a permission restriction cannot be removed; limits can be changed only for children and no wider than your own.",
        "operationId": "patchKey",
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Key Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "member_too_high",
          "permissions_too_high",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "api-keys"
        ],
        "summary": "Delete Key",
        "description": "Revoke a key; its child keys are revoked with it.",
        "operationId": "deleteKey",
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Key Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/api-keys/{key_id}/rotate": {
      "post": {
        "tags": [
          "api-keys"
        ],
        "summary": "Rotate Key",
        "description": "Rotate a key without downtime: the new secret works now, the old one keeps working for `overlap_minutes`.",
        "operationId": "rotateKey",
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Key Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyRotateIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/api-keys/self": {
      "get": {
        "tags": [
          "api-keys"
        ],
        "summary": "Key Self",
        "description": "What this key is: workspace, effective permissions, expiry (including parents), plan, rate, spending and limits. For a program that has nothing but the key (for example, an AI agent).",
        "operationId": "keySelf",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeySelfOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/api-keys/self/rotate": {
      "post": {
        "tags": [
          "api-keys"
        ],
        "summary": "Rotate Self",
        "description": "Rotate the key used for the request: the new secret is in the response, the old one keeps working for `overlap_minutes`.",
        "operationId": "rotateSelf",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyRotateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/audit": {
      "get": {
        "tags": [
          "audit"
        ],
        "summary": "List Audit",
        "operationId": "listAudit",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Actor Id"
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Action"
            }
          },
          {
            "name": "target_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Target Id"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Until"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_AuditOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "audit.view"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "cursor_invalid",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "List Profiles",
        "description": "Profiles of the workspace with filters, sorting and cursor pagination (the main screen of the app). The response is gzip-compressed for clients that accept it.",
        "operationId": "listProfiles",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "folder_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Folder Id"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag"
            }
          },
          {
            "name": "proxy_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Proxy Id"
            }
          },
          {
            "name": "pinned",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Pinned"
            }
          },
          {
            "name": "busy",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Busy"
            }
          },
          {
            "name": "trash",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Trash"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 72,
              "pattern": "^-?(number|name|updated_at|created_at|last_launch_at|notes|field:.{1,64})$",
              "description": "number (default), name, updated_at, created_at, last_launch_at, notes, field:<id|name>; prefix - for descending",
              "default": "number",
              "title": "Sort"
            },
            "description": "number (default), name, updated_at, created_at, last_launch_at, notes, field:<id|name>; prefix - for descending"
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Fields"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "where",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 8000
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON list of conditions (all must match): [{\"field\": …, \"op\": …, \"value\": …}]. field: name, notes, number, tags, folder, pinned, created_at, updated_at, last_launch_at or an own field (id or name). op: text/url — contains, not_contains, eq, ne; number — eq, ne, gt, gte, lt, lte; date (YYYY-MM-DD) — eq, gt, gte, lt, lte; select/folder — in, nin; multi_select/tags — in (any), all, nin (none); checkbox/pinned — eq true|false; any field — empty, not_empty.",
              "title": "Where"
            },
            "description": "JSON list of conditions (all must match): [{\"field\": …, \"op\": …, \"value\": …}]. field: name, notes, number, tags, folder, pinned, created_at, updated_at, last_launch_at or an own field (id or name). op: text/url — contains, not_contains, eq, ne; number — eq, ne, gt, gte, lt, lte; date (YYYY-MM-DD) — eq, gt, gte, lt, lte; select/folder — in, nin; multi_select/tags — in (any), all, nin (none); checkbox/pinned — eq true|false; any field — empty, not_empty."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_dict_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Create Profile",
        "operationId": "createProfile",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileCreate"
              },
              "example": {
                "name": "shop-01",
                "tags": [
                  "shop"
                ],
                "start_urls": [
                  "https://example.com"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.create"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "Get Profile",
        "operationId": "getProfile",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "profiles"
        ],
        "summary": "Patch Profile",
        "operationId": "patchProfile",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfilePatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit",
          "fingerprint.view"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "profile_transitioning",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "profiles"
        ],
        "summary": "Delete Profile",
        "operationId": "deleteProfile",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "permanent",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Permanent"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.delete"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/batch-create": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Batch Create",
        "operationId": "batchCreate",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchCreate"
              },
              "example": {
                "template_id": "<template uuid>",
                "count": 10
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_ProfileOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "bulk.ops",
          "profile.create",
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/fingerprint/regenerate": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Regenerate Fingerprint",
        "operationId": "regenerateFingerprint",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit",
          "fingerprint.view"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "profile_transitioning",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/restore": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Restore Profile",
        "operationId": "restoreProfile",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.delete"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/bulk": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Bulk",
        "operationId": "bulk",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "bulk.ops"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/fingerprint/capabilities": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "Fingerprint Capabilities",
        "description": "What the approved browser engine supports: only these fingerprint fields are shown and accepted.",
        "operationId": "fingerprintCapabilities",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/workspaces/{ws_id}/folders": {
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "List Folders",
        "operationId": "listFolders",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FolderOut"
                  },
                  "title": "Response List Folders V1 Workspaces  Ws Id  Folders Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "Create Folder",
        "operationId": "createFolder",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "folder.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/folders/{folder_id}": {
      "patch": {
        "tags": [
          "catalog"
        ],
        "summary": "Patch Folder",
        "operationId": "patchFolder",
        "parameters": [
          {
            "name": "folder_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Folder Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "folder.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "catalog"
        ],
        "summary": "Delete Folder",
        "description": "Profiles of the folder stay without a folder; nested folders move up to the level of the deleted one.",
        "operationId": "deleteFolder",
        "parameters": [
          {
            "name": "folder_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Folder Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "folder.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/tags": {
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "List Tags",
        "operationId": "listTags",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagOut"
                  },
                  "title": "Response List Tags V1 Workspaces  Ws Id  Tags Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/tags/{tag_id}": {
      "patch": {
        "tags": [
          "catalog"
        ],
        "summary": "Patch Tag",
        "operationId": "patchTag",
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Tag Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "folder.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "catalog"
        ],
        "summary": "Delete Tag",
        "operationId": "deleteTag",
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Tag Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "folder.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List Proxies",
        "operationId": "listProxies",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "http",
                    "https",
                    "socks5"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "ok",
                    "fail",
                    "pending",
                    "never"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 1000,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_ProxyOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Create Proxy",
        "operationId": "createProxy",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/parse": {
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Parse Proxies",
        "operationId": "parseProxies",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParseIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/import": {
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Import Proxies",
        "operationId": "importProxies",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportIn"
              },
              "example": {
                "text": "203.0.113.10:8000:user:pass",
                "check": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "too_large",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/{proxy_id}": {
      "patch": {
        "tags": [
          "proxies"
        ],
        "summary": "Patch Proxy",
        "operationId": "patchProxy",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "proxies"
        ],
        "summary": "Delete Proxy",
        "operationId": "deleteProxy",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Force"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "proxy_in_use",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/{proxy_id}/secret": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "Proxy Secret",
        "operationId": "proxySecret",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.view_secret"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/secrets": {
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Proxy Secrets",
        "description": "Logins and passwords of several proxies at once (copying and exporting lines; own and Geksy proxies — a Geksy proxy returns the Geksy gateway login and password, which also work outside Geksy). Unknown ids are skipped; every view is written to the audit log.",
        "operationId": "proxySecrets",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Schemas_wsIdsIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretsOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.view_secret"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/{proxy_id}/check": {
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Check Proxy",
        "operationId": "checkProxy",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/check": {
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Check Proxies",
        "operationId": "checkProxies",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Schemas_wsIdsIn"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxies/{proxy_id}/change-ip": {
      "post": {
        "tags": [
          "proxies"
        ],
        "summary": "Change Ip",
        "operationId": "changeIp",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangeIpOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/lease": {
      "delete": {
        "tags": [
          "launch"
        ],
        "summary": "Force Release",
        "description": "Stop the profile on whatever computer runs it (release its lease): the Geksy app there closes the browser. While the profile is starting or stopping (stopping saves and uploads browser data) — `409 profile_transitioning`, retry in a couple of seconds; `force=true` releases it anyway.",
        "operationId": "forceRelease",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "force",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Force"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.force_release"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "profile_transitioning",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/frozen-profiles": {
      "get": {
        "tags": [
          "launch"
        ],
        "summary": "Frozen Profiles",
        "description": "Frozen cloud profiles of the workspace available to the member: the desktop app uploads their data and removes local copies (PC-only profiles are not touched).",
        "operationId": "frozenProfiles",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Frozen Profiles V1 Workspaces  Ws Id  Frozen Profiles Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/os-crypt-key": {
      "put": {
        "tags": [
          "launch"
        ],
        "summary": "Put Os Crypt Key",
        "operationId": "putOsCryptKey",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OsCryptKeyIn"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "lease_lost",
          "plan_feature_unavailable",
          "profile_local_only",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/blobs/missing": {
      "post": {
        "tags": [
          "sync"
        ],
        "summary": "Blobs Missing",
        "operationId": "blobsMissing",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissingIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MissingOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/blobs/{sha}": {
      "put": {
        "tags": [
          "sync"
        ],
        "summary": "Put Blob",
        "operationId": "putBlob",
        "parameters": [
          {
            "name": "sha",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "title": "Sha"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "too_large",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "sync"
        ],
        "summary": "Get Blob",
        "operationId": "getBlob",
        "parameters": [
          {
            "name": "sha",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$",
              "title": "Sha"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "profile_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/data-versions": {
      "get": {
        "tags": [
          "sync"
        ],
        "summary": "List Versions",
        "operationId": "listVersions",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "title": "Response List Versions V1 Workspaces  Ws Id  Profiles  Profile Id  Data Versions Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "sync"
        ],
        "summary": "Upload Version",
        "operationId": "syncUploadVersion",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "profile_local_only",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/data-versions/{version}": {
      "get": {
        "tags": [
          "sync"
        ],
        "summary": "Get Version",
        "operationId": "getVersion",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "sync"
        ],
        "summary": "Patch Version",
        "operationId": "patchVersion",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "sync"
        ],
        "summary": "Delete Version",
        "description": "Delete a data version other than the current one (usually a rejected conflict version).",
        "operationId": "deleteVersion",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/data-versions/{version}/restore": {
      "post": {
        "tags": [
          "sync"
        ],
        "summary": "Restore Version",
        "operationId": "restoreVersion",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "profile_busy",
          "profile_transitioning",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profile-fields": {
      "get": {
        "tags": [
          "profile-fields"
        ],
        "summary": "List Fields",
        "description": "Own profile fields of the workspace (table columns), in order.",
        "operationId": "listFields",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FieldOut"
                  },
                  "title": "Response List Fields V1 Workspaces  Ws Id  Profile Fields Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "profile-fields"
        ],
        "summary": "Create Field",
        "operationId": "createField",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profile-fields/{field_id}": {
      "patch": {
        "tags": [
          "profile-fields"
        ],
        "summary": "Patch Field",
        "operationId": "patchField",
        "parameters": [
          {
            "name": "field_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Field Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "profile-fields"
        ],
        "summary": "Delete Field",
        "description": "Delete the field together with its values on all profiles.",
        "operationId": "deleteField",
        "parameters": [
          {
            "name": "field_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Field Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profile-fields/reorder": {
      "post": {
        "tags": [
          "profile-fields"
        ],
        "summary": "Reorder Fields",
        "description": "Order of the fields in the workspace (profile card, new columns); table column order is per person.",
        "operationId": "reorderFields",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldReorderIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FieldOut"
                  },
                  "title": "Response Reorder Fields V1 Workspaces  Ws Id  Profile Fields Reorder Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/transfers": {
      "post": {
        "tags": [
          "transfers"
        ],
        "summary": "Create Transfer",
        "operationId": "createTransfer",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.transfer",
          "profile.create"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "api_key_not_allowed",
          "bad_request",
          "conflict",
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "profile_busy",
          "profile_transitioning",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "transfers"
        ],
        "summary": "Outgoing",
        "operationId": "outgoing",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.transfer"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/transfers/{transfer_id}": {
      "delete": {
        "tags": [
          "transfers"
        ],
        "summary": "Cancel",
        "operationId": "transfersCancel",
        "parameters": [
          {
            "name": "transfer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Transfer Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.transfer"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/transfers": {
      "get": {
        "tags": [
          "transfers"
        ],
        "summary": "Incoming",
        "operationId": "incoming",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/transfers/{transfer_id}/accept": {
      "post": {
        "tags": [
          "transfers"
        ],
        "summary": "Accept",
        "operationId": "accept",
        "parameters": [
          {
            "name": "transfer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Transfer Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [
          "profile.create"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "bad_request",
          "forbidden",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/transfers/{transfer_id}/decline": {
      "post": {
        "tags": [
          "transfers"
        ],
        "summary": "Decline",
        "operationId": "transfersDecline",
        "parameters": [
          {
            "name": "transfer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Transfer Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/templates": {
      "get": {
        "tags": [
          "templates"
        ],
        "summary": "List Templates",
        "operationId": "listTemplates",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateOut"
                  },
                  "title": "Response List Templates V1 Workspaces  Ws Id  Templates Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "templates"
        ],
        "summary": "Create Template",
        "operationId": "createTemplate",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.create",
          "fingerprint.view"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "plan_limit_reached",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/templates/{template_id}": {
      "patch": {
        "tags": [
          "templates"
        ],
        "summary": "Patch Template",
        "operationId": "patchTemplate",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Template Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplatePatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.create",
          "fingerprint.view"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "templates"
        ],
        "summary": "Delete Template",
        "operationId": "deleteTemplate",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Template Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.create"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/plans": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Public Plans",
        "description": "Public, no authentication (landing and pricing pages). Cached by CDN and browsers for 5 minutes.",
        "operationId": "publicPlans",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PlanOut"
                  },
                  "type": "array",
                  "title": "Response Public Plans V1 Plans Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/workspaces/{ws_id}/billing": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Billing",
        "operationId": "getBilling",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/quote": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Billing Quote",
        "description": "How much a plan will cost (with a promo code and extra slots) and what happens after payment: `mode` renew (the same plan: the time is added to the end of the paid period), change (upgrade or downgrade: a new period starts now, `credit_minor` of the current plan goes back to the balance) or new; `shortfall_minor` — how much the balance lacks to pay from it. Changes nothing.",
        "operationId": "billingQuote",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "plan_code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "title": "Plan Code"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "month",
                "year"
              ],
              "type": "string",
              "default": "month",
              "title": "Period"
            }
          },
          {
            "name": "promo_code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 32
                },
                {
                  "type": "null"
                }
              ],
              "title": "Promo Code"
            }
          },
          {
            "name": "running_slots",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 0,
              "default": 0,
              "title": "Running Slots"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingQuoteOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/pay/{token}": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Open a payment link",
        "description": "Payment link: an unpaid payment redirects to the payment provider's page, otherwise to the web app.",
        "operationId": "openPaymentLink",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "to the payment provider page or to the billing page of the app",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "link_invalid",
          "validation_error"
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/checkout": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Checkout",
        "operationId": "checkout",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutIn"
              },
              "example": {
                "plan_code": "start",
                "period": "month"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "description": "Pay for a plan. `provider: \"balance\"` pays from the workspace balance at once (buy, change or renew early); not enough money — `402 insufficient_balance` with `shortfall_minor`, nothing is changed. Otherwise a payment is created at the provider: give `payment_link` to the person who pays, or use `pay_currency` for crypto.",
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/topup": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Topup",
        "description": "Alias of `POST /workspaces/{ws_id}/proxy-shop/wallet/topup`, kept for one release and then removed.",
        "operationId": "billingTopup",
        "deprecated": true,
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TopupIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/x402/topup": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Top up by x402",
        "description": "Top up the balance by the x402 protocol (v2, scheme `exact`, USDC on Base, EIP-3009). Without the `PAYMENT-SIGNATURE` header — `402 payment_required` with the requirements in the `PAYMENT-REQUIRED` header (base64 JSON) and in `error.details`. Repeat the same request with `PAYMENT-SIGNATURE` (base64 JSON PaymentPayload with a signed `transferWithAuthorization`) — the payment is verified, settled on chain and credited exactly once; the answer carries the `PAYMENT-RESPONSE` header. Repeating the same payment returns the same answer without a second credit. Rejected payment — `402 payment_invalid` (`params.reason`); not yet in a block — `409 payment_settling` (repeat the same request). Spend limits of API keys apply.",
        "operationId": "x402Topup",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 16,
              "description": "USD, e.g. 10 or 10.50",
              "title": "Amount"
            },
            "description": "USD, e.g. 10 or 10.50"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/X402TopupOut"
                }
              }
            }
          },
          "402": {
            "description": "payment_required: x402 requirements in the PAYMENT-REQUIRED header (and error.details); payment_invalid: the payment was rejected"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "amount_out_of_range",
          "conflict",
          "forbidden",
          "payment_invalid",
          "payment_required",
          "payment_settling",
          "plan_feature_unavailable",
          "provider_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/cancel": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Cancel",
        "operationId": "billingCancel",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/resume": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Resume",
        "operationId": "resume",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/promo": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Check Promo",
        "description": "Check a promo code (and calculate the price if a plan and period are given). It is applied at checkout.",
        "operationId": "checkPromo",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromoOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/invoices": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "List Invoices",
        "operationId": "listInvoices",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_InvoiceOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/payments": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "List Payments",
        "operationId": "billingListPayments",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_PaymentOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/payments/{payment_id}": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Payment",
        "operationId": "billingGetPayment",
        "parameters": [
          {
            "name": "payment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Payment Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/balance": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Balance History",
        "operationId": "balanceHistory",
        "deprecated": true,
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_LedgerOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "cursor_invalid",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/balance/history": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Balance history",
        "description": "Balance history, newest first: top-ups (method, amount, status — including unfinished ones), charges (plan, renewal, proxies with order details), refunds, support adjustments, bonuses. Filters: type and dates.",
        "operationId": "balanceOps",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "topup",
                    "plan",
                    "proxy",
                    "refund",
                    "adjust",
                    "bonus",
                    "other"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "from this moment (ISO 8601), inclusive",
              "title": "Since"
            },
            "description": "from this moment (ISO 8601), inclusive"
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "up to this moment (ISO 8601), exclusive",
              "title": "Until"
            },
            "description": "up to this moment (ISO 8601), exclusive"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_BalanceOpOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/billing/balance/history.csv": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Export balance history (CSV)",
        "description": "The same history as a CSV file (UTF-8 with BOM, up to 10,000 rows, the same filters).",
        "operationId": "balanceOpsCsv",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "topup",
                    "plan",
                    "proxy",
                    "refund",
                    "adjust",
                    "bonus",
                    "other"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "from this moment (ISO 8601), inclusive",
              "title": "Since"
            },
            "description": "from this moment (ISO 8601), inclusive"
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "up to this moment (ISO 8601), exclusive",
              "title": "Until"
            },
            "description": "up to this moment (ISO 8601), exclusive"
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(ru|en)$",
              "default": "en",
              "title": "Lang"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "text/csv": {}
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/referral": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "My Referral",
        "operationId": "myReferral",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferralOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/referral/transfer": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Referral Transfer",
        "description": "Move referral earnings to the balance of a workspace where the user has billing.manage.",
        "operationId": "referralTransfer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReferralTransferIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferralOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/me/features": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "My Features",
        "operationId": "myFeatures",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeaturesOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/announcements": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "My Announcements",
        "description": "Active announcements: for everyone or for users who have a workspace on one of the listed plans.",
        "operationId": "myAnnouncements",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnnouncementOut"
                  },
                  "title": "Response My Announcements V1 Me Announcements Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/releases/latest": {
      "get": {
        "tags": [
          "releases"
        ],
        "summary": "Latest Release",
        "operationId": "latestRelease",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "engine",
                "app"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "stable",
                "beta",
                "linux",
                "linux-beta"
              ],
              "type": "string",
              "default": "stable",
              "title": "Channel"
            }
          },
          {
            "name": "install_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ],
              "title": "Install Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestReleaseOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "validation_error"
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions": {
      "get": {
        "tags": [
          "extensions"
        ],
        "summary": "List Extensions",
        "operationId": "listExtensions",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExtensionOut"
                  },
                  "title": "Response List Extensions V1 Workspaces  Ws Id  Extensions Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/{ext_id}": {
      "get": {
        "tags": [
          "extensions"
        ],
        "summary": "Get Extension",
        "operationId": "getExtension",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "extensions"
        ],
        "summary": "Patch Extension",
        "operationId": "patchExtension",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtensionPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "extension.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "rev_conflict",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "extensions"
        ],
        "summary": "Delete Extension",
        "operationId": "deleteExtension",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "extension.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/webstore": {
      "post": {
        "tags": [
          "extensions"
        ],
        "summary": "Add From Webstore",
        "operationId": "addFromWebstore",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebstoreIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "extension.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "extension_exists",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/upload": {
      "post": {
        "tags": [
          "extensions"
        ],
        "summary": "Upload",
        "operationId": "upload",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_v1_workspaces__ws_id__extensions_upload_post"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "extension.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/{ext_id}/update": {
      "post": {
        "tags": [
          "extensions"
        ],
        "summary": "Update From Webstore",
        "operationId": "updateFromWebstore",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "extension.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/{ext_id}/versions": {
      "post": {
        "tags": [
          "extensions"
        ],
        "summary": "Upload Version",
        "operationId": "extensionsUploadVersion",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_version_v1_workspaces__ws_id__extensions__ext_id__versions_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "extension.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/{ext_id}/package": {
      "get": {
        "tags": [
          "extensions"
        ],
        "summary": "Package",
        "operationId": "package",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "unavailable",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/extensions/{ext_id}/icon": {
      "get": {
        "tags": [
          "extensions"
        ],
        "summary": "Icon",
        "operationId": "icon",
        "parameters": [
          {
            "name": "ext_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ext Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/oauth/providers": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "List Providers",
        "operationId": "listProviders",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array",
                  "title": "Response List Providers V1 Auth Oauth Providers Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/auth/oauth/{provider}/start": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Start",
        "operationId": "start",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/auth/oauth/{provider}/callback": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Callback",
        "operationId": "callback",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TokenPair"
                    },
                    {
                      "$ref": "#/components/schemas/LoginChallenge"
                    }
                  ],
                  "title": "Response Callback V1 Auth Oauth  Provider  Callback Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "account_unavailable",
          "oauth_state_invalid",
          "validation_error"
        ]
      }
    },
    "/v1/me/oauth": {
      "get": {
        "tags": [
          "auth",
          "me"
        ],
        "summary": "My Identities",
        "operationId": "myIdentities",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IdentityOut"
                  },
                  "type": "array",
                  "title": "Response My Identities V1 Me Oauth Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/oauth/{provider}/link/start": {
      "post": {
        "tags": [
          "auth",
          "me"
        ],
        "summary": "Link Start",
        "operationId": "linkStart",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/oauth/{provider}/link/callback": {
      "post": {
        "tags": [
          "auth",
          "me"
        ],
        "summary": "Link Callback",
        "operationId": "linkCallback",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IdentityOut"
                  },
                  "title": "Response Link Callback V1 Me Oauth  Provider  Link Callback Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "oauth_already_linked",
          "oauth_state_invalid",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/oauth/{provider}": {
      "delete": {
        "tags": [
          "auth",
          "me"
        ],
        "summary": "Unlink",
        "operationId": "unlink",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "oauth_last_login_method",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/app-login": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "App Start",
        "description": "The desktop app starts signing in with a provider (Google) in the system browser. The request is signed with the device key from `device`; only that key can collect the result. Open `/auth/app/{request_id}` of the web app in the browser and show `user_code` in the app window.",
        "operationId": "appStart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppStartIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppStartOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "device_key_required",
          "validation_error"
        ]
      }
    },
    "/v1/auth/app-login/{request_id}/poll": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "App Poll",
        "description": "Polling by the desktop app (signed with the same device key), not faster than `interval`: `pending`, or the sign-in result once — tokens of this device or a 2FA / undo-deletion step for `/auth/login/challenge`.",
        "operationId": "appPoll",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Request Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TokenPair"
                    },
                    {
                      "$ref": "#/components/schemas/LoginChallenge"
                    },
                    {
                      "$ref": "#/components/schemas/AppPending"
                    }
                  ],
                  "title": "Response App Poll V1 Auth App Login  Request Id  Poll Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "app_login_denied",
          "validation_error"
        ]
      }
    },
    "/v1/auth/app-login/{request_id}": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "App Info",
        "operationId": "appInfo",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Request Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInfoOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/auth/app-login/{request_id}/deny": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "App Deny",
        "description": "\"It's not me\": the person doesn't recognize the device in the browser — the app gets `app_login_denied`.",
        "operationId": "appDeny",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Request Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "app_login_done",
          "validation_error"
        ]
      }
    },
    "/v1/auth/app-login/{request_id}/oauth/start": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "App Oauth Start",
        "operationId": "appOauthStart",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Request Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppBrowserStartIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/auth/app-login/{request_id}/oauth/callback": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "App Oauth Callback",
        "description": "Return from the provider in the browser. Tokens go only to the desktop app (poll), never to the browser.",
        "operationId": "appOauthCallback",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 20,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Request Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppDoneOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "account_unavailable",
          "app_login_done",
          "oauth_state_invalid",
          "validation_error"
        ]
      }
    },
    "/v1/workspaces/{ws_id}/devices": {
      "get": {
        "tags": [
          "licensing"
        ],
        "summary": "List Devices",
        "operationId": "listDevices",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceDeviceOut"
                  },
                  "title": "Response List Devices V1 Workspaces  Ws Id  Devices Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/devices/{device_id}": {
      "delete": {
        "tags": [
          "licensing"
        ],
        "summary": "Release Device",
        "description": "Free a seat: the PC takes it again on its next start (if a seat is free).",
        "operationId": "releaseDevice",
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "member.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/cookies": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "Get Cookies",
        "operationId": "getCookies",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "json",
                "netscape"
              ],
              "type": "string",
              "default": "json",
              "title": "Format"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.export",
          "profile.export_secrets"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "profiles"
        ],
        "summary": "Put Cookies",
        "description": "Import cookies: the desktop app applies them on the next launch of the profile (`cookies_import` in the launch config).",
        "operationId": "putCookies",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CookiesIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CookiesOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.edit"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/cookies/applied": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Cookies Applied",
        "description": "The desktop app holding the lease has applied the cookies from `cookies_import`.",
        "operationId": "cookiesApplied",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LeaseRef"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/cookies/snapshot": {
      "put": {
        "tags": [
          "profiles"
        ],
        "summary": "Cookies Snapshot",
        "description": "The desktop app holding the lease sends cookies of the running or closing browser (via CDP) for export.",
        "operationId": "cookiesSnapshot",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SnapshotIn"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "plan_limit_reached",
          "profile_data_excluded",
          "profile_local_only",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/{profile_id}/export": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "Export Profile",
        "description": "Profile archive. Without secrets (default): settings, fingerprint, proxy without password — safe to share. `with_secrets=true` (profile.export_secrets permission) adds browser data, the os_crypt key, cookies and the proxy password (with proxy.view_secret) — such an archive is equivalent to access to the profile's accounts.",
        "operationId": "exportProfile",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Profile Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "with_secrets",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "With Secrets"
            }
          },
          {
            "name": "with_proxy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "With Proxy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.export",
          "fingerprint.view",
          "profile.export_secrets"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/profiles/import": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Import Profile",
        "description": "New profile from a .geksy archive: settings, fingerprint, proxy (with proxy.manage — reuses the same proxy in the workspace or creates it), data (as a new version), the os_crypt key, cookies (queued for import).",
        "operationId": "importProfile",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_import_profile_v1_workspaces__ws_id__profiles_import_post"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.create"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "archive_invalid",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "too_large",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pricing": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Get Pricing",
        "description": "Your workspace's pricing group: markup over cost and the pay-as-you-go multiplier. Catalog prices and quotes are already for this group.",
        "operationId": "getPricing",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/catalog": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Catalog",
        "operationId": "catalog",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductOut"
                  },
                  "title": "Response Catalog V1 Workspaces  Ws Id  Proxy Shop Catalog Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/wallet": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Get Wallet",
        "operationId": "getWallet",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/wallet/topup": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Topup",
        "description": "Top up the balance with a payment (payment provider's page or direct crypto payment, as for plans). The balance is credited after payment. While proxy sales are closed — `409 proxy_shop_closed`; overpayments, refunds, plan remainders and referral earnings are always credited.",
        "operationId": "proxyShopTopup",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TopupIn"
              },
              "example": {
                "amount_minor": 2000
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/buy": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Buy",
        "operationId": "buy",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuyIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ManagedOut"
                  },
                  "title": "Response Buy V1 Workspaces  Ws Id  Proxy Shop Buy Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/buy-and-attach": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Buy And Attach",
        "description": "Buy Geksy proxies and attach them to profiles in one transaction: the body of `POST /buy` plus `profile_ids` and `attach` (`one_each` — a proxy per profile, rotating ones get separate sessions; `same` — one proxy for all). Profiles are checked before charging; on any error (`402 proxy_balance_low`, `409 out_of_stock`, …) nothing is charged or attached. `pool_offer_code` also buys a traffic package and pays from it. Requires proxy and profile edit permissions.",
        "operationId": "buyAndAttach",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuyAttachIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuyAttachOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage",
          "profile.edit"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "plan_limit_reached",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/orders": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Create Order",
        "description": "Static proxies are out of stock (`out_of_stock`): place an order paid right away; IPs are issued when they arrive.",
        "operationId": "createOrder",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "List Orders",
        "operationId": "listOrders",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderOut"
                  },
                  "title": "Response List Orders V1 Workspaces  Ws Id  Proxy Shop Orders Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/orders/{order_id}": {
      "delete": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Cancel Order",
        "description": "Cancel a pending order — the money goes back to the balance.",
        "operationId": "cancelOrder",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Order Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/notices": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "List Notices",
        "description": "Notifications about Geksy proxies (last 50); clients translate them by `kind` and `params`.",
        "operationId": "listNotices",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "unread_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Unread Only"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoticesOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/notices/read": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Read Notices",
        "operationId": "readNotices",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoticesReadIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoticesOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/notify-settings": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Get Notify",
        "operationId": "getNotify",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Put Notify",
        "description": "Turn off emails and/or in-app notifications by kind; set your own \"balance is running low\" threshold.",
        "operationId": "putNotify",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotifyIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "List Pools",
        "operationId": "listPools",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PoolOut"
                  },
                  "title": "Response List Pools V1 Workspaces  Ws Id  Proxy Shop Pools Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Buy Pool",
        "description": "Buy a traffic package from the balance: `product_code` + `gb` — that many GB with no expiry, priced per GB by the volume ladder of your pricing group (see `GET /pools/quote`); a legacy `offer_code` still works for active offers. Create ports in the package with `POST /pools/{id}/ports`. No refunds.",
        "operationId": "buyPool",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoolIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools/quote": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Quote Pool",
        "description": "Price of a `gb` GB package of a product for your pricing group (volume ladder). Outside the product's limits — `422 {reason: gb}`.",
        "operationId": "quotePool",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "product_code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Product Code"
            }
          },
          {
            "name": "gb",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Gb"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools/{pool_id}/topup": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Topup Pool",
        "description": "Add GB to a package (ports and their lines stay the same); priced by the volume ladder for the added `gb`.",
        "operationId": "topupPool",
        "parameters": [
          {
            "name": "pool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Pool Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TopupPoolIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools/{pool_id}/ports": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "List Ports",
        "description": "Ports of a package: every port spends the package's GB.",
        "operationId": "listPorts",
        "parameters": [
          {
            "name": "pool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Pool Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ManagedOut"
                  },
                  "title": "Response List Ports V1 Workspaces  Ws Id  Proxy Shop Pools  Pool Id  Ports Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Create Ports",
        "description": "Create ports in a package — each with its own geo (country, region, city, ASN — what the product supports), mode (`rotating`, `sticky` with an IP lifetime, `hard`), protocol (`http`/`socks5`), gateway login and password and rotation link. Free: they spend the package's traffic. Over the per-package limit — `409 {reason: ports_limit}`.",
        "operationId": "createPorts",
        "parameters": [
          {
            "name": "pool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Pool Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortsIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ManagedOut"
                  },
                  "title": "Response Create Ports V1 Workspaces  Ws Id  Proxy Shop Pools  Pool Id  Ports Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools/{pool_id}/usage": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Pool Usage",
        "description": "Package traffic by day and by port over the last `days` days.",
        "operationId": "poolUsage",
        "parameters": [
          {
            "name": "pool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Pool Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "title": "Days"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools/{pool_id}": {
      "patch": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Patch Pool",
        "operationId": "patchPool",
        "parameters": [
          {
            "name": "pool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Pool Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoolPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/pools/{pool_id}/renew": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Renew Pool",
        "description": "Renew a traffic package or subscription in one click: buys the same offer and moves the old pool's proxies to it. An unmetered port gets its period extended.",
        "operationId": "renewPool",
        "parameters": [
          {
            "name": "pool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Pool Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "List Managed",
        "operationId": "listManaged",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ManagedOut"
                  },
                  "title": "Response List Managed V1 Workspaces  Ws Id  Proxy Shop Proxies Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}": {
      "patch": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Patch Managed",
        "operationId": "patchManaged",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManagedPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Delete Managed",
        "description": "Delete a Geksy proxy: a static IP goes back to stock (the paid period is not refunded).",
        "operationId": "deleteManaged",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/bulk": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Bulk Managed",
        "description": "Bulk actions on Geksy proxies: `delete`, `update` (fields of `PATCH /proxies/{id}` in `changes`) or `rotate`. Each proxy is handled on its own: `done` — ids that succeeded, `failed` — `{id, code, reason}`.",
        "operationId": "bulkManaged",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyBulkIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}/usage": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Proxy Usage",
        "description": "Proxy traffic by day: bytes and the amount charged to the balance.",
        "operationId": "proxyUsage",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "title": "Days"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}/rotate": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Rotate",
        "description": "New IP (sticky sessions). Requires the profile launch or proxy management permission.",
        "operationId": "rotate",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}/rotation-link": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Get Rotation Link",
        "operationId": "getRotationLink",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RotationLinkOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Issue Rotation Link",
        "description": "Issue (or reissue — the previous one stops working) an IP rotation link: a GET or POST to it changes the IP without signing in. The link is shown once. Sticky and hard sessions only.",
        "operationId": "issueRotationLink",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RotationLinkOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Revoke Rotation Link",
        "operationId": "revokeRotationLink",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}/replace": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Replace Static",
        "description": "Replace the IP of a static proxy under the warranty (usually once per period). Not available for this proxy — `409 {reason: static_api_unsupported}`; replacement limit reached — `409 {reason: replace_limit}`.",
        "operationId": "replaceStatic",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}/renew": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Renew Static",
        "description": "Renew a static Geksy proxy now for its period from the balance, without waiting for auto-renewal. Not a static or expired — `409 {reason: not_renewable}`.",
        "operationId": "renewStatic",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "spend_limit_reached",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/proxy-shop/proxies/{proxy_id}/reset-secret": {
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Reset Secret",
        "description": "New secret for a Geksy proxy: the previous proxy string (exported or leaked) stops working; profiles get the new one on launch.",
        "operationId": "resetSecret",
        "parameters": [
          {
            "name": "proxy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Proxy Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "proxy.manage"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/proxy/rotate/{token}": {
      "get": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Rotate By Link Get",
        "description": "Change the IP with your rotation link — no sign-in (browser, scripts); same as POST.",
        "operationId": "rotateByLinkGet",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "validation_error"
        ]
      },
      "post": {
        "tags": [
          "proxy-shop"
        ],
        "summary": "Rotate By Link",
        "description": "Change the IP with your rotation link — no sign-in (scripts, browser). Returns `{ok, status: done|pending|new_session, ip?, country?, city?, asn?}`; missing or revoked link — `410 link_invalid`; faster than the limit — `429` with Retry-After.",
        "operationId": "rotateByLink",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/errors": {
      "get": {
        "tags": [
          "reference"
        ],
        "summary": "Error code catalog with recommended actions",
        "description": "All API error codes: HTTP status, hint (`message`, English), description in `lang` (`title`), action (`action`: what to do next; `{ws_id}` in `api` is your workspace) and a help link. Public, cached for 1 h.",
        "operationId": "listErrorCodes",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "ru",
                "en"
              ],
              "type": "string",
              "default": "en",
              "title": "Lang"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCatalogOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/status": {
      "get": {
        "tags": [
          "reference"
        ],
        "summary": "Service status",
        "description": "Whether the cloud API is up right now (database, cache) — for programs and `geksy doctor`. History and incidents are on the status page (`status_page`). No sign-in, not cached.",
        "operationId": "serviceStatus",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/workspaces/{ws_id}/spend-approvals": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "List Approvals",
        "operationId": "listApprovals",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "pending",
                "all"
              ],
              "type": "string",
              "default": "pending",
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SpendApprovalOut"
                  },
                  "title": "Response List Approvals V1 Workspaces  Ws Id  Spend Approvals Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "billing.manage"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/spend-approvals/{approval_id}/approve": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Approve",
        "description": "Approve one purchase: the key repeats the same request with the `X-Spend-Approval: <id>` header (before `expires_at`).",
        "operationId": "approve",
        "parameters": [
          {
            "name": "approval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Approval Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpendApprovalOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/spend-approvals/{approval_id}/decline": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Decline",
        "operationId": "billingDecline",
        "parameters": [
          {
            "name": "approval_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Approval Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpendApprovalOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/oauth/device_authorization": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Start device authorization (RFC 8628)",
        "description": "A program asks for access: `client_id` (program name shown to the person), `scope` — space-separated permissions (optional; the person can narrow them). No sign-in; at most 30 times per hour per address.",
        "operationId": "deviceAuthorization",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "client_id": {
                    "type": "string",
                    "description": "program name shown to the person"
                  },
                  "scope": {
                    "type": "string",
                    "description": "space-separated permissions"
                  }
                },
                "type": "object",
                "required": [
                  "client_id"
                ]
              }
            },
            "application/json": {
              "schema": {
                "properties": {
                  "client_id": {
                    "type": "string",
                    "description": "program name shown to the person"
                  },
                  "scope": {
                    "type": "string",
                    "description": "space-separated permissions"
                  }
                },
                "type": "object",
                "required": [
                  "client_id"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/oauth/token": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Token endpoint: device code (RFC 8628), authorization code + PKCE, refresh",
        "description": "Polling by the program: `authorization_pending` — the person hasn't decided yet, `slow_down` — polling faster than `interval` (the interval grew by 5 s), `access_denied`, `expired_token`. Success: `access_token` (API key `ak_…`, shown once), `token_type: Bearer`, `scope`, `workspace_id`, `key_id`, `expires_in` (if the key expires). `authorization_code` and `refresh_token` grants serve apps and MCP clients.",
        "operationId": "token",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "enum": [
                      "urn:ietf:params:oauth:grant-type:device_code",
                      "authorization_code",
                      "refresh_token"
                    ]
                  },
                  "device_code": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "code_verifier": {
                    "type": "string"
                  },
                  "redirect_uri": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "refresh_token": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  }
                },
                "type": "object",
                "required": [
                  "grant_type"
                ]
              }
            },
            "application/json": {
              "schema": {
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "enum": [
                      "urn:ietf:params:oauth:grant-type:device_code",
                      "authorization_code",
                      "refresh_token"
                    ]
                  },
                  "device_code": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "code_verifier": {
                    "type": "string"
                  },
                  "redirect_uri": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "refresh_token": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  }
                },
                "type": "object",
                "required": [
                  "grant_type"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/oauth/device/{user_code}": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "Device Request",
        "description": "Which program asks for access (for the confirmation page).",
        "operationId": "deviceRequest",
        "parameters": [
          {
            "name": "user_code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceRequestOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/oauth/device/{user_code}/approve": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Device Approve",
        "description": "Approve: workspace, permissions (no wider than yours), expiry and spending limit of the future key.",
        "operationId": "deviceApprove",
        "parameters": [
          {
            "name": "user_code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Code"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceApproveIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceRequestOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [
          "api.use"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "permissions_too_high",
          "plan_feature_unavailable",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/oauth/device/{user_code}/deny": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Device Deny",
        "operationId": "deviceDeny",
        "parameters": [
          {
            "name": "user_code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceRequestOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/oauth/register": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Dynamic client registration (RFC 7591)",
        "description": "Public client (no secret). A client_id URL with metadata (CIMD) is preferred — no registration needed.",
        "operationId": "registerClient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Oauth_asRegisterIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "validation_error"
        ]
      }
    },
    "/v1/oauth/authorize": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "Consent screen data (web app)",
        "description": "For the web app's consent page: who asks for access and where to return. Errors here are not sent to the client.",
        "operationId": "authorizeInfo",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizeInfo"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Approve or deny an authorization request (web app)",
        "description": "The person's decision → `{redirect_to}`: the app address with `code` (or `error=access_denied`), `state` and `iss`.",
        "operationId": "authorize",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorizeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [
          "api.use"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "permissions_too_high",
          "plan_feature_unavailable",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/oauth/revoke": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "Revoke a token (RFC 7009)",
        "description": "A refresh token or access token → the app's access is revoked entirely. Always responds 200 (RFC 7009).",
        "operationId": "oauthRevoke",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": []
      }
    },
    "/v1/me/oauth-grants": {
      "get": {
        "tags": [
          "oauth",
          "me"
        ],
        "summary": "My Grants",
        "operationId": "myGrants",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/GrantOut"
                  },
                  "type": "array",
                  "title": "Response My Grants V1 Me Oauth Grants Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/me/oauth-grants/{grant_id}": {
      "delete": {
        "tags": [
          "oauth",
          "me"
        ],
        "summary": "Revoke Grant",
        "operationId": "revokeGrant",
        "parameters": [
          {
            "name": "grant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Grant Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/agent/signup/challenge": {
      "get": {
        "tags": [
          "agent"
        ],
        "summary": "Proof-of-work challenge for sign-up",
        "description": "No sign-in; 60 per minute per address. Needed for `POST /agent/signup` and `POST /agent/login` (there without proof of work).",
        "operationId": "challenge",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChallengeOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "agent_signup_closed"
        ]
      }
    },
    "/v1/agent/signup": {
      "post": {
        "tags": [
          "agent"
        ],
        "summary": "Sign up a program without a person (sandbox workspace + API key)",
        "description": "No email, password or captcha. Errors: `403 agent_signup_closed`, `400 pow_invalid` (new challenge — the same `GET …/challenge`), `403 terms_not_accepted`, `429 rate_limited` (Retry-After).",
        "operationId": "signup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentSignupIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSignupOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "agent_signup_closed",
          "conflict",
          "pow_invalid",
          "terms_not_accepted",
          "validation_error"
        ]
      }
    },
    "/v1/agent/login": {
      "post": {
        "tags": [
          "agent"
        ],
        "summary": "New API key for a program by its ed25519 key",
        "description": "The challenge comes from `GET /agent/signup/challenge` (no proof of work needed), signed with the key from sign-up. Issues a 30-day key within the plan (`api_keys`); workspace — `workspace_id` or the earliest joined one.",
        "operationId": "agentLogin",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentLoginIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentLoginOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "not_found",
          "plan_limit_reached",
          "unauthorized",
          "validation_error"
        ]
      }
    },
    "/v1/workspaces/{ws_id}/claim-link": {
      "post": {
        "tags": [
          "agent"
        ],
        "summary": "New claim link for a person (agent's own workspace)",
        "description": "The owning program gets a new claim link (the previous one stops working). After the claim — 409.",
        "operationId": "newClaimLink",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimLinkOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "owner_only",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/claim/{code}": {
      "get": {
        "tags": [
          "agent"
        ],
        "summary": "What a person is about to claim (web app)",
        "operationId": "claimInfo",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimInfo"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "agent"
        ],
        "summary": "Claim a sandbox workspace created by a program",
        "description": "The person becomes the owner; the program stays a member with the \"AI agent\" role and its keys (their permissions are narrowed to the role). The sandbox is lifted: the plan is as for a person's new workspace, the deletion date is removed.",
        "operationId": "claim",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimInfo"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "user_session",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/webhooks": {
      "get": {
        "tags": [
          "webhooks"
        ],
        "summary": "List Webhooks",
        "operationId": "webhooksListWebhooks",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookOut"
                  },
                  "title": "Response List Webhooks V1 Workspaces  Ws Id  Webhooks Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "webhooks"
        ],
        "summary": "Create Webhook",
        "description": "Subscription: URL (https, public) and events (types or patterns). The `whsec_…` secret is in the response once.",
        "operationId": "createWebhook",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/webhooks/{hook_id}": {
      "patch": {
        "tags": [
          "webhooks"
        ],
        "summary": "Patch Webhook",
        "operationId": "patchWebhook",
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Hook Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "webhooks"
        ],
        "summary": "Delete Webhook",
        "operationId": "deleteWebhook",
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Hook Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/webhooks/{hook_id}/rotate-secret": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "summary": "Rotate Secret",
        "description": "New secret; for `keep_old_minutes` the old one still signs deliveries as a second value in `webhook-signature`.",
        "operationId": "rotateSecret",
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Hook Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/webhooks/{hook_id}/test": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "summary": "Test Webhook",
        "description": "Test event `webhook.test` — sent within seconds; the result is in the delivery log.",
        "operationId": "testWebhook",
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Hook Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/webhooks/{hook_id}/deliveries": {
      "get": {
        "tags": [
          "webhooks"
        ],
        "summary": "Deliveries",
        "description": "Delivery log for 7 days, newest first.",
        "operationId": "deliveries",
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Hook Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "delivered",
                    "failed",
                    "skipped"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeliveryOut"
                  },
                  "title": "Response Deliveries V1 Workspaces  Ws Id  Webhooks  Hook Id  Deliveries Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": true,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/webhooks/{hook_id}/deliveries/{delivery_id}/retry": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "summary": "Retry Delivery",
        "operationId": "retryDelivery",
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Hook Id"
            }
          },
          {
            "name": "delivery_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Delivery Id"
            }
          },
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "workspace.settings"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/webhook-events": {
      "get": {
        "tags": [
          "webhooks"
        ],
        "summary": "Webhook Events",
        "description": "Webhook event catalog (`available: false` — coming later). Patterns: `profile.*`, `*`.",
        "operationId": "webhookEvents",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EventTypeOut"
                  },
                  "type": "array",
                  "title": "Response Webhook Events V1 Webhook Events Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "public",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": []
      }
    },
    "/v1/workspaces/{ws_id}/devices/register": {
      "post": {
        "tags": [
          "runners"
        ],
        "summary": "Register Runner",
        "description": "Register a runner (or return tokens to the same one: same install_id and key) → a pair of device tokens.",
        "operationId": "registerRunner",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerRegisterIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenPair"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "device.register"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "permissions_too_high",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/pool/reserve": {
      "post": {
        "tags": [
          "pool"
        ],
        "summary": "Reserve",
        "description": "Free profiles by tags or folder → reservations. None free — `409 pool_empty` (retry later).",
        "operationId": "reserve",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReserveIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReservationOut"
                  },
                  "title": "Response Reserve V1 Workspaces  Ws Id  Pool Reserve Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/pool/renew": {
      "post": {
        "tags": [
          "pool"
        ],
        "summary": "Renew",
        "description": "Extend reservations by their ttl from now. Expired and other people's reservations are not returned.",
        "operationId": "renew",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoolIdsIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReservationOut"
                  },
                  "title": "Response Renew V1 Workspaces  Ws Id  Pool Renew Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/pool/release": {
      "post": {
        "tags": [
          "pool"
        ],
        "summary": "Release",
        "description": "Return profiles to the pool. A running profile's lease is not touched — the desktop app releases it on close.",
        "operationId": "poolRelease",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoolIdsIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReservationOut"
                  },
                  "title": "Response Release V1 Workspaces  Ws Id  Pool Release Post"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/pool/reservations": {
      "get": {
        "tags": [
          "pool"
        ],
        "summary": "My Reservations",
        "operationId": "myReservations",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReservationOut"
                  },
                  "title": "Response My Reservations V1 Workspaces  Ws Id  Pool Reservations Get"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/workspaces/{ws_id}/agent-events": {
      "post": {
        "tags": [
          "pool"
        ],
        "summary": "Agent Events",
        "description": "Events of a device's desktop app → workspace events (WebSocket, webhooks). Desktop app devices only, not API keys.",
        "operationId": "agentEvents",
        "parameters": [
          {
            "name": "ws_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ws Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentEventsIn"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [
          "profile.launch"
        ],
        "x-idempotent": false,
        "x-error-codes": [
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/diag/events": {
      "post": {
        "tags": [
          "diagnostics"
        ],
        "summary": "Diag Events Upload",
        "description": "Store events of the desktop app (profile sessions: start, stop, crash, hang, proxy and extension errors).\nKept for 30 days, visible only to the account and Geksy support.",
        "operationId": "diagEventsUpload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiagEventsIn"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiagEventsAccepted"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "diagnostics"
        ],
        "summary": "Diag Events List",
        "description": "Your own events, newest first.",
        "operationId": "diagEventsList",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Until"
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 40
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Id"
            }
          },
          {
            "name": "profile_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Profile Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 200,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 24
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_DiagEventOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "cursor_invalid",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/diag/reports": {
      "post": {
        "tags": [
          "diagnostics"
        ],
        "summary": "Diag Report Create",
        "description": "Send your cloud-side events to support (from the web, where computer logs are not available). The answer\nhas the `code` to give to support.",
        "operationId": "diagReportCreate",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiagReportIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiagReportOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "diagnostics"
        ],
        "summary": "Diag Reports List",
        "description": "Your logs packages sent to support, newest first.",
        "operationId": "diagReportsList",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 80
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_DiagReportOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/diag/reports/upload": {
      "post": {
        "tags": [
          "diagnostics"
        ],
        "summary": "Diag Report Upload",
        "description": "Send a logs archive made by the desktop app (zip: `manifest.json`, `events.jsonl`, `logs/`, `dumps/`).\nThe app removes cookies, passwords, tokens and page contents and masks secrets before sending.",
        "operationId": "diagReportUpload",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "manual",
                "crash"
              ],
              "type": "string",
              "default": "manual",
              "title": "Kind"
            }
          },
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Workspace Id"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date From"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Date To"
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 40,
                  "pattern": "^[A-Za-z0-9_.:-]{1,40}$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Id"
            }
          },
          {
            "name": "profile_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Profile Id"
            }
          },
          {
            "name": "comment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500,
              "default": "",
              "title": "Comment"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiagReportOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/zip": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "too_large",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/diag/reports/{code}": {
      "get": {
        "tags": [
          "diagnostics"
        ],
        "summary": "Diag Report Get",
        "description": "One of your packages by its code (GX-XXXX-XXXX; case, spaces and dashes do not matter).",
        "operationId": "diagReportGet",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 20,
              "title": "Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiagReportOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/attachments": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Upload Support File",
        "description": "Upload a file before sending (multipart `file`): images, PDF, ZIP, MP4/WebM video, text logs (txt, log, json, har, csv); up to 20 MB, 30 files per hour. The type is detected from the content. Pass the id in `attachment_ids` of a ticket or a message; a file not sent within a day is deleted.",
        "operationId": "uploadSupportFile",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_support_file_v1_support_attachments_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/attachments/{attachment_id}": {
      "get": {
        "tags": [
          "support"
        ],
        "summary": "Download Support File",
        "description": "Download an attachment — the uploader and those who can see the ticket.",
        "operationId": "downloadSupportFile",
        "parameters": [
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Attachment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/tickets": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Create Ticket",
        "description": "Contact support: subject, category, priority (`urgent` is set by support only), description, attachments (`attachment_ids` from `POST /support/attachments`), log bundles sent from the desktop app (`log_bundle_ids`, GX-XXXX-XXXX). `diagnostics` is the JSON from `geksy doctor` (secrets are removed). With an API key the ticket goes to the key's workspace. At most 10 tickets per hour; repeat with the same Idempotency-Key — no duplicate.",
        "operationId": "createTicket",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "not_found",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "repeat with the same key → same response, no duplicates (24 h)",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ]
      },
      "get": {
        "tags": [
          "support"
        ],
        "summary": "My Tickets",
        "description": "Your tickets and tickets that members shared with workspace owners and admins (`scope`), newest first. Statuses: `new`, `open` (support is working on it), `pending` (waiting for your reply), `solved`, `closed`.",
        "operationId": "myTickets",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "new",
                    "open",
                    "pending",
                    "solved",
                    "closed"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "mine",
                "shared"
              ],
              "type": "string",
              "default": "all",
              "title": "Scope"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_TicketOut_"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/unread": {
      "get": {
        "tags": [
          "support"
        ],
        "summary": "Unread Tickets",
        "description": "Your tickets with a support reply you have not opened yet.",
        "operationId": "unreadTickets",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadOut"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/tickets/{ticket_id}": {
      "get": {
        "tags": [
          "support"
        ],
        "summary": "My Ticket",
        "description": "A ticket with the conversation. When the author opens it, the support reply is marked as read.",
        "operationId": "myTicket",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": true,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "support"
        ],
        "summary": "Share Ticket",
        "description": "Share the ticket with owners and admins of its workspace (or stop sharing) — author only.",
        "operationId": "shareTicket",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ticket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketSharePatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/tickets/{ticket_id}/messages": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Add Ticket Message",
        "description": "Reply in the conversation. A pending or solved ticket goes back to `open`; a closed one reopens if it was closed less than 30 days ago (otherwise `409 {reason: reopen_expired}` — create a new ticket).",
        "operationId": "addTicketMessage",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ticket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/tickets/{ticket_id}/close": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Close Ticket",
        "description": "Close the ticket: the issue is solved. It can be reopened for 30 days.",
        "operationId": "closeTicket",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/tickets/{ticket_id}/reopen": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Reopen Ticket",
        "description": "Reopen a solved or closed ticket (no later than 30 days after closing).",
        "operationId": "reopenTicket",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/support/tickets/{ticket_id}/rating": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Rate Ticket",
        "description": "Rate the solution (1–5 and a comment) — the author, after the ticket is solved or closed; a new rating replaces the previous one.",
        "operationId": "rateTicket",
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Ticket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RatingIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "5XX": {
            "description": "Error (catalog: GET /v1/errors)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-auth": "member",
        "x-required-permissions": [],
        "x-idempotent": false,
        "x-error-codes": [
          "conflict",
          "forbidden",
          "plan_feature_unavailable",
          "rate_limited",
          "subscription_inactive",
          "unauthorized",
          "validation_error"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AcceptIn": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "workspace_id"
        ],
        "title": "AcceptIn"
      },
      "AdminAuditOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "ts": {
            "type": "string",
            "format": "date-time",
            "title": "Ts"
          },
          "admin_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Admin Id"
          },
          "admin_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Admin Email"
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "target_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Type"
          },
          "target_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Id"
          },
          "before": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Before"
          },
          "after": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "After"
          },
          "details": {
            "additionalProperties": true,
            "type": "object",
            "title": "Details"
          }
        },
        "type": "object",
        "required": [
          "id",
          "ts",
          "admin_id",
          "admin_email",
          "ip",
          "action",
          "target_type",
          "target_id",
          "before",
          "after",
          "details"
        ],
        "title": "AdminAuditOut"
      },
      "AdminDiagReportOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "profile_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Id"
          },
          "date_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date From"
          },
          "date_to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date To"
          },
          "summary": {
            "type": "string",
            "title": "Summary"
          },
          "comment": {
            "type": "string",
            "title": "Comment"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          },
          "user_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Email"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "plan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan"
          },
          "agent_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Version"
          },
          "os": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Os"
          }
        },
        "type": "object",
        "required": [
          "id",
          "code",
          "kind",
          "source",
          "created_at",
          "size",
          "workspace_id",
          "session_id",
          "profile_id",
          "date_from",
          "date_to",
          "summary",
          "comment",
          "user_id",
          "user_email",
          "status",
          "plan",
          "agent_version",
          "os"
        ],
        "title": "AdminDiagReportOut"
      },
      "AdminMembership": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "workspace_name": {
            "type": "string",
            "title": "Workspace Name"
          },
          "role_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Key"
          },
          "is_owner": {
            "type": "boolean",
            "title": "Is Owner"
          },
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "workspace_id",
          "workspace_name",
          "role_key",
          "is_owner",
          "plan_code",
          "status"
        ],
        "title": "AdminMembership"
      },
      "AdminMessageOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "from_staff": {
            "type": "boolean",
            "title": "From Staff"
          },
          "author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author",
            "description": "author's name; null for Geksy support"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/AttachmentOut"
            },
            "type": "array",
            "title": "Attachments",
            "default": []
          },
          "internal": {
            "type": "boolean",
            "title": "Internal",
            "default": false
          },
          "author_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author Email"
          }
        },
        "type": "object",
        "required": [
          "id",
          "from_staff",
          "body",
          "created_at"
        ],
        "title": "AdminMessageOut"
      },
      "AdminPaymentOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "workspace_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Name"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "provider_payment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Payment Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "discount_minor": {
            "type": "integer",
            "title": "Discount Minor"
          },
          "paid_minor": {
            "type": "integer",
            "title": "Paid Minor"
          },
          "refunded_minor": {
            "type": "integer",
            "title": "Refunded Minor"
          },
          "plan_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Code"
          },
          "period": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paid At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "workspace_name",
          "user_id",
          "kind",
          "provider",
          "provider_payment_id",
          "status",
          "currency",
          "amount_minor",
          "discount_minor",
          "paid_minor",
          "refunded_minor",
          "plan_code",
          "period",
          "failure_code",
          "created_at",
          "paid_at"
        ],
        "title": "AdminPaymentOut"
      },
      "AdminTicketOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "number": {
            "type": "integer",
            "title": "Number"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "open",
              "pending",
              "solved",
              "closed"
            ],
            "title": "Status"
          },
          "category": {
            "type": "string",
            "enum": [
              "billing",
              "proxy",
              "browser",
              "account",
              "api",
              "other"
            ],
            "title": "Category"
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "normal",
              "high",
              "urgent"
            ],
            "title": "Priority"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "shared": {
            "type": "boolean",
            "title": "Shared"
          },
          "mine": {
            "type": "boolean",
            "title": "Mine",
            "description": "you are the author (false — shared with you as a workspace owner/admin)",
            "default": true
          },
          "unread": {
            "type": "boolean",
            "title": "Unread",
            "description": "support replied and the author has not opened the ticket since",
            "default": false
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          },
          "user_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Email"
          },
          "guest_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Email"
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Id"
          },
          "assignee_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Email"
          },
          "channel": {
            "type": "string",
            "title": "Channel",
            "default": "web"
          },
          "awaiting_since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Awaiting Since"
          },
          "first_response_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Response At"
          },
          "sla_due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sla Due At"
          },
          "sla_breached": {
            "type": "boolean",
            "title": "Sla Breached",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "number",
          "subject",
          "status",
          "category",
          "priority",
          "workspace_id",
          "shared",
          "created_at",
          "updated_at"
        ],
        "title": "AdminTicketOut"
      },
      "AdminUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "is_superadmin": {
            "type": "boolean",
            "title": "Is Superadmin"
          },
          "support_agent": {
            "type": "boolean",
            "title": "Support Agent",
            "default": false
          },
          "mfa_enabled": {
            "type": "boolean",
            "title": "Mfa Enabled"
          },
          "email_verified": {
            "type": "boolean",
            "title": "Email Verified"
          },
          "locale": {
            "type": "string",
            "title": "Locale"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          },
          "workspaces": {
            "type": "integer",
            "title": "Workspaces"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "display_name",
          "status",
          "is_superadmin",
          "mfa_enabled",
          "email_verified",
          "locale",
          "created_at",
          "last_seen_at",
          "workspaces"
        ],
        "title": "AdminUserOut"
      },
      "AdminWebhookOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "event_id": {
            "type": "string",
            "title": "Event Id"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "payment_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payment Ref"
          },
          "payload": {
            "additionalProperties": true,
            "type": "object",
            "title": "Payload"
          },
          "received_at": {
            "type": "string",
            "format": "date-time",
            "title": "Received At"
          },
          "processed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Processed At"
          },
          "result": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          }
        },
        "type": "object",
        "required": [
          "id",
          "provider",
          "event_id",
          "type",
          "payment_ref",
          "payload",
          "received_at",
          "processed_at",
          "result"
        ],
        "title": "AdminWebhookOut"
      },
      "AdminWorkspaceOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "owner": {
            "$ref": "#/components/schemas/OwnerRef"
          },
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "period": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period"
          },
          "trial_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends At"
          },
          "current_period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period End"
          },
          "members": {
            "type": "integer",
            "title": "Members"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "owner",
          "plan_code",
          "status",
          "period",
          "trial_ends_at",
          "current_period_end",
          "members",
          "created_at"
        ],
        "title": "AdminWorkspaceOut"
      },
      "AgentEventIn": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "profile.started",
              "profile.stopped",
              "profile.crashed",
              "human.needed",
              "human.done",
              "proxy.down",
              "sync.failed",
              "reservation.expired"
            ],
            "title": "Type"
          },
          "profile_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Id"
          },
          "data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Data"
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "AgentEventIn"
      },
      "AgentEventsIn": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/AgentEventIn"
            },
            "type": "array",
            "maxItems": 50,
            "minItems": 1,
            "title": "Events"
          }
        },
        "type": "object",
        "required": [
          "events"
        ],
        "title": "AgentEventsIn"
      },
      "AgentLoginIn": {
        "properties": {
          "public_key": {
            "type": "string",
            "maxLength": 64,
            "title": "Public Key"
          },
          "challenge": {
            "type": "string",
            "maxLength": 200,
            "title": "Challenge"
          },
          "signature": {
            "type": "string",
            "maxLength": 200,
            "title": "Signature"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          }
        },
        "type": "object",
        "required": [
          "public_key",
          "challenge",
          "signature"
        ],
        "title": "AgentLoginIn"
      },
      "AgentLoginOut": {
        "properties": {
          "api_key": {
            "type": "string",
            "title": "Api Key"
          },
          "key_id": {
            "type": "string",
            "format": "uuid",
            "title": "Key Id"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "expires_at": {
            "type": "string",
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "api_key",
          "key_id",
          "workspace_id",
          "expires_at"
        ],
        "title": "AgentLoginOut"
      },
      "AgentSignupIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "pow": {
            "$ref": "#/components/schemas/PowIn"
          },
          "accept_terms": {
            "type": "boolean",
            "title": "Accept Terms",
            "default": false
          },
          "public_key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Key"
          },
          "locale": {
            "type": "string",
            "enum": [
              "ru",
              "en"
            ],
            "title": "Locale",
            "default": "en"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "ref": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Ref"
          }
        },
        "type": "object",
        "required": [
          "name",
          "pow"
        ],
        "title": "AgentSignupIn"
      },
      "AgentSignupOut": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "api_key": {
            "type": "string",
            "title": "Api Key"
          },
          "key_id": {
            "type": "string",
            "format": "uuid",
            "title": "Key Id"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes"
          },
          "plan": {
            "type": "string",
            "title": "Plan"
          },
          "limits": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Limits"
          },
          "sandbox_until": {
            "type": "string",
            "title": "Sandbox Until"
          },
          "claim_url": {
            "type": "string",
            "title": "Claim Url"
          },
          "claim_code": {
            "type": "string",
            "title": "Claim Code"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "workspace_id",
          "api_key",
          "key_id",
          "scopes",
          "plan",
          "limits",
          "sandbox_until",
          "claim_url",
          "claim_code"
        ],
        "title": "AgentSignupOut"
      },
      "AnnouncementOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "level": {
            "type": "string",
            "title": "Level"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Link"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "title_i18n": {
            "additionalProperties": true,
            "type": "object",
            "title": "Title I18N"
          },
          "body_i18n": {
            "additionalProperties": true,
            "type": "object",
            "title": "Body I18N"
          },
          "plan_codes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Codes"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "level",
          "kind",
          "link",
          "version",
          "title_i18n",
          "body_i18n",
          "plan_codes",
          "starts_at",
          "ends_at",
          "active",
          "created_at"
        ],
        "title": "AnnouncementOut"
      },
      "ApiKeyIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          },
          "expires_in_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 525600.0,
                "minimum": 5.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Minutes"
          },
          "spend_limit_day_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Day Micro"
          },
          "spend_limit_month_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Month Micro"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ApiKeyIn"
      },
      "ApiKeyOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "prefix": {
            "type": "string",
            "title": "Prefix"
          },
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "spend_limit_day_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Day Micro"
          },
          "spend_limit_month_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Month Micro"
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "prefix",
          "user_id",
          "created_at",
          "last_used_at"
        ],
        "title": "ApiKeyOut"
      },
      "ApiKeyPatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "all_permissions": {
            "type": "boolean",
            "title": "All Permissions",
            "default": false
          },
          "spend_limit_day_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Day Micro"
          },
          "spend_limit_month_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Month Micro"
          }
        },
        "type": "object",
        "title": "ApiKeyPatch"
      },
      "ApiKeyRotateIn": {
        "properties": {
          "overlap_minutes": {
            "type": "integer",
            "maximum": 1440.0,
            "minimum": 0.0,
            "title": "Overlap Minutes",
            "default": 10
          }
        },
        "type": "object",
        "title": "ApiKeyRotateIn"
      },
      "ApiKeySelfOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "prefix": {
            "type": "string",
            "title": "Prefix"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "workspace_name": {
            "type": "string",
            "title": "Workspace Name"
          },
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "rate_limit_rpm": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rate Limit Rpm"
          },
          "spend": {
            "$ref": "#/components/schemas/KeySpendOut"
          },
          "sandbox_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sandbox Until"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "prefix",
          "workspace_id",
          "workspace_name",
          "user_id",
          "scopes",
          "permissions",
          "expires_at",
          "parent_id",
          "plan_code",
          "rate_limit_rpm",
          "spend"
        ],
        "title": "ApiKeySelfOut",
        "description": "What this key is — for a program that has nothing but the key."
      },
      "AppBrowserStartIn": {
        "properties": {
          "accept_terms": {
            "type": "boolean",
            "title": "Accept Terms",
            "default": false
          },
          "locale": {
            "type": "string",
            "enum": [
              "ru",
              "en"
            ],
            "title": "Locale",
            "default": "en"
          }
        },
        "type": "object",
        "title": "AppBrowserStartIn"
      },
      "AppDeviceOut": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "os": {
            "type": "string",
            "title": "Os"
          },
          "app_version": {
            "type": "string",
            "title": "App Version"
          }
        },
        "type": "object",
        "required": [
          "name",
          "os",
          "app_version"
        ],
        "title": "AppDeviceOut"
      },
      "AppDoneOut": {
        "properties": {
          "status": {
            "type": "string",
            "const": "done",
            "title": "Status",
            "default": "done"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "next_step": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "mfa",
                  "deletion_pending"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Step"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "AppDoneOut"
      },
      "AppInfoOut": {
        "properties": {
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "user_code": {
            "type": "string",
            "title": "User Code"
          },
          "device": {
            "$ref": "#/components/schemas/AppDeviceOut"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "done",
              "denied"
            ],
            "title": "Status"
          },
          "same_network": {
            "type": "boolean",
            "title": "Same Network"
          }
        },
        "type": "object",
        "required": [
          "provider",
          "user_code",
          "device",
          "status",
          "same_network"
        ],
        "title": "AppInfoOut"
      },
      "AppPending": {
        "properties": {
          "status": {
            "type": "string",
            "const": "pending",
            "title": "Status",
            "default": "pending"
          },
          "interval": {
            "type": "integer",
            "title": "Interval",
            "default": 2
          }
        },
        "type": "object",
        "title": "AppPending"
      },
      "AppStartIn": {
        "properties": {
          "provider": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Provider"
          },
          "device": {
            "$ref": "#/components/schemas/DeviceIn"
          }
        },
        "type": "object",
        "required": [
          "provider",
          "device"
        ],
        "title": "AppStartIn"
      },
      "AppStartOut": {
        "properties": {
          "request_id": {
            "type": "string",
            "title": "Request Id"
          },
          "user_code": {
            "type": "string",
            "title": "User Code"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          },
          "interval": {
            "type": "integer",
            "title": "Interval"
          }
        },
        "type": "object",
        "required": [
          "request_id",
          "user_code",
          "expires_in",
          "interval"
        ],
        "title": "AppStartOut"
      },
      "AttachedOut": {
        "properties": {
          "profile_id": {
            "type": "string",
            "format": "uuid",
            "title": "Profile Id"
          },
          "proxy_id": {
            "type": "string",
            "format": "uuid",
            "title": "Proxy Id"
          }
        },
        "type": "object",
        "required": [
          "profile_id",
          "proxy_id"
        ],
        "title": "AttachedOut"
      },
      "AttachmentOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "filename",
          "content_type",
          "size",
          "created_at"
        ],
        "title": "AttachmentOut"
      },
      "AuditActor": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "deleted": {
            "type": "boolean",
            "title": "Deleted",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "email"
        ],
        "title": "AuditActor"
      },
      "AuditDevice": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kind"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "kind"
        ],
        "title": "AuditDevice"
      },
      "AuditOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "ts": {
            "type": "string",
            "format": "date-time",
            "title": "Ts"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActor"
              },
              {
                "type": "null"
              }
            ]
          },
          "impersonator": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActor"
              },
              {
                "type": "null"
              }
            ]
          },
          "device": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditDevice"
              },
              {
                "type": "null"
              }
            ]
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          },
          "via": {
            "type": "string",
            "title": "Via"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditTarget"
              },
              {
                "type": "null"
              }
            ]
          },
          "details": {
            "additionalProperties": true,
            "type": "object",
            "title": "Details"
          }
        },
        "type": "object",
        "required": [
          "id",
          "ts",
          "actor",
          "impersonator",
          "device",
          "ip",
          "via",
          "action",
          "target",
          "details"
        ],
        "title": "AuditOut"
      },
      "AuditTarget": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "type",
          "id",
          "name"
        ],
        "title": "AuditTarget"
      },
      "AuthorizeIn": {
        "properties": {
          "client_id": {
            "type": "string",
            "maxLength": 2048,
            "title": "Client Id"
          },
          "redirect_uri": {
            "type": "string",
            "maxLength": 2048,
            "title": "Redirect Uri"
          },
          "response_type": {
            "type": "string",
            "title": "Response Type",
            "default": "code"
          },
          "code_challenge": {
            "type": "string",
            "maxLength": 128,
            "title": "Code Challenge",
            "default": ""
          },
          "code_challenge_method": {
            "type": "string",
            "title": "Code Challenge Method",
            "default": "S256"
          },
          "scope": {
            "type": "string",
            "maxLength": 2000,
            "title": "Scope",
            "default": ""
          },
          "state": {
            "type": "string",
            "maxLength": 500,
            "title": "State",
            "default": ""
          },
          "resource": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource"
          },
          "decision": {
            "type": "string",
            "pattern": "^(approve|deny)$",
            "title": "Decision"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          },
          "spend_limit_day_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Day Micro"
          },
          "spend_limit_month_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Month Micro"
          }
        },
        "type": "object",
        "required": [
          "client_id",
          "redirect_uri",
          "decision"
        ],
        "title": "AuthorizeIn"
      },
      "AuthorizeInfo": {
        "properties": {
          "client_id": {
            "type": "string",
            "title": "Client Id"
          },
          "client_name": {
            "type": "string",
            "title": "Client Name"
          },
          "redirect_uri": {
            "type": "string",
            "title": "Redirect Uri"
          },
          "redirect_host": {
            "type": "string",
            "title": "Redirect Host"
          },
          "requested_scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested Scopes"
          },
          "resource": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource"
          },
          "verified_client": {
            "type": "boolean",
            "title": "Verified Client"
          }
        },
        "type": "object",
        "required": [
          "client_id",
          "client_name",
          "redirect_uri",
          "redirect_host",
          "requested_scopes",
          "resource",
          "verified_client"
        ],
        "title": "AuthorizeInfo"
      },
      "BalanceOpOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "topup",
              "plan",
              "proxy",
              "refund",
              "adjust",
              "bonus",
              "other"
            ],
            "title": "Kind"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "status": {
            "type": "string",
            "enum": [
              "done",
              "pending",
              "failed",
              "canceled"
            ],
            "title": "Status",
            "default": "done"
          },
          "amount_micro": {
            "type": "integer",
            "title": "Amount Micro"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "default": "USD"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          },
          "details": {
            "additionalProperties": true,
            "type": "object",
            "title": "Details",
            "default": {}
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "reason",
          "amount_micro",
          "amount_minor",
          "created_at"
        ],
        "title": "BalanceOpOut",
        "description": "Balance operation: a ledger entry or an unfinished top-up (status pending/failed/canceled — not credited yet). Amounts: + credit, − charge."
      },
      "BatchCreate": {
        "properties": {
          "count": {
            "type": "integer",
            "maximum": 1000.0,
            "minimum": 1.0,
            "title": "Count"
          },
          "template": {
            "$ref": "#/components/schemas/ProfileCreate"
          },
          "name_pattern": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Name Pattern",
            "default": "Profile {n}"
          },
          "proxies": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BatchProxies"
              },
              {
                "type": "null"
              }
            ]
          },
          "template_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Id"
          },
          "proxy_lines": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000000
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy Lines"
          },
          "proxy_lines_mode": {
            "type": "string",
            "enum": [
              "round_robin",
              "one_each"
            ],
            "title": "Proxy Lines Mode",
            "default": "one_each"
          },
          "ephemeral": {
            "type": "boolean",
            "title": "Ephemeral",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "count"
        ],
        "title": "BatchCreate"
      },
      "BatchProxies": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 10000,
            "minItems": 1,
            "title": "Ids"
          },
          "mode": {
            "type": "string",
            "enum": [
              "round_robin",
              "one_each"
            ],
            "title": "Mode",
            "default": "round_robin"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ids"
        ],
        "title": "BatchProxies"
      },
      "BillingOut": {
        "properties": {
          "subscription": {
            "$ref": "#/components/schemas/SubscriptionOut"
          },
          "providers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Providers"
          },
          "methods": {
            "items": {
              "$ref": "#/components/schemas/PayMethodOut"
            },
            "type": "array",
            "title": "Methods",
            "default": []
          },
          "next_charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NextCharge"
              },
              {
                "type": "null"
              }
            ]
          },
          "pending_payment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Payment Id"
          },
          "balance_micro": {
            "type": "integer",
            "title": "Balance Micro",
            "default": 0
          },
          "balance_minor": {
            "type": "integer",
            "title": "Balance Minor",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "subscription",
          "providers",
          "next_charge",
          "pending_payment_id"
        ],
        "title": "BillingOut"
      },
      "BillingQuoteOut": {
        "properties": {
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "period": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "title": "Period"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "subtotal_minor": {
            "type": "integer",
            "title": "Subtotal Minor"
          },
          "discount_minor": {
            "type": "integer",
            "title": "Discount Minor"
          },
          "total_minor": {
            "type": "integer",
            "title": "Total Minor"
          },
          "running_slots": {
            "type": "integer",
            "title": "Running Slots",
            "default": 0
          },
          "slots_minor": {
            "type": "integer",
            "title": "Slots Minor",
            "default": 0
          },
          "total_micro": {
            "type": "integer",
            "title": "Total Micro"
          },
          "mode": {
            "type": "string",
            "enum": [
              "new",
              "renew",
              "change"
            ],
            "title": "Mode",
            "default": "new"
          },
          "period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Start"
          },
          "period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period End"
          },
          "credit_minor": {
            "type": "integer",
            "title": "Credit Minor",
            "default": 0
          },
          "balance_minor": {
            "type": "integer",
            "title": "Balance Minor",
            "default": 0
          },
          "shortfall_minor": {
            "type": "integer",
            "title": "Shortfall Minor",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "plan_code",
          "period",
          "currency",
          "subtotal_minor",
          "discount_minor",
          "total_minor",
          "total_micro"
        ],
        "title": "BillingQuoteOut",
        "description": "Price before buying and what happens after payment (renew, change or new; balance shortfall)."
      },
      "Body_import_profile_v1_workspaces__ws_id__profiles_import_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_import_profile_v1_workspaces__ws_id__profiles_import_post"
      },
      "Body_upload_support_file_v1_support_attachments_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_support_file_v1_support_attachments_post"
      },
      "Body_upload_v1_workspaces__ws_id__extensions_upload_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_v1_workspaces__ws_id__extensions_upload_post"
      },
      "Body_upload_version_v1_workspaces__ws_id__extensions__ext_id__versions_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_version_v1_workspaces__ws_id__extensions__ext_id__versions_post"
      },
      "Bookmark": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 256,
            "title": "Title"
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 1,
            "title": "Url"
          },
          "folder": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "url"
        ],
        "title": "Bookmark"
      },
      "BulkIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 10000,
            "minItems": 1,
            "title": "Ids"
          },
          "op": {
            "type": "string",
            "enum": [
              "update",
              "delete",
              "restore",
              "purge",
              "assign_proxies",
              "force_release",
              "rename"
            ],
            "title": "Op"
          },
          "params": {
            "additionalProperties": true,
            "type": "object",
            "title": "Params"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ids",
          "op"
        ],
        "title": "BulkIn"
      },
      "BulkOut": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/BulkResult"
            },
            "type": "array",
            "title": "Results"
          }
        },
        "type": "object",
        "required": [
          "results"
        ],
        "title": "BulkOut"
      },
      "BulkResult": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "error": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "id",
          "ok"
        ],
        "title": "BulkResult"
      },
      "BuyAttachIn": {
        "properties": {
          "product_code": {
            "type": "string",
            "maxLength": 32,
            "title": "Product Code"
          },
          "count": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 1
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "asn": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Asn"
          },
          "isp": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Isp"
          },
          "mode": {
            "type": "string",
            "enum": [
              "sticky",
              "rotating",
              "hard"
            ],
            "title": "Mode",
            "default": "sticky"
          },
          "lifetime": {
            "type": "string",
            "title": "Lifetime",
            "default": "30m"
          },
          "period_days": {
            "type": "integer",
            "title": "Period Days",
            "default": 30
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "pool_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pool Id"
          },
          "offer_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 48
              },
              {
                "type": "null"
              }
            ],
            "title": "Offer Code"
          },
          "auto_renew": {
            "type": "boolean",
            "title": "Auto Renew",
            "default": true
          },
          "pool_offer_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 48
              },
              {
                "type": "null"
              }
            ],
            "title": "Pool Offer Code"
          },
          "protocol": {
            "type": "string",
            "enum": [
              "http",
              "socks5"
            ],
            "title": "Protocol",
            "default": "http"
          },
          "profile_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Profile Ids"
          },
          "attach": {
            "type": "string",
            "enum": [
              "one_each",
              "same"
            ],
            "title": "Attach",
            "default": "one_each"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "product_code",
          "profile_ids"
        ],
        "title": "BuyAttachIn",
        "description": "Buy and attach to profiles: `one_each` — a proxy per profile (`count` = number of profiles, rotating ones get separate sessions); `same` — one proxy for all profiles (`count` = 1)."
      },
      "BuyAttachOut": {
        "properties": {
          "proxies": {
            "items": {
              "$ref": "#/components/schemas/ManagedOut"
            },
            "type": "array",
            "title": "Proxies"
          },
          "attached": {
            "items": {
              "$ref": "#/components/schemas/AttachedOut"
            },
            "type": "array",
            "title": "Attached"
          },
          "order_pending": {
            "type": "boolean",
            "title": "Order Pending",
            "default": false
          },
          "order_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Order Id"
          }
        },
        "type": "object",
        "required": [
          "proxies",
          "attached"
        ],
        "title": "BuyAttachOut"
      },
      "BuyIn": {
        "properties": {
          "product_code": {
            "type": "string",
            "maxLength": 32,
            "title": "Product Code"
          },
          "count": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 1
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "asn": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Asn"
          },
          "isp": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Isp"
          },
          "mode": {
            "type": "string",
            "enum": [
              "sticky",
              "rotating",
              "hard"
            ],
            "title": "Mode",
            "default": "sticky"
          },
          "lifetime": {
            "type": "string",
            "title": "Lifetime",
            "default": "30m"
          },
          "period_days": {
            "type": "integer",
            "title": "Period Days",
            "default": 30
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "pool_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pool Id"
          },
          "offer_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 48
              },
              {
                "type": "null"
              }
            ],
            "title": "Offer Code"
          },
          "auto_renew": {
            "type": "boolean",
            "title": "Auto Renew",
            "default": true
          },
          "pool_offer_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 48
              },
              {
                "type": "null"
              }
            ],
            "title": "Pool Offer Code"
          },
          "protocol": {
            "type": "string",
            "enum": [
              "http",
              "socks5"
            ],
            "title": "Protocol",
            "default": "http"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "product_code"
        ],
        "title": "BuyIn"
      },
      "CallbackIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 1,
            "title": "Code"
          },
          "state": {
            "type": "string",
            "maxLength": 128,
            "minLength": 16,
            "title": "State"
          },
          "install_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 8
              },
              {
                "type": "null"
              }
            ],
            "title": "Install Id"
          }
        },
        "type": "object",
        "required": [
          "code",
          "state"
        ],
        "title": "CallbackIn"
      },
      "CaptchaInfo": {
        "properties": {
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "site_key": {
            "type": "string",
            "title": "Site Key"
          }
        },
        "type": "object",
        "required": [
          "provider",
          "site_key"
        ],
        "title": "CaptchaInfo"
      },
      "ChallengeIn": {
        "properties": {
          "challenge_token": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Challenge Token"
          },
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32,
                "minLength": 6
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "action": {
            "anyOf": [
              {
                "type": "string",
                "const": "cancel_deletion"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action"
          }
        },
        "type": "object",
        "required": [
          "challenge_token"
        ],
        "title": "ChallengeIn"
      },
      "ChallengeOut": {
        "properties": {
          "challenge": {
            "type": "string",
            "title": "Challenge"
          },
          "difficulty": {
            "type": "integer",
            "title": "Difficulty"
          },
          "algorithm": {
            "type": "string",
            "const": "sha256-leading-zero-bits",
            "title": "Algorithm",
            "default": "sha256-leading-zero-bits"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          },
          "hint": {
            "type": "string",
            "title": "Hint"
          }
        },
        "type": "object",
        "required": [
          "challenge",
          "difficulty",
          "expires_in",
          "hint"
        ],
        "title": "ChallengeOut"
      },
      "ChangeIpOut": {
        "properties": {
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "status_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Code"
          }
        },
        "type": "object",
        "required": [
          "ok",
          "status_code"
        ],
        "title": "ChangeIpOut"
      },
      "CheckoutIn": {
        "properties": {
          "plan_code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Plan Code"
          },
          "period": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "title": "Period"
          },
          "promo_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Promo Code"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "use_balance": {
            "type": "boolean",
            "title": "Use Balance",
            "default": true,
            "deprecated": true
          },
          "pay_currency": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-z0-9]{2,20}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pay Currency"
          },
          "method": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "sbp",
                  "card"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Method"
          },
          "running_slots": {
            "type": "integer",
            "maximum": 1000.0,
            "minimum": 0.0,
            "title": "Running Slots",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "plan_code",
          "period"
        ],
        "title": "CheckoutIn"
      },
      "CheckoutOut": {
        "properties": {
          "payment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Payment Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "redirect_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect Url"
          },
          "payment_link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payment Link"
          },
          "direct": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DirectPayOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "balance_minor": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Balance Minor"
          }
        },
        "type": "object",
        "required": [
          "payment_id",
          "status",
          "redirect_url"
        ],
        "title": "CheckoutOut"
      },
      "ClaimInfo": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "workspace_name": {
            "type": "string",
            "title": "Workspace Name"
          },
          "agent_name": {
            "type": "string",
            "title": "Agent Name"
          },
          "sandbox_until": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sandbox Until"
          },
          "profiles": {
            "type": "integer",
            "title": "Profiles"
          }
        },
        "type": "object",
        "required": [
          "workspace_id",
          "workspace_name",
          "agent_name",
          "sandbox_until",
          "profiles"
        ],
        "title": "ClaimInfo"
      },
      "ClaimLinkOut": {
        "properties": {
          "claim_url": {
            "type": "string",
            "title": "Claim Url"
          },
          "claim_code": {
            "type": "string",
            "title": "Claim Code"
          },
          "sandbox_until": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sandbox Until"
          }
        },
        "type": "object",
        "required": [
          "claim_url",
          "claim_code",
          "sandbox_until"
        ],
        "title": "ClaimLinkOut"
      },
      "ClientEvent": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 48,
            "minLength": 3,
            "pattern": "^[a-z][a-z0-9_.]*$",
            "title": "Name"
          },
          "props": {
            "additionalProperties": true,
            "type": "object",
            "maxProperties": 10,
            "title": "Props"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ClientEvent"
      },
      "CookiesIn": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 5242880,
            "minLength": 1,
            "title": "Text"
          },
          "replace": {
            "type": "boolean",
            "title": "Replace",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "CookiesIn"
      },
      "CookiesOut": {
        "properties": {
          "imported": {
            "type": "integer",
            "title": "Imported"
          },
          "pending": {
            "type": "integer",
            "title": "Pending"
          }
        },
        "type": "object",
        "required": [
          "imported",
          "pending"
        ],
        "title": "CookiesOut"
      },
      "CryptoChainOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "network": {
            "type": "string",
            "title": "Network"
          },
          "confirmations": {
            "type": "integer",
            "title": "Confirmations"
          },
          "tokens": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tokens"
          },
          "explorer": {
            "type": "string",
            "title": "Explorer"
          },
          "head": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Head"
          },
          "scanned": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scanned"
          },
          "lag": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lag"
          },
          "rpc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rpc"
          },
          "last_ok_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Ok At"
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "network",
          "confirmations",
          "tokens",
          "explorer",
          "head",
          "scanned",
          "lag",
          "rpc",
          "last_ok_at",
          "last_error"
        ],
        "title": "CryptoChainOut"
      },
      "CryptoDepositOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "payment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payment Id"
          },
          "chain": {
            "type": "string",
            "title": "Chain"
          },
          "tx_hash": {
            "type": "string",
            "title": "Tx Hash"
          },
          "tx_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tx Url"
          },
          "log_index": {
            "type": "integer",
            "title": "Log Index"
          },
          "block": {
            "type": "integer",
            "title": "Block"
          },
          "token": {
            "type": "string",
            "title": "Token"
          },
          "address": {
            "type": "string",
            "title": "Address"
          },
          "from_addr": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "From Addr"
          },
          "amount_usd": {
            "type": "string",
            "title": "Amount Usd"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "detected_at": {
            "type": "string",
            "format": "date-time",
            "title": "Detected At"
          },
          "confirmed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed At"
          },
          "credited_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Credited At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "payment_id",
          "chain",
          "tx_hash",
          "tx_url",
          "log_index",
          "block",
          "token",
          "address",
          "from_addr",
          "amount_usd",
          "status",
          "note",
          "detected_at",
          "confirmed_at",
          "credited_at"
        ],
        "title": "CryptoDepositOut"
      },
      "CryptoInvoiceOut": {
        "properties": {
          "payment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Payment Id"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "workspace_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "paid_minor": {
            "type": "integer",
            "title": "Paid Minor"
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address"
          },
          "index": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Index"
          },
          "pay_currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pay Currency"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "deposits": {
            "items": {
              "$ref": "#/components/schemas/CryptoDepositOut"
            },
            "type": "array",
            "title": "Deposits"
          }
        },
        "type": "object",
        "required": [
          "payment_id",
          "workspace_id",
          "workspace_name",
          "kind",
          "status",
          "failure_code",
          "amount_minor",
          "paid_minor",
          "address",
          "index",
          "pay_currency",
          "state",
          "expires_at",
          "created_at",
          "deposits"
        ],
        "title": "CryptoInvoiceOut"
      },
      "CustomerCard": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/CustomerUser"
          },
          "workspace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerWorkspace"
              },
              {
                "type": "null"
              }
            ]
          },
          "devices": {
            "items": {
              "$ref": "#/components/schemas/CustomerDevice"
            },
            "type": "array",
            "title": "Devices"
          },
          "payments": {
            "items": {
              "$ref": "#/components/schemas/CustomerPayment"
            },
            "type": "array",
            "title": "Payments"
          }
        },
        "type": "object",
        "required": [
          "user",
          "workspace",
          "devices",
          "payments"
        ],
        "title": "CustomerCard"
      },
      "CustomerDevice": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "os": {
            "type": "string",
            "title": "Os"
          },
          "app_version": {
            "type": "string",
            "title": "App Version"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "os",
          "app_version",
          "last_seen_at"
        ],
        "title": "CustomerDevice"
      },
      "CustomerPayment": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "provider",
          "status",
          "currency",
          "amount_minor",
          "created_at"
        ],
        "title": "CustomerPayment"
      },
      "CustomerUser": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Locale"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          },
          "mfa_enabled": {
            "type": "boolean",
            "title": "Mfa Enabled"
          },
          "tickets_total": {
            "type": "integer",
            "title": "Tickets Total"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "display_name",
          "status",
          "locale",
          "created_at",
          "last_seen_at",
          "mfa_enabled",
          "tickets_total"
        ],
        "title": "CustomerUser"
      },
      "CustomerWorkspace": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "owner_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Email"
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role"
          },
          "plan_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Code"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "current_period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period End"
          },
          "members": {
            "type": "integer",
            "title": "Members"
          },
          "balance_minor": {
            "type": "integer",
            "title": "Balance Minor"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "owner_email",
          "role",
          "plan_code",
          "status",
          "current_period_end",
          "members",
          "balance_minor",
          "currency"
        ],
        "title": "CustomerWorkspace"
      },
      "DayCount": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "date",
          "count"
        ],
        "title": "DayCount"
      },
      "DeleteMeIn": {
        "properties": {
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Password"
          },
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32,
                "minLength": 6
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "password"
        ],
        "title": "DeleteMeIn"
      },
      "DeliveryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "event_type": {
            "type": "string",
            "title": "Event Type"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts"
          },
          "response_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Response Status"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "duration_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Ms"
          },
          "next_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Attempt At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "delivered_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delivered At"
          },
          "payload": {
            "additionalProperties": true,
            "type": "object",
            "title": "Payload"
          }
        },
        "type": "object",
        "required": [
          "id",
          "event_type",
          "status",
          "attempts",
          "response_status",
          "error",
          "duration_ms",
          "next_attempt_at",
          "created_at",
          "delivered_at",
          "payload"
        ],
        "title": "DeliveryOut"
      },
      "DeviceApproveIn": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "expires_in_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 525600.0,
                "minimum": 5.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Minutes"
          },
          "spend_limit_day_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Day Micro"
          },
          "spend_limit_month_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Month Micro"
          }
        },
        "type": "object",
        "required": [
          "workspace_id"
        ],
        "title": "DeviceApproveIn"
      },
      "DeviceIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "enum": [
              "desktop",
              "web",
              "api"
            ],
            "title": "Kind"
          },
          "install_id": {
            "type": "string",
            "maxLength": 128,
            "minLength": 8,
            "title": "Install Id"
          },
          "os": {
            "type": "string",
            "maxLength": 128,
            "title": "Os",
            "default": ""
          },
          "app_version": {
            "type": "string",
            "maxLength": 32,
            "title": "App Version",
            "default": ""
          },
          "public_key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 44,
                "minLength": 43
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Key"
          }
        },
        "type": "object",
        "required": [
          "name",
          "kind",
          "install_id"
        ],
        "title": "DeviceIn"
      },
      "DeviceOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "os": {
            "type": "string",
            "title": "Os"
          },
          "app_version": {
            "type": "string",
            "title": "App Version"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen At"
          },
          "last_ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Ip"
          },
          "current": {
            "type": "boolean",
            "title": "Current",
            "default": false
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "os",
          "app_version",
          "created_at",
          "last_seen_at",
          "last_ip",
          "revoked_at"
        ],
        "title": "DeviceOut"
      },
      "DeviceRequestOut": {
        "properties": {
          "user_code": {
            "type": "string",
            "title": "User Code"
          },
          "client_name": {
            "type": "string",
            "title": "Client Name"
          },
          "requested_scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested Scopes"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "denied",
              "issued",
              "expired"
            ],
            "title": "Status"
          },
          "expires_at": {
            "type": "string",
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "user_code",
          "client_name",
          "requested_scopes",
          "status",
          "expires_at"
        ],
        "title": "DeviceRequestOut"
      },
      "DiagEventIn": {
        "properties": {
          "type": {
            "type": "string",
            "maxLength": 48,
            "title": "Type",
            "description": "e.g. `session.started`, `session.crashed`, `session.hung`"
          },
          "level": {
            "type": "string",
            "enum": [
              "info",
              "warn",
              "error"
            ],
            "title": "Level",
            "default": "info"
          },
          "ts": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ts",
            "description": "time on the computer; clamped to a sane range"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^[A-Za-z0-9_.:-]{1,40}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id",
            "description": "one launch of a profile"
          },
          "profile_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Id"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Data",
            "description": "details without secrets (≤ 4 KB)"
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "DiagEventIn",
        "description": "One event of the desktop app: profile session start/stop, crash, hang, proxy or extension error."
      },
      "DiagEventOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "ts": {
            "type": "string",
            "format": "date-time",
            "title": "Ts"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "level": {
            "type": "string",
            "title": "Level"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "profile_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Id"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Data"
          }
        },
        "type": "object",
        "required": [
          "id",
          "ts",
          "type",
          "level",
          "session_id",
          "profile_id",
          "workspace_id",
          "data"
        ],
        "title": "DiagEventOut"
      },
      "DiagEventsAccepted": {
        "properties": {
          "accepted": {
            "type": "integer",
            "title": "Accepted"
          }
        },
        "type": "object",
        "required": [
          "accepted"
        ],
        "title": "DiagEventsAccepted"
      },
      "DiagEventsIn": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/DiagEventIn"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Events"
          }
        },
        "type": "object",
        "required": [
          "events"
        ],
        "title": "DiagEventsIn"
      },
      "DiagReportIn": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "manual",
              "crash"
            ],
            "title": "Kind",
            "default": "manual"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "date_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date From"
          },
          "date_to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date To"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^[A-Za-z0-9_.:-]{1,40}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "profile_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Id"
          },
          "comment": {
            "type": "string",
            "maxLength": 2000,
            "title": "Comment",
            "default": ""
          }
        },
        "type": "object",
        "title": "DiagReportIn",
        "description": "What to send to support. Nothing selected — all events (the last 30 days)."
      },
      "DiagReportOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "profile_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Id"
          },
          "date_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date From"
          },
          "date_to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date To"
          },
          "summary": {
            "type": "string",
            "title": "Summary"
          },
          "comment": {
            "type": "string",
            "title": "Comment"
          }
        },
        "type": "object",
        "required": [
          "id",
          "code",
          "kind",
          "source",
          "created_at",
          "size",
          "workspace_id",
          "session_id",
          "profile_id",
          "date_from",
          "date_to",
          "summary",
          "comment"
        ],
        "title": "DiagReportOut",
        "description": "A logs package sent to support. `code` (GX-XXXX-XXXX) is what the user tells support."
      },
      "DirectPayOut": {
        "properties": {
          "pay_address": {
            "type": "string",
            "title": "Pay Address"
          },
          "pay_amount": {
            "type": "string",
            "title": "Pay Amount"
          },
          "pay_currency": {
            "type": "string",
            "title": "Pay Currency"
          },
          "network": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Network"
          },
          "memo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Memo"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "state": {
            "type": "string",
            "title": "State",
            "default": "waiting"
          },
          "actually_paid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actually Paid"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token"
          },
          "chain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chain"
          },
          "accepts": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accepts"
          },
          "exact_amount": {
            "type": "boolean",
            "title": "Exact Amount",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "pay_address",
          "pay_amount",
          "pay_currency"
        ],
        "title": "DirectPayOut",
        "description": "Where and how much to send (amounts are strings in the coin, not rounded)."
      },
      "EmailChangeIn": {
        "properties": {
          "new_email": {
            "type": "string",
            "title": "New Email"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "new_email",
          "password"
        ],
        "title": "EmailChangeIn"
      },
      "ErrorActionOut": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "api": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "retry_after": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retry After"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "api",
          "url",
          "retry_after"
        ],
        "title": "ErrorActionOut"
      },
      "ErrorCatalogOut": {
        "properties": {
          "lang": {
            "type": "string",
            "enum": [
              "ru",
              "en"
            ],
            "title": "Lang"
          },
          "formats": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Formats"
          },
          "action_kinds": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Action Kinds"
          },
          "errors": {
            "items": {
              "$ref": "#/components/schemas/ErrorInfo"
            },
            "type": "array",
            "title": "Errors"
          }
        },
        "type": "object",
        "required": [
          "lang",
          "formats",
          "action_kinds",
          "errors"
        ],
        "title": "ErrorCatalogOut"
      },
      "ErrorInfo": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "status": {
            "type": "integer",
            "title": "Status"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ErrorActionOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "doc_url": {
            "type": "string",
            "title": "Doc Url"
          }
        },
        "type": "object",
        "required": [
          "code",
          "status",
          "message",
          "title",
          "action",
          "doc_url"
        ],
        "title": "ErrorInfo"
      },
      "EventStat": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "subjects": {
            "type": "integer",
            "title": "Subjects"
          },
          "by_day": {
            "items": {
              "$ref": "#/components/schemas/DayCount"
            },
            "type": "array",
            "title": "By Day"
          }
        },
        "type": "object",
        "required": [
          "name",
          "total",
          "subjects",
          "by_day"
        ],
        "title": "EventStat"
      },
      "EventTypeOut": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "available": {
            "type": "boolean",
            "title": "Available"
          }
        },
        "type": "object",
        "required": [
          "type",
          "description",
          "available"
        ],
        "title": "EventTypeOut"
      },
      "ExtensionDetail": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "webstore_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webstore Id"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "version_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Id"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          },
          "manifest_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Manifest Version"
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon Url"
          },
          "assign_all": {
            "type": "boolean",
            "title": "Assign All"
          },
          "folder_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Folder Ids"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          },
          "versions": {
            "items": {
              "$ref": "#/components/schemas/VersionOut"
            },
            "type": "array",
            "title": "Versions"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "source",
          "webstore_id",
          "version",
          "version_id",
          "sha256",
          "size",
          "description",
          "permissions",
          "manifest_version",
          "icon_url",
          "assign_all",
          "folder_ids",
          "created_at",
          "updated_at",
          "rev",
          "versions"
        ],
        "title": "ExtensionDetail"
      },
      "ExtensionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "webstore_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webstore Id"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "version_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Id"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          },
          "manifest_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Manifest Version"
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon Url"
          },
          "assign_all": {
            "type": "boolean",
            "title": "Assign All"
          },
          "folder_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Folder Ids"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "source",
          "webstore_id",
          "version",
          "version_id",
          "sha256",
          "size",
          "description",
          "permissions",
          "manifest_version",
          "icon_url",
          "assign_all",
          "folder_ids",
          "created_at",
          "updated_at",
          "rev"
        ],
        "title": "ExtensionOut"
      },
      "ExtensionPatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "assign_all": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assign All"
          },
          "folder_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Ids"
          },
          "version_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Id"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "type": "object",
        "title": "ExtensionPatch"
      },
      "FeaturesOut": {
        "properties": {
          "flags": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Flags"
          }
        },
        "type": "object",
        "required": [
          "flags"
        ],
        "title": "FeaturesOut"
      },
      "FieldIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "number",
              "date",
              "select",
              "multi_select",
              "checkbox",
              "url"
            ],
            "title": "Type"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/FieldOptionIn"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Options"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "title": "FieldIn",
        "description": "New field: name and type (plus options for select/multi_select)."
      },
      "FieldOption": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "type": "string",
            "title": "Color"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "color"
        ],
        "title": "FieldOption"
      },
      "FieldOptionIn": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "FieldOptionIn",
        "description": "A chip option of a select field: with id — an existing one (keep, rename, recolor); without id — a new one."
      },
      "FieldOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "number",
              "date",
              "select",
              "multi_select",
              "checkbox",
              "url"
            ],
            "title": "Type"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/FieldOption"
            },
            "type": "array",
            "title": "Options"
          },
          "sort": {
            "type": "integer",
            "title": "Sort"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "type",
          "sort",
          "rev"
        ],
        "title": "FieldOut"
      },
      "FieldPatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "type": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "text",
                  "number",
                  "date",
                  "select",
                  "multi_select",
                  "checkbox",
                  "url"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FieldOptionIn"
                },
                "type": "array",
                "maxItems": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "FieldPatch",
        "description": "options: the full list in order; options without id are created, missing ones are removed (their values are\ncleared on profiles). type changes only between select and multi_select."
      },
      "FieldReorderIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Ids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ids"
        ],
        "title": "FieldReorderIn"
      },
      "FileEntry": {
        "properties": {
          "path": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Path"
          },
          "size": {
            "type": "integer",
            "maximum": 1099511627776.0,
            "minimum": 0.0,
            "title": "Size"
          },
          "mtime": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mtime"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Sha256"
          },
          "chunks": {
            "items": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "type": "array",
            "maxItems": 200000,
            "title": "Chunks"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "path",
          "size",
          "sha256",
          "chunks"
        ],
        "title": "FileEntry"
      },
      "Fingerprint": {
        "properties": {
          "seed": {
            "type": "integer",
            "maximum": 2147483647.0,
            "minimum": 0.0,
            "title": "Seed"
          },
          "os_version": {
            "type": "string",
            "enum": [
              "10",
              "11"
            ],
            "title": "Os Version",
            "default": "11"
          },
          "brand": {
            "type": "string",
            "enum": [
              "Chrome",
              "Edge",
              "Opera",
              "Vivaldi"
            ],
            "title": "Brand",
            "default": "Chrome"
          },
          "brand_version": {
            "type": "string",
            "maxLength": 32,
            "pattern": "^(\\d+(\\.\\d+){0,3})?$",
            "title": "Brand Version",
            "default": ""
          },
          "hardware_concurrency": {
            "type": "integer",
            "enum": [
              2,
              4,
              6,
              8,
              12,
              16
            ],
            "title": "Hardware Concurrency",
            "default": 8
          },
          "noise": {
            "$ref": "#/components/schemas/Noise"
          },
          "timezone": {
            "$ref": "#/components/schemas/TimezoneSetting"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageSetting"
          },
          "geolocation": {
            "$ref": "#/components/schemas/GeolocationSetting"
          },
          "screen": {
            "type": "string",
            "const": "host",
            "title": "Screen",
            "default": "host"
          },
          "device_memory": {
            "anyOf": [
              {
                "type": "integer",
                "enum": [
                  2,
                  4,
                  8,
                  16,
                  32
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Memory"
          },
          "do_not_track": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Do Not Track"
          },
          "port_scan_protection": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port Scan Protection"
          },
          "webrtc": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "disable_non_proxied_udp",
                  "disabled",
                  "replace",
                  "real"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Webrtc"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "seed"
        ],
        "title": "Fingerprint"
      },
      "FolderIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Name"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "sort": {
            "type": "integer",
            "title": "Sort",
            "default": 0
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "FolderIn"
      },
      "FolderOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "sort": {
            "type": "integer",
            "title": "Sort"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "parent_id",
          "color",
          "sort",
          "rev"
        ],
        "title": "FolderOut"
      },
      "FolderPatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "sort": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sort"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "FolderPatch"
      },
      "ForgotIn": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 1,
            "title": "Email"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "ForgotIn"
      },
      "GeolocationSetting": {
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "ip",
              "manual",
              "deny"
            ],
            "title": "Mode",
            "default": "ip"
          },
          "lat": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 90.0,
                "minimum": -90.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Lat"
          },
          "lon": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 180.0,
                "minimum": -180.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Lon"
          },
          "accuracy": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Accuracy"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "GeolocationSetting"
      },
      "GrantOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "client_id": {
            "type": "string",
            "title": "Client Id"
          },
          "client_name": {
            "type": "string",
            "title": "Client Name"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "spend_limit_day_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Day Micro"
          },
          "spend_limit_month_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend Limit Month Micro"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "client_id",
          "client_name",
          "workspace_id",
          "scopes",
          "spend_limit_day_micro",
          "spend_limit_month_micro",
          "expires_at",
          "created_at",
          "last_used_at"
        ],
        "title": "GrantOut"
      },
      "IdentityOut": {
        "properties": {
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "last_login_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Login At"
          }
        },
        "type": "object",
        "required": [
          "provider",
          "email",
          "created_at",
          "last_login_at"
        ],
        "title": "IdentityOut"
      },
      "ImportIn": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 1000000,
            "title": "Text"
          },
          "default_type": {
            "type": "string",
            "enum": [
              "http",
              "https",
              "socks5"
            ],
            "title": "Default Type",
            "default": "http"
          },
          "skip_duplicates": {
            "type": "boolean",
            "title": "Skip Duplicates",
            "default": true
          },
          "check": {
            "type": "boolean",
            "title": "Check",
            "default": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "text"
        ],
        "title": "ImportIn"
      },
      "ImportOut": {
        "properties": {
          "created": {
            "items": {
              "$ref": "#/components/schemas/ProxyOut"
            },
            "type": "array",
            "title": "Created"
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped"
          },
          "errors": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Errors"
          }
        },
        "type": "object",
        "required": [
          "created",
          "skipped",
          "errors"
        ],
        "title": "ImportOut"
      },
      "InviteIn": {
        "properties": {
          "role_id": {
            "type": "string",
            "format": "uuid",
            "title": "Role Id"
          },
          "profile_access": {
            "$ref": "#/components/schemas/ProfileAccess"
          },
          "ttl_hours": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Ttl Hours",
            "default": 72
          },
          "max_uses": {
            "type": "integer",
            "maximum": 1000.0,
            "minimum": 1.0,
            "title": "Max Uses",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "role_id"
        ],
        "title": "InviteIn"
      },
      "InviteOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "role": {
            "$ref": "#/components/schemas/RoleRef"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          },
          "max_uses": {
            "type": "integer",
            "title": "Max Uses"
          },
          "uses": {
            "type": "integer",
            "title": "Uses"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommonUserRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "id",
          "role",
          "expires_at",
          "max_uses",
          "uses",
          "created_by",
          "created_at"
        ],
        "title": "InviteOut"
      },
      "InvitePreview": {
        "properties": {
          "workspace_name": {
            "type": "string",
            "title": "Workspace Name"
          },
          "role": {
            "$ref": "#/components/schemas/RoleRef"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          },
          "inviter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommonUserRef"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "workspace_name",
          "role",
          "expires_at",
          "inviter"
        ],
        "title": "InvitePreview"
      },
      "InvoiceOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "number": {
            "type": "string",
            "title": "Number"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "lines": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Lines"
          },
          "subtotal_minor": {
            "type": "integer",
            "title": "Subtotal Minor"
          },
          "discount_minor": {
            "type": "integer",
            "title": "Discount Minor"
          },
          "total_minor": {
            "type": "integer",
            "title": "Total Minor"
          },
          "period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Start"
          },
          "period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period End"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paid At"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentRef"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "number",
          "status",
          "currency",
          "lines",
          "subtotal_minor",
          "discount_minor",
          "total_minor",
          "period_start",
          "period_end",
          "created_at",
          "paid_at",
          "payment"
        ],
        "title": "InvoiceOut"
      },
      "KeySpendOut": {
        "properties": {
          "day_micro": {
            "type": "integer",
            "title": "Day Micro"
          },
          "month_micro": {
            "type": "integer",
            "title": "Month Micro"
          },
          "limit_day_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit Day Micro"
          },
          "limit_month_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit Month Micro"
          }
        },
        "type": "object",
        "required": [
          "day_micro",
          "month_micro",
          "limit_day_micro",
          "limit_month_micro"
        ],
        "title": "KeySpendOut"
      },
      "LanguageSetting": {
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "ip",
              "manual"
            ],
            "title": "Mode",
            "default": "ip"
          },
          "languages": {
            "items": {
              "type": "string",
              "maxLength": 35,
              "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8}){0,2}$"
            },
            "type": "array",
            "maxItems": 10,
            "title": "Languages"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "LanguageSetting"
      },
      "LastRun": {
        "properties": {
          "result": {
            "type": "string",
            "enum": [
              "stopped",
              "crashed",
              "failed"
            ],
            "title": "Result"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "At"
          }
        },
        "type": "object",
        "required": [
          "result"
        ],
        "title": "LastRun",
        "description": "How the last launch ended: `stopped` — closed normally; `crashed` — the browser exited with an error; `failed` — did not start, did not stop in time, data was not uploaded, or the app disappeared (`code`). `session_id` links to the app's browser event log."
      },
      "LatestReleaseOut": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size"
          },
          "signature": {
            "type": "string",
            "title": "Signature"
          },
          "channel": {
            "type": "string",
            "title": "Channel"
          },
          "notes_i18n": {
            "additionalProperties": true,
            "type": "object",
            "title": "Notes I18N"
          },
          "min_supported": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Supported"
          }
        },
        "type": "object",
        "required": [
          "version",
          "url",
          "sha256",
          "size",
          "signature",
          "channel",
          "notes_i18n",
          "min_supported"
        ],
        "title": "LatestReleaseOut"
      },
      "LaunchProxy": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "host": {
            "type": "string",
            "title": "Host"
          },
          "port": {
            "type": "integer",
            "title": "Port"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "type",
          "host",
          "port",
          "username",
          "password"
        ],
        "title": "LaunchProxy"
      },
      "LeaseOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "profile_id": {
            "type": "string",
            "format": "uuid",
            "title": "Profile Id"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserBrief"
              },
              {
                "type": "null"
              }
            ]
          },
          "device": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Device"
          },
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "acquired_at": {
            "type": "string",
            "format": "date-time",
            "title": "Acquired At"
          },
          "heartbeat_at": {
            "type": "string",
            "format": "date-time",
            "title": "Heartbeat At"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          },
          "state": {
            "type": "string",
            "enum": [
              "starting",
              "running",
              "stopping",
              "lost"
            ],
            "title": "State",
            "default": "running"
          },
          "stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage"
          },
          "state_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "State At"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "profile_id",
          "user",
          "device",
          "mode",
          "acquired_at",
          "heartbeat_at",
          "expires_at"
        ],
        "title": "LeaseOut"
      },
      "LeaseProfile": {
        "properties": {
          "number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "number",
          "name"
        ],
        "title": "LeaseProfile",
        "description": "The profile's number and name right now: the app updates the window title `#N| Name` after profiles are renumbered or renamed."
      },
      "LeaseRef": {
        "properties": {
          "lease_id": {
            "type": "string",
            "format": "uuid",
            "title": "Lease Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "lease_id"
        ],
        "title": "LeaseRef"
      },
      "LedgerOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ref"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "currency",
          "amount_minor",
          "reason",
          "ref",
          "comment",
          "created_at"
        ],
        "title": "LedgerOut"
      },
      "LoginChallenge": {
        "properties": {
          "challenge": {
            "type": "string",
            "enum": [
              "mfa",
              "device",
              "deletion_pending"
            ],
            "title": "Challenge"
          },
          "challenge_token": {
            "type": "string",
            "title": "Challenge Token"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          },
          "email_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email Hint"
          }
        },
        "type": "object",
        "required": [
          "challenge",
          "challenge_token",
          "expires_at"
        ],
        "title": "LoginChallenge"
      },
      "LoginIn": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 1,
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Password"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "device": {
            "$ref": "#/components/schemas/DeviceIn"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password",
          "device"
        ],
        "title": "LoginIn"
      },
      "ManagedOut": {
        "properties": {
          "proxy_id": {
            "type": "string",
            "format": "uuid",
            "title": "Proxy Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "product_code": {
            "type": "string",
            "title": "Product Code"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "params": {
            "additionalProperties": true,
            "type": "object",
            "title": "Params"
          },
          "period_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Days"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "auto_renew": {
            "type": "boolean",
            "title": "Auto Renew"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "bytes_used": {
            "type": "integer",
            "title": "Bytes Used"
          },
          "profiles": {
            "type": "integer",
            "title": "Profiles"
          },
          "pool_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pool Id"
          },
          "delivery": {
            "type": "string",
            "title": "Delivery",
            "default": "gateway"
          },
          "replaceable": {
            "type": "boolean",
            "title": "Replaceable",
            "default": false
          },
          "protocol": {
            "type": "string",
            "title": "Protocol",
            "default": "http"
          },
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "bytes_30d": {
            "type": "integer",
            "title": "Bytes 30D",
            "default": 0
          },
          "payg": {
            "type": "boolean",
            "title": "Payg",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "proxy_id",
          "name",
          "product_code",
          "kind",
          "params",
          "period_days",
          "expires_at",
          "auto_renew",
          "status",
          "bytes_used",
          "profiles"
        ],
        "title": "ManagedOut"
      },
      "ManagedPatch": {
        "properties": {
          "auto_renew": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Renew"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "asn": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Asn"
          },
          "isp": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Isp"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "sticky",
                  "rotating",
                  "hard"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode"
          },
          "lifetime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lifetime"
          },
          "pool_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pool Id"
          },
          "protocol": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "http",
                  "socks5"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Protocol"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ManagedPatch"
      },
      "MeOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "email_verified": {
            "type": "boolean",
            "title": "Email Verified"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "locale": {
            "type": "string",
            "title": "Locale"
          },
          "mfa_enabled": {
            "type": "boolean",
            "title": "Mfa Enabled"
          },
          "has_password": {
            "type": "boolean",
            "title": "Has Password",
            "default": true
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "is_superadmin": {
            "type": "boolean",
            "title": "Is Superadmin"
          },
          "support_agent": {
            "type": "boolean",
            "title": "Support Agent",
            "default": false
          },
          "deletion_scheduled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deletion Scheduled At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "impersonator": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Impersonator"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "email_verified",
          "display_name",
          "locale",
          "mfa_enabled",
          "status",
          "is_superadmin",
          "deletion_scheduled_at",
          "created_at"
        ],
        "title": "MeOut"
      },
      "MePatch": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ru",
                  "en"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Locale"
          }
        },
        "type": "object",
        "title": "MePatch"
      },
      "MemberOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/MemberUser"
          },
          "role": {
            "$ref": "#/components/schemas/RoleRef"
          },
          "profile_access": {
            "$ref": "#/components/schemas/ProfileAccess"
          },
          "joined_at": {
            "type": "string",
            "format": "date-time",
            "title": "Joined At"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          }
        },
        "type": "object",
        "required": [
          "user",
          "role",
          "profile_access",
          "joined_at"
        ],
        "title": "MemberOut"
      },
      "MemberPatch": {
        "properties": {
          "role_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Id"
          },
          "profile_access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileAccess"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "MemberPatch"
      },
      "MemberUser": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "mfa_enabled": {
            "type": "boolean",
            "title": "Mfa Enabled"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "display_name",
          "mfa_enabled"
        ],
        "title": "MemberUser"
      },
      "MembershipOut": {
        "properties": {
          "workspace": {
            "$ref": "#/components/schemas/WorkspaceRef"
          },
          "role": {
            "$ref": "#/components/schemas/RoleRef"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          },
          "joined_at": {
            "type": "string",
            "format": "date-time",
            "title": "Joined At"
          }
        },
        "type": "object",
        "required": [
          "workspace",
          "role",
          "permissions",
          "joined_at"
        ],
        "title": "MembershipOut"
      },
      "MessageIn": {
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Body"
          },
          "attachment_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Attachment Ids"
          },
          "log_bundle_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Log Bundle Ids"
          }
        },
        "type": "object",
        "required": [
          "body"
        ],
        "title": "MessageIn"
      },
      "MessageOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "from_staff": {
            "type": "boolean",
            "title": "From Staff"
          },
          "author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author",
            "description": "author's name; null for Geksy support"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/AttachmentOut"
            },
            "type": "array",
            "title": "Attachments",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "from_staff",
          "body",
          "created_at"
        ],
        "title": "MessageOut"
      },
      "MetaOut": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version"
          },
          "stage": {
            "type": "string",
            "title": "Stage"
          },
          "registration": {
            "type": "string",
            "title": "Registration"
          },
          "captcha": {
            "$ref": "#/components/schemas/CaptchaInfo"
          },
          "min_agent_version": {
            "type": "string",
            "title": "Min Agent Version"
          },
          "locales": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Locales"
          },
          "license_public_key": {
            "type": "string",
            "title": "License Public Key"
          }
        },
        "type": "object",
        "required": [
          "version",
          "stage",
          "registration",
          "captcha",
          "min_agent_version",
          "locales",
          "license_public_key"
        ],
        "title": "MetaOut"
      },
      "MfaCodeIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 6,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "MfaCodeIn"
      },
      "MfaDisableIn": {
        "properties": {
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Password"
          },
          "code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 6,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "password",
          "code"
        ],
        "title": "MfaDisableIn"
      },
      "MfaSetupOut": {
        "properties": {
          "secret": {
            "type": "string",
            "title": "Secret"
          },
          "otpauth_uri": {
            "type": "string",
            "title": "Otpauth Uri"
          }
        },
        "type": "object",
        "required": [
          "secret",
          "otpauth_uri"
        ],
        "title": "MfaSetupOut"
      },
      "MissingIn": {
        "properties": {
          "sha256": {
            "items": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "type": "array",
            "maxItems": 5000,
            "title": "Sha256"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "sha256"
        ],
        "title": "MissingIn"
      },
      "MissingOut": {
        "properties": {
          "missing": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Missing"
          }
        },
        "type": "object",
        "required": [
          "missing"
        ],
        "title": "MissingOut"
      },
      "Money": {
        "properties": {
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          }
        },
        "type": "object",
        "required": [
          "currency",
          "amount_minor"
        ],
        "title": "Money"
      },
      "NextCharge": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time",
            "title": "Date"
          },
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "period": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "title": "Period"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          }
        },
        "type": "object",
        "required": [
          "date",
          "plan_code",
          "period",
          "currency",
          "amount_minor"
        ],
        "title": "NextCharge"
      },
      "Noise": {
        "properties": {
          "canvas": {
            "type": "boolean",
            "title": "Canvas",
            "default": false
          },
          "gpu": {
            "type": "boolean",
            "title": "Gpu",
            "default": false
          },
          "audio": {
            "type": "boolean",
            "title": "Audio",
            "default": true
          },
          "font": {
            "type": "boolean",
            "title": "Font",
            "default": true
          },
          "clientrects": {
            "type": "boolean",
            "title": "Clientrects",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Noise"
      },
      "NoticeOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "params": {
            "additionalProperties": true,
            "type": "object",
            "title": "Params"
          },
          "emailed": {
            "type": "boolean",
            "title": "Emailed"
          },
          "read_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "params",
          "emailed",
          "read_at",
          "created_at"
        ],
        "title": "NoticeOut"
      },
      "NoticesOut": {
        "properties": {
          "unread": {
            "type": "integer",
            "title": "Unread"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/NoticeOut"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "unread",
          "items"
        ],
        "title": "NoticesOut"
      },
      "NoticesReadIn": {
        "properties": {
          "ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Ids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "NoticesReadIn"
      },
      "NotifyIn": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "boolean"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "app": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "boolean"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "App"
          },
          "balance_low_micro": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Balance Low Micro"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "NotifyIn"
      },
      "NotifyOut": {
        "properties": {
          "kinds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Kinds"
          },
          "email": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Email"
          },
          "app": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "App"
          },
          "balance_low_micro": {
            "type": "integer",
            "title": "Balance Low Micro"
          }
        },
        "type": "object",
        "required": [
          "kinds",
          "email",
          "app",
          "balance_low_micro"
        ],
        "title": "NotifyOut"
      },
      "OfferOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "gb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gb"
          },
          "period_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Days"
          },
          "price_micro": {
            "type": "integer",
            "title": "Price Micro"
          },
          "name_i18n": {
            "additionalProperties": true,
            "type": "object",
            "title": "Name I18N"
          }
        },
        "type": "object",
        "required": [
          "code",
          "model",
          "gb",
          "period_days",
          "price_micro",
          "name_i18n"
        ],
        "title": "OfferOut",
        "description": "Offer: payg_gb — price per GB from the balance; period_ip — price of an IP for a period; package_gb — `gb` for `period_days` (legacy; new packages are bought by volume with no expiry); subscription_gb — `gb` every period; period_unlimited — a port with unmetered traffic for `period_days`."
      },
      "OrderIn": {
        "properties": {
          "product_code": {
            "type": "string",
            "maxLength": 32,
            "title": "Product Code"
          },
          "count": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 1
          },
          "country": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "title": "Country"
          },
          "period_days": {
            "type": "integer",
            "title": "Period Days",
            "default": 30
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "product_code",
          "country"
        ],
        "title": "OrderIn"
      },
      "OrderOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "product_code": {
            "type": "string",
            "title": "Product Code"
          },
          "country": {
            "type": "string",
            "title": "Country"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "period_days": {
            "type": "integer",
            "title": "Period Days"
          },
          "price_micro": {
            "type": "integer",
            "title": "Price Micro"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closed At"
          },
          "profile_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Profile Ids",
            "default": []
          },
          "issuing": {
            "type": "boolean",
            "title": "Issuing",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "product_code",
          "country",
          "count",
          "period_days",
          "price_micro",
          "status",
          "created_at",
          "closed_at"
        ],
        "title": "OrderOut"
      },
      "OsCryptKeyIn": {
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Key"
          },
          "lease_id": {
            "type": "string",
            "format": "uuid",
            "title": "Lease Id"
          }
        },
        "type": "object",
        "required": [
          "key",
          "lease_id"
        ],
        "title": "OsCryptKeyIn"
      },
      "OwnerRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email"
        ],
        "title": "OwnerRef"
      },
      "Page_AuditOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AuditOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[AuditOut]"
      },
      "Page_BalanceOpOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BalanceOpOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[BalanceOpOut]"
      },
      "Page_DiagEventOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DiagEventOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[DiagEventOut]"
      },
      "Page_DiagReportOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DiagReportOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[DiagReportOut]"
      },
      "Page_InvoiceOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InvoiceOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[InvoiceOut]"
      },
      "Page_LedgerOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/LedgerOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[LedgerOut]"
      },
      "Page_PaymentOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PaymentOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[PaymentOut]"
      },
      "Page_ProfileOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProfileOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[ProfileOut]"
      },
      "Page_ProxyOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProxyOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[ProxyOut]"
      },
      "Page_TicketOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TicketOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[TicketOut]"
      },
      "Page_dict_": {
        "properties": {
          "items": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "Page[dict]"
      },
      "ParseIn": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 1000000,
            "title": "Text"
          },
          "default_type": {
            "type": "string",
            "enum": [
              "http",
              "https",
              "socks5"
            ],
            "title": "Default Type",
            "default": "http"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "text"
        ],
        "title": "ParseIn"
      },
      "ParseOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProxyDraftOut"
            },
            "type": "array",
            "title": "Items"
          },
          "errors": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Errors"
          }
        },
        "type": "object",
        "required": [
          "items",
          "errors"
        ],
        "title": "ParseOut"
      },
      "PasswordChangeIn": {
        "properties": {
          "current_password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Current Password"
          },
          "new_password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 8,
            "title": "New Password"
          }
        },
        "type": "object",
        "required": [
          "current_password",
          "new_password"
        ],
        "title": "PasswordChangeIn"
      },
      "PasswordSetIn": {
        "properties": {
          "new_password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 8,
            "title": "New Password"
          },
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "new_password"
        ],
        "title": "PasswordSetIn"
      },
      "PayCurrencyOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "token": {
            "type": "string",
            "title": "Token"
          },
          "network": {
            "type": "string",
            "title": "Network"
          },
          "chain": {
            "type": "string",
            "title": "Chain"
          },
          "chain_name": {
            "type": "string",
            "title": "Chain Name"
          },
          "confirmations": {
            "type": "integer",
            "title": "Confirmations"
          },
          "exact_amount": {
            "type": "boolean",
            "title": "Exact Amount",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "code",
          "token",
          "network",
          "chain",
          "chain_name",
          "confirmations"
        ],
        "title": "PayCurrencyOut",
        "description": "Coin and network accepted by Geksy crypto payments (`code` goes to `pay_currency`)."
      },
      "PayMethodOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "method": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Method"
          },
          "fee_percent": {
            "type": "number",
            "title": "Fee Percent",
            "default": 0
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "rub_per_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rub Per Usd"
          },
          "min_rub": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Rub"
          },
          "max_rub": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Rub"
          },
          "min_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Usd"
          },
          "currencies": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PayCurrencyOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currencies"
          }
        },
        "type": "object",
        "required": [
          "id",
          "provider",
          "kind",
          "currency"
        ],
        "title": "PayMethodOut",
        "description": "Payment method: `sbp` and `card` — paid in rubles (price converted at `rub_per_usd` plus `fee_percent`), pass `provider` and `method`; `crypto` — USDT/USDC to an address shown right away, pass `provider` and `pay_currency`; `redirect` — payment page; `dev` — test payments."
      },
      "PaymentOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "discount_minor": {
            "type": "integer",
            "title": "Discount Minor"
          },
          "paid_minor": {
            "type": "integer",
            "title": "Paid Minor"
          },
          "refunded_minor": {
            "type": "integer",
            "title": "Refunded Minor"
          },
          "plan_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Code"
          },
          "period": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "month",
                  "year"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Period"
          },
          "redirect_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect Url"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paid At"
          },
          "direct": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DirectPayOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "action": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "provider",
          "status",
          "currency",
          "amount_minor",
          "discount_minor",
          "paid_minor",
          "refunded_minor",
          "plan_code",
          "period",
          "redirect_url",
          "failure_code",
          "created_at",
          "paid_at"
        ],
        "title": "PaymentOut"
      },
      "PaymentRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "paid_minor": {
            "type": "integer",
            "title": "Paid Minor"
          },
          "refunded_minor": {
            "type": "integer",
            "title": "Refunded Minor"
          }
        },
        "type": "object",
        "required": [
          "id",
          "provider",
          "status",
          "paid_minor",
          "refunded_minor"
        ],
        "title": "PaymentRef"
      },
      "PermissionInfo": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "group": {
            "type": "string",
            "title": "Group"
          }
        },
        "type": "object",
        "required": [
          "key",
          "group"
        ],
        "title": "PermissionInfo"
      },
      "PlanOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "name_i18n": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name I18N"
          },
          "highlight": {
            "type": "boolean",
            "title": "Highlight"
          },
          "limits": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Limits"
          },
          "features": {
            "additionalProperties": true,
            "type": "object",
            "title": "Features"
          },
          "trial_days": {
            "type": "integer",
            "title": "Trial Days"
          },
          "prices": {
            "items": {
              "$ref": "#/components/schemas/PriceOut"
            },
            "type": "array",
            "title": "Prices"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "name_i18n",
          "highlight",
          "limits",
          "features",
          "trial_days",
          "prices"
        ],
        "title": "PlanOut"
      },
      "PlanState": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "trial_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends At"
          },
          "current_period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period End"
          },
          "cancel_at_period_end": {
            "type": "boolean",
            "title": "Cancel At Period End",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "status",
          "trial_ends_at",
          "current_period_end"
        ],
        "title": "PlanState"
      },
      "PoolIn": {
        "properties": {
          "offer_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 48
              },
              {
                "type": "null"
              }
            ],
            "title": "Offer Code"
          },
          "product_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Code"
          },
          "gb": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Gb"
          },
          "auto_renew": {
            "type": "boolean",
            "title": "Auto Renew",
            "default": true
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PoolIn",
        "description": "Package: `product_code` + `gb` (GB with no expiry, volume ladder price) or a legacy `offer_code`."
      },
      "PoolOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "product_code": {
            "type": "string",
            "title": "Product Code"
          },
          "offer_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Offer Code"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "bytes_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bytes Total"
          },
          "bytes_used": {
            "type": "integer",
            "title": "Bytes Used"
          },
          "period_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Days"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "auto_renew": {
            "type": "boolean",
            "title": "Auto Renew"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "live": {
            "type": "boolean",
            "title": "Live"
          },
          "delivery": {
            "type": "string",
            "title": "Delivery",
            "default": "gateway"
          },
          "proxies": {
            "type": "integer",
            "title": "Proxies"
          },
          "ports": {
            "type": "integer",
            "title": "Ports",
            "default": 0
          },
          "max_ports": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Ports"
          }
        },
        "type": "object",
        "required": [
          "id",
          "product_code",
          "offer_code",
          "model",
          "name",
          "bytes_total",
          "bytes_used",
          "period_days",
          "expires_at",
          "auto_renew",
          "status",
          "live",
          "proxies"
        ],
        "title": "PoolOut"
      },
      "PoolPatch": {
        "properties": {
          "auto_renew": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Renew"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PoolPatch"
      },
      "PortsIn": {
        "properties": {
          "count": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 1
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "asn": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Asn"
          },
          "isp": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Isp"
          },
          "mode": {
            "type": "string",
            "enum": [
              "sticky",
              "rotating",
              "hard"
            ],
            "title": "Mode",
            "default": "rotating"
          },
          "lifetime": {
            "type": "string",
            "title": "Lifetime",
            "default": "30m"
          },
          "protocol": {
            "type": "string",
            "enum": [
              "http",
              "socks5"
            ],
            "title": "Protocol",
            "default": "http"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PortsIn",
        "description": "Ports in a package: each has its own geo, mode, protocol, gateway login and password."
      },
      "PowIn": {
        "properties": {
          "challenge": {
            "type": "string",
            "maxLength": 200,
            "title": "Challenge"
          },
          "nonce": {
            "type": "string",
            "maxLength": 64,
            "title": "Nonce"
          }
        },
        "type": "object",
        "required": [
          "challenge",
          "nonce"
        ],
        "title": "PowIn"
      },
      "PriceIn": {
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "title": "Period"
          },
          "currency": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "pattern": "^[A-Z]{3}$",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "maximum": 100000000.0,
            "minimum": 0.0,
            "title": "Amount Minor"
          },
          "running_slot_minor": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Running Slot Minor"
          }
        },
        "type": "object",
        "required": [
          "period",
          "currency",
          "amount_minor"
        ],
        "title": "PriceIn"
      },
      "PriceOut": {
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "title": "Period"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "amount_minor": {
            "type": "integer",
            "title": "Amount Minor"
          },
          "running_slot_minor": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Running Slot Minor"
          }
        },
        "type": "object",
        "required": [
          "period",
          "currency",
          "amount_minor"
        ],
        "title": "PriceOut"
      },
      "ProductOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "category": {
            "type": "string",
            "title": "Category"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "name_i18n": {
            "additionalProperties": true,
            "type": "object",
            "title": "Name I18N"
          },
          "price_gb_micro": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price Gb Micro"
          },
          "prices": {
            "additionalProperties": true,
            "type": "object",
            "title": "Prices"
          },
          "countries": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Countries"
          },
          "stock": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stock"
          },
          "geo": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Geo"
          },
          "sessions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sessions"
          },
          "max_lifetime_min": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Lifetime Min"
          },
          "delivery": {
            "type": "string",
            "title": "Delivery",
            "default": "gateway"
          },
          "offers": {
            "items": {
              "$ref": "#/components/schemas/OfferOut"
            },
            "type": "array",
            "title": "Offers",
            "default": []
          },
          "country_prices": {
            "anyOf": [
              {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "integer"
                  },
                  "type": "object"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country Prices"
          },
          "on_demand": {
            "type": "boolean",
            "title": "On Demand",
            "default": false
          },
          "payg": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payg"
          },
          "package": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Package"
          },
          "protocols": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Protocols"
          },
          "periods": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Periods"
          },
          "min_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Count"
          },
          "renew": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Renew"
          }
        },
        "type": "object",
        "required": [
          "code",
          "category",
          "kind",
          "name_i18n",
          "price_gb_micro",
          "prices",
          "countries"
        ],
        "title": "ProductOut"
      },
      "ProfileAccess": {
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "all",
              "limited"
            ],
            "title": "Mode",
            "default": "all"
          },
          "folder_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 10000,
            "title": "Folder Ids"
          },
          "profile_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100000,
            "title": "Profile Ids"
          }
        },
        "type": "object",
        "title": "ProfileAccess"
      },
      "ProfileCreate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Id"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 64,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 65536
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "pinned": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned"
          },
          "start_urls": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 2048,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Urls"
          },
          "bookmarks": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Bookmark"
                },
                "type": "array",
                "maxItems": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Bookmarks"
          },
          "proxy_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy Id"
          },
          "extension_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Extension Ids"
          },
          "engine_version": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^\\d+(\\.\\d+){1,3}(-[A-Za-z0-9.]+)?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Engine Version"
          },
          "storage": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "cloud",
                  "local"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Storage"
          },
          "sync_exclude": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "cookies",
                    "passwords",
                    "autofill",
                    "history",
                    "bookmarks",
                    "tabs",
                    "site_storage",
                    "extensions_data",
                    "settings"
                  ]
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Sync Exclude"
          },
          "fields": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "fingerprint": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fingerprint"
          },
          "ephemeral": {
            "type": "boolean",
            "title": "Ephemeral",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ProfileCreate"
      },
      "ProfileData": {
        "properties": {
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "size_mb": {
            "type": "number",
            "title": "Size Mb"
          },
          "warnings": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Warnings"
          }
        },
        "type": "object",
        "required": [
          "version",
          "size_mb",
          "warnings"
        ],
        "title": "ProfileData"
      },
      "ProfileOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "number": {
            "type": "integer",
            "title": "Number",
            "description": "Sequential number for people: always 1..N among live (not trashed) profiles of the workspace. Deleting or moving a profile shifts the numbers of the following ones; new and restored profiles go last. Use id to refer to a profile."
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Id"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "notes": {
            "type": "string",
            "title": "Notes"
          },
          "pinned": {
            "type": "boolean",
            "title": "Pinned"
          },
          "start_urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Start Urls"
          },
          "bookmarks": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Bookmarks"
          },
          "proxy_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy Id"
          },
          "extension_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Extension Ids"
          },
          "effective_extension_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Effective Extension Ids"
          },
          "fingerprint": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fingerprint"
          },
          "engine_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Engine Version"
          },
          "storage": {
            "type": "string",
            "title": "Storage"
          },
          "sync_exclude": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sync Exclude"
          },
          "ephemeral": {
            "type": "boolean",
            "title": "Ephemeral",
            "default": false
          },
          "geo": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Geo"
          },
          "lease": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LeaseOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileData"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserBrief"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserBrief"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_launch_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Launch At"
          },
          "last_launch_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserBrief"
              },
              {
                "type": "null"
              }
            ]
          },
          "deleted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted At"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          },
          "run_state": {
            "type": "string",
            "enum": [
              "stopped",
              "starting",
              "running",
              "stopping",
              "lost",
              "crashed",
              "failed"
            ],
            "title": "Run State",
            "default": "stopped"
          },
          "last_run": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LastRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "fields": {
            "additionalProperties": true,
            "type": "object",
            "title": "Fields"
          }
        },
        "type": "object",
        "required": [
          "id",
          "number",
          "workspace_id",
          "name",
          "folder_id",
          "tags",
          "notes",
          "pinned",
          "start_urls",
          "bookmarks",
          "proxy_id",
          "extension_ids",
          "effective_extension_ids",
          "fingerprint",
          "engine_version",
          "storage",
          "sync_exclude",
          "geo",
          "lease",
          "data",
          "created_at",
          "created_by",
          "updated_at",
          "updated_by",
          "last_launch_at",
          "last_launch_by",
          "deleted_at",
          "rev"
        ],
        "title": "ProfileOut"
      },
      "ProfilePatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Id"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 64,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 65536
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "pinned": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned"
          },
          "start_urls": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 2048,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Urls"
          },
          "bookmarks": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Bookmark"
                },
                "type": "array",
                "maxItems": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Bookmarks"
          },
          "proxy_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy Id"
          },
          "extension_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Extension Ids"
          },
          "engine_version": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^\\d+(\\.\\d+){1,3}(-[A-Za-z0-9.]+)?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Engine Version"
          },
          "storage": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "cloud",
                  "local"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Storage"
          },
          "sync_exclude": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "cookies",
                    "passwords",
                    "autofill",
                    "history",
                    "bookmarks",
                    "tabs",
                    "site_storage",
                    "extensions_data",
                    "settings"
                  ]
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Sync Exclude"
          },
          "fields": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "fingerprint": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fingerprint"
              },
              {
                "type": "null"
              }
            ]
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ProfilePatch"
      },
      "PromoIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Code"
          },
          "plan_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Code"
          },
          "period": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "month",
                  "year"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Period"
          },
          "running_slots": {
            "type": "integer",
            "maximum": 1000.0,
            "minimum": 0.0,
            "title": "Running Slots",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "PromoIn"
      },
      "PromoOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "percent_off": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent Off"
          },
          "amount_off_minor": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Off Minor"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "plan_codes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Codes"
          },
          "periods": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Periods"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "quote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuoteOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "code",
          "percent_off",
          "amount_off_minor",
          "currency",
          "plan_codes",
          "periods",
          "expires_at"
        ],
        "title": "PromoOut"
      },
      "ProxyBulkIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Ids"
          },
          "op": {
            "type": "string",
            "enum": [
              "delete",
              "update",
              "rotate"
            ],
            "title": "Op"
          },
          "changes": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ManagedPatch"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ids",
          "op"
        ],
        "title": "ProxyBulkIn",
        "description": "Bulk action on Geksy proxies."
      },
      "ProxyCheckOut": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "latency_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency Ms"
          },
          "hosting": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hosting"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Code"
          },
          "checked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checked At"
          }
        },
        "type": "object",
        "required": [
          "status",
          "ip",
          "country",
          "city",
          "latency_ms",
          "hosting",
          "error_code",
          "checked_at"
        ],
        "title": "ProxyCheckOut"
      },
      "ProxyDraftOut": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "host": {
            "type": "string",
            "title": "Host"
          },
          "port": {
            "type": "integer",
            "title": "Port"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "has_password": {
            "type": "boolean",
            "title": "Has Password"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "type",
          "host",
          "port",
          "username",
          "has_password",
          "name"
        ],
        "title": "ProxyDraftOut"
      },
      "ProxyIn": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "http",
              "https",
              "socks5"
            ],
            "title": "Type",
            "default": "http"
          },
          "host": {
            "type": "string",
            "maxLength": 253,
            "minLength": 1,
            "title": "Host"
          },
          "port": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 1.0,
            "title": "Port"
          },
          "username": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "name": {
            "type": "string",
            "maxLength": 128,
            "title": "Name",
            "default": ""
          },
          "change_ip_url": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "title": "Change Ip Url"
          },
          "notes": {
            "type": "string",
            "maxLength": 4096,
            "title": "Notes",
            "default": ""
          },
          "tags": {
            "items": {
              "type": "string",
              "maxLength": 64,
              "minLength": 1
            },
            "type": "array",
            "maxItems": 20,
            "title": "Tags"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "host",
          "port"
        ],
        "title": "ProxyIn"
      },
      "ProxyOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "host": {
            "type": "string",
            "title": "Host"
          },
          "port": {
            "type": "integer",
            "title": "Port"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "type": "null",
            "title": "Password"
          },
          "has_password": {
            "type": "boolean",
            "title": "Has Password"
          },
          "change_ip_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Change Ip Url"
          },
          "notes": {
            "type": "string",
            "title": "Notes"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "check": {
            "$ref": "#/components/schemas/ProxyCheckOut"
          },
          "profiles_count": {
            "type": "integer",
            "title": "Profiles Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "type",
          "host",
          "port",
          "username",
          "has_password",
          "change_ip_url",
          "notes",
          "tags",
          "check",
          "profiles_count",
          "created_at",
          "updated_at",
          "rev"
        ],
        "title": "ProxyOut"
      },
      "ProxyPatch": {
        "properties": {
          "type": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "http",
                  "https",
                  "socks5"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          },
          "host": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 253,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 65535.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "username": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "change_ip_url": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "title": "Change Ip Url"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 64,
                  "minLength": 1
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ProxyPatch"
      },
      "ProxySecretOut": {
        "properties": {
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "username",
          "password",
          "id"
        ],
        "title": "ProxySecretOut"
      },
      "QuoteOut": {
        "properties": {
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "period": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "title": "Period"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "subtotal_minor": {
            "type": "integer",
            "title": "Subtotal Minor"
          },
          "discount_minor": {
            "type": "integer",
            "title": "Discount Minor"
          },
          "total_minor": {
            "type": "integer",
            "title": "Total Minor"
          },
          "running_slots": {
            "type": "integer",
            "title": "Running Slots",
            "default": 0
          },
          "slots_minor": {
            "type": "integer",
            "title": "Slots Minor",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "plan_code",
          "period",
          "currency",
          "subtotal_minor",
          "discount_minor",
          "total_minor"
        ],
        "title": "QuoteOut"
      },
      "RatingIn": {
        "properties": {
          "score": {
            "type": "integer",
            "maximum": 5.0,
            "minimum": 1.0,
            "title": "Score",
            "description": "1 — very bad … 5 — excellent"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          }
        },
        "type": "object",
        "required": [
          "score"
        ],
        "title": "RatingIn"
      },
      "RecoveryCodesOut": {
        "properties": {
          "recovery_codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Recovery Codes"
          }
        },
        "type": "object",
        "required": [
          "recovery_codes"
        ],
        "title": "RecoveryCodesOut"
      },
      "ReferralOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "link": {
            "type": "string",
            "title": "Link"
          },
          "percent": {
            "type": "integer",
            "title": "Percent"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "earned_minor": {
            "type": "integer",
            "title": "Earned Minor"
          },
          "balance_minor": {
            "type": "integer",
            "title": "Balance Minor"
          },
          "referrals": {
            "type": "integer",
            "title": "Referrals"
          }
        },
        "type": "object",
        "required": [
          "code",
          "link",
          "percent",
          "currency",
          "earned_minor",
          "balance_minor",
          "referrals"
        ],
        "title": "ReferralOut"
      },
      "ReferralTransferIn": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "amount_minor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Minor"
          }
        },
        "type": "object",
        "required": [
          "workspace_id"
        ],
        "title": "ReferralTransferIn"
      },
      "ReferrerOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/OwnerRef"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "percent": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent"
          },
          "referrals": {
            "type": "integer",
            "title": "Referrals"
          },
          "earned_minor": {
            "type": "integer",
            "title": "Earned Minor"
          },
          "balance_minor": {
            "type": "integer",
            "title": "Balance Minor"
          }
        },
        "type": "object",
        "required": [
          "user",
          "code",
          "percent",
          "referrals",
          "earned_minor",
          "balance_minor"
        ],
        "title": "ReferrerOut"
      },
      "RefreshIn": {
        "properties": {
          "refresh_token": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Refresh Token"
          },
          "install_id": {
            "type": "string",
            "maxLength": 128,
            "minLength": 8,
            "title": "Install Id"
          },
          "public_key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 44,
                "minLength": 43
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Key"
          }
        },
        "type": "object",
        "required": [
          "refresh_token",
          "install_id"
        ],
        "title": "RefreshIn"
      },
      "ReservationOut": {
        "properties": {
          "reservation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Reservation Id"
          },
          "profile_id": {
            "type": "string",
            "format": "uuid",
            "title": "Profile Id"
          },
          "expires_at": {
            "type": "string",
            "title": "Expires At"
          },
          "ttl_seconds": {
            "type": "integer",
            "title": "Ttl Seconds"
          }
        },
        "type": "object",
        "required": [
          "reservation_id",
          "profile_id",
          "expires_at",
          "ttl_seconds"
        ],
        "title": "ReservationOut"
      },
      "ReserveIn": {
        "properties": {
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Tags"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Id"
          },
          "count": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 1
          },
          "ttl_seconds": {
            "type": "integer",
            "maximum": 3600.0,
            "minimum": 30.0,
            "title": "Ttl Seconds",
            "default": 300
          }
        },
        "type": "object",
        "title": "ReserveIn"
      },
      "ResetIn": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Token"
          },
          "new_password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 8,
            "title": "New Password"
          }
        },
        "type": "object",
        "required": [
          "token",
          "new_password"
        ],
        "title": "ResetIn"
      },
      "RoleIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          }
        },
        "type": "object",
        "required": [
          "name",
          "permissions"
        ],
        "title": "RoleIn"
      },
      "RoleOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "system": {
            "type": "boolean",
            "title": "System"
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          },
          "members_count": {
            "type": "integer",
            "title": "Members Count",
            "default": 0
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "system",
          "key",
          "permissions",
          "rev"
        ],
        "title": "RoleOut"
      },
      "RolePatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "permissions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Permissions"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "type": "object",
        "title": "RolePatch"
      },
      "RolePresetOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "permissions"
        ],
        "title": "RolePresetOut"
      },
      "RoleRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "key"
        ],
        "title": "RoleRef"
      },
      "RotateIn": {
        "properties": {
          "keep_old_minutes": {
            "type": "integer",
            "maximum": 10080.0,
            "minimum": 0.0,
            "title": "Keep Old Minutes",
            "default": 1440
          }
        },
        "type": "object",
        "title": "RotateIn"
      },
      "RotationLinkOut": {
        "properties": {
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "prefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prefix"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "uses": {
            "type": "integer",
            "title": "Uses",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "active"
        ],
        "title": "RotationLinkOut"
      },
      "RunnerDeviceIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Name"
          },
          "install_id": {
            "type": "string",
            "maxLength": 128,
            "minLength": 8,
            "title": "Install Id"
          },
          "os": {
            "type": "string",
            "maxLength": 128,
            "title": "Os",
            "default": ""
          },
          "app_version": {
            "type": "string",
            "maxLength": 32,
            "title": "App Version",
            "default": ""
          },
          "public_key": {
            "type": "string",
            "maxLength": 44,
            "minLength": 43,
            "title": "Public Key"
          }
        },
        "type": "object",
        "required": [
          "name",
          "install_id",
          "public_key"
        ],
        "title": "RunnerDeviceIn"
      },
      "RunnerRegisterIn": {
        "properties": {
          "device": {
            "$ref": "#/components/schemas/RunnerDeviceIn"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "maxItems": 28
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          }
        },
        "type": "object",
        "required": [
          "device"
        ],
        "title": "RunnerRegisterIn"
      },
      "SecretOut": {
        "properties": {
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "username",
          "password"
        ],
        "title": "SecretOut"
      },
      "SecretsOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProxySecretOut"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "SecretsOut"
      },
      "SkippedEntry": {
        "properties": {
          "path": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Path"
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Size"
          },
          "reason": {
            "type": "string",
            "const": "idb_origin_limit",
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "path",
          "size",
          "reason"
        ],
        "title": "SkippedEntry"
      },
      "SnapshotIn": {
        "properties": {
          "lease_id": {
            "type": "string",
            "format": "uuid",
            "title": "Lease Id"
          },
          "cookies": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "maxItems": 10000,
            "title": "Cookies"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "lease_id",
          "cookies"
        ],
        "title": "SnapshotIn"
      },
      "SourceIn": {
        "properties": {
          "provider": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Provider"
          },
          "product": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Product"
          },
          "priority": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Priority",
            "default": 0
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "provider",
          "product"
        ],
        "title": "SourceIn"
      },
      "SpendApprovalOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "key_id": {
            "type": "string",
            "format": "uuid",
            "title": "Key Id"
          },
          "key_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "amount_micro": {
            "type": "integer",
            "title": "Amount Micro"
          },
          "details": {
            "additionalProperties": true,
            "type": "object",
            "title": "Details"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "key_id",
          "key_name",
          "kind",
          "amount_micro",
          "details",
          "status",
          "expires_at",
          "decided_at",
          "created_at"
        ],
        "title": "SpendApprovalOut"
      },
      "StartIn": {
        "properties": {
          "device": {
            "$ref": "#/components/schemas/DeviceIn"
          },
          "accept_terms": {
            "type": "boolean",
            "title": "Accept Terms",
            "default": false
          },
          "invite_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Invite Token"
          },
          "ref": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Ref"
          },
          "locale": {
            "type": "string",
            "enum": [
              "ru",
              "en"
            ],
            "title": "Locale",
            "default": "en"
          }
        },
        "type": "object",
        "required": [
          "device"
        ],
        "title": "StartIn"
      },
      "StartOut": {
        "properties": {
          "authorize_url": {
            "type": "string",
            "title": "Authorize Url"
          },
          "state": {
            "type": "string",
            "title": "State"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          }
        },
        "type": "object",
        "required": [
          "authorize_url",
          "state",
          "expires_in"
        ],
        "title": "StartOut"
      },
      "StatusOut": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "degraded"
            ],
            "title": "Status"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "components": {
            "additionalProperties": {
              "type": "string",
              "enum": [
                "ok",
                "fail"
              ]
            },
            "type": "object",
            "title": "Components"
          },
          "status_page": {
            "type": "string",
            "title": "Status Page"
          },
          "checked_at": {
            "type": "string",
            "format": "date-time",
            "title": "Checked At"
          }
        },
        "type": "object",
        "required": [
          "status",
          "version",
          "components",
          "status_page",
          "checked_at"
        ],
        "title": "StatusOut"
      },
      "SubscriptionOut": {
        "properties": {
          "plan_code": {
            "type": "string",
            "title": "Plan Code"
          },
          "plan_name": {
            "type": "string",
            "title": "Plan Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "period": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "month",
                  "year"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Period"
          },
          "trial_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends At"
          },
          "current_period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period Start"
          },
          "current_period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Period End"
          },
          "cancel_at_period_end": {
            "type": "boolean",
            "title": "Cancel At Period End"
          },
          "expired_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expired At"
          },
          "purge_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purge At"
          },
          "running_slots": {
            "type": "integer",
            "title": "Running Slots",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "plan_code",
          "plan_name",
          "status",
          "period",
          "trial_ends_at",
          "current_period_start",
          "current_period_end",
          "cancel_at_period_end",
          "expired_at",
          "purge_at"
        ],
        "title": "SubscriptionOut"
      },
      "SyncLimits": {
        "properties": {
          "idb_origin_mb": {
            "type": "integer",
            "maximum": 10240.0,
            "minimum": 1.0,
            "title": "Idb Origin Mb",
            "default": 50
          },
          "profile_warn_mb": {
            "type": "integer",
            "maximum": 102400.0,
            "minimum": 1.0,
            "title": "Profile Warn Mb",
            "default": 100
          }
        },
        "type": "object",
        "title": "SyncLimits"
      },
      "TagOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "profiles_count": {
            "type": "integer",
            "title": "Profiles Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "color"
        ],
        "title": "TagOut"
      },
      "TagPatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TagPatch"
      },
      "TemplateData": {
        "properties": {
          "profile": {
            "$ref": "#/components/schemas/ProfileCreate"
          },
          "name_pattern": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name Pattern"
          },
          "proxies": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BatchProxies"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TemplateData",
        "description": "What the template fills in: profile creation fields, name mask, proxy."
      },
      "TemplateIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "data": {
            "$ref": "#/components/schemas/TemplateData"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "TemplateIn"
      },
      "TemplateOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "name_i18n": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name I18N"
          },
          "system": {
            "type": "boolean",
            "title": "System"
          },
          "data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Data"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "system",
          "data",
          "rev"
        ],
        "title": "TemplateOut"
      },
      "TemplatePatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemplateData"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TemplatePatch"
      },
      "TicketDetail": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "number": {
            "type": "integer",
            "title": "Number"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "open",
              "pending",
              "solved",
              "closed"
            ],
            "title": "Status"
          },
          "category": {
            "type": "string",
            "enum": [
              "billing",
              "proxy",
              "browser",
              "account",
              "api",
              "other"
            ],
            "title": "Category"
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "normal",
              "high",
              "urgent"
            ],
            "title": "Priority"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "shared": {
            "type": "boolean",
            "title": "Shared"
          },
          "mine": {
            "type": "boolean",
            "title": "Mine",
            "description": "you are the author (false — shared with you as a workspace owner/admin)",
            "default": true
          },
          "unread": {
            "type": "boolean",
            "title": "Unread",
            "description": "support replied and the author has not opened the ticket since",
            "default": false
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/MessageOut"
            },
            "type": "array",
            "title": "Messages"
          },
          "log_bundle_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Log Bundle Ids",
            "default": []
          },
          "diagnostics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Diagnostics"
          },
          "rating_comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating Comment"
          },
          "can_reopen": {
            "type": "boolean",
            "title": "Can Reopen",
            "default": false
          },
          "can_rate": {
            "type": "boolean",
            "title": "Can Rate",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "number",
          "subject",
          "status",
          "category",
          "priority",
          "workspace_id",
          "shared",
          "created_at",
          "updated_at",
          "messages"
        ],
        "title": "TicketDetail"
      },
      "TicketIn": {
        "properties": {
          "subject": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Subject"
          },
          "body": {
            "type": "string",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Body"
          },
          "category": {
            "type": "string",
            "enum": [
              "billing",
              "proxy",
              "browser",
              "account",
              "api",
              "other"
            ],
            "title": "Category",
            "default": "other"
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "normal",
              "high"
            ],
            "title": "Priority",
            "default": "normal"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id",
            "description": "workspace the request is about (with an API key — always the key's workspace)"
          },
          "shared": {
            "type": "boolean",
            "title": "Shared",
            "description": "also visible to owners and admins of the workspace",
            "default": false
          },
          "attachment_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Attachment Ids",
            "description": "ids from POST /support/attachments"
          },
          "log_bundle_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Log Bundle Ids",
            "description": "log bundles sent from the desktop app (GX-XXXX-XXXX)"
          },
          "diagnostics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Diagnostics",
            "description": "JSON from `geksy doctor`; secrets are removed"
          }
        },
        "type": "object",
        "required": [
          "subject",
          "body"
        ],
        "title": "TicketIn"
      },
      "TicketOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "number": {
            "type": "integer",
            "title": "Number"
          },
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "open",
              "pending",
              "solved",
              "closed"
            ],
            "title": "Status"
          },
          "category": {
            "type": "string",
            "enum": [
              "billing",
              "proxy",
              "browser",
              "account",
              "api",
              "other"
            ],
            "title": "Category"
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "normal",
              "high",
              "urgent"
            ],
            "title": "Priority"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "shared": {
            "type": "boolean",
            "title": "Shared"
          },
          "mine": {
            "type": "boolean",
            "title": "Mine",
            "description": "you are the author (false — shared with you as a workspace owner/admin)",
            "default": true
          },
          "unread": {
            "type": "boolean",
            "title": "Unread",
            "description": "support replied and the author has not opened the ticket since",
            "default": false
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "number",
          "subject",
          "status",
          "category",
          "priority",
          "workspace_id",
          "shared",
          "created_at",
          "updated_at"
        ],
        "title": "TicketOut"
      },
      "TicketSharePatch": {
        "properties": {
          "shared": {
            "type": "boolean",
            "title": "Shared"
          }
        },
        "type": "object",
        "required": [
          "shared"
        ],
        "title": "TicketSharePatch"
      },
      "TierIn": {
        "properties": {
          "min_gb": {
            "type": "integer",
            "maximum": 1000000.0,
            "minimum": 1.0,
            "title": "Min Gb"
          },
          "cost_gb_micro": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Cost Gb Micro"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "min_gb",
          "cost_gb_micro"
        ],
        "title": "TierIn"
      },
      "TimezoneSetting": {
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "ip",
              "manual"
            ],
            "title": "Mode",
            "default": "ip"
          },
          "value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TimezoneSetting"
      },
      "TokenIn": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "TokenIn"
      },
      "TokenPair": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "access_expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Access Expires At"
          },
          "refresh_token": {
            "type": "string",
            "title": "Refresh Token"
          },
          "refresh_expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Refresh Expires At"
          },
          "user": {
            "$ref": "#/components/schemas/MeOut"
          },
          "device": {
            "$ref": "#/components/schemas/DeviceOut"
          }
        },
        "type": "object",
        "required": [
          "access_token",
          "access_expires_at",
          "refresh_token",
          "refresh_expires_at",
          "user",
          "device"
        ],
        "title": "TokenPair"
      },
      "TonPoolOut": {
        "properties": {
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "used": {
            "type": "integer",
            "title": "Used"
          },
          "left": {
            "type": "integer",
            "title": "Left"
          }
        },
        "type": "object",
        "required": [
          "size",
          "used",
          "left"
        ],
        "title": "TonPoolOut"
      },
      "TopupIn": {
        "properties": {
          "amount_minor": {
            "type": "integer",
            "maximum": 100000000.0,
            "minimum": 100.0,
            "title": "Amount Minor"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "pay_currency": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-z0-9]{2,20}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pay Currency"
          },
          "method": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "sbp",
                  "card"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Method"
          }
        },
        "type": "object",
        "required": [
          "amount_minor"
        ],
        "title": "TopupIn"
      },
      "TopupPoolIn": {
        "properties": {
          "gb": {
            "type": "integer",
            "maximum": 100000.0,
            "minimum": 1.0,
            "title": "Gb"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "gb"
        ],
        "title": "TopupPoolIn"
      },
      "TransferIn": {
        "properties": {
          "profile_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Profile Ids"
          },
          "to_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "To Email"
          },
          "to_workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "To Workspace Id"
          },
          "with_proxy": {
            "type": "boolean",
            "title": "With Proxy",
            "default": true
          },
          "message": {
            "type": "string",
            "maxLength": 1000,
            "title": "Message",
            "default": ""
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "profile_ids"
        ],
        "title": "TransferIn"
      },
      "TransferOwnershipIn": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "TransferOwnershipIn"
      },
      "UnreadOut": {
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/TicketOut"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "count",
          "items"
        ],
        "title": "UnreadOut"
      },
      "UsageMoney": {
        "properties": {
          "currency": {
            "type": "string",
            "title": "Currency"
          },
          "subscription_status": {
            "type": "string",
            "title": "Subscription Status"
          },
          "next_charge_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Charge At"
          },
          "next_charge_minor": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Charge Minor"
          },
          "pending_payment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Payment Id"
          }
        },
        "type": "object",
        "required": [
          "currency",
          "subscription_status",
          "next_charge_at",
          "next_charge_minor",
          "pending_payment_id"
        ],
        "title": "UsageMoney"
      },
      "UsageOut": {
        "properties": {
          "plan": {
            "$ref": "#/components/schemas/PlanState"
          },
          "limits": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Limits"
          },
          "usage": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Usage"
          },
          "money": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UsageMoney"
              },
              {
                "type": "null"
              }
            ]
          },
          "proxy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UsageProxy"
              },
              {
                "type": "null"
              }
            ]
          },
          "api_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/KeySpendOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "plan",
          "limits",
          "usage"
        ],
        "title": "UsageOut"
      },
      "UsagePool": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "product_code": {
            "type": "string",
            "title": "Product Code"
          },
          "bytes_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bytes Total"
          },
          "bytes_used": {
            "type": "integer",
            "title": "Bytes Used"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "auto_renew": {
            "type": "boolean",
            "title": "Auto Renew"
          },
          "live": {
            "type": "boolean",
            "title": "Live"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "product_code",
          "bytes_total",
          "bytes_used",
          "expires_at",
          "auto_renew",
          "live"
        ],
        "title": "UsagePool"
      },
      "UsageProxy": {
        "properties": {
          "wallet_micro": {
            "type": "integer",
            "title": "Wallet Micro"
          },
          "spend_7d_micro": {
            "type": "integer",
            "title": "Spend 7D Micro"
          },
          "traffic_7d_micro": {
            "type": "integer",
            "title": "Traffic 7D Micro"
          },
          "daily_avg_micro": {
            "type": "integer",
            "title": "Daily Avg Micro"
          },
          "days_left": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Days Left"
          },
          "pools": {
            "items": {
              "$ref": "#/components/schemas/UsagePool"
            },
            "type": "array",
            "title": "Pools"
          }
        },
        "type": "object",
        "required": [
          "wallet_micro",
          "spend_7d_micro",
          "traffic_7d_micro",
          "daily_avg_micro",
          "days_left",
          "pools"
        ],
        "title": "UsageProxy"
      },
      "UserBrief": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name"
        ],
        "title": "UserBrief"
      },
      "VersionIn": {
        "properties": {
          "lease_id": {
            "type": "string",
            "format": "uuid",
            "title": "Lease Id"
          },
          "base_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Version"
          },
          "kind": {
            "type": "string",
            "enum": [
              "auto",
              "close",
              "manual",
              "conflict"
            ],
            "title": "Kind",
            "default": "auto"
          },
          "files": {
            "items": {
              "$ref": "#/components/schemas/FileEntry"
            },
            "type": "array",
            "maxItems": 20000,
            "title": "Files"
          },
          "skipped": {
            "items": {
              "$ref": "#/components/schemas/SkippedEntry"
            },
            "type": "array",
            "maxItems": 20000,
            "title": "Skipped"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "lease_id",
          "files"
        ],
        "title": "VersionIn"
      },
      "VersionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "current": {
            "type": "boolean",
            "title": "Current"
          }
        },
        "type": "object",
        "required": [
          "id",
          "version",
          "sha256",
          "size",
          "created_at",
          "current"
        ],
        "title": "VersionOut"
      },
      "VersionPatch": {
        "properties": {
          "pinned": {
            "type": "boolean",
            "title": "Pinned"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "pinned"
        ],
        "title": "VersionPatch"
      },
      "WalletOut": {
        "properties": {
          "balance_micro": {
            "type": "integer",
            "title": "Balance Micro"
          },
          "usage": {
            "additionalProperties": true,
            "type": "object",
            "title": "Usage"
          },
          "ledger": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Ledger"
          }
        },
        "type": "object",
        "required": [
          "balance_micro",
          "usage",
          "ledger"
        ],
        "title": "WalletOut"
      },
      "WebhookIn": {
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 8,
            "title": "Url"
          },
          "events": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "minItems": 1,
            "title": "Events"
          },
          "description": {
            "type": "string",
            "maxLength": 200,
            "title": "Description",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "url",
          "events"
        ],
        "title": "WebhookIn"
      },
      "WebhookOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "events": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Events"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "disabled_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled Reason"
          },
          "failures": {
            "type": "integer",
            "title": "Failures"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret"
          }
        },
        "type": "object",
        "required": [
          "id",
          "url",
          "events",
          "description",
          "active",
          "disabled_reason",
          "failures",
          "created_at"
        ],
        "title": "WebhookOut"
      },
      "WebhookPatch": {
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048,
                "minLength": 8
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "events": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "maxItems": 50,
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Events"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active"
          }
        },
        "type": "object",
        "title": "WebhookPatch"
      },
      "WebstoreIn": {
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 32,
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "WebstoreIn"
      },
      "WorkspaceDeviceOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "os": {
            "type": "string",
            "title": "Os"
          },
          "last_user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LicensingUserRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "First Seen At"
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen At"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "key_fp": {
            "type": "string",
            "title": "Key Fp"
          },
          "key_shared_recent": {
            "type": "boolean",
            "title": "Key Shared Recent"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "os",
          "last_user",
          "first_seen_at",
          "last_seen_at",
          "active",
          "key_fp",
          "key_shared_recent"
        ],
        "title": "WorkspaceDeviceOut"
      },
      "WorkspaceIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "WorkspaceIn"
      },
      "WorkspaceOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "require_mfa": {
            "type": "boolean",
            "title": "Require Mfa"
          },
          "owner_id": {
            "type": "string",
            "format": "uuid",
            "title": "Owner Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "rev": {
            "type": "integer",
            "title": "Rev"
          },
          "sync_limits": {
            "$ref": "#/components/schemas/SyncLimits"
          },
          "sync_exclude_default": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sync Exclude Default"
          },
          "plan": {
            "$ref": "#/components/schemas/PlanState"
          },
          "my_role": {
            "$ref": "#/components/schemas/RoleOut"
          },
          "my_permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "My Permissions"
          },
          "deletion_scheduled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deletion Scheduled At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "require_mfa",
          "owner_id",
          "created_at",
          "rev",
          "sync_limits",
          "plan",
          "my_role",
          "my_permissions"
        ],
        "title": "WorkspaceOut"
      },
      "WorkspacePatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "require_mfa": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Require Mfa"
          },
          "sync_limits": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SyncLimits"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_exclude_default": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "cookies",
                    "passwords",
                    "autofill",
                    "history",
                    "bookmarks",
                    "tabs",
                    "site_storage",
                    "extensions_data",
                    "settings"
                  ]
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Sync Exclude Default"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev"
          }
        },
        "type": "object",
        "title": "WorkspacePatch"
      },
      "WorkspaceRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "WorkspaceRef"
      },
      "X402TopupOut": {
        "properties": {
          "payment": {
            "$ref": "#/components/schemas/PaymentOut"
          },
          "network": {
            "type": "string",
            "title": "Network",
            "description": "CAIP-2, e.g. eip155:8453"
          },
          "payer": {
            "type": "string",
            "title": "Payer"
          },
          "transaction": {
            "type": "string",
            "title": "Transaction"
          },
          "explorer_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Explorer Url"
          }
        },
        "type": "object",
        "required": [
          "payment",
          "network",
          "payer",
          "transaction"
        ],
        "title": "X402TopupOut",
        "description": "x402 top-up credited: the payment, network (CAIP-2), payer and on-chain transaction."
      },
      "LicensingUserRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name"
        ],
        "title": "UserRef"
      },
      "Oauth_asRegisterIn": {
        "properties": {
          "client_name": {
            "type": "string",
            "maxLength": 100,
            "title": "Client Name",
            "default": ""
          },
          "redirect_uris": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 10,
            "minItems": 1,
            "title": "Redirect Uris"
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "title": "Token Endpoint Auth Method",
            "default": "none"
          },
          "grant_types": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grant Types"
          },
          "response_types": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Response Types"
          }
        },
        "type": "object",
        "required": [
          "redirect_uris"
        ],
        "title": "RegisterIn"
      },
      "PoolIdsIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 50,
            "minItems": 1,
            "title": "Ids"
          }
        },
        "type": "object",
        "required": [
          "ids"
        ],
        "title": "IdsIn"
      },
      "CommonRegisterIn": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 8,
            "title": "Password"
          },
          "display_name": {
            "type": "string",
            "maxLength": 128,
            "title": "Display Name",
            "default": ""
          },
          "locale": {
            "type": "string",
            "enum": [
              "ru",
              "en"
            ],
            "title": "Locale",
            "default": "en"
          },
          "invite_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Invite Token"
          },
          "accept_terms": {
            "type": "boolean",
            "title": "Accept Terms",
            "default": false
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "ref": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Ref"
          },
          "device": {
            "$ref": "#/components/schemas/DeviceIn"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password",
          "device"
        ],
        "title": "RegisterIn"
      },
      "CommonUserRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "id"
        ],
        "title": "UserRef"
      },
      "Schemas_wsIdsIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 1000,
            "minItems": 1,
            "title": "Ids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ids"
        ],
        "title": "IdsIn"
      },
      "ErrorResponse": {
        "type": "object",
        "title": "ErrorResponse",
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "params",
              "message",
              "details",
              "action",
              "doc_url"
            ],
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string",
                "description": "stable machine-readable code"
              },
              "params": {
                "type": "object",
                "description": "values to substitute into the translated text"
              },
              "message": {
                "type": "string",
                "description": "hint for developers, not for display"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "action": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ErrorAction"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "doc_url": {
                "type": "string",
                "description": "help page for the code (language follows Accept-Language)"
              }
            }
          }
        }
      },
      "ErrorAction": {
        "type": "object",
        "title": "ErrorAction",
        "required": [
          "kind",
          "api",
          "url",
          "retry_after"
        ],
        "additionalProperties": false,
        "description": "what to do next (kinds: GET /v1/errors)",
        "properties": {
          "kind": {
            "type": "string",
            "description": "retry, topup, upgrade, sign_in, … (GET /v1/errors → action_kinds)"
          },
          "api": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "API call, e.g. \"POST /v1/…\""
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "page for a person"
          },
          "retry_after": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "seconds until retry"
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "title": "ProblemDetails",
        "required": [
          "type",
          "title",
          "status",
          "code"
        ],
        "description": "RFC 9457, with Accept: application/problem+json",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "params": {
            "type": "object"
          },
          "details": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ErrorAction"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "workspace API key `ak_…` or user access token; see x-auth on each operation"
      }
    }
  },
  "x-error-action-kinds": {
    "retry": "retry the same request after retry_after seconds (Retry-After header)",
    "refresh_token": "refresh the access token and retry",
    "sign_in": "sign in again",
    "new_api_key": "issue a new API key",
    "verify_email": "confirm the email address via the emailed link",
    "enable_mfa": "enable two-factor authentication",
    "upgrade": "change the plan or free up the resource",
    "buy_slots": "buy extra concurrent-launch slots (checkout with running_slots) or close a running profile; you may retry after retry_after seconds",
    "renew": "renew the subscription",
    "topup": "top up the workspace balance",
    "topup_proxy_wallet": "top up the balance (SBP, card or crypto)",
    "use_desktop_app": "only the Geksy app on a device can do this: install it and sign in",
    "refetch": "take the current object (details.current) and apply the change again",
    "relaunch": "start the profile again",
    "wait": "the resource is busy — try again later",
    "new_idempotency_key": "use a new Idempotency-Key for a different request body",
    "fix_request": "fix the fields listed in details.fields",
    "grant_permission": "the params.permission permission is required: grant it to the member's role or issue an API key with it in scopes",
    "contact_support": "contact support with the request_id",
    "solve_challenge": "get a new challenge (GET /v1/agent/signup/challenge), solve it and repeat",
    "human_approval": "a person with billing.manage must approve the purchase (params.approval_id); then repeat the same request with the X-Spend-Approval header",
    "pay_x402": "pay by x402: sign the requirements from the PAYMENT-REQUIRED header (also in error.details) and repeat the same request with the PAYMENT-SIGNATURE header"
  },
  "servers": [
    {
      "url": "https://api.geksy.cc"
    }
  ]
}
