{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-canonical-get-current-rules-canonical-response-schema.json",
  "title": "CanonicalGetCurrentRulesCanonicalResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-discovery-api-openapi.yml#/components/schemas/CanonicalGetCurrentRulesCanonicalResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/CanonicalCurrentRules"
    },
    "requestId": {
      "type": "string"
    }
  },
  "required": [
    "data",
    "requestId"
  ],
  "$defs": {
    "CanonicalCurrentRules": {
      "type": "object",
      "properties": {
        "rulesVersion": {
          "type": "string"
        },
        "rulesHash": {
          "type": "string"
        },
        "rulesetId": {
          "type": "string"
        },
        "dynamicRulesetId": {
          "type": "string"
        },
        "apiCompatibilityVersion": {
          "type": "string"
        },
        "application": {
          "const": "prospective_and_case_pinned",
          "type": "string"
        },
        "caseProcedures": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "caseTrack",
              "label",
              "description",
              "appealWaivedDefault",
              "disclosure",
              "appealWaiverDisclosure",
              "terms"
            ],
            "properties": {
              "caseTrack": {
                "type": "string",
                "enum": [
                  "ai_fast",
                  "ai_standard",
                  "ai_assisted_human"
                ]
              },
              "label": {
                "type": "string",
                "minLength": 1
              },
              "description": {
                "type": "string",
                "minLength": 1
              },
              "appealWaivedDefault": {
                "type": "boolean",
                "const": false
              },
              "disclosure": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "appealWaiverDisclosure": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "version",
                  "sha256",
                  "text"
                ],
                "properties": {
                  "version": {
                    "type": "string",
                    "minLength": 1
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              },
              "terms": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "appealRetained",
                  "appealWaived"
                ],
                "properties": {
                  "appealRetained": {
                    "$ref": "#/$defs/CaseProcedureTerms"
                  },
                  "appealWaived": {
                    "$ref": "#/$defs/CaseProcedureTerms"
                  }
                }
              }
            }
          },
          "minItems": 3,
          "maxItems": 3
        }
      },
      "required": [
        "rulesVersion",
        "rulesHash",
        "rulesetId",
        "dynamicRulesetId",
        "apiCompatibilityVersion",
        "application",
        "caseProcedures"
      ]
    },
    "CaseProcedureTerms": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schemaVersion",
        "track",
        "appealWaived",
        "waiverDisclosureVersion",
        "waiverDisclosureHash",
        "rulesVersion",
        "rulesHash",
        "behaviorVersion",
        "disclosureVersion",
        "disclosureHash",
        "feePolicyVersion",
        "termsHash"
      ],
      "properties": {
        "schemaVersion": {
          "type": "string",
          "const": "case-procedure-v1"
        },
        "track": {
          "type": "string",
          "enum": [
            "ai_fast",
            "ai_standard",
            "ai_assisted_human"
          ]
        },
        "appealWaived": {
          "type": "boolean"
        },
        "waiverDisclosureVersion": {
          "type": "string",
          "minLength": 1
        },
        "waiverDisclosureHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "rulesVersion": {
          "type": "string",
          "minLength": 1
        },
        "rulesHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "behaviorVersion": {
          "type": "string",
          "minLength": 1
        },
        "disclosureVersion": {
          "type": "string",
          "minLength": 1
        },
        "disclosureHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "feePolicyVersion": {
          "type": "string",
          "minLength": 1
        },
        "termsHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      }
    }
  }
}