{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-representative-change-preview-schema.json",
  "title": "RepresentativeChangePreview",
  "description": "Partner membership authority permits only own-side revocation. Acceptance and withdrawal require the representative account.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-party-procedure-api-openapi.yml#/components/schemas/RepresentativeChangePreview",
  "type": "object",
  "required": [
    "grantId",
    "action"
  ],
  "properties": {
    "grantId": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "enum": [
        "accept",
        "revoke",
        "withdraw"
      ]
    },
    "professionalStatus": {
      "type": "string",
      "enum": [
        "licensed_lawyer",
        "not_lawyer"
      ]
    },
    "licenseJurisdictions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}