{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-oauth-authorize-dto-schema.json",
  "title": "OAuthAuthorizeDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-api-keys-api-openapi.yml#/components/schemas/OAuthAuthorizeDto",
  "type": "object",
  "properties": {
    "clientId": {
      "type": "string"
    },
    "redirectUri": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "responseType": {
      "type": "string"
    },
    "codeChallenge": {
      "type": "string",
      "description": "PKCE S256 code challenge"
    },
    "codeChallengeMethod": {
      "type": "string",
      "description": "PKCE code challenge method (S256)"
    },
    "resource": {
      "type": "string",
      "description": "RFC 8707 resource indicator"
    },
    "workspaceIds": {
      "description": "More organizations the connection may act in, besides the current one (the default).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allWorkspaces": {
      "type": "boolean",
      "description": "Every organization you are a member of, including ones created later. MCP connections only."
    }
  },
  "required": [
    "clientId",
    "redirectUri"
  ]
}