{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chia-health/json-schema/chia-health-handoff-session-request-schema.json",
  "title": "HandoffSessionRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chia-health-openapi.yml#/components/schemas/HandoffSessionRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "catalog_item_id",
    "disclosure_version",
    "consent_attestation"
  ],
  "properties": {
    "catalog_item_id": {
      "type": "string",
      "pattern": "^cat_[A-Za-z0-9]{8,64}$"
    },
    "disclosure_version": {
      "type": "string",
      "pattern": "^hnd_[A-Za-z0-9]{8,64}$"
    },
    "consent_attestation": {
      "$ref": "#/$defs/ConsentAttestation"
    }
  },
  "$defs": {
    "ConsentAttestation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "affirmed",
        "affirmed_at"
      ],
      "properties": {
        "affirmed": {
          "const": true
        },
        "affirmed_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}