{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proside-io/json-schema/proside-io-reciprocal-access-request-output-schema.json",
  "title": "ReciprocalAccessRequestOutput",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proside-io-openapi.json#/components/schemas/ReciprocalAccessRequestOutput",
  "properties": {
    "reciprocal_access_request_id": {
      "type": "string",
      "format": "uuid",
      "title": "Reciprocal Access Request Id"
    },
    "network_id": {
      "type": "string",
      "format": "uuid",
      "title": "Network Id"
    },
    "home_organization_id": {
      "type": "string",
      "format": "uuid",
      "title": "Home Organization Id"
    },
    "host_organization_id": {
      "type": "string",
      "format": "uuid",
      "title": "Host Organization Id"
    },
    "host_facility_id": {
      "type": "string",
      "format": "uuid",
      "title": "Host Facility Id"
    },
    "program_policy_version_id": {
      "type": "string",
      "format": "uuid",
      "title": "Program Policy Version Id"
    },
    "status": {
      "type": "string",
      "enum": [
        "SUBMITTED",
        "REVIEWED",
        "APPROVED",
        "REJECTED",
        "WITHDRAWN"
      ],
      "title": "Status"
    },
    "initiator_side": {
      "type": "string",
      "enum": [
        "HOME",
        "HOST"
      ],
      "title": "Initiator Side"
    },
    "initiating_organization_id": {
      "type": "string",
      "format": "uuid",
      "title": "Initiating Organization Id"
    },
    "requested_effective_from": {
      "type": "string",
      "format": "date",
      "title": "Requested Effective From"
    },
    "requested_effective_to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Requested Effective To"
    },
    "requested_maximum_players_per_request": {
      "type": "integer",
      "title": "Requested Maximum Players Per Request"
    },
    "submitted_at": {
      "type": "string",
      "format": "date-time",
      "title": "Submitted At"
    },
    "submitted_by_player_id": {
      "type": "string",
      "format": "uuid",
      "title": "Submitted By Player Id"
    },
    "submitted_policy_sha256": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Submitted Policy Sha256"
    },
    "submitted_policy_snapshot": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Submitted Policy Snapshot"
    },
    "reviewed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reviewed At"
    },
    "reviewed_by_player_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reviewed By Player Id"
    },
    "reviewed_terms": {
      "anyOf": [
        {
          "$ref": "#/$defs/ReciprocalAccessReviewedTermsOutput"
        },
        {
          "type": "null"
        }
      ]
    },
    "decided_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decided At"
    },
    "decided_by_player_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decided By Player Id"
    },
    "decision_reason_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decision Reason Code"
    },
    "withdrawn_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Withdrawn At"
    },
    "withdrawn_by_player_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Withdrawn By Player Id"
    },
    "withdrawal_reason_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Withdrawal Reason Code"
    },
    "reciprocal_access_grant_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reciprocal Access Grant Id"
    },
    "maker_checker_satisfied": {
      "type": "boolean",
      "title": "Maker Checker Satisfied"
    },
    "single_host_admin_authorized": {
      "type": "boolean",
      "title": "Single Host Admin Authorized"
    },
    "version": {
      "type": "integer",
      "title": "Version"
    }
  },
  "type": "object",
  "required": [
    "reciprocal_access_request_id",
    "network_id",
    "home_organization_id",
    "host_organization_id",
    "host_facility_id",
    "program_policy_version_id",
    "status",
    "initiator_side",
    "initiating_organization_id",
    "requested_effective_from",
    "requested_effective_to",
    "requested_maximum_players_per_request",
    "submitted_at",
    "submitted_by_player_id",
    "submitted_policy_sha256",
    "submitted_policy_snapshot",
    "reviewed_at",
    "reviewed_by_player_id",
    "reviewed_terms",
    "decided_at",
    "decided_by_player_id",
    "decision_reason_code",
    "withdrawn_at",
    "withdrawn_by_player_id",
    "withdrawal_reason_code",
    "reciprocal_access_grant_id",
    "maker_checker_satisfied",
    "single_host_admin_authorized",
    "version"
  ],
  "$defs": {
    "ReciprocalAccessReviewedTermsOutput": {
      "properties": {
        "effective_from": {
          "type": "string",
          "format": "date",
          "title": "Effective From"
        },
        "effective_to": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective To"
        },
        "maximum_players_per_request": {
          "type": "integer",
          "title": "Maximum Players Per Request"
        },
        "capacity_policy": {
          "additionalProperties": true,
          "type": "object",
          "title": "Capacity Policy"
        },
        "eligibility_policy": {
          "additionalProperties": true,
          "type": "object",
          "title": "Eligibility Policy"
        },
        "contract_reference": {
          "type": "string",
          "title": "Contract Reference"
        },
        "terms_sha256": {
          "type": "string",
          "title": "Terms Sha256"
        },
        "policy_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Policy Sha256"
        },
        "policy_snapshot": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Policy Snapshot"
        },
        "terms_change_notice_version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terms Change Notice Version"
        }
      },
      "type": "object",
      "required": [
        "effective_from",
        "effective_to",
        "maximum_players_per_request",
        "capacity_policy",
        "eligibility_policy",
        "contract_reference",
        "terms_sha256",
        "policy_sha256",
        "policy_snapshot",
        "terms_change_notice_version"
      ],
      "title": "ReciprocalAccessReviewedTermsOutput"
    }
  }
}