{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-guest-access-session-issued-schema.json",
  "title": "GuestAccessSessionIssued",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-guest-access-api-openapi.yml#/components/schemas/GuestAccessSessionIssued",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "access": {
      "$ref": "#/$defs/GuestAccess"
    },
    "session_token": {
      "type": "string",
      "description": "Guest access session for server-side verification. It cannot replace the wedding API key or a native Aisle guest cookie."
    },
    "expires_at": {
      "$ref": "#/$defs/Timestamp"
    }
  },
  "required": [
    "access",
    "session_token",
    "expires_at"
  ],
  "$defs": {
    "GuestAccess": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/GuestAccessId"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 120
        },
        "guest_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuestId"
          }
        },
        "expires_at": {
          "oneOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "type": "null"
            }
          ]
        },
        "revoked_at": {
          "oneOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "$ref": "#/$defs/Timestamp"
        },
        "updated_at": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "required": [
        "id",
        "name",
        "guest_ids",
        "expires_at",
        "revoked_at",
        "created_at",
        "updated_at"
      ]
    },
    "GuestAccessId": {
      "type": "string",
      "pattern": "^gac_.+$"
    },
    "GuestId": {
      "type": "string",
      "pattern": "^gst_.+$"
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "An RFC 3339 UTC timestamp with milliseconds."
    }
  }
}