> Full index: https://docs.buchungapp.com/llms.txt
> Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples.

# Query activities with a JSON body

POST form of activities.list for conditions/selections that outgrow a URL. Same decoded query fields, defaults, eligibility, exact counts, locale, response schema and error vocabulary. Send where/facets as JSON values, not strings. Host caps the body at 16 KiB before parsing (413 payload_too_large), shares the GET read limiter bucket and returns Cache-Control: private, no-store. This read reserves no inventory. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.

```json
{
  "operations": [
    {
      "method": "post",
      "path": "/v1/activities/query",
      "tags": [
        "activities"
      ]
    }
  ],
  "schema": {
    "openapi": "3.2.0",
    "info": {
      "title": "Buchung Storefront API",
      "version": "1.0.0",
      "description": "Public catalogue reads and hosted-checkout handoff scoped to a booking channel, plus bearer-only machine management. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Storefront reads enforce a 4 MiB per-page custom-fact budget; result_too_large maps to the 400 validation_failed envelope without truncation. Use GET for simple catalogue queries with the raw request target strictly below 8 KiB (414 validation_failed otherwise); use the corresponding POST /query form when conditions or selections outgrow a URL. POST accepts the decoded GET fields as JSON, including the same defaults, errors and response schemas, uses the same read limiter bucket and returns Cache-Control: private, no-store. There are no per-parameter where/facets character caps. Management caps every method with a body at 64 KiB before parsing; storefront POST bodies are capped at 16 KiB before parsing (413 payload_too_large)."
    },
    "paths": {
      "/v1/activities/query": {
        "post": {
          "tags": [
            "activities"
          ],
          "operationId": "activities.query",
          "parameters": [
            {
              "name": "Buchung-Locale",
              "in": "header",
              "schema": {
                "$ref": "#/components/schemas/Language"
              },
              "required": false,
              "description": "On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."
            }
          ],
          "security": [
            {
              "channelKey": []
            }
          ],
          "responses": {
            "200": {
              "description": "Activities ordered by authored weight (null last), then UUID. Exact totals and facet counts count distinct activities across the full matching domain, before pagination. Activities without eligible AAs remain unless occurrence conditions require one. Membership, hydration and counts share one request snapshot; each next page is a fresh snapshot.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ActivityPage"
                  }
                }
              },
              "headers": {
                "Cache-Control": {
                  "required": true,
                  "description": "POST catalogue queries must not be cached.",
                  "schema": {
                    "type": "string",
                    "const": "private, no-store"
                  }
                },
                "Content-Language": {
                  "required": true,
                  "description": "Always reports the applied operator locale.",
                  "schema": {
                    "$ref": "#/components/schemas/Language"
                  }
                },
                "Buchung-Locale-Fallback": {
                  "required": false,
                  "description": "Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.",
                  "schema": {
                    "$ref": "#/components/schemas/Language"
                  }
                }
              }
            },
            "400": {
              "description": "ValidationFailed",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ValidationFailedEncoded"
                  }
                }
              }
            },
            "401": {
              "description": "Unauthorized",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/UnauthorizedEncoded"
                  }
                }
              }
            },
            "403": {
              "description": "ForbiddenOrigin",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ForbiddenOriginEncoded"
                  }
                }
              }
            },
            "404": {
              "description": "NotFound",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/NotFoundEncoded"
                  }
                }
              }
            },
            "413": {
              "description": "PayloadTooLarge",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/PayloadTooLargeEncoded"
                  }
                }
              }
            },
            "414": {
              "description": "The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/RequestTooLargeEncoded"
                  }
                }
              }
            },
            "429": {
              "description": "RateLimited",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/RateLimitedEncoded"
                  }
                }
              }
            },
            "500": {
              "description": "Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/InternalErrorEncoded"
                  }
                }
              }
            },
            "503": {
              "description": "ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.",
              "content": {
                "application/json": {
                  "schema": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ServiceUnavailableEncoded"
                      },
                      {
                        "$ref": "#/components/schemas/CountTimeoutEncoded"
                      }
                    ]
                  }
                }
              }
            }
          },
          "description": "POST form of activities.list for conditions/selections that outgrow a URL. Same decoded query fields, defaults, eligibility, exact counts, locale, response schema and error vocabulary. Send where/facets as JSON values, not strings. Host caps the body at 16 KiB before parsing (413 payload_too_large), shares the GET read limiter bucket and returns Cache-Control: private, no-store. This read reserves no inventory. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.",
          "summary": "Query activities with a JSON body",
          "requestBody": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogueQueryBody"
                }
              }
            },
            "required": true
          }
        }
      }
    },
    "security": [],
    "tags": [
      {
        "name": "activities"
      },
      {
        "name": "availabilities"
      },
      {
        "name": "bookingOptions"
      },
      {
        "name": "site"
      },
      {
        "name": "checkout"
      },
      {
        "name": "management"
      }
    ],
    "servers": [
      {
        "url": "https://api.buchungapp.com"
      }
    ],
    "components": {
      "schemas": {
        "UnauthorizedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "unauthorized"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/unauthorized"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ErrorDetail": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "path",
            "message"
          ],
          "additionalProperties": false,
          "description": "A validation issue at a request field path."
        },
        "Language": {
          "type": "string",
          "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,3}$",
          "maxLength": 35,
          "description": "Matched case-insensitively against the operator's supported locale codes and normalized to the stored code. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. Accepted locale codes form a closed set per operator, discovered from Site.locales; syntactically valid codes do not imply support. Management uses explicit locales without fallback; unsupported locales return 400 validation_failed."
        },
        "Id": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid",
          "description": "Stable UUID of a public resource."
        },
        "PayloadTooLargeEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "payload_too_large"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/payload_too_large"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "NotFoundEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "not_found"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/not_found"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "InternalErrorEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "internal_error"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/internal_error"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ServiceUnavailableEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "service_unavailable"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/service_unavailable"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "RateLimitedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "rate_limited"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/rate_limited"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ValidationFailedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "validation_failed"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/validation_failed"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "PublicUrl": {
          "type": "string",
          "format": "uri",
          "pattern": "^[Hh][Tt][Tt][Pp][Ss]?:\\/\\/\\S+$",
          "description": "Absolute public HTTP(S) URL; data and javascript URLs are not allowed."
        },
        "Instant": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
          "format": "date-time",
          "description": "ISO 8601 absolute instant with explicit UTC offset (including Z). Render using the resource's documented display timezone; the serialized offset need not equal that zone."
        },
        "CustomNumber": {
          "type": "number",
          "minimum": -1000000000000000,
          "maximum": 1000000000000000,
          "description": "Finite custom number with |value| <= 1e15."
        },
        "RequestTooLargeEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "validation_failed"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/validation_failed"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "CountTimeoutEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "count_timeout"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/count_timeout"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "Cursor": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "maxLength": 4096,
          "description": "Opaque base64url keyset token, at most 4 KiB to bound continuation decoding. The server also validates its operator and filter scope."
        },
        "ForbiddenOriginEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "forbidden_origin"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/forbidden_origin"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "Media": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "url": {
                  "$ref": "#/components/schemas/PublicUrl"
                },
                "srcSet": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "$ref": "#/components/schemas/PublicUrl"
                      },
                      "width": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "url",
                      "width"
                    ],
                    "additionalProperties": false
                  }
                },
                "width": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "height": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "muxPlaybackId": {
                  "type": "string"
                },
                "posterUrl": {
                  "$ref": "#/components/schemas/PublicUrl"
                },
                "alt": {
                  "type": "string"
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "image",
                    "video"
                  ]
                }
              },
              "required": [
                "id",
                "url",
                "srcSet",
                "position",
                "type"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "url": {
                  "$ref": "#/components/schemas/PublicUrl"
                },
                "srcSet": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "$ref": "#/components/schemas/PublicUrl"
                      },
                      "width": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "url",
                      "width"
                    ],
                    "additionalProperties": false
                  }
                },
                "width": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "height": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "muxPlaybackId": {
                  "type": "string"
                },
                "posterUrl": {
                  "$ref": "#/components/schemas/PublicUrl"
                },
                "alt": {
                  "type": "string"
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "file"
                  ]
                },
                "mimeType": {
                  "type": "string",
                  "minLength": 1
                },
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "fileName": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "id",
                "url",
                "srcSet",
                "position",
                "type",
                "mimeType",
                "size",
                "fileName"
              ],
              "additionalProperties": false
            }
          ],
          "description": "Public media projection. type is a closed discriminator: image, video or file; file requires download metadata. Private storage paths and credentials are never exposed."
        },
        "TrustSignal": {
          "type": "object",
          "properties": {
            "id": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Id"
                }
              ],
              "description": "Unique per operator signal; readers mint this id per operator."
            },
            "kind": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "accreditation",
                    "membership",
                    "guarantee",
                    "payment_method",
                    "award",
                    "review_score"
                  ]
                },
                {
                  "type": "string"
                }
              ],
              "description": "Trust evidence kind; only review_score carries a snapshot. Known values: accreditation, membership, guarantee, payment_method, award, review_score. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."
            },
            "source": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "library",
                    "authored",
                    "integration"
                  ]
                },
                {
                  "type": "string"
                }
              ],
              "description": "Provenance of trust evidence. Known values: library, authored, integration. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."
            },
            "title": {
              "type": "string"
            },
            "url": {
              "$ref": "#/components/schemas/PublicUrl"
            },
            "logo": {
              "$ref": "#/components/schemas/Media"
            },
            "logoUrl": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PublicUrl"
                }
              ],
              "description": "Interim public logo URL for readers that cannot yet produce the Media projection. Prefer logo when available."
            },
            "renderingShape": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "badge",
                    "rating",
                    "widget"
                  ]
                },
                {
                  "type": "string"
                }
              ],
              "description": "Theme presentation hint independent of kind. Known values: badge, rating, widget. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."
            },
            "surfaces": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "footer",
                      "activity_card",
                      "activity_page",
                      "checkout",
                      "confirmation_email"
                    ]
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "Theme presentation surface independent of operator-owned scope; ignore surfaces the client does not render. Known values: footer, activity_card, activity_page, checkout, confirmation_email. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."
              },
              "description": "Allowed theme presentation surfaces, independent of operator-owned scope. Known values: footer, activity_card, activity_page, checkout, confirmation_email. New strings may appear; a frontend may ignore any surface it does not render."
            },
            "validUntil": {
              "$ref": "#/components/schemas/CalendarDate"
            },
            "snapshot": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "fetchedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "sourceUrl": {
                  "$ref": "#/components/schemas/PublicUrl"
                },
                "attribution": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "value",
                "max",
                "count",
                "fetchedAt",
                "sourceUrl",
                "attribution"
              ],
              "additionalProperties": false,
              "description": "Required exactly for review_score: aggregate measurement, provider link, fetch time and required provider attribution. Review texts never appear."
            }
          },
          "required": [
            "id",
            "kind",
            "source",
            "title",
            "renderingShape",
            "surfaces"
          ],
          "additionalProperties": false,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "kind": {
                      "type": "string",
                      "not": {
                        "const": "review_score"
                      }
                    }
                  },
                  "not": {
                    "required": [
                      "snapshot"
                    ]
                  }
                },
                {
                  "properties": {
                    "kind": {
                      "const": "review_score"
                    }
                  },
                  "required": [
                    "snapshot"
                  ]
                }
              ],
              "description": "Operator-level trust evidence: scope is operator truth, resolved server-side; surfaces are theme presentation. Library signals link platform-curated reference data, authored signals carry operator content, integration signals carry connector evidence without credentials. renderingShape is a presentation hint independent of kind. Review scores carry aggregate snapshots and attribution; assertions carry no snapshot. Review texts never appear. Expired signals and snapshots stale beyond policy are omitted by the server."
            }
          ]
        },
        "CalendarDate": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "format": "date",
          "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
        },
        "Fact": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "reference"
                  ]
                },
                "value": {
                  "$ref": "#/components/schemas/CatalogueReference"
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "references"
                  ]
                },
                "value": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CatalogueReference"
                  }
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "text"
                  ]
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "number"
                  ]
                },
                "value": {
                  "$ref": "#/components/schemas/CustomNumber"
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "boolean"
                  ]
                },
                "value": {
                  "type": "boolean"
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "choice"
                  ]
                },
                "value": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "label"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "media"
                  ]
                },
                "value": {
                  "$ref": "#/components/schemas/Media"
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "link"
                  ]
                },
                "value": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "$ref": "#/components/schemas/PublicUrl"
                    },
                    "label": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "label"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            }
          ],
          "description": "Localized public catalogue fact, discriminated by kind. kind is a closed discriminator: reference, references, text, number, boolean, choice, media or link; each determines its value shape. Storefront custom facts have a cumulative 4 MiB per-page serialized budget; result_too_large maps to the 400 validation_failed envelope without truncation."
        },
        "CatalogueReference": {
          "type": "object",
          "properties": {
            "id": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Id"
                }
              ],
              "description": "Referenced catalogue entity UUID; query reference and set operators filter on this id."
            },
            "kind": {
              "type": "string",
              "minLength": 1,
              "description": "Kind of the referenced catalogue entity; an open vocabulary. Known value: activity. New strings may appear; clients must tolerate unknown values."
            }
          },
          "required": [
            "id",
            "kind"
          ],
          "additionalProperties": false,
          "description": "Public reference to a catalogue entity, identified by its id and kind."
        },
        "BookingUnitNounForms": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "locale": {
                "type": "string",
                "minLength": 1
              },
              "forms": {
                "type": "object",
                "properties": {
                  "zero": {
                    "type": "string"
                  },
                  "one": {
                    "type": "string"
                  },
                  "two": {
                    "type": "string"
                  },
                  "few": {
                    "type": "string"
                  },
                  "many": {
                    "type": "string"
                  },
                  "other": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "locale",
              "forms"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "description": "Ordered noun fallback entries, including curated fallback. For each entry use its own locale's CLDR cardinal category for quantity, then forms[category] ?? forms.other; return the first nonblank value. Invalid legacy locale uses other. Preserve entry order, including repeated locales; never flatten into the request locale's plural categories."
        },
        "Handle": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[\\x00-\\x7F]+$",
          "description": "Public handle scoped to the authenticated operator, 1–128 ASCII characters, matching the hosted seed cookie carrier's ASCII assumption."
        },
        "CatalogueFacet": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/components/schemas/CatalogueKey"
            },
            "title": {
              "type": "string"
            },
            "description": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "defaultOpen": {
              "type": "boolean"
            },
            "match": {
              "type": "string",
              "enum": [
                "any",
                "all"
              ],
              "description": "Closed set: any or all. Applied selection/counting mode with OR or AND semantics."
            },
            "supportedMatches": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "any",
                  "all"
                ],
                "description": "Closed set: any or all. Supported OR/AND selection modes."
              }
            },
            "optionsTruncated": {
              "type": "boolean",
              "description": "True when the facet cap or query budget limits the options shown. Refresh the available options after a selection. Counts for the options shown remain exact."
            },
            "selectedOptionIds": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CatalogueKey"
              }
            },
            "options": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/CatalogueKey"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "input": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/CatalogueCondition"
                      }
                    ],
                    "description": "Exact JSON condition selecting this facet option: a leaf or an all/any/not tree under the same depth 6 and 64-node budgets as where. The client appends input unchanged to its where condition."
                  }
                },
                "required": [
                  "id",
                  "title",
                  "description",
                  "count",
                  "input"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "id",
            "title",
            "description",
            "defaultOpen",
            "match",
            "supportedMatches",
            "optionsTruncated",
            "selectedOptionIds",
            "options"
          ],
          "additionalProperties": false,
          "description": "Exact counts in the response resource's unit. Any counts replace this facet's selection with the option; all counts retain this facet's other selected options and require this option. Other facets, direct filters and the collection selection still apply. Each option echoes its exact selecting condition in input; the client appends input unchanged to its where condition."
        },
        "CatalogueCondition": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/CatalogueConditionLeaf"
            },
            {
              "type": "object",
              "properties": {
                "all": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CatalogueCondition"
                  },
                  "minItems": 1
                }
              },
              "required": [
                "all"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "any": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CatalogueCondition"
                  },
                  "minItems": 1
                }
              },
              "required": [
                "any"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "not": {
                  "$ref": "#/components/schemas/CatalogueCondition"
                }
              },
              "required": [
                "not"
              ],
              "additionalProperties": false
            }
          ],
          "description": "Typed catalogue condition: a leaf or an all/any/not tree. Facet option input, GET CatalogueQuery and POST CatalogueQueryBody share maximum depth 6 and 64 condition nodes. Query decoding uses one iterative pre-walk, protecting the recursive decoder and SQL compiler on anonymous routes. The 8 KiB GET request target binds before the 64-node worst-case tree of 100-ID leaves; smaller leaves can hit the node limit first. Measured minified JSON: the largest tree within 64 nodes/depth <= 6 with 100-UUID fact leaves is 346887 bytes (63 leaves, depth 2, maximally escaped 128-character set/field keys); requiring depth exactly 6 gives 324903 bytes (59 leaves). With unescaped ASCII keys these are 266247 and 249383 bytes. These are structural decoder bounds; transport and reader budgets still apply. All occurrence conditions match the same AA. Leaves have exactly one activity, availability or fact key. Platform containers have exactly one field; leaves select exactly one operator (from/to together are one inclusive range). See CatalogueConditionLeaf for operators and bounds. Unknown keys/operators fail with 400 validation_failed. Unknown fact sets/fields or configured type mismatches are reader invalid_query errors, mapped to the same envelope."
        },
        "CatalogueConditionLeaf": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "activity": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "eq": {
                                  "$ref": "#/components/schemas/Id"
                                }
                              },
                              "required": [
                                "eq"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "in": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Id"
                                  },
                                  "minItems": 1,
                                  "maxItems": 100,
                                  "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                                }
                              },
                              "required": [
                                "in"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "categories": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "containsAny": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Id"
                                  },
                                  "minItems": 1,
                                  "maxItems": 100,
                                  "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                                }
                              },
                              "required": [
                                "containsAny"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "containsAll": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Id"
                                  },
                                  "minItems": 1,
                                  "maxItems": 100,
                                  "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                                }
                              },
                              "required": [
                                "containsAll"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "categories"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "activity"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "availability": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "event": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "eq": {
                                  "$ref": "#/components/schemas/Id"
                                }
                              },
                              "required": [
                                "eq"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "in": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Id"
                                  },
                                  "minItems": 1,
                                  "maxItems": 100,
                                  "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                                }
                              },
                              "required": [
                                "in"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "event"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "variation": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "eq": {
                                  "$ref": "#/components/schemas/Id"
                                }
                              },
                              "required": [
                                "eq"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "in": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Id"
                                  },
                                  "minItems": 1,
                                  "maxItems": 100,
                                  "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                                }
                              },
                              "required": [
                                "in"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "variation"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "startDate": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string",
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                  "format": "date",
                                  "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
                                },
                                "to": {
                                  "type": "string",
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                  "format": "date",
                                  "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
                                }
                              },
                              "required": [
                                "from"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "to": {
                                  "type": "string",
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                  "format": "date",
                                  "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
                                }
                              },
                              "required": [
                                "to"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "startDate"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "availability"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "fact": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "eq": {
                          "$ref": "#/components/schemas/Id"
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "eq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "in": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Id"
                          },
                          "minItems": 1,
                          "maxItems": 100,
                          "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "containsAny": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Id"
                          },
                          "minItems": 1,
                          "maxItems": 100,
                          "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "containsAny"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "containsAll": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Id"
                          },
                          "minItems": 1,
                          "maxItems": 100,
                          "description": "Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "containsAll"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "from": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
                        },
                        "to": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "from"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "to": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "description": "Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "to"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "eq": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "eq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "eq": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "eq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "in": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CatalogueKey"
                          },
                          "minItems": 1,
                          "maxItems": 100,
                          "description": "1–100 choice keys; 100 is a client ergonomics ceiling. Readers additionally enforce remaining 1000-slot and 50,000 expanded-bind capacity across all scenarios with typed invalid_query."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "eq": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "eq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "in": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 1,
                          "maxItems": 100,
                          "description": "1–100 finite numbers; 100 is a client ergonomics ceiling. Readers additionally enforce remaining 1000-slot and 50,000 expanded-bind capacity across all scenarios with typed invalid_query."
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "from": {
                          "type": "number"
                        },
                        "to": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "from"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "activity",
                            "availability"
                          ],
                          "description": "Closed set: activity or availability. Selects the query grammar's fact owner."
                        },
                        "set": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "field": {
                          "$ref": "#/components/schemas/CatalogueKey"
                        },
                        "to": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "scope",
                        "set",
                        "field",
                        "to"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "fact"
              ],
              "additionalProperties": false
            }
          ],
          "description": "Exactly one activity (id/categories), availability (event/variation/startDate), or fact entry. Exactly one field and operator per platform leaf; fact entries carry scope, set, field and one operator. References: eq UUID or in 1–100 UUIDs. Sets: containsAny/containsAll 1–100 UUIDs. Dates: inclusive from/to, at least one, years 0001–9999, from <= to. Booleans: eq. Choices: eq key or in 1–100 keys. Numbers: finite eq/in (1–100) or inclusive from/to. A from/to pair is one range operator. Fact set/field keys are bounded CatalogueKeys; readers resolve them against the operator's configured filterable fact sets and validate value-type agreement (invalid_query, 400 validation_failed). All 100-item ceilings are for client ergonomics; readers derive the effective allowance from 1000 total slots and 50,000 expanded binds, including predicate repetition across facet-count scenarios (typed invalid_query on overflow). No free-text filters."
        },
        "CatalogueKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Bounded opaque catalogue key (fact set, field, choice, facet or option)."
        },
        "CatalogueQueryBody": {
          "type": "object",
          "properties": {
            "where": {
              "$ref": "#/components/schemas/CatalogueCondition"
            },
            "facets": {
              "$ref": "#/components/schemas/FacetSelections"
            },
            "collectionId": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Id"
                }
              ],
              "description": "Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."
            },
            "includePast": {
              "type": "boolean",
              "default": false
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "description": "Page size 1–100, default 20, for client ergonomics and bounded page hydration.",
              "default": 20
            },
            "cursor": {
              "$ref": "#/components/schemas/Cursor"
            }
          },
          "additionalProperties": false,
          "description": "Read-only search request; no implicit collection. GET where/facets are JSON strings without per-parameter character caps; the only external GET bound is the raw request target strictly below 8 KiB, enforced before routing as 414 validation_failed. POST uses the same decoded fields in a JSON body capped at 16 KiB before parsing (413 payload_too_large). An iterative pre-walk limits depth to 6 and nodes to 64 to protect the recursive decoder and SQL compiler on an anonymous route, independently of transport byte limits. With worst-case 100-ID leaves the GET target binds first; compact leaves may reach 64 nodes first. Lists retain 100 as a client ergonomics ceiling; readers also require total slots <= 1000 and expanded binds <= 50,000 across all facet-count scenarios, including server-owned predicates. For a list repeated R times with B_other binds used by other predicates, the actual allowance is min(100, floor((50000 - B_other) / R)); expanded scenario slots must also fit 1000. Option keys are charged for the actual expansion of their configured predicates. A 1000-fold repetition leaves at most 50 values before other binds. Facet selections cannot exceed the collection's configured facets; static decoding permits up to 1000. Readers reject configured-bound/budget violations with typed invalid_query, mapped to 400 validation_failed. Field schemas bound page size and IDs and supply defaults. Unknown keys/operators and duplicate facet/option IDs return 400 validation_failed. Collection membership is counted once per query. Facets may return fewer options with optionsTruncated so a shown option can be selected with the current filters. Simplify filters or remove selections on budget errors. An unavailable collection, including one without a handle or with unusable saved criteria, returns 404 not_found. This also applies if the booking channel becomes unavailable after authentication. A cursor must match the current collection and its selection. If a cursor returns 400 validation_failed, restart without it. Structural where and facets errors return 400 validation_failed with detail paths such as body.where.activity.categories.containsAny.0 or body.facets.0.match. Unexpected properties can be reported at the enclosing object or array item. Unavailable category, event or variation references are handled like unknown ones. Refresh those values or remove the rejected filter."
        },
        "FacetSelections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "facetId": {
                "$ref": "#/components/schemas/CatalogueKey"
              },
              "match": {
                "type": "string",
                "enum": [
                  "any",
                  "all"
                ],
                "description": "Closed set: any or all, selecting OR or AND semantics."
              },
              "optionIds": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CatalogueKey"
                },
                "maxItems": 100,
                "description": "At most 100 option keys per selection for client ergonomics. Readers further require selections to fit the 1000-slot and 50,000 expanded-bind budgets, counting every repetition of the configured option predicates across facet-count scenarios; 100 is not a guarantee of admission."
              }
            },
            "required": [
              "facetId",
              "match",
              "optionIds"
            ],
            "additionalProperties": false
          },
          "maxItems": 1000,
          "description": "Configured facet/option IDs with explicit any/all matching. The static ceiling of 1000 selections is a generous decoder allocation bound aligned with the reader's 1000-slot cap, not permission to select unconfigured facets. Readers require at most the facets the operator configured for this collection, reject unknown facets/options and enforce the aggregate 1000-slot and 50,000 expanded-bind budgets with typed invalid_query (400 validation_failed). GET and POST reject duplicate IDs and require collection context."
        },
        "Activity": {
          "type": "object",
          "properties": {
            "locale": {
              "$ref": "#/components/schemas/Language"
            },
            "id": {
              "$ref": "#/components/schemas/Id"
            },
            "handle": {
              "$ref": "#/components/schemas/Handle"
            },
            "title": {
              "type": "string",
              "description": "Activity identity."
            },
            "description": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Projection of the platform-declared presentation definition _bg:meta. A theme or operator may leave it unused; a frontend may ignore it."
            },
            "html": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Projection of the platform-declared presentation definition _bg:content, which may be null: rich text cleaned with the storefront read policy for operator rich text. It keeps headings, lists, links (with the editor's link classes), tables and text alignment; scripts, event handlers, embeds, images and unsafe link targets are removed. A theme or operator may leave it unused; a frontend may ignore it."
            },
            "bookingUnitNounForms": {
              "$ref": "#/components/schemas/BookingUnitNounForms"
            },
            "locations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "office",
                      "activity_site"
                    ],
                    "description": "Closed set: office or activity_site. Platform place classification; operator-named harbours and meeting points use activity_site."
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "kind",
                  "name"
                ],
                "additionalProperties": false
              },
              "description": "Distinct places of this activity's published availabilities, not an activity default or override. May be empty. Availability start times render in the departure location's timezone and end times in the arrival location's timezone when set; otherwise use the operator's default timeZone."
            },
            "categories": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "handle": {
                    "$ref": "#/components/schemas/Handle"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "handle",
                  "title"
                ],
                "additionalProperties": false
              }
            },
            "usps": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Projection of the platform-declared presentation definition _bg:usps. A theme or operator may leave it unused; it may be empty for themed operators, and a frontend may ignore it."
            },
            "trustSignals": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TrustSignal"
              },
              "description": "Signals whose operator, category or explicit activity scope includes this activity, ordered by position. Scope is operator truth resolved server-side; surfaces are theme presentation, and a frontend may ignore any surface it does not render."
            },
            "media": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Media"
              }
            },
            "facts": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Fact"
                }
              }
            },
            "customFacts": {
              "type": "object",
              "patternProperties": {
                "^[a-z][a-z0-9-]{1,63}$": {
                  "$ref": "#/components/schemas/PublicCustomFact"
                }
              },
              "additionalProperties": false,
              "description": "Public custom facts keyed by definition key; an empty object when none apply. Lists and direct lookup project the same shape, and these values count toward the 4 MiB per-page custom-fact budget."
            }
          },
          "required": [
            "locale",
            "id",
            "handle",
            "title",
            "description",
            "html",
            "bookingUnitNounForms",
            "locations",
            "categories",
            "usps",
            "trustSignals",
            "media",
            "facts",
            "customFacts"
          ],
          "additionalProperties": false,
          "description": "Directly accessible activity with localized public catalogue data. Lists contain published activities; direct lookup also permits unlisted activities."
        },
        "PublicCustomFact": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "text"
                  ]
                },
                "value": {
                  "type": "string"
                },
                "locale": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Language"
                    }
                  ],
                  "description": "Present only when the definition is localized: the locale of the translation returned. The value resolves as a whole from the request locale, then the operator default locale, so a locale differing from the response locale marks a fallback."
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "Text value, falling back from the request locale to the operator default locale when localized."
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "text_list"
                  ]
                },
                "value": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "locale": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Language"
                    }
                  ],
                  "description": "Present only when the definition is localized: the locale of the translation returned. The value resolves as a whole from the request locale, then the operator default locale, so a locale differing from the response locale marks a fallback."
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "Ordered list of strings, falling back as a whole from the request locale to the operator default locale when localized."
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "boolean"
                  ]
                },
                "value": {
                  "type": "boolean"
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "Invariant boolean; the definition is never localized, so the fact carries no locale."
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "number"
                  ]
                },
                "value": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CustomNumber"
                    }
                  ],
                  "description": "Finite number with |value| <= 1e15 and at most 6 decimals."
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "Invariant number; the definition is never localized, so the fact carries no locale."
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "choice"
                  ]
                },
                "value": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "label"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "Invariant choice; the definition is never localized, so the fact carries no locale. The label falls back from the request locale to the operator default locale to the key."
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "json"
                  ]
                },
                "value": {
                  "description": "Any JSON value, including null. A value shaped like a choice or a pdf document is still json."
                },
                "locale": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Language"
                    }
                  ],
                  "description": "Present only when the definition is localized: the locale of the translation returned. The value resolves as a whole from the request locale, then the operator default locale, so a locale differing from the response locale marks a fallback."
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "JSON value, falling back as a whole from the request locale to the operator default locale when localized."
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "pdf"
                  ]
                },
                "value": {
                  "$ref": "#/components/schemas/PublicCustomDocument"
                },
                "locale": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Language"
                    }
                  ],
                  "description": "Present only when the definition is localized: always the request locale. pdf values resolve the exact requested locale and never fall back; without a document in that locale the fact is omitted."
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false,
              "description": "Published document, resolved for the exact request locale only when localized."
            }
          ],
          "description": "Public value of an exposed, non-retired custom definition, tagged by the definition type so clients need no discovery read to interpret it. type is a closed discriminator: text, text_list, boolean, number, choice, json or pdf; each determines its value shape. text, text_list and json localize with fallback from the request locale to the operator default locale; pdf localizes to the exact request locale only; boolean, number and choice are invariant and carry no locale. A json value keeps type json even when shaped like a choice or a pdf document. Definitions without a resolvable value are omitted: no translation after any applicable fallback, an invalid stored value, or an unpublished or deleted document. A stored json null projects as { \"type\": \"json\", \"value\": null }."
        },
        "PublicCustomDocument": {
          "type": "object",
          "properties": {
            "url": {
              "$ref": "#/components/schemas/PublicUrl"
            },
            "mimeType": {
              "type": "string",
              "minLength": 1
            },
            "size": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "fileName": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "url",
            "mimeType",
            "size",
            "fileName"
          ],
          "additionalProperties": false,
          "description": "Public download of the published document a pdf custom fact references: url, mimeType, size and fileName describe the current published file. url is the storefront's own document route, which answers a 302 to a short-lived signed URL of the document's current file only while the document is published; mimeType is application/pdf, size the current file's byte size and fileName the display name with .pdf. Unpublished or deleted documents are never projected."
        },
        "ActivityPage": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Activity"
              }
            },
            "locale": {
              "$ref": "#/components/schemas/Language"
            },
            "nextCursor": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Cursor"
                },
                {
                  "type": "null"
                }
              ]
            },
            "totalCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "evaluatedAt": {
              "$ref": "#/components/schemas/Instant"
            },
            "collection": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/Id"
                    },
                    "handle": {
                      "$ref": "#/components/schemas/Handle"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "handle",
                    "title",
                    "description"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ],
              "description": "Public details of the requested collection. A collection returns the activities it selects without exposing its selection criteria. Null when collectionId is omitted."
            },
            "facets": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CatalogueFacet"
              }
            }
          },
          "required": [
            "items",
            "locale",
            "nextCursor",
            "totalCount",
            "evaluatedAt",
            "collection",
            "facets"
          ],
          "additionalProperties": false,
          "description": "Activities ordered by authored weight (null last), then UUID. Exact totals and facet counts count distinct activities across the full matching domain, before pagination. Activities without eligible AAs remain unless occurrence conditions require one. Membership, hydration and counts share one request snapshot; each next page is a fresh snapshot."
        }
      },
      "securitySchemes": {
        "channelKey": {
          "description": "Required channel key for every storefront operation, including site.get. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales.",
          "type": "apiKey",
          "name": "X-Buchung-Channel-Key",
          "in": "header"
        }
      }
    }
  }
}
```
