{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-representative-invitation-preview-schema.json",
  "title": "RepresentativeInvitationPreview",
  "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/RepresentativeInvitationPreview",
  "type": "object",
  "required": [
    "email",
    "basisOfAuthority"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "Representative’s full name, self-reported by the inviting party and unverified, for conflict checks. Whitespace is trimmed and collapsed. Control characters and @ are not accepted."
    },
    "firm": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Law firm or organization, self-reported by the inviting party and unverified, for conflict checks. Whitespace is trimmed and collapsed. Control characters and @ are not accepted."
    },
    "basisOfAuthority": {
      "type": "string",
      "minLength": 1
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "view_record",
          "receive_notices",
          "file_submissions",
          "send_procedural_messages",
          "file_appeal",
          "answer_appeal",
          "file_post_award_request",
          "report_execution"
        ]
      }
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}