{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cherishedbook-com/json-schema/cherishedbook-com-provision-result-schema.json",
  "title": "ProvisionResult",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cherishedbook-com-openapi.yml#/components/schemas/ProvisionResult",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "status",
    "deceased_name",
    "pronouns",
    "organization_id",
    "family",
    "invitation_expires_at",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "awaiting_family",
        "in_progress"
      ]
    },
    "deceased_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "pronouns": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "she",
        "he",
        "they",
        "name",
        null
      ],
      "description": "How the family refers to them. Null: use their name and they/them, never guess."
    },
    "organization_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "family": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "name",
        "email"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "invitation_expires_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}