{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-canonical-file-answer-preview-response-schema.json",
  "title": "CanonicalFileAnswerPreviewResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-cases-and-participation-api-openapi.yml#/components/schemas/CanonicalFileAnswerPreviewResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/CanonicalAnswerResult"
    },
    "requestId": {
      "type": "string"
    }
  },
  "required": [
    "data",
    "requestId"
  ],
  "$defs": {
    "CanonicalAnswerResult": {
      "type": "object",
      "properties": {
        "schemaVersion": {
          "type": "string"
        },
        "caseId": {
          "type": "string"
        },
        "accepted": {
          "type": "boolean"
        },
        "capabilityDelivery": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "phase": {
          "type": "string"
        },
        "deadlines": {
          "type": "object",
          "properties": {
            "answer": {
              "type": "string"
            },
            "evidence": {
              "type": "string"
            },
            "rebuttal": {
              "type": "string"
            }
          }
        },
        "walletVerified": {
          "type": "boolean"
        },
        "authorization": {
          "type": "string"
        },
        "showOnce": {
          "type": "object",
          "properties": {
            "respondentPartyToken": {
              "type": "string"
            }
          }
        },
        "respondentToken": {
          "type": "string",
          "description": "Show-once hosted respondent capability; never log it."
        },
        "trackNote": {
          "type": "string"
        },
        "ran": {
          "const": false
        },
        "answerReference": {
          "type": "object",
          "properties": {
            "caseId": {
              "type": "string"
            },
            "submissionId": {
              "type": "string"
            },
            "membershipId": {
              "type": "string"
            },
            "revision": {
              "type": "integer"
            },
            "followUpEventId": {
              "type": "string"
            }
          }
        }
      },
      "anyOf": [
        {
          "required": [
            "status"
          ]
        },
        {
          "required": [
            "schemaVersion",
            "caseId",
            "accepted",
            "capabilityDelivery"
          ]
        }
      ]
    }
  }
}