{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-account-oauth-client-schema.json",
  "title": "AccountOAuthClient",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-authorizations-api-openapi.yml#/components/schemas/AccountOAuthClient",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "personal",
        "agent",
        "partner"
      ]
    },
    "partnerId": {
      "type": "string"
    },
    "mcpCaseId": {
      "type": "string"
    },
    "redirectUris": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "cases:read",
          "fees:agentic:write",
          "executions:report",
          "filings:write",
          "answers:write",
          "submissions:write",
          "records:confirm",
          "records:write",
          "invitations:write",
          "messages:write",
          "remedies:write",
          "representatives:manage",
          "procedural:request",
          "termination:write",
          "consents:write",
          "offline_access"
        ]
      }
    },
    "createdAt": {
      "type": "string"
    },
    "revokedAt": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "kind",
    "redirectUris",
    "scopes",
    "createdAt"
  ]
}