{
  "components": {
    "responses": {
      "Error": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          },
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/U02Problem"
            }
          }
        },
        "description": "Standard error; localized UI uses code"
      }
    },
    "schemas": {
      "AccountDeletion": {
        "properties": {
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "progress": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
          },
          "retry_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "enum": [
              "queued",
              "working",
              "retry",
              "failed",
              "done"
            ],
            "type": "string"
          },
          "steps": {
            "items": {
              "properties": {
                "id": {
                  "enum": [
                    "access",
                    "identities",
                    "apple",
                    "orders",
                    "media",
                    "content",
                    "social",
                    "profile"
                  ],
                  "type": "string"
                },
                "state": {
                  "enum": [
                    "pending",
                    "active",
                    "done",
                    "failed"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "id",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "token": {
            "description": "Only in the request response.",
            "type": "string"
          },
          "warnings": {
            "items": {
              "enum": [
                "apple_unconfirmed"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "state",
          "progress",
          "steps",
          "warnings",
          "error",
          "retry_at"
        ],
        "type": "object"
      },
      "AgentToken": {
        "properties": {
          "created_at": {
            "description": "UTC timestamp (YYYY-MM-DD HH:MM:SS).",
            "type": "string"
          },
          "expires_at": {
            "description": "UTC timestamp (YYYY-MM-DD HH:MM:SS).",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "last_used_at": {
            "description": "UTC timestamp (YYYY-MM-DD HH:MM:SS).",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "revoked_at": {
            "description": "UTC timestamp (YYYY-MM-DD HH:MM:SS).",
            "type": [
              "string",
              "null"
            ]
          },
          "scopes": {
            "items": {
              "description": "A scope from the action registry. Current scopes are plans:read, plans:write, saved:read, saved:write and tickets:read.",
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          }
        },
        "required": [
          "id",
          "name",
          "scopes",
          "created_at",
          "expires_at",
          "last_used_at",
          "revoked_at"
        ],
        "type": "object"
      },
      "Error": {
        "properties": {
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "requestId": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "EventEditConfirm": {
        "properties": {
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "confirm"
        ],
        "type": "object"
      },
      "EventEditDuplicatePreview": {
        "properties": {
          "occurrences": {
            "minimum": 0,
            "type": "integer"
          },
          "preview": {
            "const": true
          },
          "status": {
            "const": "draft"
          },
          "ticket_types": {
            "minimum": 0,
            "type": "integer"
          },
          "title": {
            "maxLength": 180,
            "type": "string"
          }
        },
        "required": [
          "title",
          "status",
          "occurrences",
          "ticket_types",
          "preview"
        ],
        "type": "object"
      },
      "EventEditRef": {
        "properties": {
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "slug": {
            "maxLength": 190,
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug"
        ],
        "type": "object"
      },
      "EventEditReschedule": {
        "properties": {
          "capacity": {
            "maximum": 100000,
            "minimum": 1,
            "type": "integer"
          },
          "confirm": {
            "type": "boolean"
          },
          "end_offset": {
            "type": [
              "integer",
              "null"
            ]
          },
          "ends_local": {
            "maxLength": 40,
            "type": "string"
          },
          "occurrence_id": {
            "maxLength": 36,
            "type": "string"
          },
          "offset": {
            "type": [
              "integer",
              "null"
            ]
          },
          "starts_local": {
            "maxLength": 40,
            "type": "string"
          },
          "timezone": {
            "maxLength": 60,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "starts_local",
          "ends_local",
          "timezone",
          "confirm"
        ],
        "type": "object"
      },
      "EventEditReschedulePreview": {
        "properties": {
          "attendees": {
            "minimum": 0,
            "type": "integer"
          },
          "ends_at": {
            "maxLength": 30,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "occurrences": {
            "minimum": 1,
            "type": "integer"
          },
          "preview": {
            "const": true
          },
          "rescheduled": {
            "type": "boolean"
          },
          "starts_at": {
            "maxLength": 30,
            "type": "string"
          },
          "tickets_kept": {
            "minimum": 0,
            "type": "integer"
          },
          "timezone": {
            "maxLength": 60,
            "type": "string"
          }
        },
        "required": [
          "id",
          "starts_at",
          "ends_at",
          "timezone",
          "occurrences",
          "rescheduled",
          "attendees",
          "tickets_kept",
          "preview"
        ],
        "type": "object"
      },
      "EventEditSchedule": {
        "properties": {
          "ends_at": {
            "maxLength": 30,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "notified": {
            "minimum": 0,
            "type": "integer"
          },
          "rescheduled": {
            "type": "boolean"
          },
          "starts_at": {
            "maxLength": 30,
            "type": "string"
          },
          "timezone": {
            "maxLength": 60,
            "type": "string"
          }
        },
        "required": [
          "id",
          "starts_at",
          "ends_at",
          "timezone",
          "rescheduled",
          "notified"
        ],
        "type": "object"
      },
      "EventEditUpdate": {
        "properties": {
          "accessible": {
            "type": "boolean"
          },
          "category": {
            "maxLength": 40,
            "type": "string"
          },
          "description": {
            "maxLength": 10000,
            "type": "string"
          },
          "image_media_id": {
            "description": "Owned ready image upload; stored as its verified compressed variant URL, null clears.",
            "format": "uuid",
            "maxLength": 36,
            "type": [
              "string",
              "null"
            ]
          },
          "min_age": {
            "maximum": 99,
            "minimum": 0,
            "type": "integer"
          },
          "title": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "visibility": {
            "enum": [
              "public",
              "unlisted",
              "private"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "HomeDiscovery": {
        "properties": {
          "city": {
            "maxLength": 100,
            "type": "string"
          },
          "generated_at": {
            "format": "date-time",
            "type": "string"
          },
          "rails": {
            "items": {
              "$ref": "#/components/schemas/HomeDiscoveryRail"
            },
            "type": "array"
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "generated_at",
          "city",
          "timezone",
          "rails"
        ],
        "type": "object"
      },
      "HomeDiscoveryRail": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U02EventCard"
            },
            "maxItems": 12,
            "minItems": 1,
            "type": "array"
          },
          "key": {
            "pattern": "^(now|tonight|weekend|near|trending|free|category:.+)$",
            "type": "string"
          }
        },
        "required": [
          "key",
          "items"
        ],
        "type": "object"
      },
      "Page": {
        "properties": {
          "items": {
            "items": {
              "type": "object"
            },
            "maxItems": 100,
            "type": "array"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object"
      },
      "PlanShare": {
        "additionalProperties": false,
        "properties": {
          "token": {
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "token",
          "url"
        ],
        "type": "object"
      },
      "PlanVoteCounts": {
        "additionalProperties": false,
        "properties": {
          "down": {
            "minimum": 0,
            "type": "integer"
          },
          "up": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "up",
          "down"
        ],
        "type": "object"
      },
      "PlannerAlternative": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "type": "string"
          },
          "ends_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "event_id": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "info_only": {
            "type": "boolean"
          },
          "is_free": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "price_min_minor": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "reason": {
            "maxLength": 120,
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "format": "date-time",
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "venue": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "event_id",
          "slug",
          "title",
          "category",
          "starts_at",
          "ends_at",
          "timezone",
          "venue",
          "latitude",
          "longitude",
          "price_min_minor",
          "price_currency",
          "is_free",
          "info_only",
          "source_url",
          "reason"
        ],
        "type": "object"
      },
      "PlannerAlternatives": {
        "additionalProperties": {
          "items": {
            "$ref": "#/components/schemas/PlannerAlternative"
          },
          "maxItems": 3,
          "type": "array"
        },
        "type": "object"
      },
      "PlannerDraft": {
        "additionalProperties": false,
        "properties": {
          "city": {
            "maxLength": 150,
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/PlannerLeg"
            },
            "maxItems": 3,
            "type": "array"
          },
          "price_complete": {
            "type": "boolean"
          },
          "stops": {
            "items": {
              "$ref": "#/components/schemas/PlannerStop"
            },
            "maxItems": 4,
            "type": "array"
          },
          "title": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "total_price_min_minor": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "title",
          "date",
          "city",
          "stops",
          "legs",
          "total_price_min_minor",
          "price_complete"
        ],
        "type": "object"
      },
      "PlannerInterpreted": {
        "additionalProperties": false,
        "properties": {
          "categories": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "free": {
            "type": "boolean"
          },
          "from": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "matched": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "max_price_minor": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "terms": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "to": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "terms",
          "categories",
          "from",
          "to",
          "free",
          "max_price_minor",
          "city",
          "matched"
        ],
        "type": "object"
      },
      "PlannerLeg": {
        "additionalProperties": false,
        "properties": {
          "distance_km": {
            "minimum": 0,
            "type": [
              "number",
              "null"
            ]
          },
          "from_index": {
            "maximum": 3,
            "minimum": 0,
            "type": "integer"
          },
          "to_index": {
            "maximum": 3,
            "minimum": 0,
            "type": "integer"
          },
          "walk_minutes": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "from_index",
          "to_index",
          "distance_km",
          "walk_minutes"
        ],
        "type": "object"
      },
      "PlannerNightRequest": {
        "additionalProperties": false,
        "properties": {
          "budget_max_minor": {
            "minimum": 0,
            "type": "integer"
          },
          "categories": {
            "items": {
              "maxLength": 40,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "type": "array"
          },
          "city": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "prompt": {
            "maxLength": 500,
            "type": "string"
          },
          "start_time": {
            "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$",
            "type": "string"
          },
          "stops": {
            "description": "Defaults to 3 stops.",
            "maximum": 4,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PlannerRegenerateRequest": {
        "additionalProperties": false,
        "properties": {
          "draft": {
            "$ref": "#/components/schemas/PlannerDraft"
          },
          "exclude_event_ids": {
            "items": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "type": "array"
          },
          "index": {
            "maximum": 3,
            "minimum": 0,
            "type": "integer"
          },
          "request": {
            "$ref": "#/components/schemas/PlannerNightRequest"
          }
        },
        "required": [
          "request",
          "draft",
          "index"
        ],
        "type": "object"
      },
      "PlannerStop": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "type": "string"
          },
          "ends_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "event_id": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "index": {
            "maximum": 3,
            "minimum": 0,
            "type": "integer"
          },
          "info_only": {
            "type": "boolean"
          },
          "is_free": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "price_min_minor": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "reason": {
            "maxLength": 120,
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "format": "date-time",
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "venue": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "index",
          "event_id",
          "slug",
          "title",
          "category",
          "starts_at",
          "ends_at",
          "timezone",
          "venue",
          "latitude",
          "longitude",
          "price_min_minor",
          "price_currency",
          "is_free",
          "info_only",
          "source_url",
          "reason"
        ],
        "type": "object"
      },
      "PublicPlan": {
        "additionalProperties": false,
        "properties": {
          "date": {
            "format": "date",
            "type": "string"
          },
          "rsvps": {
            "additionalProperties": false,
            "properties": {
              "going": {
                "minimum": 0,
                "type": "integer"
              },
              "maybe": {
                "minimum": 0,
                "type": "integer"
              },
              "names": {
                "items": {
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 50,
                "type": "array"
              },
              "no": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "going",
              "maybe",
              "no",
              "names"
            ],
            "type": "object"
          },
          "stops": {
            "items": {
              "$ref": "#/components/schemas/PublicPlanStop"
            },
            "maxItems": 20,
            "type": "array"
          },
          "title": {
            "type": "string"
          },
          "viewer": {
            "additionalProperties": false,
            "properties": {
              "guest_key_valid": {
                "type": "boolean"
              },
              "rsvp": {
                "enum": [
                  "going",
                  "maybe",
                  "no",
                  null
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "votes": {
                "additionalProperties": {
                  "enum": [
                    -1,
                    0,
                    1
                  ],
                  "type": "integer"
                },
                "type": "object"
              }
            },
            "required": [
              "guest_key_valid",
              "rsvp",
              "votes"
            ],
            "type": "object"
          }
        },
        "required": [
          "title",
          "date",
          "stops",
          "rsvps",
          "viewer"
        ],
        "type": "object"
      },
      "PublicPlanRsvp": {
        "additionalProperties": false,
        "properties": {
          "guest_key": {
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "type": "string"
          },
          "rsvp": {
            "enum": [
              "going",
              "maybe",
              "no"
            ],
            "type": "string"
          }
        },
        "required": [
          "guest_key",
          "rsvp"
        ],
        "type": "object"
      },
      "PublicPlanRsvpRequest": {
        "additionalProperties": false,
        "properties": {
          "guest_key": {
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "type": "string"
          },
          "name": {
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "enum": [
              "going",
              "maybe",
              "no"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "status"
        ],
        "type": "object"
      },
      "PublicPlanStop": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "type": "string"
          },
          "ends_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "event_id": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "index": {
            "maximum": 19,
            "minimum": 0,
            "type": "integer"
          },
          "info_only": {
            "type": "boolean"
          },
          "is_free": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "price_min_minor": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "reason": {
            "maxLength": 120,
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "format": "date-time",
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "venue": {
            "type": [
              "string",
              "null"
            ]
          },
          "votes": {
            "$ref": "#/components/schemas/PlanVoteCounts"
          }
        },
        "required": [
          "index",
          "event_id",
          "slug",
          "title",
          "category",
          "starts_at",
          "ends_at",
          "timezone",
          "venue",
          "latitude",
          "longitude",
          "price_min_minor",
          "price_currency",
          "is_free",
          "info_only",
          "source_url",
          "reason",
          "votes"
        ],
        "type": "object"
      },
      "PublicPlanVote": {
        "additionalProperties": false,
        "properties": {
          "value": {
            "enum": [
              -1,
              0,
              1
            ],
            "type": "integer"
          },
          "votes": {
            "$ref": "#/components/schemas/PlanVoteCounts"
          }
        },
        "required": [
          "votes",
          "value"
        ],
        "type": "object"
      },
      "PublicPlanVoteRequest": {
        "additionalProperties": false,
        "properties": {
          "event_id": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "guest_key": {
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "type": "string"
          },
          "value": {
            "enum": [
              -1,
              0,
              1
            ],
            "type": "integer"
          }
        },
        "required": [
          "guest_key",
          "event_id",
          "value"
        ],
        "type": "object"
      },
      "QueryIntent": {
        "description": "Phrases recognized in q before explicit filter overrides. Date bounds are inclusive UTC timestamps. Parsed price caps are in euro cents.",
        "properties": {
          "categories": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "free": {
            "type": "boolean"
          },
          "from": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "matched": {
            "items": {
              "properties": {
                "kind": {
                  "enum": [
                    "date",
                    "price",
                    "free",
                    "city",
                    "category"
                  ],
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "value": {
                  "description": "Category slug, present on category phrases only.",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "max_price_minor": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "terms": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "to": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "terms",
          "categories",
          "from",
          "to",
          "free",
          "max_price_minor",
          "city",
          "matched"
        ],
        "type": "object"
      },
      "ReviewReportAction": {
        "properties": {
          "action": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "action"
        ],
        "type": "object"
      },
      "ReviewReportQueue": {
        "properties": {
          "items": {
            "items": {
              "properties": {
                "age_seconds": {
                  "minimum": 0,
                  "type": "integer"
                },
                "author_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "context": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "hidden": {
                  "type": "boolean"
                },
                "id": {
                  "type": "string"
                },
                "manual_hidden": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "target_id": {
                  "type": "string"
                },
                "target_type": {
                  "type": "string"
                },
                "urgency": {
                  "type": "string"
                }
              },
              "required": [
                "source",
                "id",
                "reason",
                "state",
                "created_at",
                "target_type",
                "target_id",
                "context",
                "author_id",
                "age_seconds",
                "urgency",
                "hidden",
                "manual_hidden"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object"
      },
      "ReviewReportResult": {
        "properties": {
          "duplicate": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "new",
              "reviewed",
              "appealed",
              "closed"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "duplicate"
        ],
        "type": "object"
      },
      "U02EventCard": {
        "properties": {
          "accessible": {
            "enum": [
              0,
              1
            ],
            "type": "integer"
          },
          "allocated": {
            "type": "integer"
          },
          "capacity": {
            "type": "integer"
          },
          "category": {
            "maxLength": 65536,
            "type": "string"
          },
          "city": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "maxLength": 3,
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "maxLength": 65536,
            "type": "string"
          },
          "distance_km": {
            "type": [
              "number",
              "string",
              "null"
            ]
          },
          "ends_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "image_url": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "info_only": {
            "description": "True when the listing has no ticket type: show the source link and attribution, never reservation.",
            "type": "boolean"
          },
          "is_demo": {
            "enum": [
              0,
              1
            ],
            "type": "integer"
          },
          "is_free": {
            "description": "Whether the source advertises free admission or the selected ticket currency offers a zero-price ticket. Null means unknown.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "min_age": {
            "type": "integer"
          },
          "occurrence_id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "price_currency": {
            "description": "ISO 4217 currency for the price range, or null when unknown.",
            "pattern": "^[A-Z]{3}$",
            "type": [
              "string",
              "null"
            ]
          },
          "price_max_minor": {
            "description": "Highest advertised amount in minor units in price_currency, or null when unknown.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price_min_minor": {
            "description": "Lowest advertised amount in minor units in price_currency, or null when unknown.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price_minor": {
            "description": "Null for information-only listings (no ticket type).",
            "type": [
              "integer",
              "null"
            ]
          },
          "slug": {
            "maxLength": 65536,
            "type": "string"
          },
          "source_license": {
            "description": "Attribution and licence text that must be shown with imported open-data listings.",
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "description": "Official source page; information-only listings link here instead of offering tickets.",
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "status": {
            "maxLength": 65536,
            "type": "string"
          },
          "timezone": {
            "maxLength": 65536,
            "type": "string"
          },
          "title": {
            "maxLength": 65536,
            "type": "string"
          },
          "venue": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "price_min_minor",
          "price_max_minor",
          "price_currency",
          "is_free",
          "id",
          "slug",
          "title",
          "description",
          "category",
          "status",
          "accessible",
          "min_age",
          "image_url",
          "is_demo",
          "occurrence_id",
          "starts_at",
          "ends_at",
          "timezone",
          "capacity",
          "allocated",
          "city",
          "venue",
          "price_minor",
          "currency",
          "distance_km",
          "source_url",
          "source_license",
          "info_only"
        ],
        "type": "object"
      },
      "U02EventDetail": {
        "properties": {
          "accessible": {
            "enum": [
              0,
              1
            ],
            "type": "integer"
          },
          "address": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "maxLength": 65536,
            "type": "string"
          },
          "city": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "description": {
            "maxLength": 65536,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "image_url": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "info_only": {
            "description": "True when the listing has no ticket type: show the source link and attribution, never reservation.",
            "type": "boolean"
          },
          "is_demo": {
            "enum": [
              0,
              1
            ],
            "type": "integer"
          },
          "is_free": {
            "description": "Whether the source advertises free admission or the selected ticket currency offers a zero-price ticket. Null means unknown.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "locale": {
            "maxLength": 65536,
            "type": "string"
          },
          "longitude": {
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "min_age": {
            "type": "integer"
          },
          "occurrences": {
            "items": {
              "properties": {
                "allocated": {
                  "type": "integer"
                },
                "capacity": {
                  "type": "integer"
                },
                "currency": {
                  "maxLength": 3,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "ends_at": {
                  "maxLength": 65536,
                  "type": "string"
                },
                "event_id": {
                  "format": "uuid",
                  "maxLength": 36,
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "maxLength": 36,
                  "type": "string"
                },
                "price_minor": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "starts_at": {
                  "maxLength": 65536,
                  "type": "string"
                },
                "status": {
                  "maxLength": 65536,
                  "type": "string"
                },
                "timezone": {
                  "maxLength": 65536,
                  "type": "string"
                }
              },
              "required": [
                "id",
                "event_id",
                "starts_at",
                "ends_at",
                "timezone",
                "capacity",
                "allocated",
                "status",
                "price_minor",
                "currency"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "org_id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "organizer": {
            "maxLength": 65536,
            "type": "string"
          },
          "organizer_slug": {
            "maxLength": 65536,
            "type": "string"
          },
          "owner_edited": {
            "enum": [
              0,
              1
            ],
            "type": "integer"
          },
          "price_currency": {
            "description": "ISO 4217 currency for the price range, or null when unknown.",
            "pattern": "^[A-Z]{3}$",
            "type": [
              "string",
              "null"
            ]
          },
          "price_max_minor": {
            "description": "Highest advertised amount in minor units in price_currency, or null when unknown.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price_min_minor": {
            "description": "Lowest advertised amount in minor units in price_currency, or null when unknown.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "saved": {
            "type": "boolean"
          },
          "seed_batch": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "maxLength": 65536,
            "type": "string"
          },
          "source_id": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "source_license": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "maxLength": 65536,
            "type": "string"
          },
          "title": {
            "maxLength": 65536,
            "type": "string"
          },
          "updated_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "venue": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "venue_id": {
            "format": "uuid",
            "maxLength": 36,
            "type": [
              "string",
              "null"
            ]
          },
          "venue_image": {
            "description": "Freely licensed Wikimedia Commons photo of the venue, served same-origin, with the credit that must be shown next to it. Null when the venue has none.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/VenueImageCredit"
              },
              {
                "type": "null"
              }
            ]
          },
          "venue_label": {
            "description": "Venue name supplied by an open-data source when no venue record is linked; also returned as venue.",
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "verified_at": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "maxLength": 65536,
            "type": "string"
          }
        },
        "required": [
          "price_min_minor",
          "price_max_minor",
          "price_currency",
          "is_free",
          "id",
          "slug",
          "org_id",
          "venue_id",
          "title",
          "description",
          "status",
          "visibility",
          "category",
          "locale",
          "min_age",
          "accessible",
          "source_url",
          "source_id",
          "source_license",
          "verified_at",
          "owner_edited",
          "image_url",
          "is_demo",
          "seed_batch",
          "created_at",
          "updated_at",
          "venue",
          "address",
          "city",
          "latitude",
          "longitude",
          "organizer",
          "organizer_slug",
          "occurrences",
          "saved",
          "venue_label",
          "info_only"
        ],
        "type": "object"
      },
      "U02PlanDetail": {
        "properties": {
          "budget_minor": {
            "type": "integer"
          },
          "created_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "currency": {
            "maxLength": 65536,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "invite_expires": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "owner_id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "stops": {
            "items": {
              "properties": {
                "buffer_minutes": {
                  "type": "integer"
                },
                "id": {
                  "format": "uuid",
                  "maxLength": 36,
                  "type": "string"
                },
                "position": {
                  "type": "integer"
                },
                "slug": {
                  "maxLength": 65536,
                  "type": "string"
                },
                "title": {
                  "maxLength": 65536,
                  "type": "string"
                },
                "votes": {
                  "type": [
                    "integer",
                    "string"
                  ]
                }
              },
              "required": [
                "id",
                "slug",
                "title",
                "position",
                "buffer_minutes",
                "votes"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "title": {
            "maxLength": 65536,
            "type": "string"
          }
        },
        "required": [
          "id",
          "owner_id",
          "title",
          "budget_minor",
          "currency",
          "invite_expires",
          "created_at",
          "stops"
        ],
        "type": "object"
      },
      "U02Problem": {
        "properties": {
          "code": {
            "maxLength": 100,
            "type": "string"
          },
          "detail": {
            "maxLength": 100,
            "type": "string"
          },
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "requestId": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "type": "object"
          },
          "requestId": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "status": {
            "maximum": 599,
            "minimum": 400,
            "type": "integer"
          },
          "title": {
            "maxLength": 100,
            "type": "string"
          },
          "type": {
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "requestId",
          "error"
        ],
        "type": "object"
      },
      "U02Profile": {
        "properties": {
          "account_class": {
            "maxLength": 65536,
            "type": "string"
          },
          "created_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "deleted_at": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "display_name": {
            "maxLength": 100,
            "type": "string"
          },
          "founder_number": {
            "type": [
              "integer",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          },
          "locale": {
            "maxLength": 5,
            "type": [
              "string",
              "null"
            ]
          },
          "staff": {
            "enum": [
              0,
              1
            ],
            "type": "integer"
          },
          "status": {
            "maxLength": 65536,
            "type": "string"
          }
        },
        "required": [
          "id",
          "display_name",
          "locale",
          "account_class",
          "status",
          "staff",
          "created_at",
          "deleted_at",
          "founder_number"
        ],
        "type": "object"
      },
      "U02Session": {
        "properties": {
          "created_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "device": {
            "maxLength": 65536,
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "maxLength": 65536,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "maxLength": 36,
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at",
          "expires_at",
          "device",
          "current"
        ],
        "type": "object"
      },
      "U03ConsentDecision": {
        "additionalProperties": false,
        "properties": {
          "decision": {
            "enum": [
              "granted",
              "withdrawn"
            ],
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "purpose",
          "version",
          "decision"
        ],
        "type": "object"
      },
      "U03ConsentEvent": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "type": "string"
          },
          "decision": {
            "enum": [
              "granted",
              "withdrawn"
            ],
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "purpose": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "U03Consents": {
        "additionalProperties": false,
        "properties": {
          "history": {
            "items": {
              "$ref": "#/components/schemas/U03ConsentEvent"
            },
            "maxItems": 100,
            "type": "array"
          },
          "purposes": {
            "items": {
              "$ref": "#/components/schemas/U03Purpose"
            },
            "type": "array"
          }
        },
        "required": [
          "purposes",
          "history"
        ],
        "type": "object"
      },
      "U03HandoffCode": {
        "additionalProperties": false,
        "properties": {
          "audience": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "expires_in": {
            "type": "integer"
          }
        },
        "required": [
          "code",
          "audience"
        ],
        "type": "object"
      },
      "U03HandoffExchange": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "maxLength": 100,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "verifier": {
            "pattern": "^[A-Za-z0-9_-]{43,128}$",
            "type": "string"
          }
        },
        "required": [
          "id",
          "code",
          "verifier"
        ],
        "type": "object"
      },
      "U03HandoffIssue": {
        "additionalProperties": false,
        "properties": {
          "audience": {
            "format": "uri",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "audience"
        ],
        "type": "object"
      },
      "U03HandoffPrepare": {
        "additionalProperties": false,
        "properties": {
          "challenge": {
            "description": "base64url SHA-256 of the in-memory verifier",
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "type": "string"
          },
          "return_to": {
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "challenge"
        ],
        "type": "object"
      },
      "U03HandoffPrepared": {
        "additionalProperties": false,
        "properties": {
          "expires_in": {
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "source": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "id",
          "source"
        ],
        "type": "object"
      },
      "U03HandoffSession": {
        "additionalProperties": false,
        "properties": {
          "csrf": {
            "type": "string"
          },
          "return_to": {
            "type": "string"
          },
          "status": {
            "enum": [
              "verified"
            ],
            "type": "string"
          }
        },
        "required": [
          "status",
          "csrf",
          "return_to"
        ],
        "type": "object"
      },
      "U03Identities": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U03Identity"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "U03Identity": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "label": {
            "description": "Masked",
            "type": "string"
          },
          "provider": {
            "enum": [
              "email",
              "whatsapp",
              "apple"
            ],
            "type": "string"
          },
          "removable": {
            "type": "boolean"
          },
          "verified_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "provider",
          "label",
          "removable"
        ],
        "type": "object"
      },
      "U03LinkComplete": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "id_token": {
            "maxLength": 8192,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "U03LinkStart": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "maxLength": 254,
            "type": "string"
          },
          "locale": {
            "enum": [
              "pt-PT",
              "en",
              "es"
            ],
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "proof": {
            "format": "uuid",
            "type": "string"
          },
          "provider": {
            "enum": [
              "email",
              "whatsapp",
              "apple"
            ],
            "type": "string"
          }
        },
        "required": [
          "proof",
          "provider"
        ],
        "type": "object"
      },
      "U03LocalStart": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "maxLength": 254,
            "type": "string"
          },
          "identity": {
            "format": "uuid",
            "type": "string"
          },
          "locale": {
            "enum": [
              "pt-PT",
              "en",
              "es"
            ],
            "type": "string"
          },
          "phone": {
            "pattern": "^\\+[1-9][0-9]{7,14}$",
            "type": "string"
          },
          "provider": {
            "enum": [
              "email",
              "whatsapp"
            ],
            "type": "string"
          },
          "purpose": {
            "default": "login",
            "enum": [
              "login",
              "reauth"
            ],
            "type": "string"
          },
          "return_to": {
            "maxLength": 256,
            "type": "string"
          }
        },
        "type": "object"
      },
      "U03LocalStatus": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "id_token": {
            "maxLength": 8192,
            "type": "string"
          },
          "token": {
            "maxLength": 100,
            "type": "string"
          }
        },
        "type": "object"
      },
      "U03Pending": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "expires_in": {
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "nonce": {
            "type": "string"
          },
          "poll_after_ms": {
            "minimum": 2000,
            "type": "integer"
          },
          "provider": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending"
            ],
            "type": "string"
          },
          "wa_link": {
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "status",
          "id"
        ],
        "type": "object"
      },
      "U03Proof": {
        "additionalProperties": false,
        "properties": {
          "proof": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "proof"
        ],
        "type": "object"
      },
      "U03Purpose": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "type": [
              "string",
              "null"
            ]
          },
          "purpose": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "state": {
            "enum": [
              "none",
              "granted",
              "withdrawn",
              "outdated",
              "pending"
            ],
            "type": "string"
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "purpose",
          "state"
        ],
        "type": "object"
      },
      "U03Revoked": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "revoked",
              "signed_out"
            ],
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "U03Rotated": {
        "additionalProperties": false,
        "properties": {
          "csrf": {
            "type": "string"
          },
          "status": {
            "enum": [
              "verified"
            ],
            "type": "string"
          }
        },
        "required": [
          "status",
          "csrf"
        ],
        "type": "object"
      },
      "U03Session": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "device": {
            "description": "Estimate only",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "description": "Opaque public ID",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "current"
        ],
        "type": "object"
      },
      "U03Sessions": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U03Session"
            },
            "maxItems": 50,
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "U03Status": {
        "additionalProperties": false,
        "properties": {
          "csrf": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "poll_after_ms": {
            "type": "integer"
          },
          "purpose": {
            "type": "string"
          },
          "return_to": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "verified",
              "expired"
            ],
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "U04WaSignedIn": {
        "properties": {
          "csrf": {
            "type": "string"
          },
          "status": {
            "enum": [
              "signed_in"
            ],
            "type": "string"
          }
        },
        "required": [
          "status",
          "csrf"
        ],
        "type": "object"
      },
      "U04WaSnapshot": {
        "properties": {
          "code": {
            "pattern": "^[ACDEFGHJKMNPQRTUVWXY34679]{6}$",
            "type": "string"
          },
          "expires_in": {
            "maximum": 600,
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "poll_after_ms": {
            "maximum": 10000,
            "minimum": 1000,
            "type": "integer"
          },
          "reason": {
            "enum": [
              "locked",
              "unavailable"
            ],
            "type": "string"
          },
          "retrying": {
            "type": "boolean"
          },
          "status": {
            "enum": [
              "queued",
              "pending",
              "verified",
              "consumed",
              "locked",
              "expired",
              "failed"
            ],
            "type": "string"
          },
          "wa_link": {
            "maxLength": 500,
            "pattern": "^https://wa\\.me/[1-9][0-9]{6,14}\\?text=",
            "type": "string"
          },
          "wa_number": {
            "pattern": "^\\+[1-9][0-9]{7,14}$",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "expires_in"
        ],
        "type": "object"
      },
      "U04WaStart": {
        "additionalProperties": false,
        "properties": {
          "locale": {
            "description": "Reply language; defaults to pt.",
            "enum": [
              "pt-PT",
              "en",
              "es",
              "pt"
            ],
            "type": "string"
          },
          "phone": {
            "description": "Optional E.164 number; the WhatsApp sender must match it.",
            "maxLength": 32,
            "type": "string"
          }
        },
        "type": "object"
      },
      "U06FounderFacts": {
        "additionalProperties": false,
        "properties": {
          "app_services_free": {
            "description": "Projection of Accounts::serviceCharge, for app services only.",
            "type": "boolean"
          },
          "founder_number": {
            "description": "Persisted active ledger number; never computed from rank.",
            "maximum": 1000,
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "founder_number",
          "app_services_free"
        ],
        "type": "object"
      },
      "U07Discovery": {
        "properties": {
          "applied": {
            "type": "object"
          },
          "capabilities": {
            "type": "object"
          },
          "interpreted": {
            "$ref": "#/components/schemas/QueryIntent"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/U07Event"
            },
            "type": "array"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "pagination": {
            "type": "object"
          }
        },
        "required": [
          "items",
          "nextCursor",
          "applied",
          "capabilities",
          "pagination"
        ],
        "type": "object"
      },
      "U07Event": {
        "properties": {
          "coordinate_precision": {
            "description": "Legacy coordinate indicator. Use point_precision for the precision of the returned point.",
            "enum": [
              "locality",
              "unknown"
            ]
          },
          "id": {
            "type": "string"
          },
          "info_only": {
            "description": "True for information-only listings without a ticket type.",
            "type": "boolean"
          },
          "is_free": {
            "description": "Whether the source advertises free admission or the selected ticket currency offers a zero-price ticket. Null means unknown.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "point_precision": {
            "description": "Venue when both venue coordinates are available, locality for a complete locality fallback, or null when the event has no map point.",
            "enum": [
              "venue",
              "locality",
              null
            ]
          },
          "price_currency": {
            "description": "ISO 4217 currency for the price range, or null when unknown.",
            "pattern": "^[A-Z]{3}$",
            "type": [
              "string",
              "null"
            ]
          },
          "price_max_minor": {
            "description": "Highest advertised amount in minor units in price_currency, or null when unknown.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price_min_minor": {
            "description": "Lowest advertised amount in minor units in price_currency, or null when unknown.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "source_license": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "price_min_minor",
          "price_max_minor",
          "price_currency",
          "is_free",
          "coordinate_precision",
          "point_precision"
        ],
        "type": "object"
      },
      "U09Aggregate": {
        "properties": {
          "average": {
            "maximum": 5,
            "minimum": 1,
            "type": [
              "number",
              "null"
            ]
          },
          "count": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "count",
          "average"
        ],
        "type": "object"
      },
      "U09Audit": {
        "properties": {
          "action": {
            "maxLength": 40,
            "type": "string"
          },
          "actor_id": {
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "maxLength": 19,
            "type": "string"
          },
          "note": {
            "maxLength": 2000,
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "U09Contact": {
        "properties": {
          "audit": {
            "items": {
              "$ref": "#/components/schemas/U09Audit"
            },
            "maxItems": 50,
            "type": "array"
          },
          "created_at": {
            "maxLength": 19,
            "type": "string"
          },
          "entity_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "enum": [
              "venues",
              "organizers"
            ]
          },
          "messages": {
            "properties": {
              "items": {
                "items": {
                  "properties": {
                    "body": {
                      "maxLength": 2000,
                      "type": "string"
                    },
                    "created_at": {
                      "maxLength": 19,
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "sender_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "maxItems": 20,
                "type": "array"
              },
              "nextCursor": {
                "description": "Offset cursor, max 10000; null at end.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "items",
              "nextCursor"
            ],
            "type": "object"
          },
          "recipient_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "requester_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "enum": [
              "pending_routing",
              "open",
              "closed"
            ]
          }
        },
        "required": [],
        "type": "object"
      },
      "U09ContactList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U09ContactSummary"
            },
            "maxItems": 20,
            "type": "array"
          },
          "nextCursor": {
            "description": "Offset cursor, max 10000; null at end.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object"
      },
      "U09ContactSummary": {
        "properties": {
          "created_at": {
            "maxLength": 19,
            "type": "string"
          },
          "entity_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "enum": [
              "venues",
              "organizers"
            ]
          },
          "state": {
            "enum": [
              "pending_routing",
              "open",
              "closed"
            ]
          }
        },
        "required": [],
        "type": "object"
      },
      "U09ContactTransition": {
        "description": "Participants/moderator close or reopen. Reopen returns to pending_routing when recipient is no longer authorized. Only moderator routes pending requests to a current server-resolved controller; no client recipient accepted.",
        "properties": {
          "action": {
            "enum": [
              "close",
              "reopen",
              "route"
            ]
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "U09Follow": {
        "properties": {
          "count": {
            "minimum": 0,
            "type": "integer"
          },
          "following": {
            "type": "boolean"
          }
        },
        "required": [
          "count",
          "following"
        ],
        "type": "object"
      },
      "U09Me": {
        "properties": {
          "controller": {
            "type": "boolean"
          },
          "eligible": {
            "items": {
              "properties": {
                "id": {
                  "format": "uuid",
                  "type": "string"
                },
                "starts_at": {
                  "maxLength": 19,
                  "type": "string"
                },
                "timezone": {
                  "maxLength": 60,
                  "type": "string"
                },
                "title": {
                  "maxLength": 180,
                  "type": "string"
                }
              },
              "required": [],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "follow": {
            "$ref": "#/components/schemas/U09Follow"
          },
          "moderator": {
            "type": "boolean"
          }
        },
        "required": [
          "follow",
          "eligible",
          "controller",
          "moderator"
        ],
        "type": "object"
      },
      "U09MessageInput": {
        "properties": {
          "body": {
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "body"
        ],
        "type": "object"
      },
      "U09Occurrence": {
        "properties": {
          "ends_at": {
            "maxLength": 19,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "is_demo": {
            "type": [
              "boolean",
              "integer"
            ]
          },
          "slug": {
            "maxLength": 190,
            "type": "string"
          },
          "starts_at": {
            "description": "UTC YYYY-MM-DD HH:mm:ss",
            "type": "string"
          },
          "status": {
            "enum": [
              "scheduled",
              "ended"
            ]
          },
          "timezone": {
            "maxLength": 60,
            "type": "string"
          },
          "title": {
            "maxLength": 180,
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "title",
          "starts_at",
          "ends_at",
          "timezone",
          "is_demo"
        ],
        "type": "object"
      },
      "U09Profile": {
        "properties": {
          "description": {
            "maxLength": 2000,
            "type": "string"
          },
          "followers": {
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "image_url": {
            "format": "uri",
            "type": [
              "string",
              "null"
            ]
          },
          "is_demo": {
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "venues",
              "organizers"
            ]
          },
          "name": {
            "maxLength": 150,
            "type": "string"
          },
          "past": {
            "properties": {
              "items": {
                "items": {
                  "$ref": "#/components/schemas/U09Occurrence"
                },
                "maxItems": 20,
                "type": "array"
              },
              "nextCursor": {
                "description": "Offset cursor, max 10000; null at end.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "items",
              "nextCursor"
            ],
            "type": "object"
          },
          "reviews": {
            "$ref": "#/components/schemas/U09Aggregate"
          },
          "slug": {
            "maxLength": 190,
            "type": "string"
          },
          "upcoming": {
            "properties": {
              "items": {
                "items": {
                  "$ref": "#/components/schemas/U09Occurrence"
                },
                "maxItems": 20,
                "type": "array"
              },
              "nextCursor": {
                "description": "Offset cursor, max 10000; null at end.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "items",
              "nextCursor"
            ],
            "type": "object"
          }
        },
        "required": [
          "id",
          "kind",
          "slug",
          "name",
          "description",
          "image_url",
          "is_demo",
          "followers",
          "reviews",
          "upcoming",
          "past"
        ],
        "type": "object"
      },
      "U09Proposal": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "maxLength": 2000,
            "type": "string"
          },
          "name": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "U09Request": {
        "properties": {
          "audit": {
            "items": {
              "$ref": "#/components/schemas/U09Audit"
            },
            "maxItems": 50,
            "type": "array"
          },
          "created_at": {
            "maxLength": 19,
            "type": "string"
          },
          "entity_id": {
            "format": "uuid",
            "type": "string"
          },
          "evidence": {
            "maxLength": 2000,
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "enum": [
              "venues",
              "organizers"
            ]
          },
          "proposal": {
            "$ref": "#/components/schemas/U09Proposal"
          },
          "public_references": {
            "items": {
              "format": "uri",
              "maxLength": 1000,
              "pattern": "^https://",
              "type": "string"
            },
            "maxItems": 5,
            "type": "array"
          },
          "request_kind": {
            "enum": [
              "claim",
              "correction"
            ]
          },
          "requester_id": {
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "enum": [
              "submitted",
              "needs_evidence",
              "approved",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "updated_at": {
            "maxLength": 19,
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "U09RequestInput": {
        "description": "Claim proposal is empty; correction supports only name/description and requires at least one field. No private attachments or media IDs. Public references are never fetched.",
        "properties": {
          "evidence": {
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "kind": {
            "enum": [
              "claim",
              "correction"
            ]
          },
          "proposal": {
            "$ref": "#/components/schemas/U09Proposal"
          },
          "public_references": {
            "items": {
              "format": "uri",
              "maxLength": 1000,
              "pattern": "^https://",
              "type": "string"
            },
            "maxItems": 5,
            "type": "array"
          }
        },
        "required": [
          "kind",
          "evidence"
        ],
        "type": "object"
      },
      "U09RequestList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U09RequestSummary"
            },
            "maxItems": 20,
            "type": "array"
          },
          "nextCursor": {
            "description": "Offset cursor, max 10000; null at end.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object"
      },
      "U09RequestSummary": {
        "properties": {
          "created_at": {
            "maxLength": 19,
            "type": "string"
          },
          "entity_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "enum": [
              "venues",
              "organizers"
            ]
          },
          "request_kind": {
            "enum": [
              "claim",
              "correction"
            ]
          },
          "state": {
            "enum": [
              "submitted",
              "needs_evidence",
              "approved",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "U09RequestTransition": {
        "description": "submitted -> needs_evidence/approved/rejected/withdrawn; needs_evidence -> submitted/rejected/withdrawn. Requester alone resubmits or withdraws. Accounts::owner alone moderates; a nonempty note is required. Resubmit replaces bounded evidence/references. Approval atomically applies U09 controller or supported profile overlay and audits actor/decision.",
        "properties": {
          "action": {
            "enum": [
              "submitted",
              "needs_evidence",
              "approved",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "evidence": {
            "maxLength": 2000,
            "type": "string"
          },
          "note": {
            "maxLength": 2000,
            "type": "string"
          },
          "proposal": {
            "$ref": "#/components/schemas/U09Proposal"
          },
          "public_references": {
            "items": {
              "format": "uri",
              "maxLength": 1000,
              "pattern": "^https://",
              "type": "string"
            },
            "maxItems": 5,
            "type": "array"
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "U09Review": {
        "properties": {
          "body": {
            "maxLength": 1000,
            "type": "string"
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "provenance": {
            "enum": [
              "real",
              "demo",
              "unknown"
            ]
          },
          "rating": {
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "title": {
            "maxLength": 180,
            "type": "string"
          }
        },
        "required": [
          "occurrence_id",
          "rating",
          "body",
          "provenance"
        ],
        "type": "object"
      },
      "U09ReviewInput": {
        "properties": {
          "body": {
            "maxLength": 1000,
            "type": "string"
          },
          "rating": {
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "rating"
        ],
        "type": "object"
      },
      "U09ReviewList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U09Review"
            },
            "maxItems": 20,
            "type": "array"
          },
          "nextCursor": {
            "description": "Offset cursor, max 10000; null at end.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object"
      },
      "U10Error": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error/properties/error"
          }
        },
        "type": "object"
      },
      "U10Maintenance": {
        "additionalProperties": false,
        "description": "URL, identity or evidence changes invalidate approval and in-flight leases. Identity changes with existing records reject with 409.",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "evidence": {
            "maxLength": 2000,
            "type": "string"
          },
          "identity": {
            "maxLength": 200,
            "type": "string"
          },
          "url": {
            "maxLength": 1000,
            "type": "string"
          }
        },
        "type": "object"
      },
      "U10Resolution": {
        "additionalProperties": false,
        "description": "Verified owner capability only. Approve/reject applies to the current source generation; link requires the same organization and grants no overwrite permission. Decisions persist actor/time/note.",
        "properties": {
          "decision": {
            "enum": [
              "approve",
              "reject",
              "link",
              "hold"
            ],
            "type": "string"
          },
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "note": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "decision",
          "note"
        ],
        "type": "object"
      },
      "U10Result": {
        "properties": {
          "event_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "record_id": {
            "format": "uuid",
            "type": "string"
          },
          "result": {
            "enum": [
              "unchanged",
              "applied",
              "partly_applied",
              "pending"
            ],
            "type": "string"
          },
          "revision": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "U10Review": {
        "description": "Pending review with source_id, record_id, kind, details, state, created_at. No fetched bodies. Source approval includes generation; reconciliation details include held field names. JSON persistence values are serialized strings.",
        "properties": {
          "details": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "record_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_id": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "U10Source": {
        "description": "Owner-scoped provenance. URL, verified_at, checked_at, next_attempt_at and error_code may be null. verified_at is actual approval time, never the feed timestamp.",
        "properties": {
          "approval": {
            "type": "string"
          },
          "enabled": {
            "type": "integer"
          },
          "evidence": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "identity_label": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "U10SourceInput": {
        "additionalProperties": false,
        "properties": {
          "evidence": {
            "description": "Actual permission/license evidence. Required and nonempty for external sources; public access alone is insufficient.",
            "maxLength": 2000,
            "type": "string"
          },
          "identity": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "kind": {
            "description": "open_data_json and open_data_agendalx sources publish information-only public listings (no ticket type, source link and attribution) once the source is approved. open_data_agendalx accepts only https://www.agendalx.pt/wp-json/agendalx/v1/events and converts the Agenda Cultural de Lisboa feed (CC BY 4.0). licensed_ticketmaster accepts only https://app.ticketmaster.com/discovery/v2/events.json (official Ticketmaster Discovery API, Portugal); it stays unavailable (source_unavailable) until the operator configures the API key, and its listings are information-only links to the official Ticketmaster page with attribution.",
            "enum": [
              "submission",
              "permissioned_json",
              "open_data_json",
              "event_jsonld",
              "open_data_agendalx",
              "licensed_ticketmaster"
            ],
            "type": "string"
          },
          "org_id": {
            "format": "uuid",
            "type": "string"
          },
          "url": {
            "description": "HTTPS, port 443, no credentials, fragment or query. External sources only.",
            "format": "uri",
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "org_id",
          "kind",
          "identity",
          "evidence"
        ],
        "type": "object"
      },
      "U10Submission": {
        "additionalProperties": false,
        "properties": {
          "cancelled": {
            "type": "boolean"
          },
          "capacity": {
            "maximum": 100000,
            "minimum": 1,
            "type": "integer"
          },
          "category": {
            "maxLength": 40,
            "type": "string"
          },
          "description": {
            "maxLength": 10000,
            "type": "string"
          },
          "end_offset": {
            "type": "integer"
          },
          "ends_local": {
            "type": "string"
          },
          "id": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "offset": {
            "description": "UTC offset in seconds",
            "type": "integer"
          },
          "starts_local": {
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
            "type": "string"
          },
          "timezone": {
            "description": "IANA timezone; ambiguous wall times require explicit offset.",
            "type": "string"
          },
          "title": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 1000,
            "type": "string"
          },
          "venue_address": {
            "maxLength": 240,
            "type": "string"
          },
          "venue_id": {
            "format": "uuid",
            "type": "string"
          },
          "venue_name": {
            "maxLength": 150,
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "starts_local",
          "ends_local",
          "timezone"
        ],
        "type": "object"
      },
      "U11Guide": {
        "properties": {
          "body": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/U11GuideEvent"
            },
            "minItems": 1,
            "type": "array"
          },
          "locale": {
            "enum": [
              "pt-PT",
              "en",
              "es"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/U11GuideSource"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "title",
          "description",
          "body",
          "updatedAt",
          "sources",
          "events",
          "locale"
        ],
        "type": "object"
      },
      "U11GuideEvent": {
        "properties": {
          "commentary": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "imageUrl": {
            "format": "uri",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "description": "Canonical public /events/:slug path",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "url",
          "imageUrl",
          "commentary"
        ],
        "type": "object"
      },
      "U11GuideIndex": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U11Guide"
            },
            "type": "array"
          },
          "locale": {
            "enum": [
              "pt-PT",
              "en",
              "es"
            ],
            "type": "string"
          }
        },
        "required": [
          "items",
          "locale"
        ],
        "type": "object"
      },
      "U11GuideSource": {
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "format": "uri",
            "pattern": "^https://",
            "type": "string"
          }
        },
        "required": [
          "label",
          "url"
        ],
        "type": "object"
      },
      "U13CalendarIssued": {
        "properties": {
          "feedAvailable": {
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "feedUrl": {
            "description": "https subscription URL containing the token (Google Calendar, Outlook).",
            "format": "uri",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "token": {
            "description": "One-time bearer secret. Store only its SHA-256 hash server-side; never log or persist in browser storage.",
            "minLength": 43,
            "type": "string"
          },
          "webcalUrl": {
            "description": "webcal:// form of feedUrl (Apple Calendar).",
            "type": "string"
          }
        },
        "required": [
          "id",
          "token",
          "feedAvailable",
          "feedUrl",
          "webcalUrl"
        ],
        "type": "object"
      },
      "U13Calendars": {
        "properties": {
          "feedAvailable": {
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "items": {
            "items": {
              "properties": {
                "created_at": {
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "type": "string"
                },
                "revoked_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "created_at",
                "revoked_at"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "items",
          "feedAvailable"
        ],
        "type": "object"
      },
      "U13Preferences": {
        "properties": {
          "availability": {
            "properties": {
              "email": {
                "type": "boolean"
              },
              "push": {
                "enum": [
                  false
                ],
                "type": "boolean"
              },
              "pushKey": {
                "type": "null"
              }
            },
            "required": [
              "email",
              "push",
              "pushKey"
            ],
            "type": "object"
          },
          "email": {
            "default": false,
            "type": "boolean"
          },
          "reminders": {
            "default": true,
            "type": "boolean"
          }
        },
        "required": [
          "email",
          "reminders",
          "availability"
        ],
        "type": "object"
      },
      "U13Reminders": {
        "properties": {
          "items": {
            "items": {
              "properties": {
                "event_id": {
                  "format": "uuid",
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "type": "string"
                },
                "occurrence_id": {
                  "format": "uuid",
                  "type": "string"
                },
                "starts_at": {
                  "description": "Resolved UTC occurrence start.",
                  "type": "string"
                },
                "title": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "U13Thread": {
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "U14ActiveJob": {
        "properties": {
          "attempts": {
            "minimum": 0,
            "type": "integer"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "progress": {
            "minimum": 0,
            "type": "integer"
          },
          "state": {
            "enum": [
              "queued",
              "working"
            ]
          }
        },
        "required": [
          "id",
          "state"
        ],
        "type": "object"
      },
      "U14Draft": {
        "additionalProperties": false,
        "properties": {
          "accessible": {
            "type": "boolean"
          },
          "capacity": {
            "maximum": 100000,
            "minimum": 1,
            "type": "integer"
          },
          "category": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "maxLength": 6000,
            "type": [
              "string",
              "null"
            ]
          },
          "ends_local": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "enum": [
              "pt-PT",
              "en",
              "es"
            ]
          },
          "missing": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "requires_confirmation": {
            "const": true
          },
          "starts_local": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "venue": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "venue_id": {
            "format": "uuid",
            "type": "string"
          },
          "visibility": {
            "enum": [
              "private",
              "public",
              "unlisted"
            ]
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "U14DraftEdit": {
        "additionalProperties": false,
        "properties": {
          "accessible": {
            "type": "boolean"
          },
          "capacity": {
            "maximum": 100000,
            "minimum": 1,
            "type": "integer"
          },
          "category": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "maxLength": 6000,
            "type": [
              "string",
              "null"
            ]
          },
          "ends_local": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "enum": [
              "pt-PT",
              "en",
              "es"
            ]
          },
          "starts_local": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "venue": {
            "maxLength": 200,
            "type": [
              "string",
              "null"
            ]
          },
          "venue_id": {
            "format": "uuid",
            "type": "string"
          },
          "visibility": {
            "enum": [
              "private",
              "public",
              "unlisted"
            ]
          }
        },
        "required": [],
        "type": "object"
      },
      "U14Edit": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "draft": {
                "$ref": "#/components/schemas/U14DraftEdit"
              },
              "draft_version": {
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "draft_version",
              "draft"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "draft_version": {
                "minimum": 1,
                "type": "integer"
              },
              "review": {
                "const": true
              }
            },
            "required": [
              "draft_version",
              "review"
            ],
            "type": "object"
          }
        ]
      },
      "U14Itinerary": {
        "additionalProperties": false,
        "properties": {
          "ambiguities": {
            "items": {
              "type": "string"
            },
            "maxItems": 10,
            "type": "array"
          },
          "requires_confirmation": {
            "const": true
          },
          "suggestions": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "note": {
                  "maxLength": 1000,
                  "type": "string"
                },
                "title": {
                  "maxLength": 180,
                  "type": "string"
                }
              },
              "required": [
                "title",
                "note"
              ],
              "type": "object"
            },
            "maxItems": 12,
            "type": "array"
          },
          "version": {
            "const": 1
          }
        },
        "required": [
          "version",
          "suggestions",
          "ambiguities"
        ],
        "type": "object"
      },
      "U14Job": {
        "properties": {
          "draft_version": {
            "minimum": 1,
            "type": "integer"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "event_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "generated_output": {
            "description": "Original generated output, retained separately from organizer edits.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/U14Draft"
              },
              {
                "$ref": "#/components/schemas/U14Search"
              },
              {
                "$ref": "#/components/schemas/U14Itinerary"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "output": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/U14Draft"
              },
              {
                "$ref": "#/components/schemas/U14Search"
              },
              {
                "$ref": "#/components/schemas/U14Itinerary"
              },
              {
                "type": "null"
              }
            ]
          },
          "review": {
            "description": "Organizer copilot checks for event drafts: deterministic, read-only, never applied automatically.",
            "oneOf": [
              {
                "type": "null"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "duplicates": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "same_venue": {
                          "type": "boolean"
                        },
                        "score": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "starts_at": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "venue": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "title",
                        "starts_at",
                        "venue",
                        "same_venue",
                        "score"
                      ],
                      "type": "object"
                    },
                    "maxItems": 3,
                    "type": "array"
                  },
                  "fields": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "evidence": {
                          "description": "in_source: the generated value appears in the organizer's source text; check: it does not and must be confirmed.",
                          "enum": [
                            "in_source",
                            "check",
                            null
                          ]
                        },
                        "field": {
                          "enum": [
                            "title",
                            "starts_local",
                            "ends_local",
                            "timezone",
                            "venue",
                            "category",
                            "description"
                          ]
                        },
                        "origin": {
                          "enum": [
                            "generated",
                            "edited",
                            "missing"
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "origin",
                        "evidence"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "venue_matches": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "score": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "score"
                      ],
                      "type": "object"
                    },
                    "maxItems": 3,
                    "type": "array"
                  }
                },
                "required": [
                  "fields",
                  "venue_matches",
                  "duplicates"
                ],
                "type": "object"
              }
            ]
          },
          "reviewed_version": {
            "type": [
              "integer",
              "null"
            ]
          },
          "state": {
            "enum": [
              "queued",
              "working",
              "needs_review",
              "failed",
              "cancelled",
              "confirmed"
            ]
          },
          "venues": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "format": "uuid",
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "version": {
            "const": 1
          }
        },
        "required": [
          "version",
          "id",
          "state",
          "draft_version",
          "reviewed_version"
        ],
        "type": "object"
      },
      "U14Publish": {
        "additionalProperties": false,
        "properties": {
          "confirm": {
            "const": true
          },
          "draft_version": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "draft_version",
          "confirm"
        ],
        "type": "object"
      },
      "U14Request": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "enum": [
              "event-draft",
              "search-filters",
              "itinerary"
            ]
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/U14Source"
            },
            "maxItems": 4,
            "type": "array"
          },
          "version": {
            "const": 1
          }
        },
        "required": [
          "version",
          "kind",
          "sources"
        ],
        "type": "object"
      },
      "U14Search": {
        "additionalProperties": false,
        "properties": {
          "ambiguities": {
            "items": {
              "type": "string"
            },
            "maxItems": 10,
            "type": "array"
          },
          "filters": {
            "additionalProperties": false,
            "properties": {
              "accessible": {
                "const": "1"
              },
              "age": {
                "minimum": 0,
                "type": "integer"
              },
              "available": {
                "const": "1"
              },
              "category": {
                "enum": [
                  "music",
                  "arts",
                  "food",
                  "outdoors",
                  "community"
                ]
              },
              "city": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "from": {
                "type": "string"
              },
              "max_price": {
                "minimum": 0,
                "type": "integer"
              },
              "q": {
                "type": "string"
              },
              "saved": {
                "const": "1"
              },
              "to": {
                "type": "string"
              }
            },
            "required": [],
            "type": "object"
          },
          "requires_confirmation": {
            "const": true
          },
          "version": {
            "const": 1
          }
        },
        "required": [
          "version",
          "filters",
          "ambiguities"
        ],
        "type": "object"
      },
      "U14Source": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "text": {
                "maxLength": 20000,
                "minLength": 1,
                "type": "string"
              },
              "type": {
                "const": "text"
              }
            },
            "required": [
              "type",
              "text"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "consent": {
                "const": true
              },
              "text": {
                "maxLength": 20000,
                "minLength": 1,
                "type": "string"
              },
              "type": {
                "const": "transcript"
              }
            },
            "required": [
              "type",
              "text",
              "consent"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "type": {
                "const": "link"
              },
              "url": {
                "format": "uri",
                "maxLength": 2000,
                "type": "string"
              }
            },
            "required": [
              "type",
              "url"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "format": "uuid",
                "type": "string"
              },
              "type": {
                "const": "media"
              }
            },
            "required": [
              "type",
              "id"
            ],
            "type": "object"
          }
        ]
      },
      "U15MediaUpload": {
        "properties": {
          "bytes": {
            "type": "integer"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "mime": {
            "type": "string"
          },
          "state": {
            "enum": [
              "upload",
              "expired",
              "processing",
              "ready",
              "failed",
              "deleted"
            ],
            "type": "string"
          },
          "variantState": {
            "enum": [
              "pending",
              "decoded",
              "ready",
              "failed"
            ],
            "type": "string"
          },
          "variants": {
            "description": "Empty unless state is ready",
            "items": {
              "$ref": "#/components/schemas/U15MediaVariant"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "state",
          "variantState",
          "mime",
          "bytes",
          "error",
          "variants"
        ],
        "type": "object"
      },
      "U15MediaUploadList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/U15MediaUpload"
            },
            "maxItems": 50,
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "U15MediaVariant": {
        "properties": {
          "format": {
            "enum": [
              "avif",
              "webp",
              "jpeg",
              "mp4"
            ],
            "type": "string"
          },
          "height": {
            "type": [
              "integer",
              "null"
            ]
          },
          "kind": {
            "enum": [
              "image",
              "video",
              "poster",
              "og"
            ],
            "type": "string"
          },
          "url": {
            "format": "uri",
            "type": "string"
          },
          "width": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "kind",
          "format",
          "width",
          "height",
          "url"
        ],
        "type": "object"
      },
      "U16Hold": {
        "allOf": [
          {
            "$ref": "#/components/schemas/U16Quote"
          },
          {
            "properties": {
              "event_id": {
                "format": "uuid",
                "type": "string"
              },
              "expires_at": {
                "description": "UTC SQL timestamp",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "occurrence_id": {
                "type": "string"
              },
              "payment": {
                "properties": {
                  "client_secret": {
                    "description": "PaymentIntent client secret for the owner while the hold is held and payable; otherwise null.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "id": {
                    "type": "string"
                  },
                  "intent_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "provider": {
                    "description": "Present for Stripe payments only; sandbox payments keep {id,state}.",
                    "enum": [
                      "stripe"
                    ],
                    "type": "string"
                  },
                  "publishable_key": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "state": {
                    "enum": [
                      "pending",
                      "requires_action",
                      "processing",
                      "paid",
                      "failed",
                      "refund_pending",
                      "refunded"
                    ],
                    "type": "string"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "quantity": {
                "type": "integer"
              },
              "refundable": {
                "type": "boolean"
              },
              "sandbox": {
                "type": "boolean"
              },
              "server_now": {
                "description": "UTC SQL timestamp",
                "type": "string"
              },
              "state": {
                "enum": [
                  "held",
                  "confirmed",
                  "expired",
                  "failed",
                  "cancelled",
                  "refunded"
                ],
                "type": "string"
              },
              "ticket_type_id": {
                "type": "string"
              },
              "tickets": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "total_minor": {
                "type": "integer"
              }
            },
            "required": [
              "id",
              "event_id",
              "quantity",
              "state",
              "expires_at",
              "server_now",
              "total_minor",
              "sandbox",
              "tickets",
              "payment"
            ],
            "type": "object"
          }
        ]
      },
      "U16Options": {
        "properties": {
          "checkout_available": {
            "description": "True when paid checkout can take money (provider not disabled). Free types can always be held and confirmed by signed-in users.",
            "type": "boolean"
          },
          "occurrences": {
            "items": {
              "properties": {
                "available": {
                  "type": "boolean"
                },
                "ends_at": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "sales_cutoff_at": {
                  "description": "UTC SQL timestamp",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "starts_at": {
                  "type": "string"
                },
                "timezone": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "types": {
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/U16Quote"
                      },
                      {
                        "properties": {
                          "available": {
                            "type": "boolean"
                          },
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "payment_provider": {
            "enum": [
              "stripe",
              "sandbox",
              "disabled"
            ],
            "type": "string"
          },
          "sandbox": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "U16Quote": {
        "properties": {
          "admission_minor": {
            "minimum": 0,
            "type": "integer"
          },
          "currency": {
            "pattern": "^[A-Z]{3}$",
            "type": "string"
          },
          "founder": {
            "type": "boolean"
          },
          "quote": {
            "type": "string"
          },
          "service_minor": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "admission_minor",
          "service_minor",
          "currency",
          "founder",
          "quote"
        ],
        "type": "object"
      },
      "U18DoorContext": {
        "properties": {
          "occurrence_id": {
            "type": "string"
          },
          "operator_id": {
            "type": "string"
          },
          "starts_at": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "operator_id",
          "occurrence_id",
          "title",
          "starts_at",
          "timezone"
        ],
        "type": "object"
      },
      "U18ScanError": {
        "properties": {
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "status": {
                "type": "integer"
              }
            },
            "required": [
              "code",
              "status"
            ],
            "type": "object"
          },
          "scan_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "scan_id",
          "error"
        ],
        "type": "object"
      },
      "U18ScanInput": {
        "properties": {
          "expected_operator": {
            "description": "Equality guard against session account changes. Actual identity and permission always come from the authenticated server session.",
            "type": "string"
          },
          "payload": {
            "description": "Exact canonical token. Unrecognized tokens receive invalid_ticket; never navigate scanned content.",
            "maxLength": 256,
            "type": "string"
          },
          "scan_id": {
            "description": "Stable lowercase cryptographic UUID v4 generated before enqueue.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "scan_id",
          "payload",
          "expected_operator"
        ],
        "type": "object"
      },
      "U18ScanResult": {
        "properties": {
          "admitted_at": {
            "description": "Authoritative database UTC YYYY-MM-DD HH:MM:SS for accepted/already_used; null otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "scan_id": {
            "format": "uuid",
            "type": "string"
          },
          "status": {
            "enum": [
              "accepted",
              "already_used",
              "wrong_event",
              "cancelled_ticket",
              "invalid_ticket"
            ],
            "type": "string"
          }
        },
        "required": [
          "scan_id",
          "status",
          "admitted_at"
        ],
        "type": "object"
      },
      "U18ScanStats": {
        "properties": {
          "accepted": {
            "minimum": 0,
            "type": "integer"
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "rejected": {
            "additionalProperties": {
              "minimum": 0,
              "type": "integer"
            },
            "description": "Counts by rejection verdict; absent verdicts had none in the window.",
            "type": "object"
          },
          "total": {
            "description": "Receipts in the window, including accepted and rejected.",
            "minimum": 0,
            "type": "integer"
          },
          "window_minutes": {
            "maximum": 180,
            "minimum": 5,
            "type": "integer"
          }
        },
        "required": [
          "occurrence_id",
          "window_minutes",
          "accepted",
          "rejected",
          "total"
        ],
        "type": "object"
      },
      "U18SyncInput": {
        "properties": {
          "expected_operator": {
            "description": "Equality guard against session account changes. Actual identity and permission always come from the authenticated server session.",
            "type": "string"
          },
          "items": {
            "items": {
              "properties": {
                "payload": {
                  "description": "Exact canonical token. Unrecognized tokens receive invalid_ticket; never navigate scanned content.",
                  "maxLength": 256,
                  "type": "string"
                },
                "scan_id": {
                  "description": "Stable lowercase cryptographic UUID v4 generated before enqueue.",
                  "format": "uuid",
                  "type": "string"
                }
              },
              "required": [
                "scan_id",
                "payload"
              ],
              "type": "object"
            },
            "maxItems": 25,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "items",
          "expected_operator"
        ],
        "type": "object"
      },
      "U18SyncResult": {
        "properties": {
          "items": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/U18ScanResult"
                },
                {
                  "$ref": "#/components/schemas/U18ScanError"
                }
              ]
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "U19AppealDecision": {
        "properties": {
          "decision": {
            "enum": [
              "accepted",
              "rejected"
            ]
          },
          "note": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "decision",
          "note"
        ],
        "type": "object"
      },
      "U19AppealInput": {
        "properties": {
          "decision_id": {
            "format": "uuid",
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "decision_id",
          "reason"
        ],
        "type": "object"
      },
      "U19Capability": {
        "properties": {
          "ingest": {
            "const": "available"
          },
          "listPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolvePath": {
            "type": [
              "string",
              "null"
            ]
          },
          "review": {
            "enum": [
              "available",
              "unavailable",
              "pending U10"
            ]
          }
        },
        "type": "object"
      },
      "U19Error": {
        "properties": {
          "build": {
            "type": [
              "string",
              "null"
            ]
          },
          "count": {
            "type": "integer"
          },
          "first_seen": {
            "type": "string"
          },
          "is_demo": {
            "type": "boolean"
          },
          "last_seen": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "revision": {
            "minimum": 1,
            "type": "integer"
          },
          "route": {
            "type": "string"
          },
          "signature": {
            "pattern": "^[a-f0-9]{16}$",
            "type": "string"
          },
          "state": {
            "enum": [
              "open",
              "resolved"
            ]
          }
        },
        "required": [
          "signature",
          "count",
          "revision",
          "state"
        ],
        "type": "object"
      },
      "U19Observation": {
        "description": "Bounded real observations; unavailable observations have null counts. No queue mutation is supported.",
        "type": "object"
      },
      "U19Page": {
        "properties": {
          "items": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "U19Preview": {
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "U19ReportDecision": {
        "properties": {
          "decision": {
            "enum": [
              "dismiss",
              "uphold"
            ]
          },
          "note": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "decision",
          "note"
        ],
        "type": "object"
      },
      "U19ReportInput": {
        "properties": {
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "reason"
        ],
        "type": "object"
      },
      "U19StateInput": {
        "properties": {
          "revision": {
            "minimum": 1,
            "type": "integer"
          },
          "state": {
            "enum": [
              "open",
              "resolved"
            ]
          }
        },
        "required": [
          "revision",
          "state"
        ],
        "type": "object"
      },
      "U20SignedBoundary": {
        "description": "BU-ADMIN-HMAC-SHA256/v1 bytes are unchanged. Trusted server configuration chooses environment and keys. Precedence: invalid key configuration 503; invalid authentication, skew or replay uniform 401; unavailable replay/quota storage 503; rolling per-key quota 429; authenticated environment-hint mismatch 409. Both environment header names are unsigned reject-only hints. Claims precede quota and hint rejection. Single-host shared RUNTIME_DIR protection survives database outages; it does not claim multi-host coordination.",
        "properties": {
          "retryAfter": {
            "description": "HTTP Retry-After on quota rejection.",
            "maximum": 60,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VenueImageCredit": {
        "additionalProperties": false,
        "properties": {
          "author": {
            "description": "Plain-text author from Commons; empty only for public domain or CC0.",
            "maxLength": 255,
            "type": "string"
          },
          "license": {
            "description": "License short name, e.g. CC BY-SA 4.0.",
            "maxLength": 64,
            "type": "string"
          },
          "license_url": {
            "maxLength": 500,
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "description": "Wikimedia Commons file page.",
            "maxLength": 500,
            "type": "string"
          },
          "url": {
            "description": "Same-origin image URL, versioned by content hash.",
            "maxLength": 200,
            "type": "string"
          }
        },
        "required": [
          "url",
          "author",
          "license",
          "license_url",
          "source_url"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "U02GroupSignature": {
        "description": "HMAC signed request, including original method/path/query/raw body, timestamp, nonce and key ID. Owner verification remains mandatory.",
        "in": "header",
        "name": "X-BU-Admin-Signature",
        "type": "apiKey"
      },
      "agentBearer": {
        "bearerFormat": "Open Party personal token",
        "scheme": "bearer",
        "type": "http"
      },
      "cookie": {
        "in": "cookie",
        "name": "op_session",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Incremental route contract. Dynamic resource paths and complete request/response validation remain pending.",
    "title": "openparty API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/account/deletion": {
      "post": {
        "description": "Authenticated same-origin/CSRF request to delete the signed-in account. Requires confirm=delete and a fresh single-use reauth proof of this account, session and browser (400 confirmation_required, 403 proof_required). 409 staff_account (owner/staff accounts), paid_orders_open (upcoming paid orders need a refund first), organizer_events_active (last administrator of an organization with upcoming published events). Atomically marks the account deleted, revokes every session (the cookie is cleared) and queues exactly one job per account; repeating the request returns the same job and token without a new proof. The token is the only credential for status and retry.",
        "operationId": "udeletion_request",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "confirm": {
                    "enum": [
                      "delete"
                    ],
                    "type": "string"
                  },
                  "proof": {
                    "maxLength": 36,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "confirm",
                  "proof"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDeletion"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/account/deletion/retry": {
      "post": {
        "description": "Resumes a job whose automatic retries ended (state failed) or that is waiting to retry. Never reopens a completed job. Limited to 10 per job per 10 minutes.",
        "operationId": "udeletion_retry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "maxLength": 36,
                    "minLength": 1,
                    "type": "string"
                  },
                  "token": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDeletion"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/account/deletion/status": {
      "post": {
        "description": "Session-free progress for one deletion job, authorized only by its id and token (uniform 404 otherwise). Each call also advances a due job within a bounded time budget under a single fenced lease, so polling resumes an interrupted deletion. 429 when polled too fast.",
        "operationId": "udeletion_status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "maxLength": 36,
                    "minLength": 1,
                    "type": "string"
                  },
                  "token": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDeletion"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/account/export": {
      "get": {
        "operationId": "getAccountExport",
        "parameters": [
          {
            "in": "query",
            "name": "section",
            "schema": {
              "enum": [
                "profile",
                "identities",
                "founder",
                "sessions",
                "challenges",
                "consents",
                "handoffs",
                "memberships",
                "saved",
                "follows",
                "orders",
                "tickets",
                "admissions",
                "door_actions",
                "plans",
                "plan_memberships",
                "plan_stops",
                "messages",
                "ai_jobs",
                "votes",
                "conversations",
                "blocks",
                "notifications",
                "reports",
                "reviews",
                "media",
                "sandbox_payments",
                "stripe_payments",
                "activity",
                "whatsapp_challenges",
                "inbox_threads",
                "notification_preferences",
                "push_subscriptions",
                "message_reports",
                "reminders",
                "notification_deliveries",
                "calendars",
                "venue_follows",
                "profile_controls",
                "profile_requests",
                "contact_requests",
                "contact_assignments",
                "contact_messages"
              ],
              "maxLength": 30,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "account": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "schema": {
                          "const": "openparty-account-export-v1"
                        },
                        "sections": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "schema",
                        "account",
                        "sections"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "account": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "items": {
                          "items": {
                            "anyOf": [
                              {
                                "properties": {
                                  "account_class": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "display_name": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "locale": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "status": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "display_name",
                                  "locale",
                                  "account_class",
                                  "status",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "provider": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "subject": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "verified_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "provider",
                                  "subject",
                                  "verified_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "allocated_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "lifetime": {
                                    "enum": [
                                      0,
                                      1
                                    ],
                                    "type": "integer"
                                  },
                                  "number": {
                                    "type": "integer"
                                  },
                                  "retired_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "number",
                                  "allocated_at",
                                  "retired_at",
                                  "lifetime"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "device_label": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "expires_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "public_id": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "revoked_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "created_at",
                                  "expires_at",
                                  "revoked_at",
                                  "public_id",
                                  "device_label"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "consumed_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "expires_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "provider": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "purpose": {
                                    "maxLength": 12,
                                    "type": "string"
                                  },
                                  "return_to": {
                                    "maxLength": 256,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "verified_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "provider",
                                  "state",
                                  "expires_at",
                                  "consumed_at",
                                  "purpose",
                                  "return_to",
                                  "verified_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "name": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "org_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "role": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "org_id",
                                  "name",
                                  "role"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "event_id",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "org_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "org_id"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "currency": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "occurrence_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "total_minor": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "id",
                                  "occurrence_id",
                                  "state",
                                  "total_minor",
                                  "currency",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "order_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "order_id",
                                  "state"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "occurrence_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "scanned_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "ticket_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "ticket_id",
                                  "occurrence_id",
                                  "scanned_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "occurrence_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "scanned_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "occurrence_id",
                                  "scanned_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "budget_minor": {
                                    "type": "integer"
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "currency": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "title": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "title",
                                  "budget_minor",
                                  "currency",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "plan_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "plan_id"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "buffer_minutes": {
                                    "type": "integer"
                                  },
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "plan_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "position": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "plan_id",
                                  "event_id",
                                  "position",
                                  "buffer_minutes"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "body": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "conversation_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "conversation_id",
                                  "body",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "error_code": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "generation": {
                                    "type": "integer"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "input": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "kind": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "output_json": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "progress": {
                                    "type": "integer"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "state",
                                  "input",
                                  "output_json",
                                  "generation",
                                  "progress",
                                  "error_code",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "plan_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "vote": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "plan_id",
                                  "event_id",
                                  "vote"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "plan_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "event_id",
                                  "plan_id"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "blocked_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "blocked_id"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "kind": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "read_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "event_id",
                                  "kind",
                                  "created_at",
                                  "read_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "reason": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "review_id": {
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "updated_at": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "event_id",
                                  "reason",
                                  "state",
                                  "created_at",
                                  "review_id",
                                  "updated_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "body": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "occurrence_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "rating": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "occurrence_id",
                                  "rating",
                                  "body"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "bytes": {
                                    "type": "integer"
                                  },
                                  "checksum": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "expires_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "mime": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "variants": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "mime",
                                  "bytes",
                                  "checksum",
                                  "state",
                                  "variants",
                                  "expires_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "amount_minor": {
                                    "type": "integer"
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "currency": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "amount_minor",
                                  "currency",
                                  "state",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "action": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "latency_ms": {
                                    "type": "integer"
                                  },
                                  "result": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "revision": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "route": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "action",
                                  "route",
                                  "result",
                                  "latency_ms",
                                  "revision",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "decision": {
                                    "enum": [
                                      "granted",
                                      "withdrawn"
                                    ],
                                    "type": "string"
                                  },
                                  "id": {
                                    "type": "integer"
                                  },
                                  "policy_version": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "provenance": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "purpose": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "purpose",
                                  "policy_version",
                                  "decision",
                                  "provenance",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "consumed_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "destination_origin": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "expires_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "type": "string"
                                  },
                                  "return_to": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "destination_origin",
                                  "return_to",
                                  "state",
                                  "created_at",
                                  "expires_at",
                                  "consumed_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "consumed_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "expires_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "locale": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "updated_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "state",
                                  "locale",
                                  "created_at",
                                  "updated_at",
                                  "expires_at",
                                  "consumed_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "conversation_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "event_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "plan_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "conversation_id",
                                  "event_id",
                                  "plan_id"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "email": {
                                    "enum": [
                                      0,
                                      1
                                    ],
                                    "type": "integer"
                                  },
                                  "reminders": {
                                    "enum": [
                                      0,
                                      1
                                    ],
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "email",
                                  "reminders"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "revoked_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "revoked_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "message_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "reason": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "updated_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "message_id",
                                  "reason",
                                  "state",
                                  "created_at",
                                  "updated_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "cancelled": {
                                    "enum": [
                                      0,
                                      1
                                    ],
                                    "type": "integer"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "occurrence_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "occurrence_id",
                                  "cancelled"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "attempts": {
                                    "type": "integer"
                                  },
                                  "due_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "error_code": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "message_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "occurrence_start": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "reminder_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "state": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "message_id",
                                  "reminder_id",
                                  "occurrence_start",
                                  "state",
                                  "attempts",
                                  "due_at",
                                  "error_code"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "revoked_at": {
                                    "maxLength": 65536,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created_at",
                                  "revoked_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "venue_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "venue_id"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "entity_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "kind": {
                                    "enum": [
                                      "venues",
                                      "organizers"
                                    ],
                                    "type": "string"
                                  },
                                  "request_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "entity_id",
                                  "request_id"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "entity_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "evidence": {
                                    "maxLength": 2000,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "kind": {
                                    "enum": [
                                      "venues",
                                      "organizers"
                                    ],
                                    "type": "string"
                                  },
                                  "proposal": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "public_references": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "request_kind": {
                                    "enum": [
                                      "claim",
                                      "correction"
                                    ],
                                    "type": "string"
                                  },
                                  "state": {
                                    "enum": [
                                      "submitted",
                                      "needs_evidence",
                                      "approved",
                                      "rejected",
                                      "withdrawn"
                                    ],
                                    "type": "string"
                                  },
                                  "updated_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "entity_id",
                                  "request_kind",
                                  "proposal",
                                  "evidence",
                                  "public_references",
                                  "state",
                                  "created_at",
                                  "updated_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "entity_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "kind": {
                                    "enum": [
                                      "venues",
                                      "organizers"
                                    ],
                                    "type": "string"
                                  },
                                  "state": {
                                    "enum": [
                                      "pending_routing",
                                      "open",
                                      "closed"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "kind",
                                  "entity_id",
                                  "state",
                                  "created_at"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "body": {
                                    "maxLength": 2000,
                                    "type": "string"
                                  },
                                  "contact_id": {
                                    "format": "uuid",
                                    "maxLength": 36,
                                    "type": "string"
                                  },
                                  "created_at": {
                                    "maxLength": 65536,
                                    "type": "string"
                                  },
                                  "id": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "id",
                                  "contact_id",
                                  "body",
                                  "created_at"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "maxItems": 100,
                          "type": "array"
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "section": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "account",
                        "section",
                        "items",
                        "nextCursor"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Manifest when section is omitted; otherwise owner-scoped page of at most 100 items. Cursors are encrypted and bound to account/section."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Private paginated account copy; excludes authentication credentials"
      }
    },
    "/account/following": {
      "get": {
        "operationId": "accountFollowing",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/account/unfollow": {
      "post": {
        "operationId": "accountUnfollow",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "slug": {
                    "maxLength": 2000,
                    "type": "string"
                  }
                },
                "required": [
                  "slug"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/admin/errors": {
      "get": {
        "description": "Owner only.",
        "operationId": "get_admin_errors",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "count": {
                            "type": "integer"
                          },
                          "first_seen": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "is_demo": {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "integer"
                          },
                          "last_seen": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "level": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "message": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "resolved": {
                            "enum": [
                              0,
                              1
                            ],
                            "type": "integer"
                          },
                          "revision": {
                            "maxLength": 65536,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "route": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "signature": {
                            "maxLength": 16,
                            "type": "string"
                          }
                        },
                        "required": [
                          "signature",
                          "level",
                          "message",
                          "route",
                          "count",
                          "first_seen",
                          "last_seen",
                          "revision",
                          "resolved",
                          "is_demo"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/agent/actions": {
      "get": {
        "operationId": "agentListActions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "actions": {
                      "items": {
                        "properties": {
                          "backingRoute": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "inputSchema": {
                            "type": "object"
                          },
                          "name": {
                            "type": "string"
                          },
                          "outputSchema": {
                            "type": "object"
                          },
                          "risk": {
                            "enum": [
                              "low",
                              "medium"
                            ]
                          },
                          "scope": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version",
                          "title",
                          "description",
                          "risk",
                          "scope",
                          "inputSchema",
                          "outputSchema",
                          "backingRoute"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "origin": {
                      "format": "uri",
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "origin",
                    "actions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Read the live action registry"
      }
    },
    "/agent/actions/{name}": {
      "post": {
        "description": "Use the inputSchema and outputSchema of the named action from GET /agent/actions. The response is the backing route result. Bearer authorization is required for actions that specify a scope. Write actions (risk medium) act only inside the token owner's account, are audited, and replay keyed retries (409 idempotency_key_reused for a reused key with different input).",
        "operationId": "agentExecuteAction",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "pattern": "^[a-z][a-z0-9_]{0,63}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "input": {
                    "type": "object"
                  }
                },
                "required": [
                  "input"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "agentBearer": []
          }
        ],
        "summary": "Execute an action"
      }
    },
    "/agent/tokens": {
      "get": {
        "operationId": "agentListTokens",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/AgentToken"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "List your personal agent tokens"
      },
      "post": {
        "operationId": "agentCreateToken",
        "parameters": [
          {
            "description": "Valid CSRF token for the signed-in browser session.",
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lifetime_days": {
                    "default": 90,
                    "maximum": 365,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "name": {
                    "maxLength": 80,
                    "minLength": 1,
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "description": "A scope from the action registry. Current scopes are plans:read, plans:write, saved:read, saved:write and tickets:read.",
                      "type": "string"
                    },
                    "type": "array",
                    "uniqueItems": true
                  }
                },
                "required": [
                  "name",
                  "scopes"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/AgentToken"
                    },
                    {
                      "properties": {
                        "token": {
                          "description": "Secret returned only at creation.",
                          "pattern": "^opa_[0-9a-f]{64}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "token"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Create a personal agent token"
      }
    },
    "/agent/tokens/{id}": {
      "delete": {
        "operationId": "agentRevokeToken",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Valid CSRF token for the signed-in browser session.",
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "revoked": {
                      "const": true
                    },
                    "revoked_at": {
                      "description": "UTC timestamp (YYYY-MM-DD HH:MM:SS).",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "revoked",
                    "revoked_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Revoke a personal agent token"
      }
    },
    "/ai/jobs": {
      "post": {
        "operationId": "post_ai_jobs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "input": {
                    "maxLength": 60000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "kind": {
                    "enum": [
                      "extract",
                      "translate",
                      "plan",
                      "search",
                      "dedup"
                    ],
                    "maxLength": 10,
                    "type": "string"
                  }
                },
                "required": [
                  "input"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "state": {
                      "const": "queued"
                    }
                  },
                  "required": [
                    "id",
                    "state"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/ai/jobs/{id}": {
      "get": {
        "operationId": "get_ai_jobs_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error_code": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "output": {
                      "oneOf": [
                        {
                          "properties": {
                            "category": {
                              "maxLength": 200,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "maxLength": 6000,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ends_local": {
                              "maxLength": 200,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "missing": {
                              "items": {
                                "maxLength": 65536,
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "requires_confirmation": {
                              "const": true
                            },
                            "starts_local": {
                              "maxLength": 200,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "timezone": {
                              "maxLength": 200,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "title": {
                              "maxLength": 200,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "venue": {
                              "maxLength": 200,
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "title",
                            "description",
                            "starts_local",
                            "ends_local",
                            "timezone",
                            "venue",
                            "category",
                            "missing",
                            "requires_confirmation"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "type": "integer"
                    },
                    "state": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "progress",
                    "output",
                    "error_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/auth/apple/callback": {
      "post": {
        "operationId": "post_auth_apple_callback",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "code": {
                    "maxLength": 512,
                    "type": "string"
                  },
                  "error": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "id_token": {
                    "maxLength": 8192,
                    "type": "string"
                  },
                  "state": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "user": {
                    "maxLength": 2048,
                    "type": "string"
                  }
                },
                "required": [
                  "state"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "303": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "redirect"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Controlled same-origin completion redirect; no session is issued by the callback",
            "headers": {
              "Location": {
                "description": "Login completion redirect",
                "schema": {
                  "maxLength": 65536,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/auth/apple/start": {
      "post": {
        "operationId": "post_auth_apple_start",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "url": {
                      "format": "uri",
                      "maxLength": 10000,
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/auth/email": {
      "post": {
        "operationId": "post_auth_email",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "email": {
                    "format": "email",
                    "maxLength": 254,
                    "minLength": 1,
                    "type": "string"
                  },
                  "locale": {
                    "enum": [
                      "pt-PT",
                      "en",
                      "es"
                    ],
                    "maxLength": 5,
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "pending"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/auth/email/exchange": {
      "post": {
        "operationId": "post_auth_email_exchange",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "token": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "csrf": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "status": {
                      "const": "verified"
                    }
                  },
                  "required": [
                    "status",
                    "csrf"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/auth/sessions/{id}": {
      "delete": {
        "description": "Other accounts' sessions answer 404. Revoking the current session clears the cookie (signed_out).",
        "operationId": "authSessionRevoke",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Revoked"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Revoke an owned session immediately"
      }
    },
    "/auth/whatsapp/start": {
      "post": {
        "operationId": "post_auth_whatsapp_start",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "locale": {
                    "enum": [
                      "pt-PT",
                      "en",
                      "es"
                    ],
                    "maxLength": 5,
                    "type": "string"
                  },
                  "phone": {
                    "maxLength": 16,
                    "pattern": "^\\+[1-9][0-9]{7,14}$",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "expires_at": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "poll_after_ms": {
                      "type": "integer"
                    },
                    "wa_link": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "wa_link",
                    "code",
                    "expires_at",
                    "poll_after_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/auth/whatsapp/status": {
      "post": {
        "description": "Browser-bound polling; the existing legacy verified-session serializer is not repaired by U02.",
        "operationId": "post_auth_whatsapp_status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "csrf": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "status": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/catalogue/venues": {
      "get": {
        "description": "Portugal nightlife catalogue: listed and unverified venues with sources and states (listed, verified, claimed, partner). Closed venues are returned as archived only with include_archived=1; hidden venues never.",
        "operationId": "listCatalogueVenues",
        "parameters": [
          {
            "in": "query",
            "name": "include_archived",
            "schema": {
              "enum": [
                "1"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "region",
            "schema": {
              "enum": [
                "lisboa",
                "porto",
                "algarve",
                "centro",
                "norte",
                "alentejo",
                "madeira",
                "acores"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "schema": {
              "enum": [
                "nightclub",
                "live_music",
                "bar_club",
                "beach_club",
                "cultural",
                "arena",
                "casino"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "schema": {
              "maxLength": 60,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "items and per-region counts"
          }
        },
        "security": []
      }
    },
    "/discover/home": {
      "get": {
        "operationId": "get_discover_home",
        "parameters": [
          {
            "description": "Decimal degrees from -90 to 90. Supply both coordinates for Nearby, or omit both or leave both empty.",
            "in": "query",
            "name": "lat",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Decimal degrees from -180 to 180. Supply both coordinates for Nearby, or omit both or leave both empty.",
            "in": "query",
            "name": "lng",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City name or known alias. Omit for all cities. Nearby always uses the 25 km radius.",
            "in": "query",
            "name": "city",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "IANA time zone override. When omitted, use the known city's time zone or Europe/Lisbon. Invalid values fall back to Europe/Lisbon.",
            "in": "query",
            "name": "tz",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HomeDiscovery"
                }
              }
            },
            "description": "Discovery rails containing public event occurrences. Empty rails are omitted.",
            "headers": {
              "Cache-Control": {
                "description": "Anonymous requests without coordinates are public for 60 seconds. Requests with coordinates or an authenticated session are private.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "List homepage discovery rails"
      }
    },
    "/docs": {
      "get": {
        "operationId": "agentApiDocs",
        "responses": {
          "200": {
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Self-contained API reference (also available at /api/docs)"
          }
        },
        "security": [],
        "summary": "Read API documentation"
      },
      "servers": [
        {
          "url": "/api/v1"
        },
        {
          "url": "/api"
        }
      ]
    },
    "/door/{id}/scan": {
      "post": {
        "operationId": "post_door_id_scan",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "credential": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "credential"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "accepted",
                        "already_used"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/errors": {
      "post": {
        "operationId": "post_errors",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "route": {
                    "maxLength": 2048,
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "received"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/event-tags/suggest": {
      "post": {
        "description": "Suggest genre and mood tags without saving them.",
        "operationId": "suggestEventTags",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "maxLength": 10000,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "description"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "tags": {
                      "items": {
                        "maxLength": 40,
                        "type": "string"
                      },
                      "maxItems": 5,
                      "type": "array"
                    }
                  },
                  "required": [
                    "tags"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Suggested tags"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events": {
      "get": {
        "operationId": "get_events",
        "parameters": [
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Event search in English, Portuguese or Spanish. Explicit filters override the corresponding phrases.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "format": "date",
              "maxLength": 10,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "format": "date",
              "maxLength": 10,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "max_price",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "age",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "accessible",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "maxLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "available",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "maxLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "saved",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "maxLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lat",
            "required": false,
            "schema": {
              "maximum": 90,
              "minimum": -90,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "lng",
            "required": false,
            "schema": {
              "maximum": 180,
              "minimum": -180,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "distance",
            "required": false,
            "schema": {
              "maximum": 20000,
              "minimum": 0,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "interpreted": {
                      "$ref": "#/components/schemas/QueryIntent"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/U02EventCard"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      },
      "post": {
        "operationId": "post_events",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accessible": {
                    "type": "boolean"
                  },
                  "capacity": {
                    "maximum": 100000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "category": {
                    "maxLength": 40,
                    "type": "string"
                  },
                  "description": {
                    "maxLength": 10000,
                    "type": "string"
                  },
                  "end_offset": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "ends_local": {
                    "maxLength": 40,
                    "type": "string"
                  },
                  "image_media_id": {
                    "description": "Owned ready image upload; stored as its verified compressed variant URL.",
                    "format": "uuid",
                    "maxLength": 36,
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "locale": {
                    "enum": [
                      "pt-PT",
                      "en",
                      "es"
                    ],
                    "maxLength": 5,
                    "type": "string"
                  },
                  "min_age": {
                    "maximum": 99,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "offset": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "org_id": {
                    "format": "uuid",
                    "maxLength": 36,
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organizer": {
                    "maxLength": 150,
                    "type": "string"
                  },
                  "starts_local": {
                    "maxLength": 40,
                    "type": "string"
                  },
                  "timezone": {
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string"
                  },
                  "title": {
                    "maxLength": 180,
                    "minLength": 1,
                    "type": "string"
                  },
                  "venue_id": {
                    "format": "uuid",
                    "maxLength": 36,
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "visibility": {
                    "enum": [
                      "public",
                      "unlisted",
                      "private"
                    ],
                    "maxLength": 8,
                    "type": "string"
                  }
                },
                "required": [
                  "title",
                  "timezone",
                  "starts_local",
                  "ends_local",
                  "capacity"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "slug": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}": {
      "get": {
        "description": "Public/unlisted events; private/draft events require an organizer role. Identifier is decoded once by the owner.",
        "operationId": "get_events_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U02EventDetail"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/events/{id}/cancel": {
      "post": {
        "operationId": "post_events_id_cancel",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "const": true
                  }
                },
                "required": [
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "cancelled"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/duplicate": {
      "post": {
        "description": "Organizer duplicates an event as a new draft with copied occurrences and ticket types. confirm=false returns a read-only preview (draft title, copied occurrences and ticket types) without creating anything; confirm=true creates the draft.",
        "operationId": "eventEditDuplicate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventEditConfirm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EventEditRef"
                    },
                    {
                      "$ref": "#/components/schemas/EventEditDuplicatePreview"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/edit": {
      "post": {
        "description": "Organizer edits event metadata (title, description, category, visibility, accessibility, minimum age). Owner, admin or editor role required. At least one field required.",
        "operationId": "eventEditUpdate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventEditUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventEditRef"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/manage": {
      "get": {
        "operationId": "get_events_id_manage",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accessible": {
                      "enum": [
                        0,
                        1
                      ],
                      "type": "integer"
                    },
                    "address": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "category": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "city": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "city_latitude": {
                      "description": "Centre of the venue's place (city); context only, not a venue pin.",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "city_longitude": {
                      "description": "Centre of the venue's place (city); context only, not a venue pin.",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "created_at": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "description": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "image_url": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "info_only": {
                      "type": "boolean"
                    },
                    "is_demo": {
                      "enum": [
                        0,
                        1
                      ],
                      "type": "integer"
                    },
                    "latitude": {
                      "description": "Venue position only (map pin, directions); null unless the venue has its own coordinates.",
                      "type": [
                        "string",
                        "number",
                        "null"
                      ]
                    },
                    "locale": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "longitude": {
                      "description": "Venue position only (map pin, directions); null unless the venue has its own coordinates.",
                      "type": [
                        "string",
                        "number",
                        "null"
                      ]
                    },
                    "min_age": {
                      "type": "integer"
                    },
                    "occurrences": {
                      "items": {
                        "properties": {
                          "allocated": {
                            "type": "integer"
                          },
                          "capacity": {
                            "type": "integer"
                          },
                          "currency": {
                            "maxLength": 3,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "ends_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "event_id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "price_minor": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "starts_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "status": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "timezone": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "event_id",
                          "starts_at",
                          "ends_at",
                          "timezone",
                          "capacity",
                          "allocated",
                          "status",
                          "price_minor",
                          "currency"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "orders": {
                      "items": {
                        "properties": {
                          "created_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "state": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "state",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "organizer": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "organizer_slug": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "owner_edited": {
                      "enum": [
                        0,
                        1
                      ],
                      "type": "integer"
                    },
                    "saved": {
                      "type": "boolean"
                    },
                    "seed_batch": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "slug": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "source_id": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source_license": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source_url": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "title": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "updated_at": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "venue": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "venue_id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "venue_label": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "verified_at": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "visibility": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "org_id",
                    "venue_id",
                    "title",
                    "description",
                    "status",
                    "visibility",
                    "category",
                    "locale",
                    "min_age",
                    "accessible",
                    "source_url",
                    "source_id",
                    "source_license",
                    "verified_at",
                    "owner_edited",
                    "image_url",
                    "is_demo",
                    "seed_batch",
                    "created_at",
                    "updated_at",
                    "venue",
                    "address",
                    "city",
                    "latitude",
                    "longitude",
                    "organizer",
                    "organizer_slug",
                    "occurrences",
                    "saved",
                    "orders"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/publish": {
      "post": {
        "operationId": "post_events_id_publish",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "const": true
                  }
                },
                "required": [
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "published"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/report": {
      "post": {
        "operationId": "post_events_id_report",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "reason"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "status": {
                      "const": "new"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/reschedule": {
      "post": {
        "description": "Organizer reschedules with explicit confirmation. Times resolve in the given timezone; ambiguous or nonexistent DST walls reject. confirm=false returns a read-only preview (resolved times, affected occurrences, attendees to notify, tickets kept) without writing; confirm=true applies it. Confirmed changes on published events notify confirmed and waitlisted attendees once per schedule.",
        "operationId": "eventEditReschedule",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventEditReschedule"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EventEditSchedule"
                    },
                    {
                      "$ref": "#/components/schemas/EventEditReschedulePreview"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/sales-cutoff": {
      "post": {
        "description": "Set or clear the sales cutoff for an event occurrence.",
        "operationId": "u16SetSalesCutoff",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "minutes_before": {
                    "maximum": 525600,
                    "minimum": 0,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "occurrence_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "occurrence_id",
                  "minutes_before"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "const": "saved"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Cutoff saved"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/events/{id}/save": {
      "post": {
        "operationId": "post_events_id_save",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "saved": {
                    "type": "boolean"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "saved": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "saved"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/founders": {
      "get": {
        "operationId": "get_founders",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "remaining": {
                      "maximum": 1000,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "remaining"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/guides": {
      "get": {
        "operationId": "u11GuidesList",
        "parameters": [
          {
            "description": "Overrides Accept-Language; unsupported values fall back to Accept-Language, then PT-PT. Does not persist a preference.",
            "in": "query",
            "name": "lang",
            "schema": {
              "enum": [
                "pt-PT",
                "en",
                "es"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U11GuideIndex"
                }
              }
            },
            "description": "Eligible published collections only; ordered eligible events, attribution and editorial timestamp. An empty index is truthful."
          },
          "503": {
            "description": "Catalog or editorial source unavailable"
          }
        },
        "security": []
      }
    },
    "/guides/{slug}": {
      "get": {
        "operationId": "u11GuideRead",
        "parameters": [
          {
            "description": "Overrides Accept-Language; unsupported values fall back to Accept-Language, then PT-PT. Does not persist a preference.",
            "in": "query",
            "name": "lang",
            "schema": {
              "enum": [
                "pt-PT",
                "en",
                "es"
              ],
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 100,
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U11Guide"
                }
              }
            },
            "description": "Eligible published collections only; ordered eligible events, attribution and editorial timestamp. An empty index is truthful."
          },
          "404": {
            "description": "Unknown, invalid, unpublished or no longer populated guide"
          },
          "503": {
            "description": "Catalog or editorial source unavailable"
          }
        },
        "security": []
      }
    },
    "/health": {
      "get": {
        "description": "Early Http route after database initialization. Request middleware integration pending.",
        "operationId": "get_health",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "builtAt": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "database": {
                      "const": "ok"
                    },
                    "revision": {
                      "maxLength": 40,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "const": "ok"
                    }
                  },
                  "required": [
                    "status",
                    "database",
                    "revision",
                    "builtAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/inbox": {
      "get": {
        "description": "Authenticated conversation list; current plan membership or event inquiry participation/organizer access required. Existing items/nextCursor contract retained (100 maximum).",
        "operationId": "get_inbox",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "title": {
                            "maxLength": 65536,
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "title"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/inbox/{id}": {
      "get": {
        "description": "Current participation checked server-side; inaccessible thread returns 404 or 403. Messages ordered by created_at,id, 100 per page, nextCursor when more; response also includes current member ids.",
        "operationId": "get_inbox_thread",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Opaque nextCursor from previous page; authorization rechecked on every page. Ascending created_at,id; 100 messages maximum.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "body": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "created_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "sender_id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "sender_id",
                          "body",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "members": {
                      "items": {
                        "format": "uuid",
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor",
                    "members"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "items/nextCursor/members"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "description": "Current participation checked server-side; inaccessible thread returns 404 or 403. Either-direction blocks prevent contact. Message, in-app notification and durable outbox persist atomically; no request-time external sends. Same sender/key/body/thread returns same id; mismatched reuse is 409.",
        "operationId": "post_inbox_thread",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 100,
              "minLength": 8,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "body": {
                    "maxLength": 4000,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "body"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Confirmed message id"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/ingest/failed-sources": {
      "get": {
        "description": "Owner-only failed sources and retry outcomes.",
        "operationId": "u10FailedSources",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/ingest/reviews": {
      "get": {
        "description": "Existing verified Accounts::owner capability required. U19 UI pending.",
        "operationId": "u10Reviews",
        "parameters": [
          {
            "description": "Exclusive last returned ID; ascending ID pages of up to 50. Continue when 50 items returned.",
            "in": "query",
            "name": "after",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "after": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/U10Review"
                      },
                      "maxItems": 50,
                      "type": "array"
                    },
                    "pageSize": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Invalid ID, unsupported format, record/time/URL/evidence validation."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Session required."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Forbidden: ownership or verified owner capability required."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source/review not found."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source exists, source identity in use, stale or resolved review."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Rate limited."
          }
        }
      }
    },
    "/ingest/reviews/{id}/resolve": {
      "post": {
        "description": "Existing verified Accounts::owner capability required. Explicit auditable approval or link/hold decision. Session, Origin and CSRF middleware apply.",
        "operationId": "u10Resolve",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U10Resolution"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Invalid ID, unsupported format, record/time/URL/evidence validation."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Session required."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Forbidden: ownership or verified owner capability required."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source/review not found."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source exists, source identity in use, stale or resolved review."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Rate limited."
          }
        }
      }
    },
    "/ingest/sources": {
      "get": {
        "description": "Authenticated source owner list. No payload-selected owner.",
        "operationId": "u10Sources",
        "parameters": [
          {
            "description": "Exclusive last returned ID; ascending ID pages of up to 50. Continue when 50 items returned.",
            "in": "query",
            "name": "after",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "after": {
                      "type": "string"
                    },
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/U10Source"
                      },
                      "maxItems": 50,
                      "type": "array"
                    },
                    "pageSize": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Invalid ID, unsupported format, record/time/URL/evidence validation."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Session required."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Forbidden: ownership or verified owner capability required."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source/review not found."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source exists, source identity in use, stale or resolved review."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Rate limited."
          }
        }
      },
      "post": {
        "description": "Existing organization membership required. External sources remain disabled pending verified owner review. Session, Origin and CSRF middleware apply.",
        "operationId": "u10Register",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U10SourceInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Invalid ID, unsupported format, record/time/URL/evidence validation."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Session required."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Forbidden: ownership or verified owner capability required."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source/review not found."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source exists, source identity in use, stale or resolved review."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Rate limited."
          }
        }
      }
    },
    "/ingest/sources/{id}": {
      "patch": {
        "description": "Owner and organization membership required. Session, Origin and CSRF middleware apply.",
        "operationId": "u10Maintain",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U10Maintenance"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Invalid ID, unsupported format, record/time/URL/evidence validation."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Session required."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Forbidden: ownership or verified owner capability required."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source/review not found."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source exists, source identity in use, stale or resolved review."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Rate limited."
          }
        }
      }
    },
    "/ingest/sources/{id}/retry": {
      "post": {
        "description": "Schedule a failed source within its hourly limit.",
        "operationId": "u10RetrySource",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/ingest/sources/{id}/submissions": {
      "post": {
        "description": "Structured organizer submission only; no URL fetching. Exact source-record replay is idempotent. New events remain private drafts. Observed provenance and applied baseline are separate; organizer changes are protected. Session, Origin and CSRF middleware apply.",
        "operationId": "u10Submit",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U10Submission"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Result"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Invalid ID, unsupported format, record/time/URL/evidence validation."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Session required."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Forbidden: ownership or verified owner capability required."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source/review not found."
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Source exists, source identity in use, stale or resolved review."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/U10Error"
                }
              }
            },
            "description": "Rate limited."
          }
        }
      }
    },
    "/internal/group-admin/v1/audit": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_audit",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 36,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "actor": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "keyId": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "result": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "route": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "status": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "keyId",
                          "actor",
                          "route",
                          "status",
                          "result",
                          "at"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/errors/recent": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_errors_recent",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": true,
            "schema": {
              "maxLength": 20,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "count": {
                            "type": "integer"
                          },
                          "firstSeen": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "group": {
                            "maxLength": 16,
                            "type": "string"
                          },
                          "lastSeen": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "level": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "message": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "route": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "group",
                          "level",
                          "count",
                          "firstSeen",
                          "lastSeen",
                          "route",
                          "message"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/manifest": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_manifest",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "app": {
                      "const": "openparty"
                    },
                    "capabilities": {
                      "items": {
                        "maxLength": 65536,
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "contractVersion": {
                      "const": "2.0.0"
                    },
                    "environment": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "operations": {
                      "items": false,
                      "type": "array"
                    },
                    "release": {
                      "properties": {
                        "builtAt": {
                          "maxLength": 65536,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "revision": {
                          "maxLength": 40,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "revision",
                        "builtAt"
                      ],
                      "type": "object"
                    },
                    "resources": {
                      "items": {
                        "properties": {
                          "key": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "label": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "readOnly": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "label",
                          "readOnly"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "schema": {
                      "const": "group-admin-v2"
                    }
                  },
                  "required": [
                    "schema",
                    "contractVersion",
                    "app",
                    "environment",
                    "capabilities",
                    "release",
                    "resources",
                    "operations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/metrics/daily": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_metrics_daily",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "format": "date",
              "maxLength": 10,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "format": "date",
              "maxLength": 10,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "enum": [
                "Europe/Lisbon",
                "UTC"
              ],
              "maxLength": 20,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "app": {
                      "const": "openparty"
                    },
                    "days": {
                      "items": {
                        "properties": {
                          "date": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "final": {
                            "type": "boolean"
                          },
                          "newUsers": {
                            "type": "integer"
                          },
                          "pageviews": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "totalUsers": {
                            "type": "integer"
                          },
                          "visitors": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "date",
                          "visitors",
                          "pageviews",
                          "newUsers",
                          "totalUsers",
                          "final"
                        ],
                        "type": "object"
                      },
                      "maxItems": 400,
                      "type": "array"
                    },
                    "environment": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "excluded": {
                      "properties": {
                        "bots": {
                          "type": "integer"
                        },
                        "internal": {
                          "type": "integer"
                        },
                        "testAccounts": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "bots",
                        "internal",
                        "testAccounts"
                      ],
                      "type": "object"
                    },
                    "from": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "generatedAt": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "schema": {
                      "const": "group-admin-metrics-v1"
                    },
                    "sources": {
                      "properties": {
                        "users": {
                          "maxLength": 65536,
                          "type": "string"
                        },
                        "visitors": {
                          "maxLength": 65536,
                          "type": "string"
                        },
                        "visitorsSince": {
                          "maxLength": 65536,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "visitors",
                        "visitorsSince",
                        "users"
                      ],
                      "type": "object"
                    },
                    "timezone": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "to": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "schema",
                    "app",
                    "environment",
                    "timezone",
                    "from",
                    "to",
                    "generatedAt",
                    "sources",
                    "days",
                    "excluded"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/resources": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_resources",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "key": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "readOnly": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "readOnly"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/resources/users": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_resources_users",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 36,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "accountClass": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "createdAt": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "status": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "accountClass",
                          "status"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/resources/users/{id}": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_resources_users_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accountClass": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "createdAt": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "founderNumber": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "status": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "accountClass",
                    "status",
                    "founderNumber"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/internal/group-admin/v1/summary": {
      "get": {
        "description": "Early signed internal boundary. HMAC verifies original bytes before normal session/JSON dispatch. U02 request-validation integration PENDING; owner enforces its current inputs.",
        "operationId": "get_internal_group_admin_v1_summary",
        "parameters": [
          {
            "in": "header",
            "name": "X-BU-Admin-Key-Id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Timestamp",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Nonce",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Body-Sha256",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Signature",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-BU-Admin-Contract-Version",
            "required": true,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "attention": {
                      "items": false,
                      "type": "array"
                    },
                    "health": {
                      "properties": {
                        "checks": {
                          "items": {
                            "properties": {
                              "key": {
                                "maxLength": 65536,
                                "type": "string"
                              },
                              "status": {
                                "maxLength": 65536,
                                "type": "string"
                              }
                            },
                            "required": [
                              "key",
                              "status"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "status": {
                          "maxLength": 65536,
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "checks"
                      ],
                      "type": "object"
                    },
                    "metrics": {
                      "items": {
                        "properties": {
                          "key": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "label": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "unit": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "value": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "key",
                          "label",
                          "value",
                          "unit"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "release": {
                      "properties": {
                        "builtAt": {
                          "maxLength": 65536,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "revision": {
                          "maxLength": 40,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "revision",
                        "builtAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "health",
                    "metrics",
                    "attention",
                    "release"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "U02GroupSignature": []
          }
        ]
      }
    },
    "/logout": {
      "post": {
        "operationId": "post_logout",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "signed_out"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/mcp": {
      "delete": {
        "operationId": "agentMcpDelete",
        "responses": {
          "405": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "MCP requires POST"
      },
      "get": {
        "operationId": "agentMcpGet",
        "responses": {
          "405": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "MCP requires POST"
      },
      "post": {
        "description": "Stateless JSON-RPC. Use initialize, tools/list, and tools/call. Supported action schemas are in the registry. Supply Accept: application/json, text/event-stream and the negotiated MCP-Protocol-Version after initialize.",
        "operationId": "agentMcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "202": {
            "description": "Notification accepted"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "agentBearer": []
          }
        ],
        "summary": "MCP Streamable HTTP"
      }
    },
    "/me/favorites": {
      "get": {
        "description": "The signed-in user’s favorite events ordered by upcoming occurrences.",
        "operationId": "get_my_favorites",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/media-uploads": {
      "get": {
        "description": "The signed-in owner's uploads, newest first (max 50).",
        "operationId": "u15ListMediaUploads",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U15MediaUploadList"
                }
              }
            },
            "description": "Uploads"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/media-uploads/{id}": {
      "delete": {
        "description": "Hides the upload at once and queues idempotent deletion of the original and all variants.",
        "operationId": "u15DeleteMediaUpload",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "deleted"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "description": "Owner-only status. Variants are returned only when ready.",
        "operationId": "u15GetMediaUpload",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U15MediaUpload"
                }
              }
            },
            "description": "Upload"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "format": "uuid",
            "type": "string"
          }
        }
      ]
    },
    "/media/intents": {
      "post": {
        "description": "Creates an owner-bound upload intent and a short-lived presigned PUT to the private quarantine bucket. Send the file body directly to url with exactly the returned headers; Content-Length is signed and set by the browser. Fails closed (503) unless storage is configured and the quarantine bucket is verified private.",
        "operationId": "post_media_intents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bytes": {
                    "maximum": 50000000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "checksum": {
                    "description": "SHA-256 of the file, lowercase hex",
                    "pattern": "^[a-f0-9]{64}$",
                    "type": "string"
                  },
                  "mime": {
                    "enum": [
                      "image/jpeg",
                      "image/png",
                      "image/webp",
                      "video/mp4"
                    ],
                    "type": "string"
                  },
                  "visibility": {
                    "enum": [
                      "public"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "visibility",
                  "mime",
                  "bytes",
                  "checksum"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "maximum": 300,
                      "type": "integer"
                    },
                    "headers": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "method": {
                      "enum": [
                        "PUT"
                      ],
                      "type": "string"
                    },
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "method",
                    "url",
                    "headers",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Upload intent"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/media/{id}/complete": {
      "post": {
        "description": "Verifies the stored object's size, detected type and SHA-256 against the intent, then queues processing. Idempotent for the owner.",
        "operationId": "post_media_complete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Owner view. Variants are present only when state is ready.",
                  "properties": {
                    "bytes": {
                      "type": "integer"
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "mime": {
                      "type": "string"
                    },
                    "state": {
                      "enum": [
                        "upload",
                        "expired",
                        "processing",
                        "ready",
                        "failed",
                        "deleted"
                      ],
                      "type": "string"
                    },
                    "variants": {
                      "items": {
                        "properties": {
                          "format": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "height": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "kind": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "url": {
                            "format": "uri",
                            "maxLength": 2000,
                            "type": "string"
                          },
                          "width": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "url",
                          "kind",
                          "format",
                          "width",
                          "height"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "mime",
                    "bytes",
                    "error",
                    "variants"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Current upload state"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/moderation/report-hints/{source}/{id}": {
      "post": {
        "description": "Owner-only advisory suggestion for an open report. Never changes report or content. Inference may be unavailable.",
        "operationId": "urevreport_hint",
        "parameters": [
          {
            "in": "path",
            "name": "source",
            "required": true,
            "schema": {
              "enum": [
                "reports",
                "u13"
              ],
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 36,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "priority": {
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    },
                    "reason": {
                      "maxLength": 120,
                      "type": "string"
                    }
                  },
                  "required": [
                    "reason",
                    "priority"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Advisory hint"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/moderation/reports": {
      "get": {
        "description": "Verified active configured owner only (AdminConsole authorization). Unified event, review and U13 message/author queue, oldest first, 25 per page. status=all retains handled reports for restore. Age >=20h approaching / >=24h overdue; visibility does not guarantee human handling within 24 hours.",
        "operationId": "urevreport_queue",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "open",
                "all"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewReportQueue"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/moderation/reports/{source}/{id}/{action}": {
      "post": {
        "description": "Verified active configured owner only; Origin and CSRF checked. resolve: one open report to reviewed; dismiss: one open report to closed. hide: target only (manual review hiding, event private, message suppressed in inbox/plans/external delivery). restore: clear manual hiding, restore stored event visibility, close ALL current open reports for target, including when threshold still met. New distinct reports can hide again. Handled reports remain addressable. Transactional target locking and existing u09_audit record actor, target, action, state transitions and timestamp. No content deletion.",
        "operationId": "urevreport_moderate",
        "parameters": [
          {
            "in": "path",
            "name": "source",
            "required": true,
            "schema": {
              "enum": [
                "reports",
                "u13"
              ],
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 36,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "action",
            "required": true,
            "schema": {
              "enum": [
                "resolve",
                "dismiss",
                "hide",
                "restore"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewReportAction"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/notifications": {
      "get": {
        "operationId": "get_notifications",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "created_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "event_id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "event_slug": {
                            "maxLength": 190,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "event_title": {
                            "description": "Title of a public or unlisted event the alert is about.",
                            "maxLength": 180,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "kind": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "read_at": {
                            "maxLength": 65536,
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "event_id",
                          "kind",
                          "created_at",
                          "read_at"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/notifications/read": {
      "post": {
        "operationId": "post_notifications_read",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "read"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/notify/events/{id}/cancel": {
      "post": {
        "description": "Organizer cancel with notifications (owner/admin/editor only; door denied). Requires confirm=true; notifyExternal queues external email only when true with confirmation. Creates deduplicated inbox alerts (kind cancelled) for authorized opted-in attendees.",
        "operationId": "notify_cancel",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "const": true
                  },
                  "notifyExternal": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "cancelled"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/notify/events/{id}/preview": {
      "get": {
        "description": "Organizer recipient preview (owner/admin/editor only; door denied). Returns counts only, never attendee PII. External delivery requires a separate confirmed POST with notifyExternal=true.",
        "operationId": "notify_preview",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "occurrence_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "eligible": {
                      "type": "integer"
                    },
                    "event_id": {
                      "type": "string"
                    },
                    "externalAvailable": {
                      "type": "boolean"
                    },
                    "externalEligible": {
                      "type": "integer"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "optedOut": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "unauthorized": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "event_id",
                    "kind",
                    "total",
                    "eligible",
                    "optedOut",
                    "unauthorized",
                    "externalEligible",
                    "externalAvailable"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/notify/events/{id}/reschedule": {
      "post": {
        "description": "Organizer reschedule (owner/admin/editor only; door denied). Requires confirm=true; notifyExternal queues external email only when true with confirmation. Creates deduplicated inbox alerts (kind rescheduled) for authorized opted-in attendees.",
        "operationId": "notify_reschedule",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "const": true
                  },
                  "end_offset": {
                    "type": "integer"
                  },
                  "ends_local": {
                    "type": "string"
                  },
                  "notifyExternal": {
                    "type": "boolean"
                  },
                  "occurrence_id": {
                    "maxLength": 36,
                    "type": "string"
                  },
                  "offset": {
                    "type": "integer"
                  },
                  "starts_local": {
                    "type": "string"
                  },
                  "timezone": {
                    "type": "string"
                  }
                },
                "required": [
                  "occurrence_id",
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ends_at": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "starts_at": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/notify/events/{id}/update": {
      "post": {
        "description": "Organizer edit (owner/admin/editor only; door denied). Requires confirm=true; notifyExternal queues external email only when true with confirmation. Creates deduplicated inbox alerts (kind edited) for authorized opted-in attendees.",
        "operationId": "notify_update",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "category": {
                    "type": "string"
                  },
                  "confirm": {
                    "const": true
                  },
                  "description": {
                    "maxLength": 10000,
                    "type": "string"
                  },
                  "notifyExternal": {
                    "type": "boolean"
                  },
                  "title": {
                    "maxLength": 180,
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string"
                  }
                },
                "required": [
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "agentOpenApi",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Fetch the OpenAPI contract"
      }
    },
    "/orders/{id}/cancel": {
      "post": {
        "operationId": "post_orders_id_cancel",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "occurrence_id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "state": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/organizer": {
      "get": {
        "operationId": "get_organizer",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "allocated": {
                            "type": "integer"
                          },
                          "capacity": {
                            "type": "integer"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "occurrence_id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "slug": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "starts_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "status": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "title": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "title",
                          "status",
                          "occurrence_id",
                          "starts_at",
                          "capacity",
                          "allocated"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/organizers/{id}": {
      "get": {
        "description": "Existing 91-entities.php owner; public slug lookup, captures remain URL-encoded.",
        "operationId": "get_organizers_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "events": {
                      "items": {
                        "properties": {
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "slug": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "status": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "title": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "title",
                          "status"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "name": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "slug": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "name",
                    "events"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/partners/openjobs/callback": {
      "get": {
        "description": "OpenJobs OAuth redirect URI. Always answers 303 to /app/rp?openjobs=connected|denied|expired|signin|error|unavailable. When the flow began on another host of this app, the first hop forwards the query to that origin without consuming the state.",
        "operationId": "openJobsOAuthCallback",
        "parameters": [
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "maxLength": 600,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "maxLength": 600,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "iss",
            "required": false,
            "schema": {
              "maxLength": 600,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "maxLength": 600,
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Redirect into the RP portal."
          }
        }
      }
    },
    "/partners/openjobs/webhook": {
      "post": {
        "description": "OpenJobs partner webhooks (proposal.created/withdrawn/accepted/declined, listing.closed). No session, Origin or CSRF: authenticated only by OpenJobs-Signature (t and v1 = HMAC-SHA256 of '<t>.<raw body>' with OPENJOBS_WEBHOOK_SECRET, 300 s window, constant-time compare). Deduplicated on the event id. Updates cached offer state; listing.closed closes the RP job.",
        "operationId": "openJobsWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Accepted (including duplicates and events for unknown listings)."
          },
          "400": {
            "description": "Missing or invalid signature, or malformed event."
          },
          "404": {
            "description": "Bridge not configured."
          }
        }
      }
    },
    "/partners/openmedia/callback": {
      "get": {
        "description": "OpenMedia OAuth redirect URI. Always answers 303 to /app/rp/studio?openmedia=connected|denied|expired|signin|error|unavailable. A callback on another OpenParty origin forwards the query to the origin where consent started without consuming the state.",
        "operationId": "openMediaOAuthCallback",
        "parameters": [
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Redirect into the Studio."
          }
        }
      }
    },
    "/partners/openmedia/webhook": {
      "post": {
        "description": "OpenMedia partner webhooks (shortlist.updated, campaign.status_changed, grant.revoked). No session, Origin or CSRF: authenticated only by OpenMedia-Signature (t and v1 = HMAC-SHA256 of '<t>.<raw body>' with OPENMEDIA_WEBHOOK_SECRET, 300 s window, constant-time compare). Deduplicated on OpenMedia-Event-Id. Updates cached shortlist and draft state; grant.revoked marks the link disconnected.",
        "operationId": "openMediaWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Accepted (including duplicates and events for unknown grants)."
          },
          "400": {
            "description": "Missing or invalid signature, or malformed event."
          },
          "404": {
            "description": "Bridge not configured."
          }
        }
      }
    },
    "/payments/stripe/webhook": {
      "post": {
        "description": "Stripe server-to-server events. No session, Origin or CSRF: authenticated only by the Stripe-Signature header (t and v1 = HMAC-SHA256 of '<t>.<raw body>' with STRIPE_WEBHOOK_SECRET, 300 s tolerance, constant-time compare). Deduplicated by event id; handlers re-read the PaymentIntent from Stripe and are idempotent. Subscribe payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled, payment_intent.processing, payment_intent.requires_action and charge.refunded.",
        "operationId": "stripeWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "duplicate": {
                      "type": "boolean"
                    },
                    "received": {
                      "type": "boolean"
                    },
                    "state": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted (including duplicates and ignored events)."
          },
          "400": {
            "description": "Missing or invalid signature, or malformed event."
          },
          "404": {
            "description": "Stripe is not the configured provider."
          },
          "409": {
            "description": "PaymentIntent does not match the stored hold (amount, currency, hold or mode)."
          },
          "502": {
            "description": "Stripe unavailable while re-reading; Stripe retries."
          },
          "503": {
            "description": "Stripe keys missing or invalid for this environment."
          }
        }
      }
    },
    "/planner/night": {
      "post": {
        "description": "Build a night from scheduled public listings. If no stops fit, returns an empty draft with reason no_events.",
        "operationId": "plan_night",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlannerNightRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "alternatives": {
                      "$ref": "#/components/schemas/PlannerAlternatives"
                    },
                    "draft": {
                      "$ref": "#/components/schemas/PlannerDraft"
                    },
                    "interpreted": {
                      "$ref": "#/components/schemas/PlannerInterpreted"
                    },
                    "label": {
                      "type": "string"
                    },
                    "mode": {
                      "enum": [
                        "deterministic",
                        "ai"
                      ],
                      "type": "string"
                    },
                    "reason": {
                      "enum": [
                        "no_events"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "mode",
                    "label",
                    "interpreted",
                    "draft",
                    "alternatives"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/planner/night/regenerate": {
      "post": {
        "description": "Replace one stop in a previously returned draft when an eligible alternative exists. Returns the draft unchanged when none fits.",
        "operationId": "regenerate_night_stop",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlannerRegenerateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "alternatives": {
                      "$ref": "#/components/schemas/PlannerAlternatives"
                    },
                    "draft": {
                      "$ref": "#/components/schemas/PlannerDraft"
                    }
                  },
                  "required": [
                    "draft",
                    "alternatives"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/plans": {
      "get": {
        "operationId": "get_plans",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "budget_minor": {
                            "type": "integer"
                          },
                          "currency": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "title": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "budget_minor",
                          "currency"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "operationId": "post_plans",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "budget_minor": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "date": {
                    "description": "Local night date from a planner draft.",
                    "format": "date",
                    "type": "string"
                  },
                  "events": {
                    "items": {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 20,
                    "type": "array"
                  },
                  "title": {
                    "maxLength": 180,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "title"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/join": {
      "post": {
        "operationId": "post_plans_join",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "token": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/{id}": {
      "get": {
        "description": "Legacy GET returns plan detail, including on action suffixes.",
        "operationId": "get_plans_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U02PlanDetail"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/{id}/invite": {
      "delete": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "delete_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "get": {
        "description": "Legacy GET returns plan detail, including on action suffixes.",
        "operationId": "get_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U02PlanDetail"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "head": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "head_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "options": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "options_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "patch": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "patch_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "post_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "x-legacy-any-non-get": true
      },
      "put": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "put_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "trace": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "trace_plans_id_invite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expires_in": {
                      "type": "integer"
                    },
                    "token": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/{id}/remove-member": {
      "delete": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "delete_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "get": {
        "description": "Legacy GET returns plan detail, including on action suffixes.",
        "operationId": "get_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U02PlanDetail"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "head": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "head_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "options": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "options_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "patch": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "patch_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "post_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "x-legacy-any-non-get": true
      },
      "put": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "put_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "trace": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "trace_plans_id_remove_member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "user_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "removed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/{id}/share": {
      "delete": {
        "description": "Revoke the public link and its guest responses.",
        "operationId": "revoke_plan_share",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "enum": [
                        "revoked"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "description": "Publish or return the current public link. Requires plan ownership or membership.",
        "operationId": "publish_plan_share",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanShare"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/{id}/stops": {
      "delete": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "delete_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "get": {
        "description": "Legacy GET returns plan detail, including on action suffixes.",
        "operationId": "get_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U02PlanDetail"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "head": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "head_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "options": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "options_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "patch": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "patch_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "post_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "x-legacy-any-non-get": true
      },
      "put": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "put_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "trace": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "trace_plans_id_stops",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/plans/{id}/vote": {
      "delete": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "delete_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "get": {
        "description": "Legacy GET returns plan detail, including on action suffixes.",
        "operationId": "get_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U02PlanDetail"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "head": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "head_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "options": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "options_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "patch": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "patch_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "post_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "x-legacy-any-non-get": true
      },
      "put": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "put_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "trace": {
        "description": "Legacy action has no method guard; retained for compatibility.",
        "operationId": "trace_plans_id_vote",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vote": {
                    "enum": [
                      -1,
                      0,
                      1
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "event_id",
                  "vote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/public/plans/{token}": {
      "get": {
        "operationId": "read_public_plan",
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Guest-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPlan"
                }
              }
            },
            "description": "Successful response"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/public/plans/{token}/rsvp": {
      "post": {
        "description": "Submit or update a guest RSVP. Supply the existing key in the body or X-Guest-Key header to update.",
        "operationId": "rsvp_public_plan",
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Guest-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPlanRsvpRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPlanRsvp"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/public/plans/{token}/vote": {
      "post": {
        "description": "Vote using a guest key issued by RSVP. Zero clears the vote.",
        "operationId": "vote_public_plan",
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPlanVoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPlanVote"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/recaps/{id}": {
      "get": {
        "operationId": "getPartyRecap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public recap of a finished occurrence"
          },
          "404": {
            "description": "Recap unavailable"
          }
        }
      }
    },
    "/recaps/{id}/summary": {
      "get": {
        "operationId": "getPartyRecapSummary",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Optional AI sentence, null when unavailable"
          },
          "404": {
            "description": "Recap unavailable"
          }
        }
      }
    },
    "/reservations": {
      "post": {
        "operationId": "post_reservations",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 100,
              "minLength": 8,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "occurrence_id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "occurrence_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "occurrence_id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "state": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "occurrence_id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/reviews/{id}": {
      "get": {
        "description": "Public visible review, or authenticated author / verified owner moderator. Hidden and inaccessible content returns 404. Blocking applies in either direction. No reporter information.",
        "operationId": "urevreport_detail",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 36,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "body": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "manually_hidden": {
                      "type": [
                        "integer",
                        "boolean"
                      ]
                    },
                    "occurrence_id": {
                      "type": "string"
                    },
                    "rating": {
                      "type": "integer"
                    },
                    "title": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "user_id",
                    "occurrence_id",
                    "rating",
                    "body",
                    "title",
                    "manually_hidden"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/reviews/{id}/report": {
      "post": {
        "description": "Authenticated same-origin/CSRF report. Ten attempts per user per hour plus global Limiter (429). Nonblank reason <=500 characters; 400 reason_required. Inaccessible targets return 404. Unique reporter/review with parent row locking. Sequential/concurrent retries return the same id and status with duplicate=true, including after closure/hiding; never reopen or repeat effects. Three distinct open reporters hide by default (REVIEW_REPORT_THRESHOLD). Resolved/dismissed reports do not count.",
        "operationId": "urevreport_report",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 36,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "reason": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "reason"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewReportResult"
                }
              }
            },
            "description": "Success; no-store."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/revision": {
      "get": {
        "description": "Early Http route, any method currently accepted. Request middleware integration pending.",
        "operationId": "get_revision",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "app": {
                      "const": "openparty"
                    },
                    "builtAt": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "environment": {
                      "enum": [
                        "development",
                        "production"
                      ],
                      "maxLength": 11,
                      "type": "string"
                    },
                    "revision": {
                      "maxLength": 40,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "app",
                    "environment",
                    "revision",
                    "builtAt"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/rp/admin": {
      "get": {
        "description": "Platform owner: open reports, profiles to verify, recent jobs and the audit trail.",
        "operationId": "getRpAdmin",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/admin/actions": {
      "post": {
        "description": "Platform owner moderation (verify/unverify/pause profile, remove/restore job, resolve/dismiss report, hide/list/close catalogue venue). Audited.",
        "operationId": "moderateRp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/admin/disputes/{id}": {
      "post": {
        "description": "Platform owner. Body: decision uphold|reject, note (required). Upholding applies the correction to the ledger entry. Audited.",
        "operationId": "resolveRpDispute",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Resolved"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/applications/{id}/decision": {
      "post": {
        "description": "decision accept or decline. Accept creates the assignment and its referral code.",
        "operationId": "decideRpApplication",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Decision"
          }
        }
      }
    },
    "/rp/applications/{id}/invite": {
      "post": {
        "description": "Managers: invite the applicant to the organization's RP team (no org membership is granted).",
        "operationId": "inviteRpApplicant",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/applications/{id}/withdraw": {
      "post": {
        "operationId": "withdrawRpApplication",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Withdrawn"
          }
        }
      }
    },
    "/rp/assignments/{id}/complete": {
      "post": {
        "description": "Manager marks the assignment completed. The referral link stops, check-ins stay counted.",
        "operationId": "completeRpAssignment",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/assignments/{id}/guests": {
      "get": {
        "operationId": "listRpGuests",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Guests (RP or managers)"
          }
        }
      },
      "post": {
        "description": "Adds a guest within the quota. Returns the QR token once; only its SHA-256 is stored.",
        "operationId": "addRpGuest",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Guest with one-time token"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/assignments/{id}/revoke": {
      "post": {
        "operationId": "revokeRpAssignment",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked"
          }
        }
      }
    },
    "/rp/attributions": {
      "post": {
        "description": "The buyer claims a referral code for their own order within 24 hours. per_ticket jobs get an estimated ledger row.",
        "operationId": "attributeRpReferral",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Attribution"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/campaigns": {
      "get": {
        "description": "Promotion Studio: campaigns of organizations you manage, upcoming occurrences you can promote, and honest channel states (nothing connected, nothing published).",
        "operationId": "listRpCampaigns",
        "responses": {
          "200": {
            "description": "Campaigns"
          }
        }
      },
      "post": {
        "description": "Owner/admin/editor of the occurrence's organization. Body: occurrence_id, objective (awareness|guest_list|tickets), audience, budget_cap_minor (a record, never spent), channels. Copy is generated in pt, en and es from verified event facts.",
        "operationId": "createRpCampaign",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Campaign"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/campaigns/{id}": {
      "get": {
        "description": "Campaign with facts, copy per language, channel states, OpenMedia link and the per-RP funnel with review-only flags.",
        "operationId": "getRpCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Campaign"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "description": "Draft only (409 campaign_locked). Body: objective, audience, budget_cap_minor, channels, content {lang: copy}, regenerate.",
        "operationId": "updateRpCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Campaign"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/campaigns/{id}/actions": {
      "post": {
        "description": "Body: action approve|reopen|archive. Approval is explicit and audited; approved copy reaches the RP kits. Publishing stays not_published.",
        "operationId": "actRpCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Campaign"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/campaigns/{id}/openmedia": {
      "get": {
        "description": "OpenMedia state for one RP campaign: bridge availability, whether its organization is connected, the campaign draft (status, finish URL) and the shortlist for the campaign or its occurrence.",
        "operationId": "getRpCampaignOpenMedia",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "State"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          }
        }
      },
      "post": {
        "description": "Prepare the OpenMedia campaign draft for an RP campaign (title, local event date, venue, city, objective, EUR budget cap as information, shortlist). One per campaign; the brand finishes or discards it inside OpenMedia. Nothing is charged, offered or sent.",
        "operationId": "createRpCampaignOpenMediaDraft",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "State"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "409": {
            "description": "campaign_locked (archived) or openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/disputes": {
      "post": {
        "description": "Dispute one of your ledger entries. Body: ledger_id, kind (should_count for a void entry, should_not_count for a counted one), reason.",
        "operationId": "disputeRpLedger",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Dispute"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/door/{occurrence}": {
      "get": {
        "description": "Door/owner/admin/editor of the occurrence's organization. Names and token hashes for offline check-in; never tokens.",
        "operationId": "getRpDoorList",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Door list"
          }
        }
      }
    },
    "/rp/door/{occurrence}/checkin": {
      "post": {
        "description": "token or tokens (1-200, offline replay). Results ok, already, unknown or invalid; idempotent.",
        "operationId": "checkInRpGuests",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Per-token results"
          }
        }
      }
    },
    "/rp/guests/{id}": {
      "delete": {
        "operationId": "removeRpGuest",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Removed"
          }
        }
      }
    },
    "/rp/jobs": {
      "get": {
        "operationId": "listRpJobs",
        "parameters": [
          {
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "role",
            "schema": {
              "enum": [
                "promoter",
                "host",
                "street_team",
                "door"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open RP jobs; payouts_enabled is always false"
          }
        },
        "security": []
      },
      "post": {
        "description": "Owner/admin/editor of org_id only. occurrence_id must be a scheduled occurrence of that organization.",
        "operationId": "createRpJob",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Job"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/jobs/{id}": {
      "get": {
        "operationId": "getRpJob",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/rp/jobs/{id}/applications": {
      "get": {
        "operationId": "listRpApplications",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Applications (managers only)"
          }
        }
      }
    },
    "/rp/jobs/{id}/apply": {
      "post": {
        "description": "Needs an active RP profile; idempotent per job and user.",
        "operationId": "applyRpJob",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Application"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/jobs/{id}/assignments": {
      "get": {
        "description": "Managers: assignments of a job with guest, check-in and order counts.",
        "operationId": "listRpJobAssignments",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/jobs/{id}/close": {
      "post": {
        "operationId": "closeRpJob",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Closed job"
          }
        }
      }
    },
    "/rp/jobs/{id}/openjobs": {
      "post": {
        "description": "Publish an open RP job as an OpenJobs events_nightlife listing (role, pay model, rate, shift, occurrence and venue mapped; pay model none becomes unpaid). Idempotent per job.",
        "operationId": "publishRpJobToOpenJobs",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Listing id and URL"
          },
          "409": {
            "description": "openjobs_not_connected (reconnect), openjobs_insufficient_scope, openjobs_rejected or a state conflict."
          },
          "502": {
            "description": "OpenJobs unavailable."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/jobs/{id}/openjobs/proposals": {
      "get": {
        "description": "Offers on the job's OpenJobs listing (newest first, up to 50) with any claim-link state.",
        "operationId": "listRpJobOpenJobsProposals",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Offers"
          },
          "409": {
            "description": "openjobs_not_connected (reconnect), openjobs_insufficient_scope, openjobs_rejected or a state conflict."
          },
          "502": {
            "description": "OpenJobs unavailable."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/me": {
      "get": {
        "operationId": "getRpMe",
        "responses": {
          "200": {
            "description": "Profile, organizations, applications, assignments and managed jobs"
          }
        }
      }
    },
    "/rp/me/kits": {
      "get": {
        "description": "Approved campaign kits for your active assignments, with your referral link filled in. Copy and share only.",
        "operationId": "getRpKits",
        "responses": {
          "200": {
            "description": "Kits"
          }
        }
      }
    },
    "/rp/me/ledger": {
      "get": {
        "description": "Estimated, earned and void amounts only. payouts_enabled is false.",
        "operationId": "getRpLedger",
        "responses": {
          "200": {
            "description": "Ledger"
          }
        }
      }
    },
    "/rp/me/profile": {
      "put": {
        "operationId": "saveRpProfile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Profile"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/rp/openjobs": {
      "get": {
        "description": "OpenJobs bridge availability and the connection state of each organization the user manages. available=false means the OPENJOBS_* settings are missing; the UI keeps the OpenJobs deep link.",
        "operationId": "getRpOpenJobs",
        "responses": {
          "200": {
            "description": "Status"
          }
        }
      }
    },
    "/rp/openjobs/claims/preview": {
      "post": {
        "description": "The signed-in applicant previews a claim link: job terms, link state and whether an RP profile is needed.",
        "operationId": "previewRpOpenJobsClaim",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "token": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Preview"
          },
          "404": {
            "description": "Unknown link."
          }
        }
      }
    },
    "/rp/openjobs/claims/redeem": {
      "post": {
        "description": "Redeem a claim link with the applicant's own account: creates the accepted application and the assignment with the usual shift-conflict and open-job checks. Single use, only for that job.",
        "operationId": "redeemRpOpenJobsClaim",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "token": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Assignment"
          },
          "404": {
            "description": "Unknown link."
          },
          "409": {
            "description": "claim_used, proposal_not_accepted, profile_required, already_assigned, shift_conflict or job_closed."
          },
          "410": {
            "description": "claim_expired."
          }
        }
      }
    },
    "/rp/openjobs/connect": {
      "post": {
        "description": "Start OAuth 2.1 + PKCE (S256) consent for an organization. Returns the OpenJobs authorize URL. State and verifier are stored server-side, single use, 10 minutes, bound to this user and origin.",
        "operationId": "connectRpOpenJobs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "org_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "org_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Authorize URL"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/openjobs/disconnect": {
      "post": {
        "description": "Revoke the organization's OpenJobs grant (best effort) and forget its tokens.",
        "operationId": "disconnectRpOpenJobs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "org_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "org_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Disconnected"
          }
        }
      }
    },
    "/rp/openjobs/proposals/{id}/accept": {
      "post": {
        "description": "Step 2: accept at OpenJobs with the confirmation token and statement, then issue a single-use, 7-day claim link for the applicant (shown once).",
        "operationId": "acceptRpOpenJobsProposal",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[a-z]{2,8}_[A-Za-z0-9_-]{4,72}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirmation_token": {
                    "pattern": "^acf_[a-f0-9]{64}$",
                    "type": "string"
                  },
                  "statement": {
                    "type": "string"
                  }
                },
                "required": [
                  "confirmation_token",
                  "statement"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Accepted with claim link"
          },
          "409": {
            "description": "openjobs_not_connected (reconnect), openjobs_insufficient_scope, openjobs_rejected or a state conflict."
          },
          "502": {
            "description": "OpenJobs unavailable."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/openjobs/proposals/{id}/acceptance": {
      "post": {
        "description": "Step 1 of accepting: returns OpenJobs' single-use confirmation token, summary and statement for the manager to confirm.",
        "operationId": "startRpOpenJobsAcceptance",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[a-z]{2,8}_[A-Za-z0-9_-]{4,72}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Confirmation"
          },
          "409": {
            "description": "openjobs_not_connected (reconnect), openjobs_insufficient_scope, openjobs_rejected or a state conflict."
          },
          "502": {
            "description": "OpenJobs unavailable."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/openjobs/proposals/{id}/claim": {
      "post": {
        "description": "New claim link for an accepted offer (also when accepted on OpenJobs). Replaces any unredeemed link.",
        "operationId": "issueRpOpenJobsClaim",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[a-z]{2,8}_[A-Za-z0-9_-]{4,72}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Claim link"
          },
          "409": {
            "description": "openjobs_not_connected (reconnect), openjobs_insufficient_scope, openjobs_rejected or a state conflict."
          },
          "502": {
            "description": "OpenJobs unavailable."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/openjobs/proposals/{id}/decline": {
      "post": {
        "description": "Decline an OpenJobs offer on one of the organization's listings.",
        "operationId": "declineRpOpenJobsProposal",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "pattern": "^[a-z]{2,8}_[A-Za-z0-9_-]{4,72}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "maxLength": 500,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Declined"
          },
          "409": {
            "description": "openjobs_not_connected (reconnect), openjobs_insufficient_scope, openjobs_rejected or a state conflict."
          },
          "502": {
            "description": "OpenJobs unavailable."
          },
          "503": {
            "description": "OpenJobs bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia": {
      "get": {
        "description": "OpenMedia bridge availability and the connection state of each organization the user manages. available=false means the OPENMEDIA_* settings are missing; the Studio keeps the OpenMedia deep link.",
        "operationId": "getRpOpenMedia",
        "responses": {
          "200": {
            "description": "Status"
          }
        }
      }
    },
    "/rp/openmedia/connect": {
      "post": {
        "description": "Start OAuth 2.1 + PKCE (S256) consent for an organization with all five partner scopes. Returns the OpenMedia authorize URL. State and verifier are stored server-side, single use, 10 minutes, bound to this user and origin.",
        "operationId": "connectRpOpenMedia",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "org_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "org_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Authorize URL"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/disconnect": {
      "post": {
        "description": "Revoke the organization's OpenMedia grant (best effort; it ends the whole grant) and forget its tokens and cached shortlist and draft ids.",
        "operationId": "disconnectRpOpenMedia",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "org_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "org_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Disconnected"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "404": {
            "description": "Never connected."
          }
        }
      }
    },
    "/rp/openmedia/orgs/{org}": {
      "get": {
        "description": "Live OpenMedia state for a connected organization: capability.discovery, sandbox flag, granted scopes, this organization's shortlists (per job, occurrence or campaign) and campaign drafts with their finish URL.",
        "operationId": "getRpOpenMediaOverview",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Overview"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/orgs/{org}/creators": {
      "get": {
        "description": "Search creators who opted in to partner apps on OpenMedia (public partner fields only). While OpenMedia reports capability.discovery=false the answer is discovery=false with no creators; nothing is invented or scraped. Rate limited per user; OpenMedia allows 1,000 searches a day per grant.",
        "operationId": "searchRpOpenMediaCreators",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 80,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "maxLength": 80,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "pattern": "^[a-z0-9_-]{1,40}$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "pattern": "^[a-z]{2}$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Creators"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "429": {
            "description": "Rate limited."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/orgs/{org}/creators/{id}/assets": {
      "get": {
        "description": "A creator's licensed photos (licence om-partner-promo-1) with credit and terms link. Photos without a credit are dropped. discovery=false while creator discovery is off.",
        "operationId": "getRpOpenMediaCreatorAssets",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Assets"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/shortlists": {
      "post": {
        "description": "Create (or return) the OpenMedia shortlist for an OpenParty job, occurrence or campaign. external_ref is op:<subject_type>:<subject_id>; a stable Idempotency-Key and the external_ref make retries return the same list.",
        "operationId": "createRpOpenMediaShortlist",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "subject_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "subject_type": {
                    "enum": [
                      "job",
                      "occurrence",
                      "campaign"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "subject_type",
                  "subject_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Shortlist"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "404": {
            "description": "Unknown subject."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "422": {
            "description": "invalid_subject"
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/shortlists/{id}": {
      "get": {
        "description": "A shortlist with its visible entries as OpenMedia shows them. Creators who did not opt in are only counted in hidden_count.",
        "operationId": "getRpOpenMediaShortlist",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shortlist"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "404": {
            "description": "Not this organization's shortlist."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/shortlists/{id}/entries": {
      "post": {
        "description": "Add an opted-in creator to the shortlist (added=false when already on it).",
        "operationId": "addRpOpenMediaShortlistEntry",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "creator_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "note": {
                    "maxLength": 500,
                    "type": "string"
                  }
                },
                "required": [
                  "creator_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Entry"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/openmedia/shortlists/{id}/entries/{creator}": {
      "delete": {
        "description": "Remove a creator from the shortlist.",
        "operationId": "removeRpOpenMediaShortlistEntry",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "creator",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Removed"
          },
          "403": {
            "description": "Not an owner/admin/editor of the organization."
          },
          "409": {
            "description": "openmedia_not_connected (reconnect), openmedia_insufficient_scope, openmedia_forbidden or openmedia_rejected."
          },
          "502": {
            "description": "OpenMedia unavailable."
          },
          "503": {
            "description": "OpenMedia bridge not configured."
          }
        }
      }
    },
    "/rp/orgs/{org}/invitation": {
      "post": {
        "description": "RP accepts or declines a team invitation. Body: decision accept|decline.",
        "operationId": "respondRpInvitation",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/orgs/{org}/team": {
      "get": {
        "description": "Managers: team roster with availability, verification and active assignments.",
        "operationId": "listRpTeam",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/orgs/{org}/team/{user}": {
      "delete": {
        "description": "Manager removes a member, or an RP leaves the team.",
        "operationId": "removeRpTeamMember",
        "parameters": [
          {
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rp/r/{code}": {
      "get": {
        "operationId": "resolveRpReferral",
        "parameters": [
          {
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "pattern": "^[a-hjkmnp-z2-9]{10}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Where to send the visitor"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/rp/reports": {
      "post": {
        "description": "Report a job, an RP profile or one of your own ledger entries. Body: subject_type, subject_id, reason.",
        "operationId": "reportRp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/session": {
      "get": {
        "operationId": "get_session",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "csrf": {
                      "maxLength": 65536,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "user": {
                      "oneOf": [
                        {
                          "properties": {
                            "founder_number": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "id": {
                              "format": "uuid",
                              "maxLength": 36,
                              "type": "string"
                            },
                            "locale": {
                              "maxLength": 5,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "maxLength": 100,
                              "type": "string"
                            },
                            "owner": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "locale",
                            "founder_number",
                            "owner"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "csrf",
                    "user"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/sessions/revoke": {
      "post": {
        "operationId": "post_sessions_revoke",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "signed_out",
                        "revoked"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/settings": {
      "get": {
        "operationId": "get_settings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "profile": {
                      "$ref": "#/components/schemas/U02Profile"
                    },
                    "sessions": {
                      "items": {
                        "properties": {
                          "created_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "current": {
                            "type": "boolean"
                          },
                          "device": {
                            "maxLength": 65536,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "expires_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "created_at",
                          "expires_at",
                          "device",
                          "current"
                        ],
                        "type": "object"
                      },
                      "maxItems": 50,
                      "type": "array"
                    }
                  },
                  "required": [
                    "profile",
                    "sessions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      },
      "post": {
        "operationId": "post_settings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "locale": {
                    "enum": [
                      "pt-PT",
                      "en",
                      "es"
                    ],
                    "maxLength": 5,
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "enum": [
                        "saved"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/tickets": {
      "get": {
        "operationId": "get_tickets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "cancellable": {
                            "description": "The holder may cancel this free confirmed place (POST /orders/{order_id}/cancel); the place goes to the next person on the waitlist.",
                            "type": "boolean"
                          },
                          "ends_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "event_status": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "occurrence_id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "order_id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "reservation_state": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "slug": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "starts_at": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "state": {
                            "maxLength": 65536,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "timezone": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "title": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "order_id",
                          "reservation_state",
                          "id",
                          "state",
                          "title",
                          "slug",
                          "event_status",
                          "starts_at",
                          "ends_at",
                          "timezone",
                          "occurrence_id"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "maxLength": 512,
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/tickets/{id}": {
      "get": {
        "operationId": "get_tickets_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "credential": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "state": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "credential",
                    "state"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u03/account/consents": {
      "get": {
        "operationId": "u03ConsentsRead",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Consents"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Consent state derived from the append-only ledger, with history"
      },
      "post": {
        "description": "version must equal the current policy version (409 consent_outdated). Purposes without authoritative text are pending (409 consent_pending). Required purposes cannot be withdrawn (409 consent_required).",
        "operationId": "u03ConsentsAppend",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03ConsentDecision"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Consents"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Append an explicit versioned decision"
      }
    },
    "/u03/account/identities": {
      "get": {
        "operationId": "u03IdentitiesList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Identities"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "This account's masked identity summaries"
      }
    },
    "/u03/account/identities/{id}": {
      "delete": {
        "description": "The proof must be for a different identity of the same account; the last identity can never be removed (409 last_identity). Rotates the session.",
        "operationId": "u03IdentityUnlink",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03Proof"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Rotated"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Unlink with fresh proof of a retained identity"
      }
    },
    "/u03/account/sessions": {
      "get": {
        "description": "Device labels are estimates from the browser header, not verified devices. Token hashes are never exposed.",
        "operationId": "u03SessionsList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Sessions"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "This account's active sessions by opaque ID"
      }
    },
    "/u03/account/sessions/{id}": {
      "delete": {
        "description": "Other accounts' sessions answer 404. Revoking the current session clears the cookie (signed_out).",
        "operationId": "u03SessionRevoke",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Revoked"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Revoke an owned session immediately"
      }
    },
    "/u03/auth/handoff/exchange": {
      "post": {
        "description": "Any attempt burns the transaction. Wrong audience, browser binding, verifier, expiry, replay or a revoked source session return 401 handoff_invalid. Limit: 10 per browser per 10 min.",
        "operationId": "u03HandoffExchange",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03HandoffExchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03HandoffSession"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Consume code plus browser proof and establish this host's own session"
      }
    },
    "/u03/auth/handoff/issue": {
      "post": {
        "description": "The code is delivered only by exact-origin postMessage, never in a URL. Valid for 60 s and one exchange.",
        "operationId": "u03HandoffIssue",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03HandoffIssue"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03HandoffCode"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Issue a one-time code bound to the source session and exact audience"
      }
    },
    "/u03/auth/handoff/prepare": {
      "post": {
        "description": "Only on https://dev.openparty.run or https://app.dev.openparty.run (404 handoff_unavailable elsewhere). Stores the S256 challenge, this host as audience, the browser binding and an approved return path; expires in 180 s. Limit: 10 per browser, 30 per client address per 10 min.",
        "operationId": "u03HandoffPrepare",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03HandoffPrepare"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03HandoffPrepared"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Destination browser state for the exact development pair"
      }
    },
    "/u03/auth/link/complete": {
      "post": {
        "description": "Never merges accounts or matches email/relay strings. An identity owned by another account returns 409 identity_unavailable and is not transferred. Rotates the session cookie and returns the new CSRF value.",
        "operationId": "u03LinkComplete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03LinkComplete"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Rotated"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Consume the verified target proof and link atomically"
      }
    },
    "/u03/auth/link/start": {
      "post": {
        "description": "Consumes a verified reauth proof (single use, same account, session, browser and purpose, verified within 5 minutes) and starts the target identity proof.",
        "operationId": "u03LinkStart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03LinkStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Pending"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Begin linking after consuming a fresh account proof"
      }
    },
    "/u03/auth/local/start": {
      "post": {
        "description": "purpose=login needs no session; purpose=reauth needs the session cookie, X-CSRF-Token and an own identity ID (the subject is read from storage, never from the client). Email always answers with the same shape (throttled requests receive an unknown decoy ID). Bound to the op_browser binding cookie. Limits: 5 per address and 20 per client address per 15 min (email); 5 per browser and 20 per client address per 10 min (WhatsApp, 429).",
        "operationId": "u03LocalStart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03LocalStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Pending"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Start a bounded email/WhatsApp transaction with explicit purpose"
      }
    },
    "/u03/auth/local/status": {
      "post": {
        "description": "Send id to poll, token to confirm an emailed account proof, or id plus id_token for an Apple proof. Unknown, foreign-browser, expired and failed transactions all return {status:expired}. A verified WhatsApp login sets the session cookie; a login link confirmed in another tab of the same browser resumes with that session. Limit: 60 per browser per minute (429). Poll no faster than poll_after_ms (>=2000).",
        "operationId": "u03LocalStatus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U03LocalStatus"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U03Status"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Poll or complete a browser-bound transaction; no secret in the URL"
      }
    },
    "/u04/whatsapp/otp/start": {
      "post": {
        "description": "Validates, binds the challenge to the op_browser binding cookie and enqueues it; returns 202 immediately. The upstream start is performed asynchronously by the bridge worker, so a queued challenge has no link or code yet. Lifetime is fixed at 600 s (never extended). A new start supersedes this browser's previous live attempt. Limits: 5 per browser and 20 per client address per 10 min; browsers with 5 locked attempts in 15 min are refused (429 locked); 429 busy when the queue is full.",
        "operationId": "u04WhatsAppStart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U04WaStart"
              }
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U04WaSnapshot"
                }
              }
            },
            "description": "Queued"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Queue a WhatsApp sign-in challenge"
      }
    },
    "/u04/whatsapp/otp/{challengeId}/consume": {
      "post": {
        "description": "Atomically turns a verified, bound, unexpired challenge into exactly one session (session cookie set, CSRF token returned). Concurrent or repeated calls from the same browser within the lifetime reuse that outcome and never create another session. 409 not_verified before the WhatsApp proof, 423 locked (wrong phone or gateway lockout), 410 expired, 404 unknown/other browser. Never waits on the gateway.",
        "operationId": "u04WhatsAppConsume",
        "parameters": [
          {
            "description": "Local challenge ID (UUID v4) returned by start.",
            "in": "path",
            "name": "challengeId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U04WaSignedIn"
                }
              }
            },
            "description": "Signed in"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "410": {
            "$ref": "#/components/responses/Error"
          },
          "423": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Complete sign-in from a verified challenge"
      }
    },
    "/u04/whatsapp/otp/{challengeId}/status": {
      "get": {
        "description": "Fast bounded database snapshot for the bound browser; never waits on the gateway. Unknown, malformed and other-browser IDs return 404. wa_link/code/wa_number are present only while status is pending and the upstream start has supplied them. poll_after_ms is the suggested local polling delay; retrying=true while the bridge backs off. 120 requests per browser per minute (429 with Retry-After).",
        "operationId": "u04WhatsAppStatus",
        "parameters": [
          {
            "description": "Local challenge ID (UUID v4) returned by start.",
            "in": "path",
            "name": "challengeId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U04WaSnapshot"
                }
              }
            },
            "description": "Snapshot"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "cookie": []
          }
        ],
        "summary": "Read the challenge snapshot"
      }
    },
    "/u05/apple/complete": {
      "post": {
        "operationId": "u05AppleComplete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "status": {
                          "const": "linked"
                        }
                      },
                      "required": [
                        "status"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "csrf": {
                          "type": "string"
                        },
                        "return_to": {
                          "type": "string"
                        },
                        "status": {
                          "const": "verified"
                        }
                      },
                      "required": [
                        "status",
                        "csrf",
                        "return_to"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/u05/apple/link": {
      "delete": {
        "operationId": "u05AppleLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "proof": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "revocation": {
                      "enum": [
                        "none",
                        "pending",
                        "failed",
                        "exhausted",
                        "revoked"
                      ],
                      "type": "string"
                    },
                    "status": {
                      "const": "unlinked"
                    }
                  },
                  "required": [
                    "status",
                    "revocation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u05/apple/start": {
      "post": {
        "operationId": "u05AppleStart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "intent": {
                    "enum": [
                      "login",
                      "link"
                    ],
                    "type": "string"
                  },
                  "return_to": {
                    "maxLength": 256,
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "url": {
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/u05/apple/status": {
      "get": {
        "operationId": "u05AppleStatus",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "alternatives": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "provider": {
                            "enum": [
                              "email",
                              "whatsapp"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "provider",
                          "label"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "linked": {
                      "type": "boolean"
                    },
                    "revocation": {
                      "enum": [
                        "none",
                        "pending",
                        "failed",
                        "exhausted"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "linked",
                    "alternatives",
                    "revocation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u06/founder": {
      "get": {
        "operationId": "u06FounderFacts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U06FounderFacts"
                }
              }
            },
            "description": "Own founder facts"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ],
        "summary": "Read own persisted founder facts and app service policy"
      }
    },
    "/u07/discovery": {
      "get": {
        "operationId": "u07Discovery",
        "parameters": [
          {
            "description": "Event search in English, Portuguese or Spanish. Explicit filters override the corresponding phrases.",
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Event city name or alias.",
            "in": "query",
            "name": "city",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Comma-separated OR (max 8); AND across dimensions.",
            "in": "query",
            "name": "category",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Inclusive UTC ISO timestamp (YYYY-MM-DDTHH:mm:ssZ), occurrence starts_at.",
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Inclusive UTC occurrence start boundary.",
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "lat",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "lng",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Locality-centre km, lat/lng required; missing coordinates excluded.",
            "in": "query",
            "name": "radius",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "currency",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Minor units; currency required; same ticket row.",
            "in": "query",
            "name": "max_price",
            "schema": {
              "maximum": 100000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "accessible",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "age",
            "schema": {
              "maximum": 99,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "available",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "sort",
            "schema": {
              "default": "time",
              "enum": [
                "time",
                "relevance",
                "distance"
              ],
              "type": "string"
            }
          },
          {
            "description": "Validated discovery filter.",
            "in": "query",
            "name": "limit",
            "schema": {
              "maximum": 48,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Opaque filter-bound offset; no concurrent edit snapshot guarantee.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U07Discovery"
                }
              }
            },
            "description": "Filtered public scheduled events with venue or locality coordinates when available"
          },
          "400": {
            "description": "Invalid or unsupported filter/cursor"
          }
        },
        "security": [],
        "summary": "Public event discovery; same collection for list and map"
      }
    },
    "/u09/contacts": {
      "get": {
        "description": "Only requester, currently authorized assigned recipient or owner moderator. Optional validated kind/entity_id pair. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U097ContactList",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "query",
            "name": "entity_id",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09ContactList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/contacts/{id}": {
      "get": {
        "description": "Authorized private thread; chronological messages, 20 per page, audit latest 50. Unauthorized callers receive 404. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U098Contact",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Contact"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/contacts/{id}/messages": {
      "post": {
        "description": "Authorized participant/moderator reply, open thread only; pending routing accepts requester supplements only. At most 200 messages per thread. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U099Contact",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U09MessageInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Contact"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/contacts/{id}/transition": {
      "post": {
        "description": "Explicit audited close/reopen/route transition. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U0910Contact",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U09ContactTransition"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Contact"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/entities/{kind}/{slug}": {
      "get": {
        "description": "Public profile and upcoming/past published public occurrences. Unknown or unpublished target returns 404. No private fields. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U091Profile",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "upcoming_cursor",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "past_cursor",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Profile"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/u09/entities/{kind}/{slug}/contacts": {
      "post": {
        "description": "Persist message and thread. Resolve active owner/admin membership or approved U09 controller. No recipient means pending_routing, not delivery. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U096Contact",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U09MessageInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Contact"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/entities/{kind}/{slug}/faq": {
      "put": {
        "operationId": "u09SaveFaq",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "faq": {
                    "maxLength": 2000,
                    "type": "string"
                  }
                },
                "required": [
                  "faq"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/u09/entities/{kind}/{slug}/follow": {
      "delete": {
        "description": "Idempotent unfollow. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U095Follow",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Follow"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "description": "Idempotent follow. Server session determines user; canonical organizer follows are reused. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U094Follow",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Follow"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/entities/{kind}/{slug}/requests": {
      "post": {
        "description": "Submit claim/correction. Evidence never implies ownership or verification. No external delivery or private upload. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U0911Request",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U09RequestInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Request"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/entities/{kind}/{slug}/reviews": {
      "get": {
        "description": "Public bounded reviews. Demo and unknown provenance are labelled and excluded from both aggregate count and average. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U092ReviewList",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09ReviewList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/u09/me/entities/{kind}/{slug}": {
      "get": {
        "description": "Current follow/capabilities and up to 50 scanned confirmed admissions without an existing review. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U093Me",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Me"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/my-venues": {
      "get": {
        "description": "The signed-in user’s followed venues and next public occurrence.",
        "operationId": "u09MyVenues",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/u09/occurrences/{id}/review": {
      "post": {
        "description": "Confirmed canonical order plus used ticket and matching admission scan required, occurrence started and not cancelled. Unique user/occurrence across entity surfaces. Server derives real/demo provenance; unknown historical provenance excluded from aggregates. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U0915Review",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U09ReviewInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Review"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/requests": {
      "get": {
        "description": "scope=mine by default. scope=moderation requires Accounts::owner. Optional validated kind/entity_id pair. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U0912RequestList",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "enum": [
                "venues",
                "organizers"
              ]
            }
          },
          {
            "in": "query",
            "name": "entity_id",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "scope",
            "schema": {
              "default": "mine",
              "enum": [
                "mine",
                "moderation"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09RequestList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/requests/{id}": {
      "get": {
        "description": "Requester/owner moderator only. Includes latest 50 audit records. Unauthorized callers receive 404. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U0913Request",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Request"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u09/requests/{id}/transition": {
      "post": {
        "description": "State machine and transactional approved effects; no client roles or ownership assertions accepted. Same-origin/CSRF middleware; 30 U09 writes per user per limiter window, plus existing global limits. Errors include invalid_kind/id/slug/cursor/text/reference/proposal/scope/filter, unsupported_field, session_expired, forbidden, not_found, invalid_transition, recipient_unavailable, contact_closed, message_limit, attendance_required, review_exists, rate_limited as applicable.",
        "operationId": "U0914Request",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U09RequestTransition"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U09Request"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/blocks": {
      "get": {
        "description": "Own block list. Blocks apply in both directions to all inbox sends and queued external delivery.",
        "operationId": "u13_get_u13_blocks",
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/blocks/{id}": {
      "delete": {
        "description": "Set/remove own block of user id. Cannot change another user block list.",
        "operationId": "u13_delete_u13_blocks_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 150,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "description": "Set/remove own block of user id. Cannot change another user block list.",
        "operationId": "u13_post_u13_blocks_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 150,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/calendar-feeds/{token}": {
      "get": {
        "description": "Public iCalendar (RFC 5545) feed of the token owner's saved events and confirmed tickets, for calendar-app subscription. The token is the capability; revoked or rotated tokens answer 404.",
        "operationId": "u13_get_u13_calendar_feeds_token",
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "pattern": "^[A-Za-z0-9_-]{43}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "text/calendar feed."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/calendar-subscriptions": {
      "get": {
        "description": "Hash-only calendar lifecycle. GET exposes only id/created_at/revoked_at and feedAvailable=false. POST returns a 256-bit token ONCE and id, never a subscription URL. Raw calendar HTTP integration pending.",
        "operationId": "u13_get_u13_calendar_subscriptions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13Calendars"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "description": "Hash-only calendar lifecycle. GET exposes only id/created_at/revoked_at and feedAvailable=false. POST returns a 256-bit token ONCE and id, never a subscription URL. Raw calendar HTTP integration pending.",
        "operationId": "u13_post_u13_calendar_subscriptions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13CalendarIssued"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/calendar-subscriptions/{id}": {
      "delete": {
        "description": "Revoke own calendar token; subsequent token resolution fails. No token returned.",
        "operationId": "u13_delete_u13_calendar_subscriptions_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 150,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/calendar-subscriptions/{id}/rotate": {
      "post": {
        "description": "Owner-only rotation, invalidates the old token immediately; returns replacement token once, id and feedAvailable=false. Tokens must not be logged or persisted by clients.",
        "operationId": "u13_post_u13_calendar_subscriptions_id_rotate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 150,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13CalendarIssued"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/group-thread": {
      "post": {
        "description": "Create or reuse a plan group thread. Planning::member required; current plan membership governs list/read/reply.",
        "operationId": "u13_post_u13_group_thread",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "plan_id": {
                    "maxLength": 150,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "plan_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13Thread"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/inquiry": {
      "post": {
        "description": "Create or reuse an event inquiry for the authenticated user and current organizer members. Catalog visibility and publication required; either-direction block rejects contact.",
        "operationId": "u13_post_u13_inquiry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_id": {
                    "maxLength": 150,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "event_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13Thread"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/preferences": {
      "get": {
        "description": "Own notification settings; email defaults off, reminders on. Availability reflects installed transport configuration. push is false; pushKey null.",
        "operationId": "u13_get_u13_preferences",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13Preferences"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "description": "Own notification settings; email defaults off, reminders on. Availability reflects installed transport configuration. push is false; pushKey null.",
        "operationId": "u13_put_u13_preferences",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "email": {
                    "type": "boolean"
                  },
                  "reminders": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "email",
                  "reminders"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13Preferences"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/push-subscriptions": {
      "delete": {
        "description": "Push adapter unavailable: POST returns 503 push_unavailable without storing a subscription. DELETE revokes own subscriptions. No browser permission on page load.",
        "operationId": "u13_delete_u13_push_subscriptions",
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "description": "Push adapter unavailable: POST returns 503 push_unavailable without storing a subscription. DELETE revokes own subscriptions. No browser permission on page load.",
        "operationId": "u13_post_u13_push_subscriptions",
        "responses": {
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/reminders": {
      "get": {
        "description": "Own one-hour-before reminder per occurrence; current Catalog visibility and scheduled published future event required on creation and rechecked on dispatch. Lists filter lost access.",
        "operationId": "u13_get_u13_reminders",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U13Reminders"
                }
              }
            },
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "description": "Own one-hour-before reminder per occurrence; current Catalog visibility and scheduled published future event required on creation and rechecked on dispatch. Lists filter lost access.",
        "operationId": "u13_post_u13_reminders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "occurrence_id": {
                    "maxLength": 150,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "occurrence_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/reminders/{id}": {
      "delete": {
        "description": "Cancel own reminder. Idempotent; cannot cancel another user reminder.",
        "operationId": "u13_delete_u13_reminders_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 150,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u13/reports": {
      "post": {
        "description": "Persist a bounded reason referencing a real message visible to the reporter. Evidence remains the immutable message; no report-list/moderation API.",
        "operationId": "u13_post_u13_reports",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "message_id": {
                    "maxLength": 150,
                    "minLength": 1,
                    "type": "string"
                  },
                  "reason": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "message_id",
                  "reason"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful JSON response; bearer lifecycle responses use existing no-store and no-referrer HTTP protections."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/u14/ai/active": {
      "get": {
        "description": "Queued or running creation jobs for the status list; newest first.",
        "operationId": "u14Active",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "jobs": {
                      "items": {
                        "$ref": "#/components/schemas/U14ActiveJob"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "jobs"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        }
      }
    },
    "/u14/ai/jobs": {
      "post": {
        "description": "Durable acknowledgement; no inference, fetch, transcription or OCR. Empty sources allow manual editing. 24 KB total text; at most four sources. Media references require U15 ownership; extraction currently unavailable.",
        "operationId": "u14Enqueue",
        "parameters": [
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U14Request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U14Job"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/jobs/{id}": {
      "get": {
        "description": "Owner-only progress and result. Real states queued -> working -> needs_review or retry/failed. Three attempts, bounded backoff and fenced 90-second leases. No percentage estimates. Sources remain untrusted data.",
        "operationId": "u14Read",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U14Job"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/jobs/{id}/cancel": {
      "post": {
        "description": "Explicit human cancel of a queued or running job with the same sealed input. Finished jobs reject.",
        "operationId": "u14Cancel",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "confirm": {
                    "const": true
                  }
                },
                "required": [
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U14Job"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/jobs/{id}/draft": {
      "patch": {
        "description": "Owner-only event draft editing, then a separate review action. Editing increments draft_version, fences workers and invalidates review. Review validates required fields and an authorized existing venue.",
        "operationId": "u14Edit",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U14Edit"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U14Job"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/jobs/{id}/publish": {
      "post": {
        "description": "Explicit human confirmation of current reviewed draft required. Revalidates permissions and fields. Job-row lock and unique event_id bind one atomic publication to the owner/job regardless of retry keys; retries return the same event ID. Workers never publish.",
        "operationId": "u14Publish",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U14Publish"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/jobs/{id}/retry": {
      "post": {
        "description": "Explicit human requeue of a failed unpublished job with fresh bounded attempts over the same sealed input. Confirmed jobs, published jobs and non-failed states reject.",
        "operationId": "u14Retry",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "confirm": {
                    "const": true
                  }
                },
                "required": [
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U14Job"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/media-intents": {
      "post": {
        "description": "Authenticated adapter reports unavailable with media_extraction_unavailable. U15 owns /media/intents and B2 uploads. Private PDFs/OCR have no supported upstream extraction contract; no upload or media identity is fabricated.",
        "operationId": "u14MediaPending",
        "parameters": [
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        },
        "security": [
          {
            "cookie": []
          }
        ]
      }
    },
    "/u14/ai/rewrite": {
      "post": {
        "description": "Plain-language rewrite suggestion of organizer-entered event details through the shared in-apps inference category. Unavailable when the category is not live.",
        "operationId": "u14Rewrite",
        "parameters": [
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "text": {
                    "maxLength": 6000,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "suggestion": {
                      "maxLength": 6000,
                      "type": "string"
                    }
                  },
                  "required": [
                    "suggestion"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Invalid request/confirmation"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "CSRF, origin or permission denied"
          },
          "404": {
            "description": "Owned resource not found"
          },
          "409": {
            "description": "Stale draft or review required"
          },
          "422": {
            "description": "Invalid/missing fields"
          },
          "503": {
            "description": "Unavailable"
          }
        }
      }
    },
    "/u14/events/{id}/cover-alt": {
      "post": {
        "description": "Save approved cover alt text.",
        "operationId": "u14CoverAlt",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "type": "boolean"
                  },
                  "text": {
                    "maxLength": 500,
                    "type": "string"
                  }
                },
                "required": [
                  "text",
                  "confirm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/u14/events/{id}/suggestions": {
      "post": {
        "description": "Queue a bounded organizer suggestion for an existing event.",
        "operationId": "u14EventSuggestion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "kind": {
                    "enum": [
                      "cover-alt",
                      "description-rewrite"
                    ],
                    "type": "string"
                  },
                  "language": {
                    "enum": [
                      "pt-PT",
                      "en",
                      "es"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "language"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/u14/suggestions/{id}": {
      "get": {
        "description": "Get an owned suggestion and its editable result.",
        "operationId": "u14Suggestion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 190,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Session required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/u16/admission/holds": {
      "post": {
        "description": "Reserve 1–20 units for 10 minutes using database UTC. Live holds and issued units share type quotas and occurrence capacity. Exact actor/key/payload retries return the established hold.",
        "operationId": "u16CreateHold",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "pattern": "^[A-Za-z0-9_-]{8,100}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "occurrence_id": {
                    "type": "string"
                  },
                  "quantity": {
                    "maximum": 20,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "ticket_type_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "occurrence_id",
                  "ticket_type_id",
                  "quantity"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Hold"
                }
              }
            },
            "description": "Authoritative admission state; sandbox payments have no real money movement."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Session required. Browser POST requests require existing CSRF protection."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      }
    },
    "/u16/admission/holds/{id}": {
      "get": {
        "description": "Owned hold; reclaims expiry and refreshes uncommitted price quotes. Countdown is informational.",
        "operationId": "u16ReadHold",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Hold"
                }
              }
            },
            "description": "Authoritative admission state; sandbox payments have no real money movement."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Session required. Browser POST requests require existing CSRF protection."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      }
    },
    "/u16/admission/holds/{id}/checkout": {
      "post": {
        "description": "Confirm the displayed authoritative quote. Hold identity scopes idempotency. Sandbox (dev/test): paid confirmations use the signed sandbox state machine. Stripe: creates or reuses exactly one PaymentIntent per hold for the server-side amount (Idempotency-Key op-hold-<hold id>), extends the hold once by 15 minutes for payment and returns payment {id,state,provider,intent_id,client_secret,publishable_key}; tickets are issued only after /confirm or the webhook sees a succeeded PaymentIntent. Free admissions need no provider. Delayed payments cannot issue expired stock: they are refunded.",
        "operationId": "u16Checkout",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "quote": {
                    "type": "string"
                  }
                },
                "required": [
                  "quote"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Hold"
                }
              }
            },
            "description": "Authoritative admission state; sandbox payments have no real money movement."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Session required. Browser POST requests require existing CSRF protection."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      }
    },
    "/u16/admission/holds/{id}/confirm": {
      "post": {
        "description": "Owner only. Retrieves the hold's Stripe PaymentIntent server-side and settles the hold (issues tickets once) only when Stripe reports succeeded. Client-reported results are never trusted. Returns the authoritative hold; payment.state is pending, requires_action, processing, paid, failed (retryable while the hold is held), refund_pending or refunded. 409 payment_not_started before checkout; 503 when Stripe is not the configured provider.",
        "operationId": "u16ConfirmPayment",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Hold"
                }
              }
            },
            "description": "Authoritative admission state; sandbox payments have no real money movement."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Session required. Browser POST requests require existing CSRF protection."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      }
    },
    "/u16/events/{id}/admission": {
      "get": {
        "description": "Type inventory per event occurrence (event id or slug). Works without a session for published public/unlisted events (private or draft: 404) with regular, non-founder pricing; signed-in callers get their own founder pricing. Prices in integer minor units. payment_provider and checkout_available report whether paid checkout can take money here. Holds and checkout always require a session.",
        "operationId": "u16Admission",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 190,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Options"
                }
              }
            },
            "description": "Available occurrence/type quotes and real sandbox gate."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Not returned for this read: guests are allowed."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      }
    },
    "/u16/occurrences/{occurrence}/waitlist": {
      "delete": {
        "operationId": "u16LeaveWaitlist",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "position": {
                      "minimum": 1,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "state",
                    "position"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Left the waiting queue"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Occurrence or queue entry not found"
          },
          "409": {
            "description": "Event or queue state changed"
          }
        }
      },
      "get": {
        "operationId": "u16MyWaitlist",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "position": {
                      "minimum": 1,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "state",
                    "position"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Own queue position or reservation"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Occurrence or queue entry not found"
          },
          "409": {
            "description": "Event or queue state changed"
          }
        }
      },
      "post": {
        "operationId": "u16JoinWaitlist",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "idempotency_key": {
                      "type": "string"
                    },
                    "occurrence_id": {
                      "type": "string"
                    },
                    "outcome": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "occurrence_id",
                    "outcome",
                    "idempotency_key"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Free reservation or waitlisted entry"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Occurrence or queue entry not found"
          },
          "409": {
            "description": "Event or queue state changed"
          }
        }
      }
    },
    "/u16/occurrences/{occurrence}/waitlist/call": {
      "post": {
        "operationId": "u16CallWaitlist",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "promoted": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "promoted"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Owner/admin promotes waiting free entries while capacity allows"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Occurrence or queue entry not found"
          },
          "409": {
            "description": "Event or queue state changed"
          }
        }
      }
    },
    "/u16/occurrences/{occurrence}/waitlist/entries": {
      "get": {
        "operationId": "u16ListWaitlist",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "display_name": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "display_name"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Owner/admin queue in promotion order"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Occurrence or queue entry not found"
          },
          "409": {
            "description": "Event or queue state changed"
          }
        }
      }
    },
    "/u16/occurrences/{occurrence}/waitlist/entries/{id}": {
      "delete": {
        "operationId": "u16RemoveWaitlistEntry",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "position": {
                      "minimum": 1,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "state",
                    "position"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Owner/admin removes a waiting entry"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Occurrence or queue entry not found"
          },
          "409": {
            "description": "Event or queue state changed"
          }
        }
      }
    },
    "/u16/tickets/{id}/refund": {
      "get": {
        "description": "Owner-only full-reservation sandbox refund quote with refundable flag. No partial refund; used tickets disallow refund.",
        "operationId": "u16RefundInfo",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Hold"
                }
              }
            },
            "description": "Authoritative admission state; sandbox payments have no real money movement."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Session required. Browser POST requests require existing CSRF protection."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      },
      "post": {
        "description": "Refund all unused tickets in this reservation in the development sandbox, cancel credentials and release quantity exactly once. Hold/payment terminal state scopes idempotency. No waitlist promotion is performed by refund.",
        "operationId": "u16Refund",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U16Hold"
                }
              }
            },
            "description": "Authoritative admission state; sandbox payments have no real money movement."
          },
          "400": {
            "description": "Invalid quantity, currency, key or quote."
          },
          "401": {
            "description": "Session required. Browser POST requests require existing CSRF protection."
          },
          "404": {
            "description": "Not found or owned by another user."
          },
          "409": {
            "description": "Sold out, expired hold, changed quote (review refreshed hold), mismatched idempotency payload, used ticket or invalid transition."
          },
          "503": {
            "description": "Paid checkout/refund unavailable outside configured dev/test sandbox. Production rejects paid operations."
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}": {
      "get": {
        "description": "Authorized preparation using the existing session. Returns actual occurrence context; no offline authentication or offline first launch is promised.",
        "operationId": "u18PrepareDoor",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U18DoorContext"
                }
              }
            },
            "description": "Authorized context"
          },
          "400": {
            "description": "Malformed scan, occurrence or batch."
          },
          "401": {
            "description": "Existing authenticated session required."
          },
          "403": {
            "description": "Current owner/admin/door membership required. Mutations require the existing same-origin CSRF token."
          },
          "404": {
            "description": "Occurrence not found."
          },
          "409": {
            "description": "scan_id_conflict: same operator and scan ID reused with a different occurrence or exact payload. No admission change."
          },
          "429": {
            "description": "Retry later, preserving scan IDs."
          },
          "503": {
            "description": "Unconfirmed: retain pending payload and retry the same IDs."
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}/attendance": {
      "get": {
        "operationId": "u18Attendance",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "available": {
                      "description": "False until the occurrence ends, or if cancelled.",
                      "type": "boolean"
                    },
                    "items": {
                      "items": {
                        "properties": {
                          "id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "label": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "no_show": {
                            "minimum": 0,
                            "type": "integer"
                          },
                          "present": {
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "label",
                          "present",
                          "no_show"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "available",
                    "items"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Post-event attendance for confirmed tickets by ticket type"
          },
          "400": {
            "description": "Invalid occurrence"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Owner or administrator required"
          },
          "404": {
            "description": "Occurrence not found"
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}/outcomes": {
      "get": {
        "operationId": "u18AdmissionOutcomes",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}/scan-export": {
      "get": {
        "operationId": "u18ScanExport",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Check-in outcomes (UTC timestamp and verdict only)"
          },
          "400": {
            "description": "Invalid occurrence"
          },
          "401": {
            "description": "Sign-in required"
          },
          "403": {
            "description": "Owner or administrator required"
          },
          "404": {
            "description": "Occurrence not found"
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}/scan-stats": {
      "get": {
        "description": "Per-occurrence scan verdict counts over a short trailing window (default 30 minutes, 5-180) for door leads spotting a rejection spike. Counts only; no credential, payload, ticket, actor or PII is returned.",
        "operationId": "u18ScanStats",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "window",
            "required": false,
            "schema": {
              "default": 30,
              "maximum": 180,
              "minimum": 5,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U18ScanStats"
                }
              }
            },
            "description": "Verdict counts for the window"
          },
          "400": {
            "description": "Malformed occurrence or window."
          },
          "401": {
            "description": "Existing authenticated session required."
          },
          "403": {
            "description": "Current owner/admin/door membership required."
          },
          "404": {
            "description": "Occurrence not found."
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}/scans": {
      "post": {
        "description": "Existing authenticated session, CSRF and current owner/admin/door membership required. QR is the canonical opaque base64url token authenticated against its stored SHA-256 hash, not a separately signed format. Server validates occurrence, ticket/order and cancellation state. Admission and per-operator durable receipt commit atomically. Exact ID/payload replay returns the original result and authoritative UTC admission time. Offline observations reserve nothing; order across devices is not guaranteed. Sync has 1-25 independent items; errors or lost responses remain unresolved and retry with the same IDs. ID conflicts are per-item errors in a 200 sync response; single scans return 409. No attendee data is returned.",
        "operationId": "u18Scan",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U18ScanInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U18ScanResult"
                }
              }
            },
            "description": "Recorded server outcomes"
          },
          "400": {
            "description": "Malformed scan, occurrence or batch."
          },
          "401": {
            "description": "Existing authenticated session required."
          },
          "403": {
            "description": "Current owner/admin/door membership required. Mutations require the existing same-origin CSRF token."
          },
          "404": {
            "description": "Occurrence not found."
          },
          "409": {
            "description": "scan_id_conflict: same operator and scan ID reused with a different occurrence or exact payload. No admission change."
          },
          "429": {
            "description": "Retry later, preserving scan IDs."
          },
          "503": {
            "description": "Unconfirmed: retain pending payload and retry the same IDs."
          }
        }
      }
    },
    "/u18/door/occurrences/{occurrence}/sync": {
      "post": {
        "description": "Existing authenticated session, CSRF and current owner/admin/door membership required. QR is the canonical opaque base64url token authenticated against its stored SHA-256 hash, not a separately signed format. Server validates occurrence, ticket/order and cancellation state. Admission and per-operator durable receipt commit atomically. Exact ID/payload replay returns the original result and authoritative UTC admission time. Offline observations reserve nothing; order across devices is not guaranteed. Sync has 1-25 independent items; errors or lost responses remain unresolved and retry with the same IDs. ID conflicts are per-item errors in a 200 sync response; single scans return 409. No attendee data is returned.",
        "operationId": "u18Sync",
        "parameters": [
          {
            "in": "path",
            "name": "occurrence",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-CSRF-Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U18SyncInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U18SyncResult"
                }
              }
            },
            "description": "Recorded server outcomes"
          },
          "400": {
            "description": "Malformed scan, occurrence or batch."
          },
          "401": {
            "description": "Existing authenticated session required."
          },
          "403": {
            "description": "Current owner/admin/door membership required. Mutations require the existing same-origin CSRF token."
          },
          "404": {
            "description": "Occurrence not found."
          },
          "409": {
            "description": "scan_id_conflict: same operator and scan ID reused with a different occurrence or exact payload. No admission change."
          },
          "429": {
            "description": "Retry later, preserving scan IDs."
          },
          "503": {
            "description": "Unconfirmed: retain pending payload and retry the same IDs."
          }
        }
      }
    },
    "/u19/admin/appeals": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u196Get",
        "parameters": [
          {
            "in": "query",
            "name": "after",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Page"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "appeals"
      },
      "post": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u197Post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U19AppealInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "appeals"
      }
    },
    "/u19/admin/appeals/{id}/decisions": {
      "post": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u198Post",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U19AppealDecision"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "appeals/{id}/decisions"
      }
    },
    "/u19/admin/availability": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u199Get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "availability"
      }
    },
    "/u19/admin/demo": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u1910Get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Preview"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "demo"
      },
      "patch": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u1911Patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U19Preview"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Preview"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "demo"
      }
    },
    "/u19/admin/errors": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u1912Get",
        "parameters": [
          {
            "in": "query",
            "name": "after",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "state",
            "schema": {
              "default": "open",
              "enum": [
                "open",
                "resolved",
                "all"
              ]
            }
          },
          {
            "in": "query",
            "name": "demo",
            "schema": {
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Page"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "errors"
      }
    },
    "/u19/admin/errors/{id}": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u1913Get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Error"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "errors/{id}"
      }
    },
    "/u19/admin/errors/{id}/state": {
      "patch": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u1914Patch",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U19StateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Error"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "errors/{id}/state"
      }
    },
    "/u19/admin/imports/capability": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u192Get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Capability"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "imports/capability"
      }
    },
    "/u19/admin/overview": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u190Get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "overview"
      }
    },
    "/u19/admin/queues": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u191Get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "queues"
      }
    },
    "/u19/admin/reports": {
      "get": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u193Get",
        "parameters": [
          {
            "in": "query",
            "name": "after",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Page"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "reports"
      },
      "post": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u194Post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U19ReportInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "reports"
      }
    },
    "/u19/admin/reports/{id}/decisions": {
      "post": {
        "description": "Requires an active account with a currently verified configured owner identity (OWNER_SUBJECTS). Mutations require the existing origin and CSRF checks. Decisions record an audit; enforcement remains pending. Missing review contract is pending U10; actual reviews use U10 operations.",
        "operationId": "u195Post",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/U19ReportDecision"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/U19Observation"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Invalid input or transition"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Forbidden or invalid CSRF/origin"
          },
          "404": {
            "description": "Not found"
          },
          "409": {
            "description": "Stale revision or invalid transition"
          },
          "503": {
            "description": "Unavailable dependency"
          }
        },
        "summary": "reports/{id}/decisions"
      }
    },
    "/venues/{id}": {
      "get": {
        "description": "Existing 91-entities.php owner; public slug lookup, captures remain URL-encoded.",
        "operationId": "get_venues_id",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "events": {
                      "items": {
                        "properties": {
                          "id": {
                            "format": "uuid",
                            "maxLength": 36,
                            "type": "string"
                          },
                          "slug": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "status": {
                            "maxLength": 65536,
                            "type": "string"
                          },
                          "title": {
                            "maxLength": 65536,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "title",
                          "status"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "id": {
                      "format": "uuid",
                      "maxLength": 36,
                      "type": "string"
                    },
                    "name": {
                      "maxLength": 65536,
                      "type": "string"
                    },
                    "slug": {
                      "maxLength": 65536,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "name",
                    "events"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    },
    "/venues/{id}/image": {
      "get": {
        "description": "Licensed venue photo (WebP) from Wikimedia Commons, served same-origin. Public and cacheable for a week (ETag from sha256). The credit is in venue_image on event detail and must be shown with the photo.",
        "operationId": "getVenueImage",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Image bytes"
          },
          "304": {
            "description": "Not modified"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    }
  },
  "servers": [
    {
      "url": "/api/v1"
    }
  ]
}
