{
 "components": {
  "schemas": {
   "Activity": {
    "additionalProperties": false,
    "description": "Activity.",
    "properties": {
     "at": {
      "description": "At.",
      "type": "string"
     },
     "id": {
      "description": "Id.",
      "type": "string"
     },
     "kind": {
      "description": "Kind.",
      "type": "string"
     },
     "label": {
      "description": "Label.",
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     }
    },
    "required": [
     "id",
     "at",
     "kind",
     "label",
     "source"
    ],
    "type": "object"
   },
   "AddTrackingRequest": {
    "additionalProperties": false,
    "description": "AddTrackingRequest.",
    "properties": {
     "case_ref": {
      "description": "Case ref.",
      "pattern": "^case-ref-[0-9]{3}$",
      "type": "string"
     },
     "confirm_token": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_-]{32}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Confirm token."
     },
     "dispute_id": {
      "description": "Dispute id.",
      "pattern": "^PP-[A-Z0-9][A-Z0-9-]{2,62}$",
      "type": "string"
     },
     "submit": {
      "default": false,
      "description": "Submit.",
      "type": "boolean"
     }
    },
    "required": [
     "dispute_id",
     "case_ref"
    ],
    "type": "object"
   },
   "AddTrackingResponse": {
    "additionalProperties": false,
    "description": "AddTrackingResponse.",
    "properties": {
     "body": {
      "$ref": "#/components/schemas/TrackerBatch"
     },
     "case_ref": {
      "description": "Case ref.",
      "pattern": "^case-ref-[0-9]{3}$",
      "type": "string"
     },
     "confirm_token": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_-]{32}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Confirm token."
     },
     "content_type": {
      "const": "application/json",
      "description": "Content type.",
      "type": "string"
     },
     "data_source_label": {
      "description": "Data source label.",
      "enum": [
       "Sandbox",
       "Fixture"
      ],
      "type": "string"
     },
     "dispute_id": {
      "description": "Dispute id.",
      "pattern": "^PP-[A-Z0-9][A-Z0-9-]{2,62}$",
      "type": "string"
     },
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_class": {
      "description": "Evidence class.",
      "enum": [
       "AUTHENTIC_SANDBOX_RESPONSE",
       "SYNTHETIC_TEST_RESPONSE",
       "SYNTHETIC_FIXTURE"
      ],
      "type": "string"
     },
     "external_send": {
      "description": "External send.",
      "enum": [
       "FROZEN",
       "SUBMITTED"
      ],
      "type": "string"
     },
     "human_review_required": {
      "const": true,
      "description": "Human review required.",
      "type": "boolean"
     },
     "method": {
      "const": "POST",
      "description": "Method.",
      "type": "string"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Note."
     },
     "observed_at": {
      "description": "Observed at.",
      "maxLength": 27,
      "minLength": 20,
      "type": "string"
     },
     "path": {
      "const": "/v1/shipping/trackers-batch",
      "description": "Path.",
      "type": "string"
     },
     "payload_sha256": {
      "anyOf": [
       {
        "pattern": "^[a-f0-9]{64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Payload sha256."
     },
     "paypal_debug_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9]{6,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Paypal debug id."
     },
     "provider_submission": {
      "description": "Provider submission.",
      "enum": [
       "NOT_PERFORMED",
       "PERFORMED"
      ],
      "type": "string"
     },
     "readback": {
      "description": "Readback.",
      "enum": [
       "ADD_TRACKING_PREVIEW",
       "ADD_TRACKING_SUBMITTED"
      ],
      "type": "string"
     },
     "send_guard": {
      "$ref": "#/components/schemas/SendGuard"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "paypal_sandbox",
       "synthetic_fixture"
      ],
      "type": "string"
     },
     "submit_flag_enabled": {
      "description": "Submit flag enabled.",
      "type": "boolean"
     }
    },
    "required": [
     "source",
     "data_source_label",
     "environment",
     "evidence_class",
     "observed_at",
     "provider_submission",
     "readback",
     "dispute_id",
     "case_ref",
     "method",
     "path",
     "content_type",
     "body",
     "external_send",
     "submit_flag_enabled",
     "human_review_required",
     "send_guard"
    ],
    "type": "object"
   },
   "AdvisoryClaimGate": {
    "additionalProperties": false,
    "description": "AdvisoryClaimGate.",
    "properties": {
     "claim_index": {
      "description": "Claim index.",
      "maximum": 19.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "claim_type": {
      "description": "Claim type.",
      "enum": [
       "policy_reference",
       "current_policy",
       "procedural_reference",
       "api_reference",
       "financial_action",
       "assurance"
      ],
      "type": "string"
     },
     "reason_codes": {
      "description": "Reason codes.",
      "items": {
       "enum": [
        "ACTION_CLAIM_FORBIDDEN",
        "ASSURANCE_CLAIM_FORBIDDEN",
        "CITATION_UNKNOWN",
        "CITATION_REGION_MISMATCH",
        "CITATION_THEME_MISMATCH",
        "CLAIM_REFERENCE_TYPE_MISMATCH",
        "FUTURE_OBSERVATION",
        "STALE_OBSERVATION",
        "DOCUMENT_UPDATE_IN_FUTURE",
        "CURRENT_POLICY_NOT_ESTABLISHED"
       ],
       "type": "string"
      },
      "maxItems": 10,
      "type": "array"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "STRUCTURE_COMPATIBLE",
       "INCOMPLETE_EVIDENCE",
       "REJECTED"
      ],
      "type": "string"
     },
     "trusted_citation_chunk_ids": {
      "description": "Trusted citation chunk ids.",
      "items": {
       "pattern": "^[A-Z0-9-]{1,128}$",
       "type": "string"
      },
      "maxItems": 10,
      "type": "array"
     }
    },
    "required": [
     "claim_index",
     "claim_type",
     "status",
     "trusted_citation_chunk_ids",
     "reason_codes"
    ],
    "type": "object"
   },
   "AdvisoryEvaluationResponse": {
    "additionalProperties": false,
    "description": "AdvisoryEvaluationResponse.",
    "properties": {
     "PII_quality": {
      "const": "NOT_EVALUATED",
      "description": "PII quality.",
      "type": "string"
     },
     "advisory_only": {
      "description": "Advisory only.",
      "type": "boolean"
     },
     "claim_count": {
      "description": "Claim count.",
      "maximum": 20.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "claim_gates": {
      "description": "Claim gates.",
      "items": {
       "$ref": "#/components/schemas/AdvisoryClaimGate"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
     },
     "corpus_digest": {
      "description": "Corpus digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "corpus_digests": {
      "$ref": "#/components/schemas/ReferenceDigests"
     },
     "corpus_id": {
      "const": "payguard-us-official-references-v2",
      "description": "Corpus id.",
      "type": "string"
     },
     "coverage": {
      "$ref": "#/components/schemas/PolicyCoverage"
     },
     "current_policy_applicability": {
      "const": "NOT_ESTABLISHED",
      "description": "Current policy applicability.",
      "type": "string"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "maxLength": 2000,
       "minLength": 1,
       "type": "string"
      },
      "maxItems": 32,
      "minItems": 1,
      "type": "array"
     },
     "model_generation": {
      "const": "NOT_RUN",
      "description": "Model generation.",
      "type": "string"
     },
     "natural_language_action_assurance_quality": {
      "const": "NOT_EVALUATED",
      "description": "Natural language action assurance quality.",
      "type": "string"
     },
     "operational_authority": {
      "const": "REFERENCE_ONLY_NO_ACTION_AUTHORIZATION",
      "description": "Operational authority.",
      "type": "string"
     },
     "prompt_injection_quality": {
      "const": "NOT_EVALUATED",
      "description": "Prompt injection quality.",
      "type": "string"
     },
     "requested_context": {
      "$ref": "#/components/schemas/PolicyContext"
     },
     "requires_human_review": {
      "description": "Requires human review.",
      "type": "boolean"
     },
     "schema_version": {
      "description": "Schema version.",
      "maximum": 1.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "semantic_entailment": {
      "const": "NOT_EVALUATED",
      "description": "Semantic entailment.",
      "type": "string"
     },
     "source": {
      "const": "offline_structured_gate",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "STRUCTURE_COMPATIBLE",
       "INCOMPLETE_EVIDENCE",
       "REJECTED"
      ],
      "type": "string"
     },
     "version": {
      "const": "payguard.advisory_eval.v1",
      "description": "Version.",
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "version",
     "source",
     "status",
     "requested_context",
     "corpus_id",
     "corpus_digest",
     "corpus_digests",
     "advisory_only",
     "operational_authority",
     "requires_human_review",
     "semantic_entailment",
     "PII_quality",
     "prompt_injection_quality",
     "natural_language_action_assurance_quality",
     "model_generation",
     "claim_count",
     "claim_gates",
     "current_policy_applicability",
     "coverage",
     "limitations"
    ],
    "type": "object"
   },
   "AdvisoryRequest": {
    "additionalProperties": false,
    "description": "AdvisoryRequest.",
    "properties": {
     "as_of": {
      "description": "As of.",
      "maxLength": 64,
      "minLength": 20,
      "type": "string"
     },
     "candidate_json": {
      "description": "Candidate json.",
      "maxLength": 8192,
      "minLength": 1,
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "observation_max_age_days": {
      "description": "Observation max age days.",
      "maximum": 365000.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "theme": {
      "description": "Theme.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "jurisdiction",
     "theme",
     "as_of",
     "observation_max_age_days",
     "candidate_json"
    ],
    "type": "object"
   },
   "AiBriefHttpRequest": {
    "additionalProperties": false,
    "description": "What the console may send: the stage and, for disputes, which case. Session facts are never caller input.",
    "properties": {
     "case_ref": {
      "anyOf": [
       {
        "pattern": "^case-ref-[0-9]{3}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Case ref."
     },
     "stage": {
      "description": "Stage.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "stage"
    ],
    "type": "object"
   },
   "AiBriefResponse": {
    "additionalProperties": false,
    "description": "AiBriefResponse.",
    "properties": {
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "ai_generated": {
      "const": true,
      "description": "Ai generated.",
      "type": "boolean"
     },
     "brief": {
      "$ref": "#/components/schemas/GeneratedBrief"
     },
     "compliance_decision": {
      "const": "NOT_MADE",
      "description": "Compliance decision.",
      "type": "string"
     },
     "context_digest": {
      "description": "Context digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "corpus_digest": {
      "description": "Corpus digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "current_policy_applicability": {
      "const": "NOT_ESTABLISHED",
      "description": "Current policy applicability.",
      "type": "string"
     },
     "execution_evidence": {
      "description": "Execution evidence.",
      "enum": [
       "SYNTHETIC_TEST_RESPONSE",
       "OPERATOR_LIVE_RESPONSE"
      ],
      "type": "string"
     },
     "external_action_authorized": {
      "const": false,
      "description": "External action authorized.",
      "type": "boolean"
     },
     "fixture_id": {
      "description": "Fixture id.",
      "enum": [
       "payguard-fixed-synthetic-brief-v1",
       "payguard-session-brief-v1"
      ],
      "type": "string"
     },
     "human_review_required": {
      "const": true,
      "description": "Human review required.",
      "type": "boolean"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "type": "string"
      },
      "maxItems": 3,
      "minItems": 3,
      "type": "array"
     },
     "model": {
      "const": "gemini-3.8-flash",
      "description": "Model.",
      "type": "string"
     },
     "prompt_contract_digest": {
      "description": "Prompt contract digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "prompt_contract_id": {
      "const": "payguard-bounded-advisory-v3",
      "description": "Prompt contract id.",
      "type": "string"
     },
     "schema_version": {
      "const": "1.0",
      "description": "Schema version.",
      "type": "string"
     },
     "semantic_entailment": {
      "const": "NOT_EVALUATED",
      "description": "Semantic entailment.",
      "type": "string"
     },
     "stage": {
      "description": "Stage.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     },
     "status": {
      "const": "completed",
      "description": "Status.",
      "type": "string"
     },
     "workflow_transition_authorized": {
      "const": false,
      "description": "Workflow transition authorized.",
      "type": "boolean"
     }
    },
    "required": [
     "schema_version",
     "status",
     "stage",
     "fixture_id",
     "context_digest",
     "corpus_digest",
     "model",
     "prompt_contract_id",
     "prompt_contract_digest",
     "execution_evidence",
     "brief",
     "ai_generated",
     "advisory_only",
     "human_review_required",
     "compliance_decision",
     "current_policy_applicability",
     "external_action_authorized",
     "workflow_transition_authorized",
     "semantic_entailment",
     "limitations"
    ],
    "type": "object"
   },
   "AiUsageEntry": {
    "additionalProperties": false,
    "description": "AiUsageEntry.",
    "properties": {
     "at": {
      "description": "At.",
      "type": "string"
     },
     "estimated_cost_usd": {
      "anyOf": [
       {
        "pattern": "^[0-9]{1,9}\\.[0-9]{6}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Estimated cost usd."
     },
     "latency_ms": {
      "description": "Latency ms.",
      "maximum": 3600000.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "model": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:/-]{1,128}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Model."
     },
     "outcome": {
      "description": "Outcome.",
      "enum": [
       "ok",
       "error"
      ],
      "type": "string"
     },
     "stage": {
      "description": "Stage.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation",
       "guide",
       "studio_agent"
      ],
      "type": "string"
     },
     "tokens_in": {
      "anyOf": [
       {
        "maximum": 100000000.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Tokens in."
     },
     "tokens_out": {
      "anyOf": [
       {
        "maximum": 100000000.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Tokens out."
     },
     "tokens_total": {
      "anyOf": [
       {
        "maximum": 100000000.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Tokens total."
     }
    },
    "required": [
     "at",
     "stage",
     "outcome",
     "latency_ms"
    ],
    "type": "object"
   },
   "AiUsageResponse": {
    "additionalProperties": false,
    "description": "AiUsageResponse.",
    "properties": {
     "content_logged": {
      "const": false,
      "default": false,
      "description": "Content logged.",
      "type": "boolean"
     },
     "cost_note": {
      "description": "Cost note.",
      "type": "string"
     },
     "entries": {
      "description": "Entries.",
      "items": {
       "$ref": "#/components/schemas/AiUsageEntry"
      },
      "maxItems": 50,
      "type": "array"
     },
     "price_table_source": {
      "description": "Price table source.",
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "session_memory",
       "hosted_demo"
      ],
      "type": "string"
     }
    },
    "required": [
     "source",
     "entries",
     "price_table_source",
     "cost_note"
    ],
    "type": "object"
   },
   "ApproveRequest": {
    "additionalProperties": false,
    "description": "ApproveRequest.",
    "properties": {
     "draft_digest": {
      "description": "Draft digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     }
    },
    "required": [
     "draft_digest"
    ],
    "type": "object"
   },
   "AupAcknowledgeRequest": {
    "additionalProperties": false,
    "description": "AupAcknowledgeRequest.",
    "properties": {
     "choice": {
      "description": "Choice.",
      "enum": [
       "RETURN_TO_EDIT",
       "CANCEL",
       "ACKNOWLEDGE_AND_CONTINUE"
      ],
      "type": "string"
     },
     "description_digest": {
      "description": "Description digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     }
    },
    "required": [
     "evaluation_id",
     "description_digest",
     "choice"
    ],
    "type": "object"
   },
   "AupAcknowledgeResponse": {
    "additionalProperties": false,
    "description": "AupAcknowledgeResponse.",
    "properties": {
     "acknowledgement_token": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 32,
        "pattern": "^[A-Za-z0-9_-]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Acknowledgement token."
     },
     "choice": {
      "description": "Choice.",
      "enum": [
       "RETURN_TO_EDIT",
       "CANCEL",
       "ACKNOWLEDGE_AND_CONTINUE"
      ],
      "type": "string"
     },
     "compliance_decision": {
      "const": "NOT_MADE",
      "description": "Compliance decision.",
      "type": "string"
     },
     "description_digest": {
      "description": "Description digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Expires at."
     },
     "external_action_authorized": {
      "const": false,
      "description": "External action authorized.",
      "type": "boolean"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "warning_copy_version": {
      "const": "aup-warning-v1",
      "description": "Warning copy version.",
      "type": "string"
     }
    },
    "required": [
     "source",
     "evaluation_id",
     "description_digest",
     "choice",
     "acknowledgement_token",
     "expires_at",
     "warning_copy_version",
     "compliance_decision",
     "external_action_authorized"
    ],
    "type": "object"
   },
   "AupCategorySignalRequest": {
    "additionalProperties": false,
    "description": "AupCategorySignalRequest.",
    "properties": {
     "description": {
      "description": "Description.",
      "maxLength": 4000,
      "minLength": 1,
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     }
    },
    "required": [
     "evaluation_id",
     "description"
    ],
    "type": "object"
   },
   "AupCategorySignalResponse": {
    "additionalProperties": false,
    "description": "Optional Channel3 signal shown next to the AUP result; it never changes the rule decision.",
    "properties": {
     "affects_decision": {
      "const": false,
      "description": "Affects decision.",
      "type": "boolean"
     },
     "reason": {
      "anyOf": [
       {
        "enum": [
         "nothing_to_send",
         "budget_exhausted",
         "timeout",
         "upstream_error",
         "contract_rejected"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Reason."
     },
     "signal": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CategorySignal"
       },
       {
        "type": "null"
       }
      ],
      "description": "Signal."
     },
     "status": {
      "description": "Status.",
      "enum": [
       "OFF",
       "SIGNAL",
       "NOT_SENT",
       "UNAVAILABLE"
      ],
      "type": "string"
     }
    },
    "required": [
     "status",
     "signal",
     "reason",
     "affects_decision"
    ],
    "type": "object"
   },
   "AupRequest": {
    "additionalProperties": false,
    "description": "AupRequest.",
    "properties": {
     "description": {
      "description": "Description.",
      "maxLength": 4000,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "description"
    ],
    "type": "object"
   },
   "AupResponse": {
    "additionalProperties": false,
    "description": "AupResponse.",
    "properties": {
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "compliance_decision": {
      "const": "NOT_MADE",
      "description": "Compliance decision.",
      "type": "string"
     },
     "current_policy_applicability": {
      "const": "NOT_ESTABLISHED",
      "description": "Current policy applicability.",
      "type": "string"
     },
     "description_digest": {
      "description": "Description digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "evaluated_at": {
      "description": "Evaluated at.",
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     },
     "expires_at": {
      "description": "Expires at.",
      "type": "string"
     },
     "findings": {
      "description": "Findings.",
      "items": {
       "$ref": "#/components/schemas/Finding"
      },
      "type": "array"
     },
     "match_status": {
      "description": "Match status.",
      "enum": [
       "NO_MATCH",
       "REVIEW_SIGNAL"
      ],
      "type": "string"
     },
     "policy_url": {
      "const": "https://www.paypal.com/us/legalhub/paypal/acceptableuse-full",
      "description": "Policy url.",
      "type": "string"
     },
     "policy_version": {
      "description": "Policy version.",
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
     },
     "recommendation": {
      "description": "Recommendation.",
      "maxLength": 1000,
      "minLength": 1,
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "warning_copy_version": {
      "const": "aup-warning-v1",
      "description": "Warning copy version.",
      "type": "string"
     }
    },
    "required": [
     "match_status",
     "compliance_decision",
     "current_policy_applicability",
     "evaluation_id",
     "description_digest",
     "evaluated_at",
     "expires_at",
     "warning_copy_version",
     "policy_url",
     "findings",
     "recommendation",
     "policy_version",
     "advisory_only",
     "source"
    ],
    "type": "object"
   },
   "CaseRouteMatch": {
    "additionalProperties": false,
    "description": "CaseRouteMatch.",
    "properties": {
     "category": {
      "anyOf": [
       {
        "maxLength": 80,
        "minLength": 2,
        "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Category."
     },
     "exact_words": {
      "description": "Exact words.",
      "items": {
       "maxLength": 40,
       "minLength": 1,
       "pattern": "^[a-z0-9]+$",
       "type": "string"
      },
      "maxItems": 8,
      "type": "array"
     },
     "match_type": {
      "description": "Match type.",
      "enum": [
       "exact",
       "close"
      ],
      "type": "string"
     },
     "product_id": {
      "description": "Product id.",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "type": "string"
     },
     "score": {
      "description": "Score.",
      "maximum": 1.0,
      "minimum": 0.0,
      "type": "number"
     },
     "title": {
      "description": "Title.",
      "maxLength": 120,
      "minLength": 2,
      "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
      "type": "string"
     }
    },
    "required": [
     "product_id",
     "title",
     "category",
     "score",
     "exact_words",
     "match_type"
    ],
    "type": "object"
   },
   "CaseRouteRequest": {
    "additionalProperties": false,
    "description": "CaseRouteRequest.",
    "properties": {
     "text": {
      "description": "Text.",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "text"
    ],
    "type": "object"
   },
   "CaseRouteResponse": {
    "additionalProperties": false,
    "description": "Fuzzy case routing: which goods group (and so which dispute items) applies. Code decides; advisory only.",
    "properties": {
     "affects_decision": {
      "const": false,
      "description": "Affects decision.",
      "type": "boolean"
     },
     "decided_by": {
      "const": "code",
      "description": "Decided by.",
      "type": "string"
     },
     "filtered_out": {
      "description": "Filtered out.",
      "maximum": 1000.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "items": {
      "description": "Items.",
      "items": {
       "type": "string"
      },
      "maxItems": 12,
      "type": "array"
     },
     "matched_word": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Matched word."
     },
     "matches": {
      "description": "Matches.",
      "items": {
       "$ref": "#/components/schemas/CaseRouteMatch"
      },
      "maxItems": 3,
      "type": "array"
     },
     "query": {
      "anyOf": [
       {
        "maxLength": 120,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Query."
     },
     "reason": {
      "description": "Reason.",
      "enum": [
       "catalogue_match",
       "live_catalogue_match",
       "digital_word",
       "service_word",
       "filtered_conflict",
       "no_close_match",
       "nothing_to_match"
      ],
      "type": "string"
     },
     "route": {
      "description": "Route.",
      "enum": [
       "physical",
       "digital",
       "service",
       "unknown"
      ],
      "type": "string"
     }
    },
    "required": [
     "query",
     "route",
     "reason",
     "matched_word",
     "matches",
     "filtered_out",
     "items",
     "decided_by",
     "affects_decision"
    ],
    "type": "object"
   },
   "CategorySignal": {
    "additionalProperties": false,
    "description": "CategorySignal.",
    "properties": {
     "category": {
      "anyOf": [
       {
        "maxLength": 80,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9 &'\\-,./+()]*$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Category."
     },
     "confidence": {
      "anyOf": [
       {
        "enum": [
         "HIGH",
         "LOW"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Confidence."
     },
     "source": {
      "const": "channel3",
      "description": "Source.",
      "type": "string"
     }
    },
    "required": [
     "category",
     "confidence",
     "source"
    ],
    "type": "object"
   },
   "ConnectionsResponse": {
    "additionalProperties": false,
    "description": "Deployment mode only. Never a key, a key's presence, a value or a variable name.",
    "properties": {
     "mode": {
      "description": "Mode.",
      "enum": [
       "local",
       "hosted_demo"
      ],
      "type": "string"
     },
     "sandbox_reads": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "Sandbox reads."
     },
     "sandbox_send": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "Sandbox send."
     },
     "send_state": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/HostedSendState"
       },
       {
        "type": "null"
       }
      ],
      "description": "Send state."
     }
    },
    "required": [
     "mode"
    ],
    "type": "object"
   },
   "CountryRulesCheckRequest": {
    "additionalProperties": false,
    "description": "Seller and buyer countries plus closed choices; no free text reaches the check.",
    "properties": {
     "account_opened": {
      "default": "unknown",
      "description": "Account opened.",
      "enum": [
       "unknown",
       "before_cutoff",
       "after_cutoff"
      ],
      "type": "string"
     },
     "account_type": {
      "default": "business",
      "description": "Account type.",
      "enum": [
       "personal",
       "business"
      ],
      "type": "string"
     },
     "amount": {
      "anyOf": [
       {
        "pattern": "^[0-9]{1,9}(\\.[0-9]{1,2})?$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Amount."
     },
     "buyer_country": {
      "description": "Buyer country.",
      "enum": [
       "US",
       "TW",
       "CN",
       "HK",
       "GB",
       "DE",
       "JP",
       "SG",
       "AU",
       "CA"
      ],
      "type": "string"
     },
     "checkout": {
      "default": "paypal_account",
      "description": "Checkout.",
      "enum": [
       "paypal_account",
       "guest_card"
      ],
      "type": "string"
     },
     "currency": {
      "anyOf": [
       {
        "pattern": "^[A-Z]{3}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Currency."
     },
     "goods_tags": {
      "description": "Goods tags.",
      "items": {
       "type": "string"
      },
      "maxItems": 16,
      "type": "array"
     },
     "seller_country": {
      "description": "Seller country.",
      "enum": [
       "US",
       "TW",
       "CN",
       "HK",
       "GB",
       "DE",
       "JP",
       "SG",
       "AU",
       "CA"
      ],
      "type": "string"
     }
    },
    "required": [
     "seller_country",
     "buyer_country"
    ],
    "type": "object"
   },
   "CountryRulesSearchRequest": {
    "additionalProperties": false,
    "description": "CountryRulesSearchRequest.",
    "properties": {
     "limit": {
      "default": 5,
      "description": "Limit.",
      "maximum": 10.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "query": {
      "description": "Query.",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "query"
    ],
    "type": "object"
   },
   "DisputeApprovalResponse": {
    "additionalProperties": false,
    "description": "DisputeApprovalResponse.",
    "properties": {
     "action": {
      "const": "review_draft",
      "description": "Action.",
      "type": "string"
     },
     "authenticated_actor": {
      "const": false,
      "description": "Authenticated actor.",
      "type": "boolean"
     },
     "case_ref": {
      "description": "Case ref.",
      "type": "string"
     },
     "durable_approval": {
      "const": false,
      "description": "Durable approval.",
      "type": "boolean"
     },
     "external_submission": {
      "const": "FROZEN",
      "description": "External submission.",
      "type": "string"
     },
     "retention": {
      "const": "SESSION_MEMORY_ONLY",
      "description": "Retention.",
      "type": "string"
     },
     "reviewed_at": {
      "description": "Reviewed at.",
      "format": "date-time",
      "type": "string"
     },
     "reviewer": {
      "const": "DEMO_OPERATOR_UNAUTHENTICATED",
      "description": "Reviewer.",
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "const": "local_draft_reviewed",
      "description": "Status.",
      "type": "string"
     }
    },
    "required": [
     "case_ref",
     "action",
     "status",
     "external_submission",
     "authenticated_actor",
     "durable_approval",
     "reviewer",
     "reviewed_at",
     "retention",
     "source"
    ],
    "type": "object"
   },
   "DisputeDetailResponse": {
    "additionalProperties": false,
    "description": "DisputeDetailResponse.",
    "properties": {
     "create_time": {
      "description": "Create time.",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
      "type": "string"
     },
     "data_source_label": {
      "description": "Data source label.",
      "enum": [
       "Sandbox",
       "Fixture"
      ],
      "type": "string"
     },
     "dispute_amount": {
      "$ref": "#/components/schemas/ProviderMoney"
     },
     "dispute_channel": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Dispute channel."
     },
     "dispute_id": {
      "description": "Dispute id.",
      "pattern": "^PP-[A-Z0-9][A-Z0-9-]{2,62}$",
      "type": "string"
     },
     "dispute_life_cycle_stage": {
      "description": "Dispute life cycle stage.",
      "enum": [
       "INQUIRY",
       "CHARGEBACK",
       "PRE_ARBITRATION",
       "ARBITRATION",
       "UNKNOWN"
      ],
      "type": "string"
     },
     "dispute_state": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Dispute state."
     },
     "disputed_transactions": {
      "description": "Disputed transactions.",
      "items": {
       "$ref": "#/components/schemas/DisputedTransaction"
      },
      "maxItems": 10,
      "type": "array"
     },
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_class": {
      "description": "Evidence class.",
      "enum": [
       "AUTHENTIC_SANDBOX_RESPONSE",
       "SYNTHETIC_TEST_RESPONSE",
       "SYNTHETIC_FIXTURE"
      ],
      "type": "string"
     },
     "evidences": {
      "description": "Evidences.",
      "items": {
       "$ref": "#/components/schemas/DisputeEvidenceRow"
      },
      "maxItems": 20,
      "type": "array"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Note."
     },
     "observed_at": {
      "description": "Observed at.",
      "maxLength": 27,
      "minLength": 20,
      "type": "string"
     },
     "paypal_debug_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9]{6,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Paypal debug id."
     },
     "provider_submission": {
      "description": "Provider submission.",
      "enum": [
       "NOT_PERFORMED",
       "PERFORMED"
      ],
      "type": "string"
     },
     "readback": {
      "const": "GET_DETAIL",
      "description": "Readback.",
      "type": "string"
     },
     "reason": {
      "description": "Reason.",
      "enum": [
       "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
       "MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED",
       "UNAUTHORISED",
       "CREDIT_NOT_PROCESSED",
       "DUPLICATE_TRANSACTION",
       "INCORRECT_AMOUNT",
       "PAYMENT_BY_OTHER_MEANS",
       "CANCELED_RECURRING_BILLING",
       "OTHER"
      ],
      "type": "string"
     },
     "seller_response_due_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Seller response due date."
     },
     "source": {
      "description": "Source.",
      "enum": [
       "paypal_sandbox",
       "synthetic_fixture"
      ],
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "OPEN",
       "WAITING_FOR_SELLER_RESPONSE",
       "WAITING_FOR_BUYER_RESPONSE",
       "UNDER_REVIEW",
       "RESOLVED",
       "CLOSED",
       "UNKNOWN"
      ],
      "type": "string"
     },
     "update_time": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Update time."
     }
    },
    "required": [
     "dispute_id",
     "reason",
     "status",
     "dispute_life_cycle_stage",
     "dispute_amount",
     "create_time",
     "source",
     "data_source_label",
     "environment",
     "evidence_class",
     "observed_at",
     "provider_submission",
     "readback",
     "disputed_transactions",
     "evidences"
    ],
    "type": "object"
   },
   "DisputeDraftResponse": {
    "additionalProperties": false,
    "description": "DisputeDraftResponse.",
    "properties": {
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "case_ref": {
      "description": "Case ref.",
      "type": "string"
     },
     "document_redaction": {
      "$ref": "#/components/schemas/DocumentRedaction"
     },
     "draft_digest": {
      "description": "Draft digest.",
      "type": "string"
     },
     "evidence": {
      "$ref": "#/components/schemas/Evidence"
     },
     "identity_redaction": {
      "$ref": "#/components/schemas/IdentityRedaction"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "policy_version": {
      "description": "Policy version.",
      "type": "string"
     },
     "recommendation": {
      "description": "Recommendation.",
      "type": "string"
     },
     "restricted_original_summary": {
      "$ref": "#/components/schemas/RestrictedOriginalSummary"
     },
     "review_reasons": {
      "description": "Review reasons.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "routing": {
      "$ref": "#/components/schemas/DisputeRouting"
     },
     "scenario_match": {
      "$ref": "#/components/schemas/ScenarioMatch"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "manual_review",
       "review_evidence"
      ],
      "type": "string"
     },
     "time_evidence": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TimeEvidence"
       },
       {
        "type": "null"
       }
      ],
      "description": "Time evidence."
     }
    },
    "required": [
     "case_ref",
     "status",
     "evidence",
     "review_reasons",
     "recommendation",
     "limitations",
     "policy_version",
     "advisory_only",
     "source",
     "routing",
     "restricted_original_summary",
     "scenario_match",
     "draft_digest",
     "identity_redaction",
     "document_redaction"
    ],
    "type": "object"
   },
   "DisputeEvidenceRow": {
    "additionalProperties": false,
    "description": "DisputeEvidenceRow.",
    "properties": {
     "action": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Action."
     },
     "date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Date."
     },
     "evidence_type": {
      "description": "Evidence type.",
      "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "REQUESTED_FROM_SELLER",
       "REQUESTED_FROM_BUYER",
       "SUBMITTED_BY_SELLER",
       "SUBMITTED_BY_BUYER",
       "SUBMITTED_BY_PARTNER",
       "UNKNOWN"
      ],
      "type": "string"
     }
    },
    "required": [
     "evidence_type",
     "source"
    ],
    "type": "object"
   },
   "DisputeListResponse": {
    "additionalProperties": false,
    "description": "DisputeListResponse.",
    "properties": {
     "data_source_label": {
      "description": "Data source label.",
      "enum": [
       "Sandbox",
       "Fixture"
      ],
      "type": "string"
     },
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_class": {
      "description": "Evidence class.",
      "enum": [
       "AUTHENTIC_SANDBOX_RESPONSE",
       "SYNTHETIC_TEST_RESPONSE",
       "SYNTHETIC_FIXTURE"
      ],
      "type": "string"
     },
     "items": {
      "description": "Items.",
      "items": {
       "$ref": "#/components/schemas/DisputeRecord"
      },
      "maxItems": 20,
      "type": "array"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Note."
     },
     "observed_at": {
      "description": "Observed at.",
      "maxLength": 27,
      "minLength": 20,
      "type": "string"
     },
     "paypal_debug_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9]{6,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Paypal debug id."
     },
     "provider_submission": {
      "description": "Provider submission.",
      "enum": [
       "NOT_PERFORMED",
       "PERFORMED"
      ],
      "type": "string"
     },
     "readback": {
      "const": "GET_LIST",
      "description": "Readback.",
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "paypal_sandbox",
       "synthetic_fixture"
      ],
      "type": "string"
     }
    },
    "required": [
     "source",
     "data_source_label",
     "environment",
     "evidence_class",
     "observed_at",
     "provider_submission",
     "readback",
     "items"
    ],
    "type": "object"
   },
   "DisputeRecord": {
    "additionalProperties": false,
    "description": "DisputeRecord.",
    "properties": {
     "create_time": {
      "description": "Create time.",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
      "type": "string"
     },
     "dispute_amount": {
      "$ref": "#/components/schemas/ProviderMoney"
     },
     "dispute_id": {
      "description": "Dispute id.",
      "pattern": "^PP-[A-Z0-9][A-Z0-9-]{2,62}$",
      "type": "string"
     },
     "dispute_life_cycle_stage": {
      "description": "Dispute life cycle stage.",
      "enum": [
       "INQUIRY",
       "CHARGEBACK",
       "PRE_ARBITRATION",
       "ARBITRATION",
       "UNKNOWN"
      ],
      "type": "string"
     },
     "dispute_state": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Dispute state."
     },
     "reason": {
      "description": "Reason.",
      "enum": [
       "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
       "MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED",
       "UNAUTHORISED",
       "CREDIT_NOT_PROCESSED",
       "DUPLICATE_TRANSACTION",
       "INCORRECT_AMOUNT",
       "PAYMENT_BY_OTHER_MEANS",
       "CANCELED_RECURRING_BILLING",
       "OTHER"
      ],
      "type": "string"
     },
     "seller_response_due_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Seller response due date."
     },
     "status": {
      "description": "Status.",
      "enum": [
       "OPEN",
       "WAITING_FOR_SELLER_RESPONSE",
       "WAITING_FOR_BUYER_RESPONSE",
       "UNDER_REVIEW",
       "RESOLVED",
       "CLOSED",
       "UNKNOWN"
      ],
      "type": "string"
     },
     "update_time": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Update time."
     }
    },
    "required": [
     "dispute_id",
     "reason",
     "status",
     "dispute_life_cycle_stage",
     "dispute_amount",
     "create_time"
    ],
    "type": "object"
   },
   "DisputeRequirement": {
    "additionalProperties": false,
    "description": "DisputeRequirement.",
    "properties": {
     "accepted_attachment_count": {
      "description": "Accepted attachment count.",
      "maximum": 20.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "action": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Z][A-Z0-9_]{0,127}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Action."
     },
     "evidence_type": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Z][A-Z0-9_]{0,127}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Evidence type."
     },
     "mandatory": {
      "description": "Mandatory.",
      "type": "boolean"
     },
     "proof_count": {
      "description": "Proof count.",
      "maximum": 128.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "provider_evidence_type": {
      "description": "Provider evidence type.",
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[A-Z][A-Z0-9_]{0,127}$",
      "type": "string"
     },
     "request_id": {
      "description": "Request id.",
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$",
      "type": "string"
     },
     "requirement_state": {
      "description": "Requirement state.",
      "enum": [
       "CONTEXT_ONLY",
       "UNMAPPED_EVIDENCE_TYPE",
       "PROVIDER_REQUEST_OUTSIDE_LOCAL_MATRIX",
       "STRUCTURALLY_PRESENT",
       "MANDATORY_EVIDENCE_MISSING",
       "OPTIONAL_EVIDENCE_MISSING"
      ],
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[A-Z][A-Z0-9_]{0,127}$",
      "type": "string"
     }
    },
    "required": [
     "request_id",
     "provider_evidence_type",
     "source",
     "mandatory",
     "requirement_state",
     "proof_count",
     "accepted_attachment_count"
    ],
    "type": "object"
   },
   "DisputeRouting": {
    "additionalProperties": false,
    "description": "DisputeRouting.",
    "properties": {
     "available_actions": {
      "description": "Available actions.",
      "items": {
       "type": "string"
      },
      "maxItems": 20,
      "type": "array"
     },
     "dispute_life_cycle_stage": {
      "description": "Dispute life cycle stage.",
      "enum": [
       "INQUIRY",
       "CHARGEBACK",
       "PRE_ARBITRATION",
       "ARBITRATION",
       "UNKNOWN"
      ],
      "type": "string"
     },
     "due_state": {
      "description": "Due state.",
      "enum": [
       "OPEN",
       "EXPIRED"
      ],
      "type": "string"
     },
     "human_review_required": {
      "const": true,
      "description": "Human review required.",
      "type": "boolean"
     },
     "overall_state": {
      "description": "Overall state.",
      "enum": [
       "CASE_NOT_ACTIONABLE",
       "MANUAL_REVIEW",
       "DUE_DATE_EXPIRED",
       "ACTION_NOT_AVAILABLE",
       "NEEDS_INPUT",
       "READY_FOR_LOCAL_REVIEW"
      ],
      "type": "string"
     },
     "provider_submission": {
      "const": "NOT_PERFORMED",
      "description": "Provider submission.",
      "type": "string"
     },
     "reason": {
      "description": "Reason.",
      "enum": [
       "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
       "MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED",
       "UNAUTHORISED",
       "CREDIT_NOT_PROCESSED",
       "DUPLICATE_TRANSACTION",
       "INCORRECT_AMOUNT",
       "PAYMENT_BY_OTHER_MEANS",
       "CANCELED_RECURRING_BILLING",
       "OTHER"
      ],
      "type": "string"
     },
     "requirements": {
      "description": "Requirements.",
      "items": {
       "$ref": "#/components/schemas/DisputeRequirement"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
     },
     "schema_version": {
      "const": 1,
      "description": "Schema version.",
      "type": "integer"
     },
     "seller_response_due_date": {
      "description": "Seller response due date.",
      "maxLength": 64,
      "minLength": 20,
      "type": "string"
     },
     "snapshot_class": {
      "const": "SYNTHETIC_PROVIDER_FIXTURE",
      "description": "Snapshot class.",
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "OPEN",
       "WAITING_FOR_SELLER_RESPONSE",
       "WAITING_FOR_BUYER_RESPONSE",
       "UNDER_REVIEW",
       "RESOLVED",
       "CLOSED",
       "UNKNOWN"
      ],
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "snapshot_class",
     "reason",
     "status",
     "dispute_life_cycle_stage",
     "seller_response_due_date",
     "due_state",
     "available_actions",
     "requirements",
     "overall_state",
     "human_review_required",
     "provider_submission"
    ],
    "type": "object"
   },
   "DisputeScenario": {
    "additionalProperties": false,
    "description": "DisputeScenario.",
    "properties": {
     "citations": {
      "description": "Citations.",
      "items": {
       "$ref": "#/components/schemas/ScenarioCitation"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
     },
     "evidence_class": {
      "const": "SYNTHETIC_DEMO_SCENARIO",
      "description": "Evidence class.",
      "type": "string"
     },
     "expected_route": {
      "const": "PREPARE_REDACTED_DRAFT_FOR_HUMAN_REVIEW",
      "description": "Expected route.",
      "type": "string"
     },
     "final_authority": {
      "const": "PAYPAL_OR_EXTERNAL_ISSUER",
      "description": "Final authority.",
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "type": "string"
      },
      "maxItems": 8,
      "minItems": 1,
      "type": "array"
     },
     "scenario_id": {
      "const": "US-DEMO-DISPUTE-EVIDENCE",
      "description": "Scenario id.",
      "type": "string"
     },
     "theme": {
      "const": "dispute_mediation",
      "description": "Theme.",
      "type": "string"
     },
     "title": {
      "const": "INR or counterfeit evidence organization",
      "description": "Title.",
      "type": "string"
     }
    },
    "required": [
     "scenario_id",
     "title",
     "theme",
     "jurisdiction",
     "evidence_class",
     "expected_route",
     "final_authority",
     "limitations",
     "citations"
    ],
    "type": "object"
   },
   "DisputeSummary": {
    "additionalProperties": false,
    "description": "DisputeSummary.",
    "properties": {
     "case_ref": {
      "description": "Case ref.",
      "type": "string"
     },
     "dispute_amount": {
      "$ref": "#/components/schemas/SyntheticMoney"
     },
     "opened_at": {
      "description": "Opened at.",
      "type": "string"
     },
     "order_ref": {
      "description": "Order ref.",
      "type": "string"
     },
     "reason": {
      "description": "Reason.",
      "type": "string"
     },
     "seller_response_due_date": {
      "description": "Seller response due date.",
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "needs_review",
       "draft_ready",
       "local_draft_reviewed"
      ],
      "type": "string"
     }
    },
    "required": [
     "case_ref",
     "order_ref",
     "reason",
     "opened_at",
     "seller_response_due_date",
     "dispute_amount",
     "status"
    ],
    "type": "object"
   },
   "DisputedTransaction": {
    "additionalProperties": false,
    "description": "DisputedTransaction.",
    "properties": {
     "gross_amount": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ProviderMoney"
       },
       {
        "type": "null"
       }
      ],
      "description": "Gross amount."
     },
     "seller_protection_eligible": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "Seller protection eligible."
     },
     "seller_transaction_id": {
      "description": "Seller transaction id.",
      "pattern": "^[A-Za-z0-9._-]{1,64}$",
      "type": "string"
     },
     "transaction_status": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Transaction status."
     }
    },
    "required": [
     "seller_transaction_id"
    ],
    "type": "object"
   },
   "DocumentRedaction": {
    "additionalProperties": false,
    "description": "DocumentRedaction.",
    "properties": {
     "counts": {
      "additionalProperties": {
       "maximum": 128.0,
       "minimum": 1.0,
       "type": "integer"
      },
      "description": "Counts.",
      "propertyNames": {
       "enum": [
        "email",
        "us_phone",
        "id_like",
        "name",
        "address",
        "manual",
        "mixed"
       ]
      },
      "type": "object"
     },
     "export_profile": {
      "const": "INTERNAL_REVIEW_ONLY_V1",
      "description": "Export profile.",
      "type": "string"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "maxLength": 1000,
       "minLength": 1,
       "type": "string"
      },
      "maxItems": 8,
      "minItems": 1,
      "type": "array"
     },
     "limited_detection": {
      "const": true,
      "description": "Limited detection.",
      "type": "boolean"
     },
     "manual_review_required": {
      "const": true,
      "description": "Manual review required.",
      "type": "boolean"
     },
     "method": {
      "const": "HMAC-SHA256 document pseudonymization v1",
      "description": "Method.",
      "type": "string"
     },
     "redacted_text": {
      "description": "Redacted text.",
      "maxLength": 32768,
      "type": "string"
     },
     "replacement_count": {
      "description": "Replacement count.",
      "maximum": 128.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "reversibility": {
      "const": false,
      "description": "Reversibility.",
      "type": "boolean"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "types": {
      "description": "Types.",
      "items": {
       "enum": [
        "email",
        "us_phone",
        "id_like",
        "name",
        "address",
        "manual",
        "mixed"
       ],
       "type": "string"
      },
      "maxItems": 7,
      "type": "array"
     }
    },
    "required": [
     "export_profile",
     "redacted_text",
     "replacement_count",
     "counts",
     "types",
     "method",
     "limited_detection",
     "manual_review_required",
     "source",
     "reversibility",
     "limitations"
    ],
    "type": "object"
   },
   "EmptyRequest": {
    "additionalProperties": false,
    "description": "EmptyRequest.",
    "properties": {},
    "type": "object"
   },
   "ErrorBody": {
    "description": "The error body every refusal uses.",
    "properties": {
     "error": {
      "description": "What was refused and why.",
      "properties": {
       "code": {
        "description": "Stable machine-readable reason, for example session_required.",
        "type": "string"
       },
       "message": {
        "description": "A plain sentence for a person.",
        "type": "string"
       }
      },
      "required": [
       "code",
       "message"
      ],
      "type": "object"
     }
    },
    "required": [
     "error"
    ],
    "type": "object"
   },
   "Evidence": {
    "additionalProperties": false,
    "description": "Evidence.",
    "properties": {
     "carrier_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Carrier status."
     },
     "delivered_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Delivered at."
     },
     "evidence_source": {
      "const": "synthetic",
      "description": "Evidence source.",
      "type": "string"
     },
     "opened_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Opened at."
     },
     "order_created_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Order created at."
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Reason."
     }
    },
    "required": [
     "evidence_source"
    ],
    "type": "object"
   },
   "EvidenceInfo": {
    "additionalProperties": false,
    "description": "EvidenceInfo.",
    "properties": {
     "tracking_info": {
      "description": "Tracking info.",
      "items": {
       "$ref": "#/components/schemas/TrackingInfo"
      },
      "maxItems": 10,
      "type": "array"
     }
    },
    "required": [
     "tracking_info"
    ],
    "type": "object"
   },
   "EvidenceInput": {
    "additionalProperties": false,
    "description": "EvidenceInput.",
    "properties": {
     "evidences": {
      "description": "Evidences.",
      "items": {
       "$ref": "#/components/schemas/EvidenceInputItem"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
     }
    },
    "required": [
     "evidences"
    ],
    "type": "object"
   },
   "EvidenceInputItem": {
    "additionalProperties": false,
    "description": "EvidenceInputItem.",
    "properties": {
     "evidence_info": {
      "$ref": "#/components/schemas/EvidenceInfo"
     },
     "evidence_type": {
      "description": "Evidence type.",
      "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
      "type": "string"
     },
     "notes": {
      "description": "Notes.",
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "evidence_type",
     "evidence_info",
     "notes"
    ],
    "type": "object"
   },
   "Finding": {
    "additionalProperties": false,
    "description": "Finding.",
    "properties": {
     "category": {
      "description": "Category.",
      "enum": [
       "unsupported_financial_promise",
       "weapons",
       "controlled_substances",
       "counterfeit_goods",
       "regulated_activity"
      ],
      "type": "string"
     },
     "code": {
      "const": "keyword_requires_policy_review",
      "description": "Code.",
      "type": "string"
     }
    },
    "required": [
     "category",
     "code"
    ],
    "type": "object"
   },
   "GeneratedBrief": {
    "additionalProperties": false,
    "description": "GeneratedBrief.",
    "properties": {
     "citation_ids": {
      "description": "Citation ids.",
      "items": {
       "maxLength": 128,
       "minLength": 1,
       "pattern": "^[A-Z0-9-]+$",
       "type": "string"
      },
      "maxItems": 3,
      "minItems": 1,
      "type": "array"
     },
     "evidence_points": {
      "description": "Evidence points.",
      "items": {
       "maxLength": 300,
       "minLength": 1,
       "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "type": "array"
     },
     "missing_evidence": {
      "description": "Missing evidence.",
      "items": {
       "maxLength": 300,
       "minLength": 1,
       "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "type": "array"
     },
     "summary": {
      "description": "Summary.",
      "maxLength": 1200,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "summary",
     "evidence_points",
     "missing_evidence",
     "citation_ids"
    ],
    "type": "object"
   },
   "GuideAnalysis": {
    "additionalProperties": false,
    "description": "GuideAnalysis.",
    "properties": {
     "reason": {
      "anyOf": [
       {
        "enum": [
         "budget",
         "provider_error",
         "invalid_reply",
         "late",
         "no_items",
         "superseded"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Reason."
     },
     "status": {
      "description": "Status.",
      "enum": [
       "analysing",
       "replaced",
       "kept"
      ],
      "type": "string"
     },
     "turn": {
      "description": "Turn.",
      "type": "integer"
     }
    },
    "required": [
     "turn",
     "status",
     "reason"
    ],
    "type": "object"
   },
   "GuideDropped": {
    "additionalProperties": false,
    "description": "GuideDropped.",
    "properties": {
     "item": {
      "description": "Item.",
      "type": "string"
     },
     "reason": {
      "description": "Reason.",
      "enum": [
       "other_party",
       "inferred"
      ],
      "type": "string"
     }
    },
    "required": [
     "item",
     "reason"
    ],
    "type": "object"
   },
   "GuideField": {
    "additionalProperties": false,
    "description": "GuideField.",
    "properties": {
     "item": {
      "description": "Item.",
      "maxLength": 40,
      "minLength": 1,
      "pattern": "^[a-z_]+$",
      "type": "string"
     },
     "value": {
      "description": "Value.",
      "maxLength": 120,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "item",
     "value"
    ],
    "type": "object"
   },
   "GuideFieldResult": {
    "additionalProperties": false,
    "description": "GuideFieldResult.",
    "properties": {
     "deferred": {
      "description": "Deferred.",
      "type": "boolean"
     },
     "item": {
      "description": "Item.",
      "type": "string"
     },
     "valid": {
      "description": "Valid.",
      "type": "boolean"
     }
    },
    "required": [
     "item",
     "valid",
     "deferred"
    ],
    "type": "object"
   },
   "GuideForm": {
    "additionalProperties": false,
    "description": "GuideForm.",
    "properties": {
     "kind": {
      "description": "Kind.",
      "enum": [
       "date",
       "choice",
       "text"
      ],
      "type": "string"
     },
     "options": {
      "description": "Options.",
      "items": {
       "$ref": "#/components/schemas/GuideOption"
      },
      "type": "array"
     },
     "placeholder": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Placeholder."
     }
    },
    "required": [
     "kind",
     "options",
     "placeholder"
    ],
    "type": "object"
   },
   "GuideFormRequest": {
    "additionalProperties": false,
    "description": "One field ({item, value}) or one round of up to three fields ({fields: [...]}), never both.",
    "properties": {
     "confirm_review": {
      "default": false,
      "description": "Confirm review.",
      "type": "boolean"
     },
     "fields": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/GuideField"
        },
        "maxItems": 3,
        "minItems": 1,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Fields."
     },
     "item": {
      "anyOf": [
       {
        "maxLength": 40,
        "minLength": 1,
        "pattern": "^[a-z_]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Item."
     },
     "scenario": {
      "anyOf": [
       {
        "enum": [
         "preflight",
         "velocity",
         "dispute"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Scenario."
     },
     "value": {
      "anyOf": [
       {
        "maxLength": 120,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Value."
     }
    },
    "type": "object"
   },
   "GuideFormResult": {
    "additionalProperties": false,
    "description": "GuideFormResult.",
    "properties": {
     "item": {
      "description": "Item.",
      "type": "string"
     },
     "valid": {
      "description": "Valid.",
      "type": "boolean"
     }
    },
    "required": [
     "item",
     "valid"
    ],
    "type": "object"
   },
   "GuideGap": {
    "additionalProperties": false,
    "description": "GuideGap.",
    "properties": {
     "conflicting": {
      "description": "Conflicting.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "missing": {
      "description": "Missing.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "partial": {
      "description": "Partial.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "present": {
      "description": "Present.",
      "items": {
       "type": "string"
      },
      "type": "array"
     }
    },
    "required": [
     "missing",
     "partial",
     "conflicting",
     "present"
    ],
    "type": "object"
   },
   "GuideItem": {
    "additionalProperties": false,
    "description": "GuideItem.",
    "properties": {
     "chunk": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Chunk."
     },
     "form": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/GuideForm"
       },
       {
        "type": "null"
       }
      ],
      "description": "Form."
     },
     "id": {
      "description": "Id.",
      "type": "string"
     },
     "label": {
      "description": "Label.",
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "OFFICIAL",
       "SUGGESTION"
      ],
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "STRUCTURALLY_PRESENT",
       "PARTIAL",
       "UNCLEAR",
       "CONFLICTING",
       "MISSING",
       "NOT_APPLICABLE"
      ],
      "type": "string"
     }
    },
    "required": [
     "id",
     "label",
     "status",
     "source",
     "chunk",
     "form"
    ],
    "type": "object"
   },
   "GuideOption": {
    "additionalProperties": false,
    "description": "GuideOption.",
    "properties": {
     "label": {
      "description": "Label.",
      "type": "string"
     },
     "value": {
      "description": "Value.",
      "type": "string"
     }
    },
    "required": [
     "value",
     "label"
    ],
    "type": "object"
   },
   "GuideReply": {
    "additionalProperties": false,
    "description": "GuideReply.",
    "properties": {
     "chooser": {
      "description": "Chooser.",
      "enum": [
       "none",
       "keyword",
       "model",
       "keyword_fallback",
       "form"
      ],
      "type": "string"
     },
     "dropped": {
      "description": "Dropped.",
      "items": {
       "$ref": "#/components/schemas/GuideDropped"
      },
      "type": "array"
     },
     "fallback_reason": {
      "anyOf": [
       {
        "enum": [
         "budget",
         "provider_error",
         "invalid_reply",
         "late",
         "no_items"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Fallback reason."
     },
     "state_changed": {
      "description": "State changed.",
      "type": "boolean"
     },
     "template": {
      "description": "Template.",
      "enum": [
       "OPEN",
       "CONFIRM_DATE",
       "REQUEST",
       "ONE",
       "COMMS",
       "PROGRESS",
       "UNCLEAR",
       "CONFLICT",
       "REVIEW",
       "DONE",
       "PROFESSIONAL",
       "REFUSE",
       "OFF_TOPIC",
       "OTHER_FLOW",
       "OTHER_PARTY",
       "SKIP",
       "NO_GUARANTEE",
       "NOT_ENOUGH",
       "ENGLISH_ONLY",
       "PII",
       "NOT_SENDABLE",
       "DEADLINE",
       "UPLOAD",
       "BUYER_ANGER",
       "BUDGET",
       "REQUEST_MANY",
       "ECHO",
       "DESCRIBE",
       "SUBTRACTION"
      ],
      "type": "string"
     },
     "text": {
      "description": "Text.",
      "maxLength": 400,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "template",
     "text",
     "chooser",
     "state_changed",
     "dropped",
     "fallback_reason"
    ],
    "type": "object"
   },
   "GuideReviewRequest": {
    "additionalProperties": false,
    "description": "GuideReviewRequest.",
    "properties": {
     "change": {
      "description": "Change.",
      "items": {
       "maxLength": 40,
       "minLength": 1,
       "pattern": "^[a-z_]+$",
       "type": "string"
      },
      "maxItems": 9,
      "type": "array"
     },
     "confirm": {
      "default": false,
      "description": "Confirm.",
      "type": "boolean"
     },
     "scenario": {
      "anyOf": [
       {
        "enum": [
         "preflight",
         "velocity",
         "dispute"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Scenario."
     }
    },
    "type": "object"
   },
   "GuideReviewRow": {
    "additionalProperties": false,
    "description": "GuideReviewRow.",
    "properties": {
     "item": {
      "description": "Item.",
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "words",
       "words_pending"
      ],
      "type": "string"
     },
     "value": {
      "description": "Value.",
      "maxLength": 120,
      "type": "string"
     }
    },
    "required": [
     "item",
     "source",
     "value"
    ],
    "type": "object"
   },
   "GuideStartRequest": {
    "additionalProperties": false,
    "description": "GuideStartRequest.",
    "properties": {
     "goods_type": {
      "anyOf": [
       {
        "enum": [
         "physical",
         "digital"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Goods type."
     },
     "scenario": {
      "description": "Scenario.",
      "enum": [
       "preflight",
       "velocity",
       "dispute"
      ],
      "type": "string"
     }
    },
    "required": [
     "scenario"
    ],
    "type": "object"
   },
   "GuideStateResponse": {
    "additionalProperties": false,
    "description": "GuideStateResponse.",
    "properties": {
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "analysis": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/GuideAnalysis"
       },
       {
        "type": "null"
       }
      ],
      "description": "Analysis."
     },
     "asked": {
      "description": "Asked.",
      "items": {
       "type": "string"
      },
      "maxItems": 3,
      "type": "array"
     },
     "auto_confirmed": {
      "description": "Auto confirmed.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "chooser_mode": {
      "description": "Chooser mode.",
      "enum": [
       "keyword",
       "gemini"
      ],
      "type": "string"
     },
     "deferred": {
      "description": "Deferred.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "flow_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Flow name."
     },
     "form_result": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/GuideFormResult"
       },
       {
        "type": "null"
       }
      ],
      "description": "Form result."
     },
     "form_results": {
      "description": "Form results.",
      "items": {
       "$ref": "#/components/schemas/GuideFieldResult"
      },
      "type": "array"
     },
     "gap": {
      "$ref": "#/components/schemas/GuideGap"
     },
     "goods_type": {
      "anyOf": [
       {
        "enum": [
         "physical",
         "digital"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Goods type."
     },
     "items": {
      "description": "Items.",
      "items": {
       "$ref": "#/components/schemas/GuideItem"
      },
      "type": "array"
     },
     "model_requested": {
      "description": "Model requested.",
      "type": "boolean"
     },
     "model_text_shown": {
      "const": false,
      "description": "Model text shown.",
      "type": "boolean"
     },
     "prefill": {
      "additionalProperties": {
       "type": "string"
      },
      "description": "Prefill.",
      "type": "object"
     },
     "reply": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/GuideReply"
       },
       {
        "type": "null"
       }
      ],
      "description": "Reply."
     },
     "review": {
      "description": "Review.",
      "items": {
       "$ref": "#/components/schemas/GuideReviewRow"
      },
      "type": "array"
     },
     "rounds_used": {
      "description": "Rounds used.",
      "type": "integer"
     },
     "scenario": {
      "anyOf": [
       {
        "enum": [
         "preflight",
         "velocity",
         "dispute"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Scenario."
     },
     "schema_version": {
      "const": 1,
      "description": "Schema version.",
      "type": "integer"
     },
     "stage": {
      "anyOf": [
       {
        "enum": [
         "funnel",
         "echo",
         "fill",
         "review",
         "done"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Stage."
     },
     "started": {
      "description": "Started.",
      "type": "boolean"
     },
     "subtraction": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/GuideSubtraction"
       },
       {
        "type": "null"
       }
      ],
      "description": "Subtraction."
     },
     "turns_limit": {
      "description": "Turns limit.",
      "type": "integer"
     },
     "turns_used": {
      "description": "Turns used.",
      "type": "integer"
     },
     "values_stored": {
      "const": false,
      "description": "Values stored.",
      "type": "boolean"
     }
    },
    "required": [
     "schema_version",
     "started",
     "scenario",
     "goods_type",
     "flow_name",
     "items",
     "gap",
     "reply",
     "form_result",
     "form_results",
     "analysis",
     "asked",
     "stage",
     "subtraction",
     "deferred",
     "prefill",
     "auto_confirmed",
     "review",
     "rounds_used",
     "turns_used",
     "turns_limit",
     "chooser_mode",
     "model_requested",
     "model_text_shown",
     "values_stored",
     "advisory_only"
    ],
    "type": "object"
   },
   "GuideSubtraction": {
    "additionalProperties": false,
    "description": "GuideSubtraction.",
    "properties": {
     "left": {
      "description": "Left.",
      "type": "integer"
     },
     "needed": {
      "description": "Needed.",
      "type": "integer"
     },
     "taken": {
      "description": "Taken.",
      "type": "integer"
     },
     "text": {
      "description": "Text.",
      "type": "string"
     }
    },
    "required": [
     "needed",
     "taken",
     "left",
     "text"
    ],
    "type": "object"
   },
   "GuideTurnRequest": {
    "additionalProperties": false,
    "description": "GuideTurnRequest.",
    "properties": {
     "fields": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/GuideField"
        },
        "maxItems": 3,
        "minItems": 1,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Fields."
     },
     "scenario": {
      "anyOf": [
       {
        "enum": [
         "preflight",
         "velocity",
         "dispute"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Scenario."
     },
     "text": {
      "description": "Text.",
      "maxLength": 1600,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "text"
    ],
    "type": "object"
   },
   "HTTPValidationError": {
    "description": "HTTPValidationError.",
    "properties": {
     "detail": {
      "description": "Detail.",
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array"
     }
    },
    "type": "object"
   },
   "HealthResponse": {
    "additionalProperties": false,
    "description": "HealthResponse.",
    "properties": {
     "mode": {
      "const": "demo",
      "description": "Mode.",
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "const": "ok",
      "description": "Status.",
      "type": "string"
     },
     "version": {
      "description": "Version.",
      "type": "string"
     }
    },
    "required": [
     "status",
     "mode",
     "version",
     "source"
    ],
    "type": "object"
   },
   "HostedSendState": {
    "additionalProperties": false,
    "description": "HostedSendState.",
    "properties": {
     "disputes_sent": {
      "description": "Disputes sent.",
      "minimum": 0.0,
      "type": "integer"
     },
     "sends_left_day": {
      "description": "Sends left day.",
      "minimum": 0.0,
      "type": "integer"
     },
     "sends_left_window": {
      "description": "Sends left window.",
      "minimum": 0.0,
      "type": "integer"
     },
     "window_minutes": {
      "description": "Window minutes.",
      "minimum": 1.0,
      "type": "integer"
     }
    },
    "required": [
     "sends_left_window",
     "sends_left_day",
     "window_minutes",
     "disputes_sent"
    ],
    "type": "object"
   },
   "IdentityRedaction": {
    "additionalProperties": false,
    "description": "IdentityRedaction.",
    "properties": {
     "fields": {
      "description": "Fields.",
      "items": {
       "enum": [
        "name",
        "address",
        "email"
       ],
       "type": "string"
      },
      "type": "array"
     },
     "method": {
      "const": "HMAC-SHA256 pseudonymization",
      "description": "Method.",
      "type": "string"
     },
     "synthetic": {
      "const": true,
      "description": "Synthetic.",
      "type": "boolean"
     },
     "tokens": {
      "$ref": "#/components/schemas/IdentityTokens"
     }
    },
    "required": [
     "method",
     "fields",
     "tokens",
     "synthetic"
    ],
    "type": "object"
   },
   "IdentityTokens": {
    "additionalProperties": false,
    "description": "IdentityTokens.",
    "properties": {
     "address_token": {
      "description": "Address token.",
      "type": "string"
     },
     "email_token": {
      "description": "Email token.",
      "type": "string"
     },
     "name_token": {
      "description": "Name token.",
      "type": "string"
     }
    },
    "required": [
     "name_token",
     "address_token",
     "email_token"
    ],
    "type": "object"
   },
   "InjectRequest": {
    "additionalProperties": false,
    "description": "InjectRequest.",
    "properties": {
     "scenario": {
      "description": "Scenario.",
      "enum": [
       "burst",
       "dispute",
       "reset"
      ],
      "type": "string"
     }
    },
    "required": [
     "scenario"
    ],
    "type": "object"
   },
   "InvoiceDraftRequest": {
    "additionalProperties": false,
    "description": "InvoiceDraftRequest.",
    "properties": {
     "amount": {
      "description": "Amount.",
      "pattern": "^[0-9]{1,9}(?:\\.[0-9]{1,2})?$",
      "type": "string"
     },
     "currency": {
      "description": "Currency.",
      "enum": [
       "USD",
       "TWD",
       "JPY",
       "HUF"
      ],
      "type": "string"
     },
     "description": {
      "description": "Description.",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
     },
     "payload_digest": {
      "description": "Payload digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "review_token": {
      "description": "Review token.",
      "maxLength": 128,
      "minLength": 32,
      "type": "string"
     }
    },
    "required": [
     "description",
     "amount",
     "currency",
     "review_token",
     "payload_digest"
    ],
    "type": "object"
   },
   "InvoiceDraftResponse": {
    "additionalProperties": false,
    "description": "InvoiceDraftResponse.",
    "properties": {
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_receipt": {
      "$ref": "#/components/schemas/SandboxEvidenceReceipt"
     },
     "external_send": {
      "const": "FROZEN",
      "description": "External send.",
      "type": "string"
     },
     "invoice_id": {
      "description": "Invoice id.",
      "maxLength": 69,
      "minLength": 13,
      "pattern": "^INV2-[A-Z0-9-]{8,64}$",
      "type": "string"
     },
     "source": {
      "const": "paypal_sandbox",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "const": "DRAFT",
      "description": "Status.",
      "type": "string"
     }
    },
    "required": [
     "source",
     "invoice_id",
     "status",
     "environment",
     "external_send",
     "evidence_receipt"
    ],
    "type": "object"
   },
   "InvoiceReviewRequest": {
    "additionalProperties": false,
    "description": "InvoiceReviewRequest.",
    "properties": {
     "acknowledgement_token": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 32,
        "pattern": "^[A-Za-z0-9_-]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Acknowledgement token."
     },
     "amount": {
      "description": "Amount.",
      "pattern": "^[0-9]{1,9}(?:\\.[0-9]{1,2})?$",
      "type": "string"
     },
     "confirm_sandbox_draft": {
      "description": "Confirm sandbox draft.",
      "type": "boolean"
     },
     "currency": {
      "description": "Currency.",
      "enum": [
       "USD",
       "TWD",
       "JPY",
       "HUF"
      ],
      "type": "string"
     },
     "description": {
      "description": "Description.",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
     },
     "description_digest": {
      "anyOf": [
       {
        "pattern": "^[a-f0-9]{64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Description digest."
     },
     "evaluation_id": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 32,
        "pattern": "^[A-Za-z0-9_-]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Evaluation id."
     }
    },
    "required": [
     "description",
     "amount",
     "currency",
     "confirm_sandbox_draft"
    ],
    "type": "object"
   },
   "InvoiceReviewResponse": {
    "additionalProperties": false,
    "description": "InvoiceReviewResponse.",
    "properties": {
     "action": {
      "const": "create_sandbox_invoice_draft",
      "description": "Action.",
      "type": "string"
     },
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "authenticated_actor": {
      "const": false,
      "description": "Authenticated actor.",
      "type": "boolean"
     },
     "expires_at": {
      "description": "Expires at.",
      "type": "string"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "payload_digest": {
      "description": "Payload digest.",
      "type": "string"
     },
     "policy_status": {
      "const": "manual_review",
      "description": "Policy status.",
      "type": "string"
     },
     "review_token": {
      "description": "Review token.",
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     }
    },
    "required": [
     "source",
     "review_token",
     "payload_digest",
     "expires_at",
     "action",
     "authenticated_actor",
     "policy_status",
     "advisory_only",
     "limitations"
    ],
    "type": "object"
   },
   "MessageTimeEvent": {
    "additionalProperties": false,
    "description": "MessageTimeEvent.",
    "properties": {
     "at": {
      "description": "At.",
      "maxLength": 40,
      "minLength": 20,
      "type": "string"
     },
     "channel": {
      "description": "Channel.",
      "enum": [
       "EMAIL",
       "PRIVATE_MESSAGE"
      ],
      "type": "string"
     },
     "direction": {
      "description": "Direction.",
      "enum": [
       "INBOUND",
       "OUTBOUND"
      ],
      "type": "string"
     },
     "kind": {
      "const": "MESSAGE",
      "description": "Kind.",
      "type": "string"
     },
     "message_digest": {
      "description": "Message digest.",
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
     },
     "source": {
      "const": "SELLER_PROVIDED_UNVERIFIED",
      "description": "Source.",
      "type": "string"
     },
     "topic": {
      "description": "Topic.",
      "enum": [
       "PAYMENT_NOTICE",
       "ORDER_DETAILS_REQUEST",
       "ORDER_DETAILS_PROVIDED",
       "DELIVERY_NOTICE",
       "REFUND_REQUEST",
       "OTHER"
      ],
      "type": "string"
     }
    },
    "required": [
     "kind",
     "at",
     "source",
     "channel",
     "direction",
     "topic",
     "message_digest"
    ],
    "type": "object"
   },
   "MultipartFilePart": {
    "additionalProperties": false,
    "description": "MultipartFilePart.",
    "properties": {
     "byte_length": {
      "description": "Byte length.",
      "maximum": 9999999,
      "minimum": 0.0,
      "type": "integer"
     },
     "content_type": {
      "description": "Content type.",
      "enum": [
       "image/jpeg",
       "image/gif",
       "image/png",
       "application/pdf"
      ],
      "type": "string"
     },
     "filename": {
      "description": "Filename.",
      "maxLength": 255,
      "type": "string"
     },
     "name": {
      "description": "Name.",
      "pattern": "^file[0-9]{1,3}$",
      "type": "string"
     }
    },
    "required": [
     "name",
     "filename",
     "content_type",
     "byte_length"
    ],
    "type": "object"
   },
   "PaypalStatusResponse": {
    "additionalProperties": false,
    "description": "PaypalStatusResponse.",
    "properties": {
     "configured": {
      "description": "Configured.",
      "type": "boolean"
     },
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_receipt": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SandboxEvidenceReceipt"
       },
       {
        "type": "null"
       }
      ],
      "description": "Evidence receipt."
     },
     "last_verified_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Last verified at."
     },
     "source": {
      "const": "paypal_sandbox",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "not_configured",
       "disconnected",
       "connected",
       "error"
      ],
      "type": "string"
     }
    },
    "required": [
     "configured",
     "status",
     "environment",
     "last_verified_at",
     "source",
     "evidence_receipt"
    ],
    "type": "object"
   },
   "PolicyAssessmentResponse": {
    "additionalProperties": false,
    "description": "PolicyAssessmentResponse.",
    "properties": {
     "advisory_only": {
      "description": "Advisory only.",
      "type": "boolean"
     },
     "chunks": {
      "description": "Chunks.",
      "items": {
       "$ref": "#/components/schemas/PolicyChunk"
      },
      "maxItems": 29,
      "type": "array"
     },
     "corpus_digest": {
      "description": "Corpus digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "corpus_digests": {
      "$ref": "#/components/schemas/ReferenceDigests"
     },
     "corpus_id": {
      "const": "payguard-us-official-references-v2",
      "description": "Corpus id.",
      "type": "string"
     },
     "coverage": {
      "$ref": "#/components/schemas/PolicyCoverage"
     },
     "current_policy_applicability": {
      "const": "NOT_ESTABLISHED",
      "description": "Current policy applicability.",
      "type": "string"
     },
     "filters_applied": {
      "$ref": "#/components/schemas/PolicyContext"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "maxLength": 2000,
       "minLength": 1,
       "type": "string"
      },
      "maxItems": 32,
      "minItems": 1,
      "type": "array"
     },
     "operational_authority": {
      "const": "REFERENCE_ONLY_NO_ACTION_AUTHORIZATION",
      "description": "Operational authority.",
      "type": "string"
     },
     "reason_codes": {
      "description": "Reason codes.",
      "items": {
       "enum": [
        "SUMMARY_COVERAGE_INCOMPLETE",
        "CURRENT_POLICY_APPLICABILITY_NOT_ESTABLISHED",
        "FUTURE_OBSERVATION",
        "STALE_OBSERVATION",
        "DOCUMENT_UPDATE_DATE_MISSING",
        "DOCUMENT_UPDATE_IN_FUTURE",
        "UNKNOWN_EFFECTIVE_DATE",
        "EFFECTIVE_DATE_IN_FUTURE",
        "API_REFERENCE_NOT_POLICY",
        "PROCEDURE_NOT_APPLICABLE_POLICY",
        "NO_OFFICIAL_POLICY_COVERAGE",
        "NO_REFERENCE_COVERAGE"
       ],
       "type": "string"
      },
      "maxItems": 15,
      "minItems": 1,
      "type": "array"
     },
     "requires_human_review": {
      "description": "Requires human review.",
      "type": "boolean"
     },
     "schema_version": {
      "description": "Schema version.",
      "maximum": 1.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "source": {
      "const": "public_reference",
      "description": "Source.",
      "type": "string"
     },
     "sources": {
      "description": "Sources.",
      "items": {
       "$ref": "#/components/schemas/PolicySource"
      },
      "maxItems": 16,
      "type": "array"
     },
     "status": {
      "const": "INCOMPLETE_POLICY_EVIDENCE",
      "description": "Status.",
      "type": "string"
     },
     "version": {
      "const": "payguard.applicability.v1",
      "description": "Version.",
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "version",
     "source",
     "corpus_id",
     "corpus_digest",
     "corpus_digests",
     "filters_applied",
     "status",
     "current_policy_applicability",
     "advisory_only",
     "operational_authority",
     "requires_human_review",
     "coverage",
     "sources",
     "chunks",
     "reason_codes",
     "limitations"
    ],
    "type": "object"
   },
   "PolicyChunk": {
    "additionalProperties": false,
    "description": "PolicyChunk.",
    "properties": {
     "case_outcome": {
      "anyOf": [
       {
        "enum": [
         "SETTLEMENT_APPROVAL_NOT_FINAL_MERITS",
         "ARBITRATION_COMPELLED_UNDERLYING_MERITS_NOT_DECIDED"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Case outcome."
     },
     "case_stage": {
      "description": "Case stage.",
      "enum": [
       "procedural_order",
       "not_applicable"
      ],
      "type": "string"
     },
     "chunk_id": {
      "description": "Chunk id.",
      "pattern": "^[A-Z0-9-]{1,128}$",
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "material_type": {
      "description": "Material type.",
      "enum": [
       "official_api_reference",
       "official_policy",
       "public_court_order_copy"
      ],
      "type": "string"
     },
     "source_id": {
      "description": "Source id.",
      "pattern": "^[A-Z0-9-]{1,128}$",
      "type": "string"
     },
     "text_sha256": {
      "description": "Text sha256.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "theme": {
      "description": "Theme.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "chunk_id",
     "source_id",
     "theme",
     "case_stage",
     "material_type",
     "case_outcome",
     "text_sha256",
     "jurisdiction"
    ],
    "type": "object"
   },
   "PolicyContext": {
    "additionalProperties": false,
    "description": "PolicyContext.",
    "properties": {
     "as_of": {
      "description": "As of.",
      "maxLength": 64,
      "minLength": 20,
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "observation_max_age_days": {
      "description": "Observation max age days.",
      "maximum": 365000.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "theme": {
      "description": "Theme.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "jurisdiction",
     "theme",
     "as_of",
     "observation_max_age_days"
    ],
    "type": "object"
   },
   "PolicyCoverage": {
    "additionalProperties": false,
    "description": "PolicyCoverage.",
    "properties": {
     "basis": {
      "const": "pinned_authored_summaries_only",
      "description": "Basis.",
      "type": "string"
     },
     "complete": {
      "description": "Complete.",
      "type": "boolean"
     },
     "missing_official_policy_themes": {
      "description": "Missing official policy themes.",
      "items": {
       "enum": [
        "source_compliance",
        "velocity_guard",
        "dispute_mediation"
       ],
       "type": "string"
      },
      "maxItems": 3,
      "type": "array"
     },
     "official_policy_chunk_count_by_theme": {
      "$ref": "#/components/schemas/PolicyThemeCounts"
     },
     "official_policy_source_ids": {
      "description": "Official policy source ids.",
      "items": {
       "pattern": "^[A-Z0-9-]{1,128}$",
       "type": "string"
      },
      "maxItems": 16,
      "type": "array"
     },
     "regional_source_count": {
      "description": "Regional source count.",
      "maximum": 16.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "selected_chunk_count": {
      "description": "Selected chunk count.",
      "maximum": 29.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "selected_source_count": {
      "description": "Selected source count.",
      "maximum": 16.0,
      "minimum": 0.0,
      "type": "integer"
     }
    },
    "required": [
     "complete",
     "basis",
     "regional_source_count",
     "selected_source_count",
     "selected_chunk_count",
     "official_policy_source_ids",
     "official_policy_chunk_count_by_theme",
     "missing_official_policy_themes"
    ],
    "type": "object"
   },
   "PolicyRequest": {
    "additionalProperties": false,
    "description": "PolicyRequest.",
    "properties": {
     "as_of": {
      "description": "As of.",
      "maxLength": 64,
      "minLength": 20,
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "observation_max_age_days": {
      "description": "Observation max age days.",
      "maximum": 365000.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "theme": {
      "description": "Theme.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "jurisdiction",
     "theme",
     "as_of",
     "observation_max_age_days"
    ],
    "type": "object"
   },
   "PolicySource": {
    "additionalProperties": false,
    "description": "PolicySource.",
    "properties": {
     "citation_chunk_ids": {
      "description": "Citation chunk ids.",
      "items": {
       "pattern": "^[A-Z0-9-]{1,128}$",
       "type": "string"
      },
      "maxItems": 29,
      "minItems": 1,
      "type": "array"
     },
     "content_class": {
      "const": "public_reference_summary",
      "description": "Content class.",
      "type": "string"
     },
     "current_policy_applicability": {
      "const": "NOT_ESTABLISHED",
      "description": "Current policy applicability.",
      "type": "string"
     },
     "decision_acceptance_deadline": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Decision acceptance deadline."
     },
     "decision_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Decision date."
     },
     "decision_date_status": {
      "description": "Decision date status.",
      "enum": [
       "DOCUMENT_STATED",
       "NOT_STATED_IN_REVIEWED_DOCUMENT",
       "NOT_APPLICABLE"
      ],
      "type": "string"
     },
     "effective_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Effective date."
     },
     "effective_date_status": {
      "description": "Effective date status.",
      "enum": [
       "DOCUMENT_STATED",
       "NOT_VERIFIED"
      ],
      "type": "string"
     },
     "jurisdiction": {
      "description": "Jurisdiction.",
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
     },
     "jurisdiction_normalized": {
      "const": "US",
      "description": "Jurisdiction normalized.",
      "type": "string"
     },
     "material_type": {
      "description": "Material type.",
      "enum": [
       "official_api_reference",
       "official_policy",
       "public_court_order_copy"
      ],
      "type": "string"
     },
     "observation_age_basis": {
      "const": "saved_retrieved_at_exact_elapsed_time",
      "description": "Observation age basis.",
      "type": "string"
     },
     "observation_status": {
      "description": "Observation status.",
      "enum": [
       "FUTURE_OBSERVATION",
       "STALE_OBSERVATION",
       "WITHIN_OBSERVATION_BUDGET"
      ],
      "type": "string"
     },
     "reason_codes": {
      "description": "Reason codes.",
      "items": {
       "enum": [
        "SUMMARY_COVERAGE_INCOMPLETE",
        "CURRENT_POLICY_APPLICABILITY_NOT_ESTABLISHED",
        "FUTURE_OBSERVATION",
        "STALE_OBSERVATION",
        "DOCUMENT_UPDATE_DATE_MISSING",
        "DOCUMENT_UPDATE_IN_FUTURE",
        "UNKNOWN_EFFECTIVE_DATE",
        "EFFECTIVE_DATE_IN_FUTURE",
        "API_REFERENCE_NOT_POLICY",
        "PROCEDURE_NOT_APPLICABLE_POLICY",
        "NO_OFFICIAL_POLICY_COVERAGE",
        "NO_REFERENCE_COVERAGE"
       ],
       "type": "string"
      },
      "maxItems": 15,
      "minItems": 1,
      "type": "array"
     },
     "representation": {
      "const": "authored_paraphrase_not_full_source",
      "description": "Representation.",
      "type": "string"
     },
     "retrieved_at": {
      "description": "Retrieved at.",
      "maxLength": 64,
      "minLength": 20,
      "type": "string"
     },
     "source_id": {
      "description": "Source id.",
      "pattern": "^[A-Z0-9-]{1,128}$",
      "type": "string"
     },
     "source_updated_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Source updated date."
     },
     "source_updated_date_status": {
      "description": "Source updated date status.",
      "enum": [
       "DOCUMENT_STATED",
       "MISSING"
      ],
      "type": "string"
     },
     "title": {
      "description": "Title.",
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
     },
     "url": {
      "description": "Url.",
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "source_id",
     "title",
     "url",
     "material_type",
     "jurisdiction",
     "retrieved_at",
     "source_updated_date",
     "source_updated_date_status",
     "effective_date",
     "effective_date_status",
     "decision_date",
     "decision_date_status",
     "decision_acceptance_deadline",
     "content_class",
     "representation",
     "jurisdiction_normalized",
     "observation_status",
     "observation_age_basis",
     "current_policy_applicability",
     "reason_codes",
     "citation_chunk_ids"
    ],
    "type": "object"
   },
   "PolicyThemeCounts": {
    "additionalProperties": false,
    "description": "PolicyThemeCounts.",
    "properties": {
     "dispute_mediation": {
      "description": "Dispute mediation.",
      "maximum": 29.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "source_compliance": {
      "description": "Source compliance.",
      "maximum": 29.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "velocity_guard": {
      "description": "Velocity guard.",
      "maximum": 29.0,
      "minimum": 0.0,
      "type": "integer"
     }
    },
    "required": [
     "source_compliance",
     "velocity_guard",
     "dispute_mediation"
    ],
    "type": "object"
   },
   "ProductCard": {
    "additionalProperties": false,
    "description": "A Channel3 catalogue product reduced to what identifies the item; no prices, offers or buy links.",
    "properties": {
     "brand": {
      "anyOf": [
       {
        "maxLength": 60,
        "minLength": 2,
        "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Brand."
     },
     "category": {
      "anyOf": [
       {
        "maxLength": 80,
        "minLength": 2,
        "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Category."
     },
     "image_url": {
      "anyOf": [
       {
        "maxLength": 500,
        "pattern": "^https://[^\\s@]+$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Image url."
     },
     "key_features": {
      "description": "Key features.",
      "items": {
       "maxLength": 100,
       "minLength": 2,
       "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
       "type": "string"
      },
      "maxItems": 4,
      "type": "array"
     },
     "materials": {
      "description": "Materials.",
      "items": {
       "maxLength": 40,
       "minLength": 2,
       "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
       "type": "string"
      },
      "maxItems": 4,
      "type": "array"
     },
     "product_id": {
      "description": "Product id.",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "type": "string"
     },
     "title": {
      "description": "Title.",
      "maxLength": 120,
      "minLength": 2,
      "pattern": "^[A-Za-z0-9 &'\\-,./+()%\\\"]+$",
      "type": "string"
     }
    },
    "required": [
     "product_id",
     "title",
     "brand",
     "category",
     "key_features",
     "materials",
     "image_url"
    ],
    "type": "object"
   },
   "ProductConfirmRequest": {
    "additionalProperties": false,
    "description": "ProductConfirmRequest.",
    "properties": {
     "description": {
      "description": "Description.",
      "maxLength": 4000,
      "minLength": 1,
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     },
     "product_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Product id."
     }
    },
    "required": [
     "evaluation_id",
     "description",
     "product_id"
    ],
    "type": "object"
   },
   "ProductConfirmResponse": {
    "additionalProperties": false,
    "description": "The seller's own choice: one of the cards they were shown, or none of them.",
    "properties": {
     "affects_decision": {
      "const": false,
      "description": "Affects decision.",
      "type": "boolean"
     },
     "card": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ProductCard"
       },
       {
        "type": "null"
       }
      ],
      "description": "Card."
     },
     "card_digest": {
      "anyOf": [
       {
        "pattern": "^[a-f0-9]{64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Card digest."
     },
     "choice": {
      "description": "Choice.",
      "enum": [
       "CONFIRMED",
       "NONE_MATCH"
      ],
      "type": "string"
     },
     "confirmed_by": {
      "const": "seller",
      "description": "Confirmed by.",
      "type": "string"
     },
     "description_digest": {
      "description": "Description digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     },
     "recorded_at": {
      "anyOf": [
       {
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Recorded at."
     },
     "source": {
      "description": "Source.",
      "enum": [
       "channel3_live",
       "channel3_recorded"
      ],
      "type": "string"
     }
    },
    "required": [
     "choice",
     "evaluation_id",
     "description_digest",
     "source",
     "recorded_at",
     "card",
     "card_digest",
     "confirmed_by",
     "affects_decision"
    ],
    "type": "object"
   },
   "ProductReferenceRequest": {
    "additionalProperties": false,
    "description": "ProductReferenceRequest.",
    "properties": {
     "description": {
      "description": "Description.",
      "maxLength": 4000,
      "minLength": 1,
      "type": "string"
     },
     "evaluation_id": {
      "description": "Evaluation id.",
      "maxLength": 128,
      "minLength": 32,
      "pattern": "^[A-Za-z0-9_-]+$",
      "type": "string"
     }
    },
    "required": [
     "evaluation_id",
     "description"
    ],
    "type": "object"
   },
   "ProductReferenceResponse": {
    "additionalProperties": false,
    "description": "Up to three Channel3 products for the seller to pick from; advisory, never changes the AUP decision.",
    "properties": {
     "affects_decision": {
      "const": false,
      "description": "Affects decision.",
      "type": "boolean"
     },
     "cards": {
      "description": "Cards.",
      "items": {
       "$ref": "#/components/schemas/ProductCard"
      },
      "maxItems": 3,
      "type": "array"
     },
     "reason": {
      "anyOf": [
       {
        "enum": [
         "nothing_to_send",
         "not_recorded",
         "budget_exhausted",
         "timeout",
         "upstream_error",
         "contract_rejected"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Reason."
     },
     "recorded_at": {
      "anyOf": [
       {
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Recorded at."
     },
     "source": {
      "anyOf": [
       {
        "enum": [
         "channel3_live",
         "channel3_recorded"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Source."
     },
     "status": {
      "description": "Status.",
      "enum": [
       "OFF",
       "FOUND",
       "NOT_FOUND",
       "NOT_SENT",
       "UNAVAILABLE"
      ],
      "type": "string"
     }
    },
    "required": [
     "status",
     "source",
     "cards",
     "reason",
     "recorded_at",
     "affects_decision"
    ],
    "type": "object"
   },
   "ProvideEvidenceRequest": {
    "additionalProperties": false,
    "description": "ProvideEvidenceRequest.",
    "properties": {
     "case_ref": {
      "description": "Case ref.",
      "pattern": "^case-ref-[0-9]{3}$",
      "type": "string"
     },
     "confirm_token": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_-]{32}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Confirm token."
     },
     "dispute_id": {
      "description": "Dispute id.",
      "pattern": "^PP-[A-Z0-9][A-Z0-9-]{2,62}$",
      "type": "string"
     },
     "submit": {
      "default": false,
      "description": "Submit.",
      "type": "boolean"
     }
    },
    "required": [
     "dispute_id",
     "case_ref"
    ],
    "type": "object"
   },
   "ProvideEvidenceResponse": {
    "additionalProperties": false,
    "description": "ProvideEvidenceResponse.",
    "properties": {
     "case_ref": {
      "description": "Case ref.",
      "pattern": "^case-ref-[0-9]{3}$",
      "type": "string"
     },
     "confirm_token": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_-]{32}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Confirm token."
     },
     "content_type": {
      "const": "multipart/form-data",
      "description": "Content type.",
      "type": "string"
     },
     "data_source_label": {
      "description": "Data source label.",
      "enum": [
       "Sandbox",
       "Fixture"
      ],
      "type": "string"
     },
     "dispute_id": {
      "description": "Dispute id.",
      "pattern": "^PP-[A-Z0-9][A-Z0-9-]{2,62}$",
      "type": "string"
     },
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_class": {
      "description": "Evidence class.",
      "enum": [
       "AUTHENTIC_SANDBOX_RESPONSE",
       "SYNTHETIC_TEST_RESPONSE",
       "SYNTHETIC_FIXTURE"
      ],
      "type": "string"
     },
     "external_send": {
      "description": "External send.",
      "enum": [
       "FROZEN",
       "SUBMITTED"
      ],
      "type": "string"
     },
     "files": {
      "description": "Files.",
      "items": {
       "$ref": "#/components/schemas/MultipartFilePart"
      },
      "maxItems": 20,
      "type": "array"
     },
     "human_review_required": {
      "const": true,
      "description": "Human review required.",
      "type": "boolean"
     },
     "input": {
      "$ref": "#/components/schemas/EvidenceInput"
     },
     "method": {
      "const": "POST",
      "description": "Method.",
      "type": "string"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Note."
     },
     "observed_at": {
      "description": "Observed at.",
      "maxLength": 27,
      "minLength": 20,
      "type": "string"
     },
     "path": {
      "description": "Path.",
      "pattern": "^/v1/customer/disputes/PP-[A-Z0-9][A-Z0-9-]{2,62}/provide-evidence$",
      "type": "string"
     },
     "payload_sha256": {
      "anyOf": [
       {
        "pattern": "^[a-f0-9]{64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Payload sha256."
     },
     "paypal_debug_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9]{6,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Paypal debug id."
     },
     "provider_submission": {
      "description": "Provider submission.",
      "enum": [
       "NOT_PERFORMED",
       "PERFORMED"
      ],
      "type": "string"
     },
     "readback": {
      "description": "Readback.",
      "enum": [
       "PROVIDE_EVIDENCE_PREVIEW",
       "PROVIDE_EVIDENCE_SUBMITTED"
      ],
      "type": "string"
     },
     "send_guard": {
      "$ref": "#/components/schemas/SendGuard"
     },
     "sent_files": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/SentFileFingerprint"
        },
        "maxItems": 20,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Sent files."
     },
     "source": {
      "description": "Source.",
      "enum": [
       "paypal_sandbox",
       "synthetic_fixture"
      ],
      "type": "string"
     },
     "submit_flag_enabled": {
      "description": "Submit flag enabled.",
      "type": "boolean"
     }
    },
    "required": [
     "source",
     "data_source_label",
     "environment",
     "evidence_class",
     "observed_at",
     "provider_submission",
     "readback",
     "dispute_id",
     "case_ref",
     "method",
     "path",
     "content_type",
     "input",
     "files",
     "external_send",
     "submit_flag_enabled",
     "human_review_required",
     "send_guard"
    ],
    "type": "object"
   },
   "ProviderMoney": {
    "additionalProperties": false,
    "description": "ProviderMoney.",
    "properties": {
     "currency_code": {
      "description": "Currency code.",
      "pattern": "^[A-Z]{3}$",
      "type": "string"
     },
     "value": {
      "description": "Value.",
      "pattern": "^[0-9]{1,10}(?:\\.[0-9]{1,2})?$",
      "type": "string"
     }
    },
    "required": [
     "currency_code",
     "value"
    ],
    "type": "object"
   },
   "ReferenceCitation": {
    "additionalProperties": false,
    "description": "ReferenceCitation.",
    "properties": {
     "case_outcome": {
      "anyOf": [
       {
        "enum": [
         "SETTLEMENT_APPROVAL_NOT_FINAL_MERITS",
         "ARBITRATION_COMPELLED_UNDERLYING_MERITS_NOT_DECIDED"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Case outcome."
     },
     "case_stage": {
      "description": "Case stage.",
      "enum": [
       "procedural_order",
       "not_applicable"
      ],
      "type": "string"
     },
     "chunk_id": {
      "description": "Chunk id.",
      "pattern": "^[A-Z0-9-]{1,128}$",
      "type": "string"
     },
     "decision_acceptance_deadline": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Decision acceptance deadline."
     },
     "decision_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Decision date."
     },
     "decision_date_status": {
      "description": "Decision date status.",
      "enum": [
       "DOCUMENT_STATED",
       "NOT_STATED_IN_REVIEWED_DOCUMENT",
       "NOT_APPLICABLE"
      ],
      "type": "string"
     },
     "effective_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Effective date."
     },
     "effective_date_status": {
      "description": "Effective date status.",
      "enum": [
       "DOCUMENT_STATED",
       "NOT_VERIFIED"
      ],
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "jurisdiction_label": {
      "description": "Jurisdiction label.",
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
     },
     "locator": {
      "description": "Locator.",
      "maxLength": 8000,
      "minLength": 1,
      "type": "string"
     },
     "material_type": {
      "description": "Material type.",
      "enum": [
       "official_api_reference",
       "official_policy",
       "public_court_order_copy"
      ],
      "type": "string"
     },
     "relevance_score": {
      "description": "Relevance score.",
      "maximum": 128.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "retrieved_at": {
      "description": "Retrieved at.",
      "maxLength": 64,
      "minLength": 20,
      "type": "string"
     },
     "source_id": {
      "description": "Source id.",
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
     },
     "source_title": {
      "description": "Source title.",
      "maxLength": 8000,
      "minLength": 1,
      "type": "string"
     },
     "source_updated_date": {
      "anyOf": [
       {
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Source updated date."
     },
     "source_updated_date_status": {
      "description": "Source updated date status.",
      "enum": [
       "DOCUMENT_STATED",
       "MISSING"
      ],
      "type": "string"
     },
     "text": {
      "description": "Text.",
      "maxLength": 8000,
      "minLength": 1,
      "type": "string"
     },
     "text_sha256": {
      "description": "Text sha256.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "title": {
      "description": "Title.",
      "maxLength": 8000,
      "minLength": 1,
      "type": "string"
     },
     "url": {
      "description": "Url.",
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "chunk_id",
     "source_id",
     "title",
     "source_title",
     "text",
     "url",
     "locator",
     "material_type",
     "jurisdiction",
     "jurisdiction_label",
     "case_stage",
     "case_outcome",
     "retrieved_at",
     "text_sha256",
     "relevance_score",
     "source_updated_date",
     "source_updated_date_status",
     "effective_date",
     "effective_date_status",
     "decision_date",
     "decision_date_status",
     "decision_acceptance_deadline"
    ],
    "type": "object"
   },
   "ReferenceDigests": {
    "additionalProperties": false,
    "description": "ReferenceDigests.",
    "properties": {
     "chunks_sha256": {
      "description": "Chunks sha256.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "sources_sha256": {
      "description": "Sources sha256.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     }
    },
    "required": [
     "sources_sha256",
     "chunks_sha256"
    ],
    "type": "object"
   },
   "ReferenceFilters": {
    "additionalProperties": false,
    "description": "ReferenceFilters.",
    "properties": {
     "age_basis": {
      "const": "source_updated_date_utc_calendar",
      "description": "Age basis.",
      "type": "string"
     },
     "as_of": {
      "anyOf": [
       {
        "maxLength": 64,
        "minLength": 20,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "As of."
     },
     "case_stage": {
      "description": "Case stage.",
      "enum": [
       "any",
       "procedural_order",
       "not_applicable"
      ],
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "limit": {
      "description": "Limit.",
      "maximum": 10.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "material_types": {
      "description": "Material types.",
      "items": {
       "enum": [
        "official_api_reference",
        "official_policy",
        "public_court_order_copy"
       ],
       "type": "string"
      },
      "maxItems": 3,
      "minItems": 1,
      "type": "array"
     },
     "max_source_age_days": {
      "anyOf": [
       {
        "maximum": 365000.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Max source age days."
     },
     "require_known_source_date": {
      "description": "Require known source date.",
      "type": "boolean"
     },
     "theme": {
      "description": "Theme.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "theme",
     "jurisdiction",
     "case_stage",
     "material_types",
     "limit",
     "require_known_source_date",
     "max_source_age_days",
     "age_basis",
     "as_of"
    ],
    "type": "object"
   },
   "ReferenceRequest": {
    "additionalProperties": false,
    "description": "ReferenceRequest.",
    "properties": {
     "as_of": {
      "anyOf": [
       {
        "maxLength": 64,
        "minLength": 20,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "As of."
     },
     "case_stage": {
      "default": "any",
      "description": "Case stage.",
      "enum": [
       "any",
       "procedural_order",
       "not_applicable"
      ],
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "limit": {
      "default": 3,
      "description": "Limit.",
      "maximum": 10.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "material_types": {
      "anyOf": [
       {
        "items": {
         "enum": [
          "official_api_reference",
          "official_policy",
          "public_court_order_copy"
         ],
         "type": "string"
        },
        "maxItems": 3,
        "minItems": 1,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Material types."
     },
     "max_source_age_days": {
      "anyOf": [
       {
        "maximum": 365000.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Max source age days."
     },
     "query": {
      "description": "Query.",
      "maxLength": 512,
      "minLength": 1,
      "type": "string"
     },
     "require_known_source_date": {
      "default": false,
      "description": "Require known source date.",
      "type": "boolean"
     },
     "theme": {
      "description": "Theme.",
      "enum": [
       "source_compliance",
       "velocity_guard",
       "dispute_mediation"
      ],
      "type": "string"
     }
    },
    "required": [
     "query",
     "theme",
     "jurisdiction"
    ],
    "type": "object"
   },
   "ReferenceResponse": {
    "additionalProperties": false,
    "description": "ReferenceResponse.",
    "properties": {
     "advisory_only": {
      "description": "Advisory only.",
      "type": "boolean"
     },
     "corpus_digest": {
      "description": "Corpus digest.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "corpus_digests": {
      "$ref": "#/components/schemas/ReferenceDigests"
     },
     "corpus_id": {
      "const": "payguard-us-official-references-v2",
      "description": "Corpus id.",
      "type": "string"
     },
     "filters_applied": {
      "$ref": "#/components/schemas/ReferenceFilters"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "maxLength": 2000,
       "minLength": 1,
       "type": "string"
      },
      "maxItems": 32,
      "minItems": 1,
      "type": "array"
     },
     "operational_authority": {
      "const": "REFERENCE_ONLY_NO_ACTION_AUTHORIZATION",
      "description": "Operational authority.",
      "type": "string"
     },
     "results": {
      "description": "Results.",
      "items": {
       "$ref": "#/components/schemas/ReferenceCitation"
      },
      "maxItems": 10,
      "type": "array"
     },
     "schema_version": {
      "description": "Schema version.",
      "maximum": 1.0,
      "minimum": 1.0,
      "type": "integer"
     },
     "source": {
      "const": "public_reference",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "references_found",
       "evidence_missing"
      ],
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "status",
     "corpus_id",
     "corpus_digest",
     "corpus_digests",
     "filters_applied",
     "results",
     "limitations",
     "advisory_only",
     "operational_authority",
     "source"
    ],
    "type": "object"
   },
   "RestrictedOriginalSummary": {
    "additionalProperties": false,
    "description": "RestrictedOriginalSummary.",
    "properties": {
     "attachment_count": {
      "description": "Attachment count.",
      "maximum": 20.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "content_returned": {
      "const": false,
      "description": "Content returned.",
      "type": "boolean"
     },
     "custody": {
      "const": "SESSION_MEMORY_ONLY",
      "description": "Custody.",
      "type": "string"
     },
     "data_class": {
      "const": "SYNTHETIC_RESTRICTED_EVIDENCE",
      "description": "Data class.",
      "type": "string"
     },
     "persistent_storage": {
      "const": "NOT_IMPLEMENTED",
      "description": "Persistent storage.",
      "type": "string"
     },
     "production_pii_vault": {
      "const": "NOT_IMPLEMENTED",
      "description": "Production pii vault.",
      "type": "string"
     },
     "profile": {
      "const": "RESTRICTED_ORIGINAL_METADATA_V1",
      "description": "Profile.",
      "type": "string"
     },
     "proof_record_count": {
      "description": "Proof record count.",
      "maximum": 128.0,
      "minimum": 0.0,
      "type": "integer"
     },
     "provider_submission": {
      "const": "NOT_PERFORMED",
      "description": "Provider submission.",
      "type": "string"
     },
     "schema_version": {
      "const": 1,
      "description": "Schema version.",
      "type": "integer"
     }
    },
    "required": [
     "schema_version",
     "profile",
     "data_class",
     "custody",
     "persistent_storage",
     "production_pii_vault",
     "proof_record_count",
     "attachment_count",
     "content_returned",
     "provider_submission"
    ],
    "type": "object"
   },
   "SandboxEvidenceReceipt": {
    "additionalProperties": false,
    "description": "SandboxEvidenceReceipt.",
    "properties": {
     "action": {
      "description": "Action.",
      "enum": [
       "OAUTH_CONNECT",
       "CREATE_INVOICE_DRAFT"
      ],
      "type": "string"
     },
     "environment": {
      "const": "sandbox",
      "description": "Environment.",
      "type": "string"
     },
     "evidence_class": {
      "description": "Evidence class.",
      "enum": [
       "AUTHENTIC_SANDBOX_RESPONSE",
       "SYNTHETIC_TEST_RESPONSE"
      ],
      "type": "string"
     },
     "external_send": {
      "const": "FROZEN",
      "description": "External send.",
      "type": "string"
     },
     "invoice_id": {
      "anyOf": [
       {
        "maxLength": 69,
        "minLength": 13,
        "pattern": "^INV2-[A-Z0-9-]{8,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Invoice id."
     },
     "observed_at": {
      "description": "Observed at.",
      "maxLength": 27,
      "minLength": 20,
      "type": "string"
     },
     "paypal_debug_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9]{6,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Paypal debug id."
     },
     "proof_kind": {
      "const": "POST_RESPONSE_ONLY",
      "description": "Proof kind.",
      "type": "string"
     },
     "schema_version": {
      "const": 1,
      "description": "Schema version.",
      "type": "integer"
     },
     "separate_get_readback": {
      "const": false,
      "description": "Separate get readback.",
      "type": "boolean"
     },
     "status": {
      "description": "Status.",
      "enum": [
       "CONNECTED",
       "DRAFT"
      ],
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "paypal_debug_id",
     "environment",
     "action",
     "status",
     "observed_at",
     "invoice_id",
     "evidence_class",
     "proof_kind",
     "separate_get_readback",
     "external_send"
    ],
    "type": "object"
   },
   "Scenario": {
    "additionalProperties": false,
    "description": "Scenario.",
    "properties": {
     "burst": {
      "description": "Burst.",
      "type": "boolean"
     },
     "dispute": {
      "description": "Dispute.",
      "type": "boolean"
     }
    },
    "required": [
     "burst",
     "dispute"
    ],
    "type": "object"
   },
   "ScenarioCitation": {
    "additionalProperties": false,
    "description": "ScenarioCitation.",
    "properties": {
     "chunk_id": {
      "description": "Chunk id.",
      "pattern": "^[A-Z0-9-]{1,128}$",
      "type": "string"
     },
     "jurisdiction": {
      "const": "US",
      "description": "Jurisdiction.",
      "type": "string"
     },
     "locator": {
      "description": "Locator.",
      "maxLength": 1000,
      "minLength": 1,
      "type": "string"
     },
     "material_type": {
      "description": "Material type.",
      "enum": [
       "official_api_reference",
       "official_policy"
      ],
      "type": "string"
     },
     "source_id": {
      "description": "Source id.",
      "pattern": "^[A-Z0-9-]{1,128}$",
      "type": "string"
     },
     "text_sha256": {
      "description": "Text sha256.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     },
     "title": {
      "description": "Title.",
      "maxLength": 512,
      "minLength": 1,
      "type": "string"
     },
     "url": {
      "description": "Url.",
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "chunk_id",
     "source_id",
     "title",
     "url",
     "locator",
     "material_type",
     "jurisdiction",
     "text_sha256"
    ],
    "type": "object"
   },
   "ScenarioMatch": {
    "additionalProperties": false,
    "description": "ScenarioMatch.",
    "properties": {
     "current_policy_applicability": {
      "const": "NOT_ESTABLISHED",
      "description": "Current policy applicability.",
      "type": "string"
     },
     "engine_execution": {
      "const": "NOT_RUN",
      "description": "Engine execution.",
      "type": "string"
     },
     "evaluation_scope": {
      "const": "AUTHORED_SYNTHETIC_DEMO_ONLY",
      "description": "Evaluation scope.",
      "type": "string"
     },
     "intake_status": {
      "description": "Intake status.",
      "enum": [
       "ready_for_local_rules",
       "manual_review"
      ],
      "type": "string"
     },
     "operational_authority": {
      "const": "REFERENCE_ONLY_NO_ACTION_AUTHORIZATION",
      "description": "Operational authority.",
      "type": "string"
     },
     "provenance": {
      "const": "AUTHORED_SYNTHETIC_SCENARIOS_NOT_REAL_CASES",
      "description": "Provenance.",
      "type": "string"
     },
     "real_case_evidence": {
      "const": "NOT_PROVIDED",
      "description": "Real case evidence.",
      "type": "string"
     },
     "required_human_review": {
      "const": true,
      "description": "Required human review.",
      "type": "boolean"
     },
     "scenario": {
      "$ref": "#/components/schemas/DisputeScenario"
     },
     "schema_version": {
      "const": 1,
      "description": "Schema version.",
      "type": "integer"
     },
     "source": {
      "const": "local_synthetic_scenario_matcher",
      "description": "Source.",
      "type": "string"
     },
     "status": {
      "const": "synthetic_scenarios_found",
      "description": "Status.",
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "source",
     "status",
     "intake_status",
     "provenance",
     "evaluation_scope",
     "required_human_review",
     "operational_authority",
     "engine_execution",
     "current_policy_applicability",
     "real_case_evidence",
     "scenario"
    ],
    "type": "object"
   },
   "SendGuard": {
    "additionalProperties": false,
    "description": "(r25 send guard) What a send carries and to whom, side by side; every account id is masked (first 2, last 4).",
    "properties": {
     "account_status": {
      "description": "Account status.",
      "enum": [
       "MATCH",
       "MISMATCH",
       "UNKNOWN"
      ],
      "type": "string"
     },
     "bound_dispute_masked": {
      "anyOf": [
       {
        "pattern": "^(?:PP-[A-Z0-9-]{2}\\u2026[A-Z0-9-]{2}|\\u2026)$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Bound dispute masked."
     },
     "case_reason": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Case reason."
     },
     "case_ref": {
      "description": "Case ref.",
      "pattern": "^case-ref-[0-9]{3}$",
      "type": "string"
     },
     "dispute_amount": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ProviderMoney"
       },
       {
        "type": "null"
       }
      ],
      "description": "Dispute amount."
     },
     "dispute_masked": {
      "description": "Dispute masked.",
      "pattern": "^(?:PP-[A-Z0-9-]{2}\\u2026[A-Z0-9-]{2}|\\u2026)$",
      "type": "string"
     },
     "dispute_reason": {
      "anyOf": [
       {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Dispute reason."
     },
     "dispute_seller_masked": {
      "anyOf": [
       {
        "pattern": "^(?:[0-9A-Za-z]{2}\\u2026[0-9A-Za-z]{4}|\\u2026)$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Dispute seller masked."
     },
     "send_refusal": {
      "anyOf": [
       {
        "enum": [
         "account_identity_unknown",
         "dispute_not_this_account",
         "dispute_detail_required",
         "seller_evidence_already_submitted",
         "dispute_not_awaiting_seller",
         "dispute_evidence_not_offered"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Send refusal."
     },
     "sending_account_masked": {
      "anyOf": [
       {
        "pattern": "^(?:[0-9A-Za-z]{2}\\u2026[0-9A-Za-z]{4}|\\u2026)$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Sending account masked."
     }
    },
    "required": [
     "case_ref",
     "dispute_masked",
     "account_status"
    ],
    "type": "object"
   },
   "SentFileFingerprint": {
    "additionalProperties": false,
    "description": "Plain SHA-256 of one file's exact bytes, recorded at the moment of a send so a later read-back can be compared.\n\nThe keyed ``payload_sha256`` cannot be checked outside the session; this one can. Never present on a preview.",
    "properties": {
     "byte_length": {
      "description": "Byte length.",
      "maximum": 9999999,
      "minimum": 0.0,
      "type": "integer"
     },
     "content_type": {
      "description": "Content type.",
      "enum": [
       "image/jpeg",
       "image/gif",
       "image/png",
       "application/pdf"
      ],
      "type": "string"
     },
     "filename": {
      "description": "Filename.",
      "maxLength": 255,
      "type": "string"
     },
     "sha256": {
      "description": "Sha256.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
     }
    },
    "required": [
     "filename",
     "content_type",
     "byte_length",
     "sha256"
    ],
    "type": "object"
   },
   "SessionResponse": {
    "additionalProperties": false,
    "description": "SessionResponse.",
    "properties": {
     "csrf_token": {
      "description": "Csrf token.",
      "type": "string"
     },
     "expires_at": {
      "description": "Expires at.",
      "type": "string"
     },
     "session_id": {
      "description": "Session id.",
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     }
    },
    "required": [
     "session_id",
     "csrf_token",
     "source",
     "expires_at"
    ],
    "type": "object"
   },
   "StateResponse": {
    "additionalProperties": false,
    "description": "StateResponse.",
    "properties": {
     "activity": {
      "description": "Activity.",
      "items": {
       "$ref": "#/components/schemas/Activity"
      },
      "type": "array"
     },
     "disputes": {
      "description": "Disputes.",
      "items": {
       "$ref": "#/components/schemas/DisputeSummary"
      },
      "type": "array"
     },
     "expires_at": {
      "description": "Expires at.",
      "type": "string"
     },
     "policy_version": {
      "description": "Policy version.",
      "type": "string"
     },
     "scenario": {
      "$ref": "#/components/schemas/Scenario"
     },
     "session_id": {
      "description": "Session id.",
      "type": "string"
     },
     "source": {
      "const": "synthetic",
      "description": "Source.",
      "type": "string"
     },
     "transactions": {
      "description": "Transactions.",
      "items": {
       "$ref": "#/components/schemas/Transaction"
      },
      "type": "array"
     },
     "velocity": {
      "$ref": "#/components/schemas/VelocityResponse"
     }
    },
    "required": [
     "session_id",
     "source",
     "policy_version",
     "transactions",
     "velocity",
     "disputes",
     "activity",
     "scenario",
     "expires_at"
    ],
    "type": "object"
   },
   "SyntheticMoney": {
    "additionalProperties": false,
    "description": "Same shape as the PayPal Disputes `dispute_amount` (ProviderMoney below); values are synthetic.",
    "properties": {
     "currency_code": {
      "description": "Currency code.",
      "pattern": "^[A-Z]{3}$",
      "type": "string"
     },
     "value": {
      "description": "Value.",
      "pattern": "^[0-9]{1,10}(?:\\.[0-9]{1,2})?$",
      "type": "string"
     }
    },
    "required": [
     "currency_code",
     "value"
    ],
    "type": "object"
   },
   "TimeEvent": {
    "additionalProperties": false,
    "description": "TimeEvent.",
    "properties": {
     "at": {
      "description": "At.",
      "maxLength": 40,
      "minLength": 20,
      "type": "string"
     },
     "kind": {
      "description": "Kind.",
      "enum": [
       "PAYMENT",
       "ORDER_RECORD_CREATED",
       "DELIVERY",
       "CLAIM_OPENED"
      ],
      "type": "string"
     },
     "source": {
      "description": "Source.",
      "enum": [
       "PROVIDER",
       "SELLER_PROVIDED_UNVERIFIED"
      ],
      "type": "string"
     }
    },
    "required": [
     "kind",
     "at",
     "source"
    ],
    "type": "object"
   },
   "TimeEvidence": {
    "additionalProperties": false,
    "description": "TimeEvidence.",
    "properties": {
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "events": {
      "description": "Events.",
      "items": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/MessageTimeEvent"
        },
        {
         "$ref": "#/components/schemas/TimeEvent"
        }
       ]
      },
      "maxItems": 30,
      "minItems": 2,
      "type": "array"
     },
     "flags": {
      "description": "Flags.",
      "items": {
       "enum": [
        "ORDER_RECORD_ABSENT",
        "DELIVERY_NOT_RECORDED",
        "DELIVERY_AFTER_CLAIM",
        "CLAIM_TIME_EARLIER_THAN_PAYMENT_TIME"
       ],
       "type": "string"
      },
      "maxItems": 4,
      "type": "array"
     },
     "gaps_seconds": {
      "$ref": "#/components/schemas/TimeGaps"
     },
     "judgement": {
      "const": "NOT_MADE",
      "description": "Judgement.",
      "type": "string"
     },
     "schema_version": {
      "const": "payguard.time_evidence.v1",
      "description": "Schema version.",
      "type": "string"
     }
    },
    "required": [
     "schema_version",
     "events",
     "gaps_seconds",
     "flags",
     "judgement",
     "advisory_only"
    ],
    "type": "object"
   },
   "TimeGaps": {
    "additionalProperties": false,
    "description": "TimeGaps.",
    "properties": {
     "delivery_to_claim": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Delivery to claim."
     },
     "payment_to_claim": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Payment to claim."
     },
     "payment_to_delivery": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Payment to delivery."
     },
     "payment_to_order_record": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "Payment to order record."
     }
    },
    "required": [
     "payment_to_order_record",
     "payment_to_delivery",
     "delivery_to_claim",
     "payment_to_claim"
    ],
    "type": "object"
   },
   "TrackerBatch": {
    "additionalProperties": false,
    "description": "TrackerBatch.",
    "properties": {
     "trackers": {
      "description": "Trackers.",
      "items": {
       "$ref": "#/components/schemas/TrackerItem"
      },
      "maxItems": 1,
      "minItems": 1,
      "type": "array"
     }
    },
    "required": [
     "trackers"
    ],
    "type": "object"
   },
   "TrackerItem": {
    "additionalProperties": false,
    "description": "TrackerItem.",
    "properties": {
     "carrier": {
      "description": "Carrier.",
      "enum": [
       "USPS",
       "UPS",
       "FEDEX",
       "DHL",
       "TW_CHUNGHWA_POST",
       "JP_JAPANPOST",
       "OTHER"
      ],
      "type": "string"
     },
     "carrier_name_other": {
      "anyOf": [
       {
        "maxLength": 64,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Carrier name other."
     },
     "status": {
      "const": "SHIPPED",
      "description": "Status.",
      "type": "string"
     },
     "tracking_number": {
      "description": "Tracking number.",
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
     },
     "transaction_id": {
      "description": "Transaction id.",
      "pattern": "^[A-Za-z0-9*._-]{1,64}$",
      "type": "string"
     }
    },
    "required": [
     "transaction_id",
     "tracking_number",
     "status",
     "carrier"
    ],
    "type": "object"
   },
   "TrackingInfo": {
    "additionalProperties": false,
    "description": "TrackingInfo.",
    "properties": {
     "carrier_name": {
      "description": "Carrier name.",
      "enum": [
       "USPS",
       "UPS",
       "FEDEX",
       "DHL",
       "TW_CHUNGHWA_POST",
       "JP_JAPANPOST",
       "OTHER"
      ],
      "type": "string"
     },
     "carrier_name_other": {
      "anyOf": [
       {
        "maxLength": 64,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Carrier name other."
     },
     "tracking_number": {
      "description": "Tracking number.",
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
     }
    },
    "required": [
     "carrier_name",
     "tracking_number"
    ],
    "type": "object"
   },
   "Transaction": {
    "additionalProperties": false,
    "description": "Transaction.",
    "properties": {
     "amount": {
      "description": "Amount.",
      "type": "string"
     },
     "currency": {
      "description": "Currency.",
      "type": "string"
     },
     "occurred_at": {
      "description": "Occurred at.",
      "type": "string"
     },
     "order_id": {
      "description": "Order id.",
      "type": "string"
     }
    },
    "required": [
     "order_id",
     "amount",
     "currency",
     "occurred_at"
    ],
    "type": "object"
   },
   "ValidationError": {
    "description": "ValidationError.",
    "properties": {
     "ctx": {
      "description": "Ctx.",
      "type": "object"
     },
     "input": {
      "description": "Input."
     },
     "loc": {
      "description": "Loc.",
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array"
     },
     "msg": {
      "description": "Msg.",
      "type": "string"
     },
     "type": {
      "description": "Type.",
      "type": "string"
     }
    },
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "type": "object"
   },
   "VelocityResponse": {
    "additionalProperties": false,
    "description": "VelocityResponse.",
    "properties": {
     "advisory_only": {
      "const": true,
      "description": "Advisory only.",
      "type": "boolean"
     },
     "alert": {
      "description": "Alert.",
      "type": "boolean"
     },
     "baseline_amount_per_hour": {
      "description": "Baseline amount per hour.",
      "type": "string"
     },
     "baseline_provenance": {
      "description": "Baseline provenance.",
      "enum": [
       "SYNTHETIC_BASELINE",
       "CALLER_SUPPLIED_UNVERIFIED"
      ],
      "type": "string"
     },
     "baseline_window_end": {
      "description": "Baseline window end.",
      "type": "string"
     },
     "baseline_window_start": {
      "description": "Baseline window start.",
      "type": "string"
     },
     "currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Currency."
     },
     "current_amount_per_hour": {
      "description": "Current amount per hour.",
      "type": "string"
     },
     "excluded_future_count": {
      "description": "Excluded future count.",
      "type": "integer"
     },
     "excluded_past_count": {
      "description": "Excluded past count.",
      "type": "integer"
     },
     "limitations": {
      "description": "Limitations.",
      "items": {
       "type": "string"
      },
      "type": "array"
     },
     "policy_version": {
      "description": "Policy version.",
      "type": "string"
     },
     "ratio": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Ratio."
     },
     "status": {
      "description": "Status.",
      "enum": [
       "normal",
       "review_velocity",
       "insufficient_baseline"
      ],
      "type": "string"
     },
     "threshold": {
      "description": "Threshold.",
      "type": "string"
     },
     "total_amount": {
      "description": "Total amount.",
      "type": "string"
     },
     "transaction_count": {
      "description": "Transaction count.",
      "type": "integer"
     },
     "window_boundary": {
      "const": "left_open_right_closed",
      "description": "Window boundary.",
      "type": "string"
     },
     "window_end": {
      "description": "Window end.",
      "type": "string"
     },
     "window_hours": {
      "description": "Window hours.",
      "type": "integer"
     },
     "window_start": {
      "description": "Window start.",
      "type": "string"
     }
    },
    "required": [
     "status",
     "window_start",
     "window_end",
     "window_hours",
     "window_boundary",
     "transaction_count",
     "excluded_future_count",
     "excluded_past_count",
     "currency",
     "total_amount",
     "current_amount_per_hour",
     "baseline_amount_per_hour",
     "baseline_provenance",
     "baseline_window_start",
     "baseline_window_end",
     "ratio",
     "threshold",
     "alert",
     "policy_version",
     "advisory_only",
     "limitations"
    ],
    "type": "object"
   },
   "WebhookEventProjection": {
    "additionalProperties": false,
    "description": "All that is kept after a SUCCESS: identifiers and status only, no amounts, payer data, links or summary.",
    "properties": {
     "event_type": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Event type."
     },
     "id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Id."
     },
     "resource_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Resource id."
     },
     "resource_status": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Resource status."
     },
     "resource_type": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Resource type."
     }
    },
    "required": [
     "id",
     "event_type",
     "resource_type",
     "resource_id",
     "resource_status"
    ],
    "type": "object"
   },
   "WebhookVerifyResponse": {
    "additionalProperties": false,
    "description": "WebhookVerifyResponse.",
    "properties": {
     "event": {
      "$ref": "#/components/schemas/WebhookEventProjection"
     },
     "imported_into_demo": {
      "const": false,
      "description": "Imported into demo.",
      "type": "boolean"
     },
     "paypal_debug_id": {
      "anyOf": [
       {
        "pattern": "^[A-Za-z0-9]{6,64}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Paypal debug id."
     },
     "source": {
      "const": "paypal_sandbox",
      "description": "Source.",
      "type": "string"
     },
     "verification_status": {
      "const": "SUCCESS",
      "description": "Verification status.",
      "type": "string"
     }
    },
    "required": [
     "source",
     "verification_status",
     "imported_into_demo",
     "event",
     "paypal_debug_id"
    ],
    "type": "object"
   }
  },
  "securitySchemes": {
   "DemoCsrf": {
    "description": "CSRF token for the same session. Get it from the csrf_token field of the response to POST /api/v1/demo/sessions. Every POST also needs it; without it the API answers 403 csrf_rejected.",
    "in": "header",
    "name": "X-CSRF-Token",
    "type": "apiKey"
   },
   "DemoSession": {
    "description": "Demo session id. Get it from the session_id field of the response to POST /api/v1/demo/sessions (that request needs no header). Without it the API answers 401 session_required.",
    "in": "header",
    "name": "X-Demo-Session",
    "type": "apiKey"
   }
  }
 },
 "info": {
  "contact": {
   "name": "TradeGlot",
   "url": "https://github.com/jiarong0423/payguard-ai"
  },
  "description": "API of the local TradeGlot console (127.0.0.1:8000). It uses synthetic data and expects the demo session headers the console sets. On the hosted demo the read switch opens the Sandbox OAuth and dispute reads, the send switch also opens one capped provide-evidence route, and every other route that would reach PayPal answers 503. Authentication: create a session with POST /api/v1/demo/sessions, then send X-Demo-Session on every other call and X-CSRF-Token on every POST. POST calls also need an Origin header equal to the console's own origin (browsers add it; scripts must set it), otherwise the API answers 403 origin_required.",
  "license": {
   "identifier": "MIT",
   "name": "MIT"
  },
  "summary": "Read-only rule checks and a gated evidence workflow for small PayPal sellers, on synthetic data.",
  "title": "TradeGlot Local Console",
  "version": "0.2.0"
 },
 "openapi": "3.1.0",
 "paths": {
  "/api/v1/advisory/evaluate": {
   "post": {
    "description": "Advisory Evaluate. Local console route POST /api/v1/advisory/evaluate on synthetic data; advisory only.",
    "operationId": "post_advisory_evaluate",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "as_of": "examplexxxxxxxxxxxxx",
        "candidate_json": "example",
        "jurisdiction": "US",
        "observation_max_age_days": 0,
        "theme": "source_compliance"
       },
       "schema": {
        "$ref": "#/components/schemas/AdvisoryRequest"
       }
      }
     },
     "description": "JSON body for: Advisory Evaluate.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AdvisoryEvaluationResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Advisory Evaluate",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/ai/evidence-brief": {
   "post": {
    "description": "Evidence Brief. Local console route POST /api/v1/ai/evidence-brief on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_ai_evidence_brief",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "stage": "source_compliance"
       },
       "schema": {
        "$ref": "#/components/schemas/AiBriefHttpRequest"
       }
      }
     },
     "description": "JSON body for: Evidence Brief.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AiBriefResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Evidence Brief",
    "tags": [
     "ai"
    ]
   }
  },
  "/api/v1/ai/usage": {
   "get": {
    "description": "(optimise r24) This session's AI calls: stage, model, tokens, latency, estimated cost. No prompt or reply\ntext is ever stored; the hosted demo makes no model call and answers an empty list.",
    "operationId": "get_ai_usage",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "cost_note": "example",
         "entries": [
          {
           "at": "example",
           "latency_ms": 0,
           "outcome": "ok",
           "stage": "source_compliance"
          }
         ],
         "price_table_source": "example",
         "source": "session_memory"
        },
        "schema": {
         "$ref": "#/components/schemas/AiUsageResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Ai Usage",
    "tags": [
     "ai"
    ]
   }
  },
  "/api/v1/aup/acknowledge": {
   "post": {
    "description": "Acknowledge Aup. Local console route POST /api/v1/aup/acknowledge on synthetic data; advisory only.",
    "operationId": "post_aup_acknowledge",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AupAcknowledgeRequest"
       }
      }
     },
     "description": "JSON body for: Acknowledge Aup.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AupAcknowledgeResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Acknowledge Aup",
    "tags": [
     "aup"
    ]
   }
  },
  "/api/v1/aup/category-signal": {
   "post": {
    "description": "Aup Category Signal. Local console route POST /api/v1/aup/category-signal on synthetic data; advisory only.",
    "operationId": "post_aup_category_signal",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "description": "example",
        "evaluation_id": "examplexxxxxxxxxxxxxxxxxxxxxxxxx"
       },
       "schema": {
        "$ref": "#/components/schemas/AupCategorySignalRequest"
       }
      }
     },
     "description": "JSON body for: Aup Category Signal.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "affects_decision": false,
         "reason": "nothing_to_send",
         "signal": {
          "category": "example",
          "confidence": "HIGH",
          "source": "channel3"
         },
         "status": "OFF"
        },
        "schema": {
         "$ref": "#/components/schemas/AupCategorySignalResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Aup Category Signal",
    "tags": [
     "aup"
    ]
   }
  },
  "/api/v1/aup/product-reference": {
   "post": {
    "description": "Aup Product Reference. Local console route POST /api/v1/aup/product-reference on synthetic data; advisory only.",
    "operationId": "post_aup_product_reference",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "description": "example",
        "evaluation_id": "examplexxxxxxxxxxxxxxxxxxxxxxxxx"
       },
       "schema": {
        "$ref": "#/components/schemas/ProductReferenceRequest"
       }
      }
     },
     "description": "JSON body for: Aup Product Reference.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "affects_decision": false,
         "cards": [
          {
           "brand": "example",
           "category": "example",
           "image_url": null,
           "key_features": [
            "example"
           ],
           "materials": [
            "example"
           ],
           "product_id": "example",
           "title": "example"
          }
         ],
         "reason": "nothing_to_send",
         "recorded_at": "2026-10-07T09:30:00Z",
         "source": "channel3_live",
         "status": "OFF"
        },
        "schema": {
         "$ref": "#/components/schemas/ProductReferenceResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Aup Product Reference",
    "tags": [
     "aup"
    ]
   }
  },
  "/api/v1/aup/product-reference/confirm": {
   "post": {
    "description": "Aup Product Confirm. Local console route POST /api/v1/aup/product-reference/confirm on synthetic data; advisory only.",
    "operationId": "post_aup_product_reference_confirm",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "description": "example",
        "evaluation_id": "examplexxxxxxxxxxxxxxxxxxxxxxxxx",
        "product_id": "example"
       },
       "schema": {
        "$ref": "#/components/schemas/ProductConfirmRequest"
       }
      }
     },
     "description": "JSON body for: Aup Product Confirm.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProductConfirmResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Aup Product Confirm",
    "tags": [
     "aup"
    ]
   }
  },
  "/api/v1/aup/review": {
   "post": {
    "description": "Aup. Local console route POST /api/v1/aup/review on synthetic data; advisory only.",
    "operationId": "post_aup_review",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "description": "Handmade ceramic coffee mug, shipped in a padded box"
       },
       "schema": {
        "$ref": "#/components/schemas/AupRequest"
       }
      }
     },
     "description": "JSON body for: Aup.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AupResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Aup",
    "tags": [
     "aup"
    ]
   }
  },
  "/api/v1/cases/route": {
   "post": {
    "description": "Case Route. Local console route POST /api/v1/cases/route on synthetic data; advisory only.",
    "operationId": "post_cases_route",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "text": "handmade ceramic coffee mug"
       },
       "schema": {
        "$ref": "#/components/schemas/CaseRouteRequest"
       }
      }
     },
     "description": "JSON body for: Case Route.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "affects_decision": false,
         "decided_by": "code",
         "filtered_out": 0,
         "items": [
          "example"
         ],
         "matched_word": "example",
         "matches": [
          {
           "category": "example",
           "exact_words": [
            "example"
           ],
           "match_type": "exact",
           "product_id": "example",
           "score": 0.0,
           "title": "example"
          }
         ],
         "query": "example",
         "reason": "catalogue_match",
         "route": "physical"
        },
        "schema": {
         "$ref": "#/components/schemas/CaseRouteResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Case Route",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/connections": {
   "get": {
    "description": "Connections. Local console route GET /api/v1/connections on synthetic data; advisory only.",
    "operationId": "get_connections",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "mode": "hosted_demo",
         "sandbox_reads": true
        },
        "schema": {
         "$ref": "#/components/schemas/ConnectionsResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Connections",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/country-rules/check": {
   "post": {
    "description": "Country Rules Check. Local console route POST /api/v1/country-rules/check on synthetic data; advisory only.",
    "operationId": "post_country_rules_check",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "account_type": "business",
        "amount": "120.00",
        "buyer_country": "US",
        "checkout": "paypal_account",
        "currency": "USD",
        "goods_tags": [],
        "seller_country": "TW"
       },
       "schema": {
        "$ref": "#/components/schemas/CountryRulesCheckRequest"
       }
      }
     },
     "description": "JSON body for: Country Rules Check.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Country Rules Check",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/country-rules/countries": {
   "get": {
    "description": "Country Rules Countries. Local console route GET /api/v1/country-rules/countries on synthetic data; advisory only.",
    "operationId": "get_country_rules_countries",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Country Rules Countries",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/country-rules/search": {
   "post": {
    "description": "Country Rules Search. Local console route POST /api/v1/country-rules/search on synthetic data; advisory only.",
    "operationId": "post_country_rules_search",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "query": "example"
       },
       "schema": {
        "$ref": "#/components/schemas/CountryRulesSearchRequest"
       }
      }
     },
     "description": "JSON body for: Country Rules Search.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Country Rules Search",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/demo/inject": {
   "post": {
    "description": "Inject. Local console route POST /api/v1/demo/inject on synthetic data; advisory only.",
    "operationId": "post_demo_inject",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "scenario": "burst"
       },
       "schema": {
        "$ref": "#/components/schemas/InjectRequest"
       }
      }
     },
     "description": "JSON body for: Inject.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "activity": [
          {
           "at": "example",
           "id": "example",
           "kind": "example",
           "label": "example",
           "source": "synthetic"
          }
         ],
         "disputes": [
          {
           "case_ref": "example",
           "dispute_amount": {
            "currency_code": "USD",
            "value": "42.50"
           },
           "opened_at": "example",
           "order_ref": "example",
           "reason": "example",
           "seller_response_due_date": "example",
           "status": "needs_review"
          }
         ],
         "expires_at": "example",
         "policy_version": "example",
         "scenario": {
          "burst": false,
          "dispute": false
         },
         "session_id": "example",
         "source": "synthetic",
         "transactions": [
          {
           "amount": "example",
           "currency": "example",
           "occurred_at": "example",
           "order_id": "example"
          }
         ],
         "velocity": {
          "advisory_only": true,
          "alert": false,
          "baseline_amount_per_hour": "example",
          "baseline_provenance": "SYNTHETIC_BASELINE",
          "baseline_window_end": "example",
          "baseline_window_start": "example",
          "currency": "example",
          "current_amount_per_hour": "example",
          "excluded_future_count": 1,
          "excluded_past_count": 1,
          "limitations": [
           "example"
          ],
          "policy_version": "example",
          "ratio": "example",
          "status": "normal",
          "threshold": "example",
          "total_amount": "example",
          "transaction_count": 1,
          "window_boundary": "left_open_right_closed",
          "window_end": "example",
          "window_hours": 1,
          "window_start": "example"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/StateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Inject",
    "tags": [
     "demo"
    ]
   }
  },
  "/api/v1/demo/sessions": {
   "post": {
    "description": "New Session. Local console route POST /api/v1/demo/sessions on synthetic data; advisory only.",
    "operationId": "post_demo_sessions",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {},
       "schema": {
        "$ref": "#/components/schemas/EmptyRequest"
       }
      }
     },
     "description": "JSON body for: New Session.",
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "example": {
         "csrf_token": "csrf-example-0001",
         "expires_at": "2026-10-07T10:30:00Z",
         "session_id": "sess-example-0001",
         "source": "synthetic"
        },
        "schema": {
         "$ref": "#/components/schemas/SessionResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [],
    "summary": "New Session",
    "tags": [
     "demo"
    ]
   }
  },
  "/api/v1/demo/state": {
   "get": {
    "description": "State. Local console route GET /api/v1/demo/state on synthetic data; advisory only.",
    "operationId": "get_demo_state",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "activity": [
          {
           "at": "example",
           "id": "example",
           "kind": "example",
           "label": "example",
           "source": "synthetic"
          }
         ],
         "disputes": [
          {
           "case_ref": "example",
           "dispute_amount": {
            "currency_code": "USD",
            "value": "42.50"
           },
           "opened_at": "example",
           "order_ref": "example",
           "reason": "example",
           "seller_response_due_date": "example",
           "status": "needs_review"
          }
         ],
         "expires_at": "example",
         "policy_version": "example",
         "scenario": {
          "burst": false,
          "dispute": false
         },
         "session_id": "example",
         "source": "synthetic",
         "transactions": [
          {
           "amount": "example",
           "currency": "example",
           "occurred_at": "example",
           "order_id": "example"
          }
         ],
         "velocity": {
          "advisory_only": true,
          "alert": false,
          "baseline_amount_per_hour": "example",
          "baseline_provenance": "SYNTHETIC_BASELINE",
          "baseline_window_end": "example",
          "baseline_window_start": "example",
          "currency": "example",
          "current_amount_per_hour": "example",
          "excluded_future_count": 1,
          "excluded_past_count": 1,
          "limitations": [
           "example"
          ],
          "policy_version": "example",
          "ratio": "example",
          "status": "normal",
          "threshold": "example",
          "total_amount": "example",
          "transaction_count": 1,
          "window_boundary": "left_open_right_closed",
          "window_end": "example",
          "window_hours": 1,
          "window_start": "example"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/StateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "State",
    "tags": [
     "demo"
    ]
   }
  },
  "/api/v1/disputes/{case_ref}/approve": {
   "post": {
    "description": "Approve. Local console route POST /api/v1/disputes/{case_ref}/approve on synthetic data; advisory only.",
    "operationId": "post_disputes_case_ref_approve",
    "parameters": [
     {
      "description": "Case ref.",
      "example": "case-ref-001",
      "in": "path",
      "name": "case_ref",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ApproveRequest"
       }
      }
     },
     "description": "JSON body for: Approve.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "action": "review_draft",
         "authenticated_actor": false,
         "case_ref": "example",
         "durable_approval": false,
         "external_submission": "FROZEN",
         "retention": "SESSION_MEMORY_ONLY",
         "reviewed_at": "2026-10-07T09:30:00Z",
         "reviewer": "DEMO_OPERATOR_UNAUTHENTICATED",
         "source": "synthetic",
         "status": "local_draft_reviewed"
        },
        "schema": {
         "$ref": "#/components/schemas/DisputeApprovalResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Approve",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/disputes/{case_ref}/draft": {
   "post": {
    "description": "Draft. Local console route POST /api/v1/disputes/{case_ref}/draft on synthetic data; advisory only.",
    "operationId": "post_disputes_case_ref_draft",
    "parameters": [
     {
      "description": "Case ref.",
      "example": "case-ref-001",
      "in": "path",
      "name": "case_ref",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "example": {},
       "schema": {
        "$ref": "#/components/schemas/EmptyRequest"
       }
      }
     },
     "description": "JSON body for: Draft.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DisputeDraftResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Draft",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/guide/form": {
   "post": {
    "description": "Guide Form. Local console route POST /api/v1/guide/form on synthetic data; advisory only.",
    "operationId": "post_guide_form",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {},
       "schema": {
        "$ref": "#/components/schemas/GuideFormRequest"
       }
      }
     },
     "description": "JSON body for: Guide Form.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "advisory_only": true,
         "analysis": {
          "reason": "budget",
          "status": "analysing",
          "turn": 1
         },
         "asked": [
          "example"
         ],
         "auto_confirmed": [
          "example"
         ],
         "chooser_mode": "keyword",
         "deferred": [
          "example"
         ],
         "flow_name": "example",
         "form_result": {
          "item": "example",
          "valid": false
         },
         "form_results": [
          {
           "deferred": false,
           "item": "example",
           "valid": false
          }
         ],
         "gap": {
          "conflicting": [
           "example"
          ],
          "missing": [
           "example"
          ],
          "partial": [
           "example"
          ],
          "present": [
           "example"
          ]
         },
         "goods_type": "physical",
         "items": [
          {
           "chunk": "example",
           "form": null,
           "id": "example",
           "label": "example",
           "source": "OFFICIAL",
           "status": "STRUCTURALLY_PRESENT"
          }
         ],
         "model_requested": false,
         "model_text_shown": false,
         "prefill": {},
         "reply": {
          "chooser": "none",
          "dropped": [
           {
            "item": "example",
            "reason": "other_party"
           }
          ],
          "fallback_reason": "budget",
          "state_changed": false,
          "template": "OPEN",
          "text": "example"
         },
         "review": [
          {
           "item": "example",
           "source": "words",
           "value": "example"
          }
         ],
         "rounds_used": 1,
         "scenario": "preflight",
         "schema_version": 1,
         "stage": "funnel",
         "started": false,
         "subtraction": {
          "left": 1,
          "needed": 1,
          "taken": 1,
          "text": "example"
         },
         "turns_limit": 1,
         "turns_used": 1,
         "values_stored": false
        },
        "schema": {
         "$ref": "#/components/schemas/GuideStateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Guide Form",
    "tags": [
     "guide"
    ]
   }
  },
  "/api/v1/guide/review": {
   "post": {
    "description": "Guide Review. Local console route POST /api/v1/guide/review on synthetic data; advisory only.",
    "operationId": "post_guide_review",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {},
       "schema": {
        "$ref": "#/components/schemas/GuideReviewRequest"
       }
      }
     },
     "description": "JSON body for: Guide Review.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "advisory_only": true,
         "analysis": {
          "reason": "budget",
          "status": "analysing",
          "turn": 1
         },
         "asked": [
          "example"
         ],
         "auto_confirmed": [
          "example"
         ],
         "chooser_mode": "keyword",
         "deferred": [
          "example"
         ],
         "flow_name": "example",
         "form_result": {
          "item": "example",
          "valid": false
         },
         "form_results": [
          {
           "deferred": false,
           "item": "example",
           "valid": false
          }
         ],
         "gap": {
          "conflicting": [
           "example"
          ],
          "missing": [
           "example"
          ],
          "partial": [
           "example"
          ],
          "present": [
           "example"
          ]
         },
         "goods_type": "physical",
         "items": [
          {
           "chunk": "example",
           "form": null,
           "id": "example",
           "label": "example",
           "source": "OFFICIAL",
           "status": "STRUCTURALLY_PRESENT"
          }
         ],
         "model_requested": false,
         "model_text_shown": false,
         "prefill": {},
         "reply": {
          "chooser": "none",
          "dropped": [
           {
            "item": "example",
            "reason": "other_party"
           }
          ],
          "fallback_reason": "budget",
          "state_changed": false,
          "template": "OPEN",
          "text": "example"
         },
         "review": [
          {
           "item": "example",
           "source": "words",
           "value": "example"
          }
         ],
         "rounds_used": 1,
         "scenario": "preflight",
         "schema_version": 1,
         "stage": "funnel",
         "started": false,
         "subtraction": {
          "left": 1,
          "needed": 1,
          "taken": 1,
          "text": "example"
         },
         "turns_limit": 1,
         "turns_used": 1,
         "values_stored": false
        },
        "schema": {
         "$ref": "#/components/schemas/GuideStateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Guide Review",
    "tags": [
     "guide"
    ]
   }
  },
  "/api/v1/guide/start": {
   "post": {
    "description": "Guide Start. Local console route POST /api/v1/guide/start on synthetic data; advisory only.",
    "operationId": "post_guide_start",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "scenario": "preflight"
       },
       "schema": {
        "$ref": "#/components/schemas/GuideStartRequest"
       }
      }
     },
     "description": "JSON body for: Guide Start.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "advisory_only": true,
         "analysis": {
          "reason": "budget",
          "status": "analysing",
          "turn": 1
         },
         "asked": [
          "example"
         ],
         "auto_confirmed": [
          "example"
         ],
         "chooser_mode": "keyword",
         "deferred": [
          "example"
         ],
         "flow_name": "example",
         "form_result": {
          "item": "example",
          "valid": false
         },
         "form_results": [
          {
           "deferred": false,
           "item": "example",
           "valid": false
          }
         ],
         "gap": {
          "conflicting": [
           "example"
          ],
          "missing": [
           "example"
          ],
          "partial": [
           "example"
          ],
          "present": [
           "example"
          ]
         },
         "goods_type": "physical",
         "items": [
          {
           "chunk": "example",
           "form": null,
           "id": "example",
           "label": "example",
           "source": "OFFICIAL",
           "status": "STRUCTURALLY_PRESENT"
          }
         ],
         "model_requested": false,
         "model_text_shown": false,
         "prefill": {},
         "reply": {
          "chooser": "none",
          "dropped": [
           {
            "item": "example",
            "reason": "other_party"
           }
          ],
          "fallback_reason": "budget",
          "state_changed": false,
          "template": "OPEN",
          "text": "example"
         },
         "review": [
          {
           "item": "example",
           "source": "words",
           "value": "example"
          }
         ],
         "rounds_used": 1,
         "scenario": "preflight",
         "schema_version": 1,
         "stage": "funnel",
         "started": false,
         "subtraction": {
          "left": 1,
          "needed": 1,
          "taken": 1,
          "text": "example"
         },
         "turns_limit": 1,
         "turns_used": 1,
         "values_stored": false
        },
        "schema": {
         "$ref": "#/components/schemas/GuideStateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Guide Start",
    "tags": [
     "guide"
    ]
   }
  },
  "/api/v1/guide/state": {
   "get": {
    "description": "Guide State. Local console route GET /api/v1/guide/state on synthetic data; advisory only.",
    "operationId": "get_guide_state",
    "parameters": [
     {
      "description": "Scenario.",
      "example": "preflight",
      "in": "query",
      "name": "scenario",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "preflight",
          "velocity",
          "dispute"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "advisory_only": true,
         "analysis": {
          "reason": "budget",
          "status": "analysing",
          "turn": 1
         },
         "asked": [
          "example"
         ],
         "auto_confirmed": [
          "example"
         ],
         "chooser_mode": "keyword",
         "deferred": [
          "example"
         ],
         "flow_name": "example",
         "form_result": {
          "item": "example",
          "valid": false
         },
         "form_results": [
          {
           "deferred": false,
           "item": "example",
           "valid": false
          }
         ],
         "gap": {
          "conflicting": [
           "example"
          ],
          "missing": [
           "example"
          ],
          "partial": [
           "example"
          ],
          "present": [
           "example"
          ]
         },
         "goods_type": "physical",
         "items": [
          {
           "chunk": "example",
           "form": null,
           "id": "example",
           "label": "example",
           "source": "OFFICIAL",
           "status": "STRUCTURALLY_PRESENT"
          }
         ],
         "model_requested": false,
         "model_text_shown": false,
         "prefill": {},
         "reply": {
          "chooser": "none",
          "dropped": [
           {
            "item": "example",
            "reason": "other_party"
           }
          ],
          "fallback_reason": "budget",
          "state_changed": false,
          "template": "OPEN",
          "text": "example"
         },
         "review": [
          {
           "item": "example",
           "source": "words",
           "value": "example"
          }
         ],
         "rounds_used": 1,
         "scenario": "preflight",
         "schema_version": 1,
         "stage": "funnel",
         "started": false,
         "subtraction": {
          "left": 1,
          "needed": 1,
          "taken": 1,
          "text": "example"
         },
         "turns_limit": 1,
         "turns_used": 1,
         "values_stored": false
        },
        "schema": {
         "$ref": "#/components/schemas/GuideStateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Guide State",
    "tags": [
     "guide"
    ]
   }
  },
  "/api/v1/guide/turn": {
   "post": {
    "description": "Guide Turn. Local console route POST /api/v1/guide/turn on synthetic data; advisory only.",
    "operationId": "post_guide_turn",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "text": "example"
       },
       "schema": {
        "$ref": "#/components/schemas/GuideTurnRequest"
       }
      }
     },
     "description": "JSON body for: Guide Turn.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "advisory_only": true,
         "analysis": {
          "reason": "budget",
          "status": "analysing",
          "turn": 1
         },
         "asked": [
          "example"
         ],
         "auto_confirmed": [
          "example"
         ],
         "chooser_mode": "keyword",
         "deferred": [
          "example"
         ],
         "flow_name": "example",
         "form_result": {
          "item": "example",
          "valid": false
         },
         "form_results": [
          {
           "deferred": false,
           "item": "example",
           "valid": false
          }
         ],
         "gap": {
          "conflicting": [
           "example"
          ],
          "missing": [
           "example"
          ],
          "partial": [
           "example"
          ],
          "present": [
           "example"
          ]
         },
         "goods_type": "physical",
         "items": [
          {
           "chunk": "example",
           "form": null,
           "id": "example",
           "label": "example",
           "source": "OFFICIAL",
           "status": "STRUCTURALLY_PRESENT"
          }
         ],
         "model_requested": false,
         "model_text_shown": false,
         "prefill": {},
         "reply": {
          "chooser": "none",
          "dropped": [
           {
            "item": "example",
            "reason": "other_party"
           }
          ],
          "fallback_reason": "budget",
          "state_changed": false,
          "template": "OPEN",
          "text": "example"
         },
         "review": [
          {
           "item": "example",
           "source": "words",
           "value": "example"
          }
         ],
         "rounds_used": 1,
         "scenario": "preflight",
         "schema_version": 1,
         "stage": "funnel",
         "started": false,
         "subtraction": {
          "left": 1,
          "needed": 1,
          "taken": 1,
          "text": "example"
         },
         "turns_limit": 1,
         "turns_used": 1,
         "values_stored": false
        },
        "schema": {
         "$ref": "#/components/schemas/GuideStateResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Guide Turn",
    "tags": [
     "guide"
    ]
   }
  },
  "/api/v1/health": {
   "get": {
    "description": "Health. Local console route GET /api/v1/health on synthetic data; advisory only.",
    "operationId": "get_health",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "mode": "demo",
         "source": "synthetic",
         "status": "ok",
         "version": "0.0.0-example"
        },
        "schema": {
         "$ref": "#/components/schemas/HealthResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [],
    "summary": "Health",
    "tags": [
     "health"
    ]
   }
  },
  "/api/v1/paypal/connect": {
   "post": {
    "description": "Connect. Local console route POST /api/v1/paypal/connect on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_paypal_connect",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {},
       "schema": {
        "$ref": "#/components/schemas/EmptyRequest"
       }
      }
     },
     "description": "JSON body for: Connect.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "configured": false,
         "environment": "sandbox",
         "evidence_receipt": {
          "action": "OAUTH_CONNECT",
          "environment": "sandbox",
          "evidence_class": "AUTHENTIC_SANDBOX_RESPONSE",
          "external_send": "FROZEN",
          "invoice_id": null,
          "observed_at": "examplexxxxxxxxxxxxx",
          "paypal_debug_id": "example",
          "proof_kind": "POST_RESPONSE_ONLY",
          "schema_version": 1,
          "separate_get_readback": false,
          "status": "CONNECTED"
         },
         "last_verified_at": "example",
         "source": "paypal_sandbox",
         "status": "not_configured"
        },
        "schema": {
         "$ref": "#/components/schemas/PaypalStatusResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Connect",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/disputes": {
   "get": {
    "description": "List Disputes. Local console route GET /api/v1/paypal/disputes on synthetic data; advisory only.",
    "operationId": "get_paypal_disputes",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "data_source_label": "Fixture",
         "environment": "sandbox",
         "evidence_class": "SYNTHETIC_FIXTURE",
         "items": [
          {
           "create_time": "2026-10-01T08:00:00Z",
           "dispute_amount": {
            "currency_code": "USD",
            "value": "42.50"
           },
           "dispute_id": "PP-R-BNP-XXXX7173",
           "dispute_life_cycle_stage": "INQUIRY",
           "dispute_state": "OPEN_INQUIRIES",
           "reason": "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
           "seller_response_due_date": "2026-10-15T08:00:00Z",
           "status": "WAITING_FOR_SELLER_RESPONSE",
           "update_time": "2026-10-02T08:00:00Z"
          }
         ],
         "observed_at": "2026-10-07T09:30:00Z",
         "paypal_debug_id": null,
         "provider_submission": "NOT_PERFORMED",
         "readback": "GET_LIST",
         "source": "synthetic_fixture"
        },
        "schema": {
         "$ref": "#/components/schemas/DisputeListResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "List Disputes",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/disputes/add-tracking": {
   "post": {
    "description": "Add Tracking. Local console route POST /api/v1/paypal/disputes/add-tracking on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_paypal_disputes_add_tracking",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "case_ref": "case-ref-001",
        "dispute_id": "PP-R-BNP-XXXX7173"
       },
       "schema": {
        "$ref": "#/components/schemas/AddTrackingRequest"
       }
      }
     },
     "description": "JSON body for: Add Tracking.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AddTrackingResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Add Tracking",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/disputes/provide-evidence": {
   "post": {
    "description": "Provide Evidence. Local console route POST /api/v1/paypal/disputes/provide-evidence on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_paypal_disputes_provide_evidence",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "case_ref": "case-ref-001",
        "dispute_id": "PP-R-BNP-XXXX7173",
        "submit": false
       },
       "schema": {
        "$ref": "#/components/schemas/ProvideEvidenceRequest"
       }
      }
     },
     "description": "JSON body for: Provide Evidence.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProvideEvidenceResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Provide Evidence",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/disputes/{dispute_id}": {
   "get": {
    "description": "Get Dispute. Local console route GET /api/v1/paypal/disputes/{dispute_id} on synthetic data; advisory only.",
    "operationId": "get_paypal_disputes_dispute_id",
    "parameters": [
     {
      "description": "Dispute id.",
      "example": "PP-R-BNP-XXXX7173",
      "in": "path",
      "name": "dispute_id",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "create_time": "2026-10-01T08:00:00Z",
         "data_source_label": "Fixture",
         "dispute_amount": {
          "currency_code": "USD",
          "value": "42.50"
         },
         "dispute_id": "PP-R-BNP-XXXX7173",
         "dispute_life_cycle_stage": "INQUIRY",
         "dispute_state": "OPEN_INQUIRIES",
         "disputed_transactions": [
          {
           "gross_amount": {
            "currency_code": "USD",
            "value": "42.50"
           },
           "seller_protection_eligible": true,
           "seller_transaction_id": "TXN-EXAMPLE-0001",
           "transaction_status": "COMPLETED"
          }
         ],
         "environment": "sandbox",
         "evidence_class": "SYNTHETIC_FIXTURE",
         "evidences": [
          {
           "action": null,
           "date": "2026-10-01T08:00:00Z",
           "evidence_type": "PROOF_OF_FULFILLMENT",
           "source": "REQUESTED_FROM_SELLER"
          }
         ],
         "observed_at": "2026-10-07T09:30:00Z",
         "paypal_debug_id": null,
         "provider_submission": "NOT_PERFORMED",
         "readback": "GET_DETAIL",
         "reason": "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
         "seller_response_due_date": "2026-10-15T08:00:00Z",
         "source": "synthetic_fixture",
         "status": "WAITING_FOR_SELLER_RESPONSE",
         "update_time": "2026-10-02T08:00:00Z"
        },
        "schema": {
         "$ref": "#/components/schemas/DisputeDetailResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Get Dispute",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/invoices/draft": {
   "post": {
    "description": "Invoice Draft. Local console route POST /api/v1/paypal/invoices/draft on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_paypal_invoices_draft",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InvoiceDraftRequest"
       }
      }
     },
     "description": "JSON body for: Invoice Draft.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/InvoiceDraftResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Invoice Draft",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/invoices/review": {
   "post": {
    "description": "Invoice Review. Local console route POST /api/v1/paypal/invoices/review on synthetic data; advisory only.",
    "operationId": "post_paypal_invoices_review",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "amount": "42.50",
        "confirm_sandbox_draft": false,
        "currency": "USD",
        "description": "example"
       },
       "schema": {
        "$ref": "#/components/schemas/InvoiceReviewRequest"
       }
      }
     },
     "description": "JSON body for: Invoice Review.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "action": "create_sandbox_invoice_draft",
         "advisory_only": true,
         "authenticated_actor": false,
         "expires_at": "example",
         "limitations": [
          "example"
         ],
         "payload_digest": "example",
         "policy_status": "manual_review",
         "review_token": "example",
         "source": "synthetic"
        },
        "schema": {
         "$ref": "#/components/schemas/InvoiceReviewResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Invoice Review",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/status": {
   "get": {
    "description": "Paypal Status. Local console route GET /api/v1/paypal/status on synthetic data; advisory only.",
    "operationId": "get_paypal_status",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "configured": false,
         "environment": "sandbox",
         "evidence_receipt": null,
         "last_verified_at": null,
         "source": "paypal_sandbox",
         "status": "not_configured"
        },
        "schema": {
         "$ref": "#/components/schemas/PaypalStatusResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Paypal Status",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/paypal/webhooks/verify": {
   "post": {
    "description": "Verify Webhook. Local console route POST /api/v1/paypal/webhooks/verify on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_paypal_webhooks_verify",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "event": {
          "event_type": "example",
          "id": "example",
          "resource_id": "example",
          "resource_status": "example",
          "resource_type": "example"
         },
         "imported_into_demo": false,
         "paypal_debug_id": "example",
         "source": "paypal_sandbox",
         "verification_status": "SUCCESS"
        },
        "schema": {
         "$ref": "#/components/schemas/WebhookVerifyResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Verify Webhook",
    "tags": [
     "paypal"
    ]
   }
  },
  "/api/v1/policy/assess": {
   "post": {
    "description": "Checks whether the pinned official PayPal references still apply for a jurisdiction and theme at a given date. INCOMPLETE_POLICY_EVIDENCE with current_policy_applicability NOT_ESTABLISHED is a normal answer: it means the pinned summaries do not cover everything the question needs, so the tool does not claim the policy applies; it is advisory only and a person decides.",
    "operationId": "post_policy_assess",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "as_of": "2026-10-07T00:00:00Z",
        "jurisdiction": "US",
        "observation_max_age_days": 30,
        "theme": "source_compliance"
       },
       "schema": {
        "$ref": "#/components/schemas/PolicyRequest"
       }
      }
     },
     "description": "JSON body for: Policy Assess.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PolicyAssessmentResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Policy Assess",
    "tags": [
     "other"
    ]
   }
  },
  "/api/v1/references/search": {
   "post": {
    "description": "References. Local console route POST /api/v1/references/search on synthetic data; advisory only.",
    "operationId": "post_references_search",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {
        "jurisdiction": "US",
        "query": "example",
        "theme": "source_compliance"
       },
       "schema": {
        "$ref": "#/components/schemas/ReferenceRequest"
       }
      }
     },
     "description": "JSON body for: References.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReferenceResponse"
        }
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "References",
    "tags": [
     "references"
    ]
   }
  },
  "/api/v1/studio/agent-status": {
   "get": {
    "description": "Studio Agent Status. Local console route GET /api/v1/studio/agent-status on synthetic data; advisory only.",
    "operationId": "get_studio_agent_status",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     }
    },
    "security": [
     {
      "DemoSession": []
     }
    ],
    "summary": "Studio Agent Status",
    "tags": [
     "studio"
    ]
   }
  },
  "/api/v1/studio/agent-turn": {
   "post": {
    "description": "Studio Agent Turn. Local console route POST /api/v1/studio/agent-turn on synthetic data; advisory only. The hosted demo answers 503 hosted_demo_disabled here: it makes no provider calls.",
    "operationId": "post_studio_agent_turn",
    "requestBody": {
     "content": {
      "application/json": {
       "example": {},
       "schema": {
        "additionalProperties": true,
        "type": "object"
       }
      }
     },
     "description": "JSON body for: Studio Agent Turn.",
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "session_required",
          "message": "A valid demo session is required."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "A valid demo session is required (session_required)."
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "csrf_rejected",
          "message": "This request could not be accepted from here."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Origin missing or not allowed, or the CSRF token is wrong (origin_required, origin_rejected, csrf_rejected)."
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "schema_invalid",
          "message": "Some details need to be checked and re-entered."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "The request does not match the accepted contract (schema_invalid)."
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "rate_limited",
          "message": "Too many requests; please wait a moment and try again."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Too many requests; the body says when to retry."
     },
     "503": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "hosted_demo_disabled",
          "message": "This capability is disabled in the hosted demo, which cannot send or change anything at a provider. Run TradeGlot locally to use it."
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ErrorBody"
        }
       }
      },
      "description": "Hosted demo only: this route makes no provider call (hosted_demo_disabled)."
     }
    },
    "security": [
     {
      "DemoCsrf": [],
      "DemoSession": []
     }
    ],
    "summary": "Studio Agent Turn",
    "tags": [
     "studio"
    ]
   }
  }
 },
 "servers": [
  {
   "description": "Local console (synthetic data)",
   "url": "http://127.0.0.1:8000"
  },
  {
   "description": "Hosted demo (Sandbox reads and one capped evidence send when the operator enables them; other write routes answer 503 hosted_demo_disabled; the first request after idle can take about a minute)",
   "url": "https://payguard-demo-j2b3.onrender.com"
  }
 ],
 "tags": [
  {
   "description": "Evidence brief (local console with a model profile only).",
   "name": "ai"
  },
  {
   "description": "Acceptable-use keyword check and the invoice review that follows it.",
   "name": "aup"
  },
  {
   "description": "Demo session, scenarios and local state.",
   "name": "demo"
  },
  {
   "description": "Evidence guide: gap filling over closed form items.",
   "name": "guide"
  },
  {
   "description": "Liveness check.",
   "name": "health"
  },
  {
   "description": "Other console routes.",
   "name": "other"
  },
  {
   "description": "PayPal Sandbox connection, disputes and the gated evidence request (local console only).",
   "name": "paypal"
  },
  {
   "description": "Pinned official references and search over them.",
   "name": "references"
  },
  {
   "description": "AG Studio agent route (local live mode only).",
   "name": "studio"
  }
 ]
}
