{
  "openapi": "3.1.1",
  "info": {
    "title": "AvailKit Rust API",
    "version": "1.0.0",
    "description": "Independent API-first rewrite. Secret bearer keys select one exact workspace/environment. Human APIs use same-origin browser/session cookies and CSRF, never bearer substitution. Bounded state, original2sHTTP deadline; failures/lost mutation replies can be unknown, never automatically resend. Booking keys retain24h receipts; other continuation rules are operation-specific. See API quickstart, privacy and retention policy."
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/v1/workspaces/{workspaceId}/resources": {
      "post": {
        "operationId": "createResource",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceInput"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listResources",
        "description": "Requires READ and current authority. Unknown or duplicate query parameters are rejected. Ascending ID, bounded limit+1 SQL; no cross-page snapshot.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Opaque ID returned in nextAfter from this collection and environment. Missing or foreign cursor returns 404; malformed cursor returns 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "description": "Literal name substring, case-insensitive according to database collation; percent and underscore are literal characters. ID pagination is unchanged. Includes archived records."
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcePage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/resources/{resourceId}/hours": {
      "put": {
        "operationId": "setHours",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hours"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hours"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getHours",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hours"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "description": "Requires READ and current authority. Current complete persisted hours, empty windows when not yet configured. No query parameters accepted."
      }
    },
    "/v1/workspaces/{workspaceId}/offerings": {
      "post": {
        "operationId": "createOffering",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Offering"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferingInput"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listOfferings",
        "description": "Requires READ and current authority. Unknown or duplicate query parameters are rejected. Ascending ID, bounded limit+1 SQL; no cross-page snapshot.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Opaque ID returned in nextAfter from this collection and environment. Missing or foreign cursor returns 404; malformed cursor returns 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "description": "Literal name substring, case-insensitive according to database collation; percent and underscore are literal characters. ID pagination is unchanged. Includes archived records."
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferingPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/availability": {
      "get": {
        "operationId": "availability",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offeringId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Availability"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/bookings": {
      "post": {
        "operationId": "book",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingInput"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listBookings",
        "description": "Requires READ and current authority. Unknown or duplicate query parameters are rejected. Ascending ID, bounded limit+1 SQL; no cross-page snapshot.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Opaque ID returned in nextAfter from this collection and environment. Missing or foreign cursor returns 404; malformed cursor returns 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/bookings/{bookingId}/cancel": {
      "post": {
        "operationId": "cancel",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/events": {
      "get": {
        "operationId": "events",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Events"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "event_cursor_expired: nonzero cursor predates retained prefix; start explicitly at0 to accept the current suffix.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "description": "Retained ID-sequenced events. after=0 starts current retained suffix. Nonzero after below retentionFloor returns409 event_cursor_expired; never silently skips lost history. Sequence IDs are never reused after maintenance."
      }
    },
    "/v1/workspaces/{workspaceId}/resources/{resourceId}": {
      "get": {
        "operationId": "getResource",
        "description": "Requires READ and current authority. Unknown or duplicate query parameters are rejected. No query parameters accepted.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateResource",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resource"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceInput"
              }
            }
          }
        },
        "description": "CATALOG. Full replacement of mutable fields. Name changes preserve bookings; resource timezone/capacity or offering resource/duration changes conflict while future or ongoing confirmed bookings depend on the object. Archived items cannot be edited. No implicit cancellation or automatic retry after an unknown response."
      }
    },
    "/v1/workspaces/{workspaceId}/offerings/{offeringId}": {
      "get": {
        "operationId": "getOffering",
        "description": "Requires READ and current authority. Unknown or duplicate query parameters are rejected. No query parameters accepted.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offeringId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Offering"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateOffering",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offeringId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Offering"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferingInput"
              }
            }
          }
        },
        "description": "CATALOG. Full replacement of mutable fields. Name changes preserve bookings; resource timezone/capacity or offering resource/duration changes conflict while future or ongoing confirmed bookings depend on the object. Archived items cannot be edited. No implicit cancellation or automatic retry after an unknown response."
      }
    },
    "/v1/workspaces/{workspaceId}/bookings/{bookingId}": {
      "get": {
        "operationId": "getBooking",
        "description": "Requires READ and current authority. Unknown or duplicate query parameters are rejected. No query parameters accepted.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/webhooks": {
      "post": {
        "operationId": "createWebhook",
        "x-capability": "MANAGE",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreated"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object or cursor not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Subscription or retained delivery quota reached; transaction rolled back",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookCreate"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listWebhooks",
        "x-capability": "MANAGE",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Opaque ID returned in nextAfter from this collection and environment. Missing or foreign cursor returns 404; malformed cursor returns 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object or cursor not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Subscription or retained delivery quota reached; transaction rolled back",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/webhooks/{subscriptionId}/disable": {
      "post": {
        "operationId": "disableWebhook",
        "x-capability": "MANAGE",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "subscriptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object or cursor not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Subscription or retained delivery quota reached; transaction rolled back",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookDisable"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/webhooks/{subscriptionId}/deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "x-capability": "READ",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "subscriptionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Opaque ID returned in nextAfter from this collection and environment. Missing or foreign cursor returns 404; malformed cursor returns 400."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object or cursor not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Subscription or retained delivery quota reached; transaction rolled back",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/usage": {
      "get": {
        "operationId": "getUsage",
        "x-capability": "READ",
        "description": "Secret READ credential selects its environment; current workspace authority required. No body or query parameters. UTC calendar month; retained counters do not reset with the month. See m6-usage.md.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Coherent advisory effective usage; no quota reservation or cleanup.",
            "headers": {
              "Cache-Control": {
                "required": true,
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/bookings/{bookingId}/reschedule": {
      "post": {
        "operationId": "rescheduleBooking",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Committed response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "version_conflict (stale, cancelled or started), capacity_conflict, idempotency_conflict or quota_exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RescheduleInput"
              }
            }
          }
        },
        "x-capability": "BOOK"
      }
    },
    "/v1/workspaces/{workspaceId}/resources/{resourceId}/archive": {
      "post": {
        "operationId": "archiveResource",
        "description": "CATALOG. Idempotent archive retains history and quota, stops new booking/availability/reschedule, preserves exact committed replay and cancellation. Resource archive also archives its offerings. No unarchive operation.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resource"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/offerings/{offeringId}/archive": {
      "post": {
        "operationId": "archiveOffering",
        "description": "CATALOG. Idempotent archive retains history and quota, stops new booking/availability/reschedule, preserves exact committed replay and cancellation. Resource archive also archives its offerings. No unarchive operation.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offeringId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current persisted state, authorized secret READ credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Offering"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/maintenance/history": {
      "post": {
        "operationId": "pruneHistory",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid input or exceeded query bounds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Scope denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Capacity, idempotency or quota conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; retry same intent/key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed bounded cleanup result. hasMore concerns currently eligible items only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryPruneResult"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HistoryPruneInput"
              }
            }
          }
        },
        "description": "Secret MANAGE+PRIVACY. Explicit bounded cleanup of data at least30days old, from one trusted clock after authority/environment lock. Deliveries: terminal, no lease, no recent attempt; events: contiguous old prefix without deliveries; bookings: old end, no retained events or live receipt. Run deliveries/events/bookings in that order, at most128selected items per request. No monthly refund, automatic retry or physical erasure promise. See api-history-retention.md."
      }
    },
    "/v1/workspaces/{workspaceId}/customers": {
      "post": {
        "operationId": "createCustomer",
        "description": "Secret MANAGE, exact current workspace/environment; no-store. Retained limit1000 includes archived/erased rows; erasure does not refund it. Search matches current names only. No contact values enter booking responses/events. See api-privacy-policy.md.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "201": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInput"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listCustomers",
        "description": "Secret MANAGE, exact current workspace/environment; no-store. Retained limit1000 includes archived/erased rows; erasure does not refund it. Search matches current names only. No contact values enter booking responses/events. See api-privacy-policy.md. ID-ascending pages; cursor must exist in this collection/environment. No snapshot across pages.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "description": "Nonblank/control-free literal substring, case-insensitive according to database collation; % and _ are literal."
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPage"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/customers/{customerId}": {
      "get": {
        "operationId": "getCustomer",
        "description": "Secret MANAGE, exact current workspace/environment; no-store. Retained limit1000 includes archived/erased rows; erasure does not refund it. Search matches current names only. No contact values enter booking responses/events. See api-privacy-policy.md.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "replaceCustomer",
        "description": "Secret MANAGE, exact current workspace/environment; no-store. Retained limit1000 includes archived/erased rows; erasure does not refund it. Search matches current names only. No contact values enter booking responses/events. See api-privacy-policy.md. Full replacement; omitted optional fields clear. Archived/erased contacts refuse changes.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInput"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/customers/{customerId}/archive": {
      "post": {
        "operationId": "archiveCustomer",
        "description": "Secret MANAGE, exact current workspace/environment; no-store. Retained limit1000 includes archived/erased rows; erasure does not refund it. Search matches current names only. No contact values enter booking responses/events. See api-privacy-policy.md. Closed empty body. Archive retains contact/history and blocks updates/new links; it is not erasure.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/customers/{customerId}/erase": {
      "post": {
        "operationId": "eraseCustomer",
        "description": "Secret MANAGE, exact current workspace/environment; no-store. Retained limit1000 includes archived/erased rows; erasure does not refund it. Search matches current names only. No contact values enter booking responses/events. See api-privacy-policy.md. Additional PRIVACY. Durable independent erasure intent; irreversible tombstone, old restores apply current suppression before readiness. Repeated current erasure is inert.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerErased"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/maintenance/expired-replays": {
      "post": {
        "operationId": "pruneExpiredReplays",
        "description": "Secret PRIVACY, exact current authority. Removes at most128expired receipts using one trusted clock after environment lock; does not touch live receipts or refund creates. No automatic resend after an unknown result.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown input or exceeded bound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Credential absent/invalid/revoked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current scope/capability denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign object/cursor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "State/usage conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable, including unknown mutation effect; never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store committed result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaintenanceResult"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaintenanceInput"
              }
            }
          }
        }
      }
    },
    "/v1/human/browser": {
      "get": {
        "operationId": "human_browser",
        "description": "No authority; initialize or retain opaque browser binding",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanBrowserProfile"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/v1/human/session": {
      "get": {
        "operationId": "human_session",
        "description": "Current opaque session bootstrap with CSRF, recent_until, account_id and optional owned scope",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSessionState"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      }
    },
    "/v1/human/credentials": {
      "get": {
        "operationId": "human_credentials",
        "description": "Current session; public credential digest IDs only",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanCredentialList"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      }
    },
    "/v1/human/keys": {
      "get": {
        "operationId": "human_keys",
        "description": "Current owner; own bounded public key metadata only",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanKeyMetadataList"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      },
      "post": {
        "operationId": "human_issue_key",
        "description": "Current owner + CSRF + recent UV; Idempotency-Key required. Secretcap0..63; publishable READ|BOOK ceiling3. Replaces journals old revocation before issuing. First response includes id/secret/kind/capabilities/reveal; exact retry409 secret_already_revealed, changed409 idempotency_mismatch.",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128
            }
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanIssueKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanIssuedKey"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      }
    },
    "/v1/human/enroll/start": {
      "post": {
        "operationId": "human_enroll_start",
        "description": "Same-origin browser; generic email proof and high-level registration options",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanRegistrationStart"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmail"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/enroll/finish": {
      "post": {
        "operationId": "human_enroll_finish",
        "description": "Same browser email code plus verified UV registration; new account only",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSessionIssued"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanFinish"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/login/start": {
      "post": {
        "operationId": "human_login_start",
        "description": "Same-origin browser; generic one-use email credential-selection proof",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanEmailSelection"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmail"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/login/prove": {
      "post": {
        "operationId": "human_login_prove",
        "description": "Same browser proof selects passkeys; never logs in",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanAuthenticationStart"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmailProof"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/login/finish": {
      "post": {
        "operationId": "human_login_finish",
        "description": "Only verified UV assertion issues/rotates session",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSessionIssued"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanFinish"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/add/start": {
      "post": {
        "operationId": "human_add_start",
        "description": "Full session + CSRF + recent UV",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanRegistrationStart"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/add/finish": {
      "post": {
        "operationId": "human_add_finish",
        "description": "Same session, purpose, browser and epoch; verified UV registration",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanPasskeyAdded"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanFinish"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/reauth/start": {
      "post": {
        "operationId": "human_reauth_start",
        "description": "Full session + CSRF; new UV challenge",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanAuthenticationStart"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/reauth/finish": {
      "post": {
        "operationId": "human_reauth_finish",
        "description": "Same session/purpose/browser; verified UV rotates session/CSRF",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSessionIssued"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanFinish"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/credentials/remove": {
      "post": {
        "operationId": "human_credentials_remove",
        "description": "Full session + CSRF + recent UV; retain authenticated replacement",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanPasskeyRemoved"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanRemoveCredential"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/recovery/codes": {
      "post": {
        "operationId": "human_recovery_codes",
        "description": "Full session + CSRF + recent UV; ten codes revealed once, replace old set",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanRecoveryCodes"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/recovery/start": {
      "post": {
        "operationId": "human_recovery_start",
        "description": "Currently unavailable in the supported profile; browser capabilities report recovery_available=false. Required recovery completion remains unaccepted. No runtime opt-in; implementation is retained for a later supported review. Same-origin browser; one-use code consumed before restricted registration",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable: recovery is disabled pending required acceptance; do not retry automatically.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanRecovery"
              }
            }
          }
        },
        "x-availability": "disabled_pending_required_acceptance",
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/recovery/finish": {
      "post": {
        "operationId": "human_recovery_finish",
        "description": "Currently unavailable in the supported profile; browser capabilities report recovery_available=false. Required recovery completion remains unaccepted. No runtime opt-in; implementation is retained for a later supported review. Same browser/purpose/epoch; verified new passkey fences all prior authority",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable: recovery is disabled pending required acceptance; do not retry automatically.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanFinish"
              }
            }
          }
        },
        "x-availability": "disabled_pending_required_acceptance",
        "security": [
          {
            "browserCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          }
        ]
      }
    },
    "/v1/human/logout": {
      "post": {
        "operationId": "human_logout",
        "description": "Full session + CSRF; durable current-session revocation",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanLoggedOut"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/logout-all": {
      "post": {
        "operationId": "human_logout-all",
        "description": "Full session + CSRF; durable session epoch and ceremony revocation",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanLoggedOut"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/bootstrap": {
      "post": {
        "operationId": "human_bootstrap",
        "description": "Full session + CSRF + recent UV; NEW own organization/workspace/test+live only",
        "x-implemented-subset": "HR01, independent HR02 pending",
        "responses": {
          "200": {
            "description": "No-store real committed result or public library options; one-time material never replayed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanWorkspaceBootstrapped"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Generic credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "CSRF, recent-auth or capability denial",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "State or one-time issuance conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "Strict wire validation failure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "Bounded identity admission",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable/current-authority refusal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/keys/revoke": {
      "post": {
        "operationId": "human_keys_revoke",
        "description": "Current owner of the exact organization/workspace/environment, browser session, CSRF and recent UV. Strict scoped target; deny foreign scope before target lookup. Revoke any API credential in the owned environment without replacement or secret reveal. Duplicate authorized target is inert. No Idempotency-Key is required: scope plus key_id identifies the monotonic operation. After durable intent, any failure or lost reply is an unknown outcome; never automatically resend. Active members may revoke only their own scoped keys; owner may revoke any scoped key.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanRevokeKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current scoped target revoked; exact authorized duplicates return the same public result with no new journal/event/quota effect.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanRevokedKey"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid: absent/expired/revoked/browser-mismatched session",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid, recent_auth_required, or capability_denied for nonowned scope, before target disclosure",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "not_found: target absent in the authorized environment, including a key belonging only to another environment",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed: closed JSON body, invalid IDs/environment, query or Authorization substitution",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable or outer overload: storage/current authority unavailable, including uncertain post-intent result; no rollback/no-effect promise",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/members/list": {
      "post": {
        "operationId": "human_members_list",
        "description": "Same-origin browser session + CSRF. Current owner of exact environment; recent UV required for changes. No email disclosure. Removed rows retained. See api-membership-contract.md for revision, paging, retention and restore semantics.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanMemberList"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current scoped membership state; metadata only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanMembershipPage"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid, recent_auth_required or capability_denied; scope checked before target or receipt",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "not_found within authorized scope",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "membership_exists, membership_changed, membership_superseded or idempotency_mismatch",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed, including non-subset narrowing",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including unknown outcome after durable intent; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/members/grant": {
      "post": {
        "operationId": "human_members_grant",
        "description": "Same-origin browser session + CSRF. Current owner of exact environment; recent UV required for changes. No email disclosure. Removed rows retained. See api-membership-contract.md for revision, paging, retention and restore semantics.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanMemberGrant"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Current scoped membership state; metadata only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanMembership"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid, recent_auth_required or capability_denied; scope checked before target or receipt",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "not_found within authorized scope",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "membership_exists, membership_changed, membership_superseded or idempotency_mismatch",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed, including non-subset narrowing",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including unknown outcome after durable intent; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            },
            "description": "Account-scoped receipt; exact replay requires current authority and resulting revision. Changed body conflicts; superseded grant/narrow never restores access."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ],
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      }
    },
    "/v1/human/members/narrow": {
      "post": {
        "operationId": "human_members_narrow",
        "description": "Same-origin browser session + CSRF. Current owner of exact environment; recent UV required for changes. No email disclosure. Removed rows retained. See api-membership-contract.md for revision, paging, retention and restore semantics.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanMemberNarrow"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current scoped membership state; metadata only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanMembership"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid, recent_auth_required or capability_denied; scope checked before target or receipt",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "not_found within authorized scope",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "membership_exists, membership_changed, membership_superseded or idempotency_mismatch",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed, including non-subset narrowing",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including unknown outcome after durable intent; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            },
            "description": "Account-scoped receipt; exact replay requires current authority and resulting revision. Changed body conflicts; superseded grant/narrow never restores access."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ],
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      }
    },
    "/v1/human/members/remove": {
      "post": {
        "operationId": "human_members_remove",
        "description": "Same-origin browser session + CSRF. Current owner of exact environment; recent UV required for changes. No email disclosure. Removed rows retained. See api-membership-contract.md for revision, paging, retention and restore semantics.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanMemberRemove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current scoped membership state; metadata only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanMembership"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid, recent_auth_required or capability_denied; scope checked before target or receipt",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "not_found within authorized scope",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "409": {
            "description": "membership_exists, membership_changed, membership_superseded or idempotency_mismatch",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed, including non-subset narrowing",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including unknown outcome after durable intent; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            },
            "description": "Account-scoped receipt; exact replay requires current authority and resulting revision. Changed body conflicts; superseded grant/narrow never restores access."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ],
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ]
      }
    },
    "/v1/human/privacy/export": {
      "post": {
        "operationId": "human_privacy_export",
        "description": "Current subject only, same-origin session+CSRF+recent UV. Returns account email and bounded public credential/key/session metadata plus two independently paged opaque audit/membership histories. No bearer, CSRF/session token, proof or recovery secret is exported. Pages are not a snapshot. Workspace data is separately scoped.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanSubjectExportInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "No-store current subject result; erase returns {erased:true}, spool-prune returns {deleted:nonnegative integer}. Export shape is documented in api-privacy-policy.md.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSubjectExport"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid or recent_auth_required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including uncertain post-intent failure; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/privacy/erase": {
      "post": {
        "operationId": "human_privacy_erase",
        "description": "Current subject only, same-origin session+CSRF+recent UV; closed empty body. Deletes current contact/proof/session/credential data, revokes subject and owned-environment keys and memberships, journals an opaque erasure fence before acknowledgment, clears session cookie. Owned workspace business data remains opaque and inaccessible; no ownership transfer. Older database restores must apply current erasure before readiness. Lost response is unknown; no automatic resend. See api-privacy-policy.md for external copies and stopped recovery-notification coverage.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "No-store current subject result; erase returns {erased:true}, spool-prune returns {deleted:nonnegative integer}. Export shape is documented in api-privacy-policy.md.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSubjectErased"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid or recent_auth_required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including uncertain post-intent failure; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v1/human/privacy/spool-prune": {
      "post": {
        "operationId": "human_privacy_spool_prune",
        "description": "Same-origin session+CSRF+recent UV. Bounded local service housekeeping deletes only expired proof/notice spool files; reveals only deleted count, never other subjects. Max256 entries, private regular owned files only; no arbitrary path or account input.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HumanEmpty"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "No-store current subject result; erase returns {erased:true}, spool-prune returns {deleted:nonnegative integer}. Export shape is documented in api-privacy-policy.md.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSpoolPruned"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "credential_invalid",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "403": {
            "description": "csrf_invalid or recent_auth_required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "413": {
            "description": "body_too_large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "429": {
            "description": "identity_limit or identity_rate_limited",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "503": {
            "description": "identity_unavailable, including uncertain post-intent failure; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Never cache identity/account/proof responses.",
                "schema": {
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "identity_unavailable when the optional local human profile is not configured; not_found for an absent authorized target where applicable.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "browserCookie": [],
            "sessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Must equal the configured exact HTTPS origin or matching http://localhost:PORT test origin; cross-origin requests refused."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current session token, not a bearer substitute. Recent UV is required where described."
          }
        ]
      }
    },
    "/v2/human/recovery/profile": {
      "get": {
        "operationId": "recovery_v2_profile",
        "tags": [
          "Current account recovery v2"
        ],
        "description": "Initializes/retains the normal opaque browser cookie. This is v2 availability only; legacy v1 browser recovery_available remains false and its recovery routes remain unavailable. False availability requires notice_delivery=unavailable. Enabled synthetic profiles make no real-email claim.",
        "servers": [
          {
            "url": "https://app.availkit.com",
            "description": "Same-origin account application, never workspace bearer authority"
          }
        ],
        "security": [],
        "responses": {
          "401": {
            "description": "Invalid/expired browser, code or ceremony; generic authority rejection",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "403": {
            "description": "Exact origin/browser policy denied",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "404": {
            "description": "Unsupported path/profile",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "409": {
            "description": "Current authority or credential conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "415": {
            "description": "Expected application/json",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid/duplicate/unknown input",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "429": {
            "description": "Bounded admission exhausted",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable or uncertain mutation result; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; provider delivery is not awaited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryProfileV2"
                }
              }
            }
          }
        },
        "x-automatic-retry": false
      }
    },
    "/v2/human/recovery/start": {
      "post": {
        "operationId": "recovery_v2_start",
        "tags": [
          "Current account recovery v2"
        ],
        "description": "Current same-origin browser recovery. A current one-use code is durably consumed before restricted registration; cancellation/expiry never refunds it. No account/session/workspace authority is granted. Captured account, code-set and sessions generations are rechecked. Send once; a lost response may have consumed the code. No automatic retry or replacement attempt.",
        "servers": [
          {
            "url": "https://app.availkit.com",
            "description": "Same-origin account application, never workspace bearer authority"
          }
        ],
        "security": [
          {
            "browserCookie": []
          }
        ],
        "responses": {
          "401": {
            "description": "Invalid/expired browser, code or ceremony; generic authority rejection",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "403": {
            "description": "Exact origin/browser policy denied",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "404": {
            "description": "Unsupported path/profile",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "409": {
            "description": "Current authority or credential conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "415": {
            "description": "Expected application/json",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid/duplicate/unknown input",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "429": {
            "description": "Bounded admission exhausted",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable or uncertain mutation result; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; provider delivery is not awaited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanRegistrationStart"
                }
              }
            }
          }
        },
        "x-automatic-retry": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecoveryStartV2"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Exact configured account origin. Browser sends this header; cross-origin and bearer substitution are refused."
          }
        ]
      }
    },
    "/v2/human/recovery/finish": {
      "post": {
        "operationId": "recovery_v2_finish",
        "tags": [
          "Current account recovery v2"
        ],
        "description": "Same browser/purpose/origin and current authorization generations; maintained high-level WebAuthn UV registration. Publishes current authority, replaces prior passkeys/sessions/codes/human-created keys and durably queues a production notice in the same transaction. Returns the normal session cookie/CSRF shape without waiting for the provider. Send once: loss may follow committed recovery. Preserve the new authenticator; inspect session read-only, otherwise use ordinary new-passkey sign-in. Do not resend finish or automatically consume another code. This additive contract is not historical interrupted-task acceptance.",
        "servers": [
          {
            "url": "https://app.availkit.com",
            "description": "Same-origin account application, never workspace bearer authority"
          }
        ],
        "security": [
          {
            "browserCookie": []
          }
        ],
        "responses": {
          "401": {
            "description": "Invalid/expired browser, code or ceremony; generic authority rejection",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "403": {
            "description": "Exact origin/browser policy denied",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "404": {
            "description": "Unsupported path/profile",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "409": {
            "description": "Current authority or credential conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "413": {
            "description": "Body too large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "415": {
            "description": "Expected application/json",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid/duplicate/unknown input",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "429": {
            "description": "Bounded admission exhausted",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "503": {
            "description": "Unavailable or uncertain mutation result; never automatically resend",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanProblem"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; provider delivery is not awaited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HumanSessionIssued"
                }
              }
            }
          }
        },
        "x-automatic-retry": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecoveryFinishV2"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Exact configured account origin. Browser sends this header; cross-origin and bearer substitution are refused."
          }
        ]
      }
    },
    "/v1/public/pages/{pageId}": {
      "get": {
        "operationId": "getPublicPage",
        "tags": [
          "Public booking"
        ],
        "security": [],
        "description": "Explicitly published current page; no workspace key/session. No PII or private resource projection. Paused/archived pages cannot allocate. All queues,2second response deadline and workspace quotas apply.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPage"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{pageId}/offerings": {
      "get": {
        "operationId": "listPublicOfferings",
        "tags": [
          "Public booking"
        ],
        "security": [],
        "description": "Explicitly published current page; no workspace key/session. No PII or private resource projection. Paused/archived pages cannot allocate. All queues,2second response deadline and workspace quotas apply. Ascending IDs; cursor must identify an active offering; independent pages are not a snapshot.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicOfferingPage"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{pageId}/availability": {
      "get": {
        "operationId": "publicAvailability",
        "tags": [
          "Public booking"
        ],
        "security": [],
        "description": "Explicitly published current page; no workspace key/session. No PII or private resource projection. Paused/archived pages cannot allocate. All queues,2second response deadline and workspace quotas apply. Advisory, at most7days/256slots, exact UTC instants across DST; capacity checked again transactionally.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "offeringId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "Z$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "Z$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Availability"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{pageId}/bookings": {
      "post": {
        "operationId": "bookPublic",
        "tags": [
          "Public booking"
        ],
        "security": [
          {
            "bookingAccess": [],
            "contactReuse": []
          }
        ],
        "description": "Explicitly published current page; no workspace key/session. No PII or private resource projection. Paused/archived pages cannot allocate. All queues,2second response deadline and workspace quotas apply. Contact, booking, quota/event, access and receipt commit atomically. A booking capability cannot create a second booking, even with a new key/expired receipt. Exact replay needs current booking access and may return the original confirmation after cancellation/pause. Contact proof never matches arbitrary private contacts by email. Contact is unverified; no email is sent.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            },
            "description": "Retain exact body/key AND booking/contact capabilities before send;24hour receipt retention. No automatic resend."
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "201": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBooking"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBookingInput"
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{pageId}/bookings/{bookingId}": {
      "get": {
        "operationId": "getPublicBooking",
        "tags": [
          "Public booking"
        ],
        "security": [
          {
            "bookingAccess": []
          }
        ],
        "description": "Current single-booking capability and page/restore epoch. Works when page is paused. Access expires30days after booking end, extended for supported later moves. No contact/customerId/resourceId returned.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBooking"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{pageId}/bookings/{bookingId}/cancel": {
      "post": {
        "operationId": "cancelPublicBooking",
        "tags": [
          "Public booking"
        ],
        "security": [
          {
            "bookingAccess": []
          }
        ],
        "description": "One authorized booking only. Same environment lock, optimistic expectedStart, capacity, event and receipt rules as management. Cancellation remains available while page is paused.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            },
            "description": "Retain exact body/key AND booking/contact capabilities before send;24hour receipt retention. No automatic resend."
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBooking"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              }
            }
          }
        }
      }
    },
    "/v1/public/pages/{pageId}/bookings/{bookingId}/reschedule": {
      "post": {
        "operationId": "reschedulePublicBooking",
        "tags": [
          "Public booking"
        ],
        "security": [
          {
            "bookingAccess": []
          }
        ],
        "description": "One authorized booking only. Same environment lock, optimistic expectedStart, capacity, event and receipt rules as management. Published active page/catalog required. Keep exact expectedStart/new start/key for unknown replay.",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "bookingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            },
            "description": "Retain exact body/key AND booking/contact capabilities before send;24hour receipt retention. No automatic resend."
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBooking"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RescheduleInput"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/booking-page": {
      "get": {
        "operationId": "getBookingPage",
        "tags": [
          "Public booking"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "description": "Current secret READ (or same-origin dashboard session). Publication starts disabled.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageSettings"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "replaceBookingPage",
        "tags": [
          "Public booking"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "description": "Current secret CATALOG (or same-origin dashboard session+CSRF). Explicitly publish/pause this environment only. Idempotent full settings replacement. Normal updates preserve page ID. Restore-invalidated pages require explicit republication with new ID; old guest links do not revive.",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Closed bounded input rejected; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing/malformed guest capability; management bearer is not accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Absent, foreign, expired or restore-invalidated page/booking access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paused page, catalog/contact/capacity/usage/version/intent conflict; no mutation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body exceeds64KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Expected JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Unknown mutation outcome possible; retain exact input/key/capabilities, never automatically resend",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-store result; historic exact receipt may differ from a later GET",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageSettings"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPageInput"
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/export": {
      "get": {
        "operationId": "getBusinessExportPage",
        "tags": [
          "Private business export"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            }
          },
          {
            "name": "section",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "configuration",
                "resources",
                "offerings",
                "customers",
                "bookings",
                "events",
                "webhooks",
                "deliveries",
                "usage-history"
              ]
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            },
            "description": "Continue only with this section response\u2019s nextAfter. Retained public ID, canonical positive event sequence, or YYYY-MM month; configuration accepts none. Cursor must remain in this authorized section/environment."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Invalid/duplicate/unknown section, cursor or limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "401": {
            "description": "Absent, invalid or revoked credentials/session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "403": {
            "description": "Current exact environment or combined READ and MANAGE permission denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "404": {
            "description": "Missing or foreign retained cursor; do not restart the traversal automatically",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "409": {
            "description": "Event cursor was pruned; this traversal is incomplete",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "503": {
            "description": "Read unavailable; no server export or business mutation was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalProblem"
                }
              }
            }
          },
          "200": {
            "description": "Private no-store page. No server-side archive is created.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinessExportPage"
                }
              }
            }
          }
        },
        "description": "Current secret READ and MANAGE together, exact workspace/environment. The same-origin dashboard counterpart uses its current session/scope. Each page is one bounded repeatable-read snapshot; pages are independent, live traversal can omit/change records and is not a point-in-time backup. Exports all retained maintained business rows, current contact values or erased tombstones, booking/event links, page configuration, usage history, webhook URL/status and delivery summaries. No erased earlier contact values/revisions exist. Private webhook paths may contain owner secrets; keep the entire export private. Excludes API/session/recovery/guest credentials and hashes, replay receipts, authority/membership material, delivery/mail payloads and signing secrets. Records already pruned/erased cannot be recovered. No server retention/share URL, quota reservation, automatic retry/restart or restore/import promise.",
        "x-automatic-retry": false
      }
    },
    "/live": {
      "get": {
        "operationId": "live",
        "security": [],
        "responses": {
          "200": {
            "description": "Live process"
          },
          "503": {
            "description": "Unavailable/readiness failure"
          }
        }
      }
    },
    "/ready": {
      "get": {
        "operationId": "ready",
        "security": [],
        "responses": {
          "200": {
            "description": "Current schema/durability/authority/readiness checks pass"
          },
          "503": {
            "description": "Unavailable/readiness failure"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      },
      "browserCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "availkit_dev_browser"
      },
      "sessionCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "availkit_dev_session"
      },
      "bookingAccess": {
        "type": "http",
        "scheme": "Booking",
        "description": "Client-generated32random bytes, canonical unpadded base64url43chars, Authorization: Booking TOKEN. One booking only; no customer/management authority. Keep private, use URL fragment only for the private management link."
      },
      "contactReuse": {
        "type": "apiKey",
        "in": "header",
        "name": "X-AvailKit-Contact-Token",
        "description": "Separate client-generated32random bytes/canonical base64url. First successful public book binds this proof to its new contact. Later creates may reuse only the exact current active contact on this page. No read/update/list/booking-management authority.397day bound, invalidated by restore."
      }
    },
    "schemas": {
      "ResourceInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "timeZone": {
            "type": "string"
          },
          "capacity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          }
        },
        "required": [
          "name",
          "timeZone",
          "capacity"
        ],
        "additionalProperties": false
      },
      "Resource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "timeZone": {
            "type": "string"
          },
          "capacity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          },
          "archived": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "timeZone",
          "capacity",
          "archived"
        ],
        "additionalProperties": false
      },
      "OfferingInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "resourceId": {
            "type": "string"
          },
          "durationMinutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1440
          }
        },
        "required": [
          "name",
          "resourceId",
          "durationMinutes"
        ],
        "additionalProperties": false
      },
      "Offering": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "resourceId": {
            "type": "string"
          },
          "durationMinutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1440
          },
          "archived": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "resourceId",
          "durationMinutes",
          "archived"
        ],
        "additionalProperties": false
      },
      "Hours": {
        "type": "object",
        "properties": {
          "windows": {
            "type": "array",
            "maxItems": 28,
            "items": {
              "type": "object",
              "properties": {
                "weekday": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 7
                },
                "start": {
                  "type": "string",
                  "pattern": "^[0-2][0-9]:[0-5][0-9]$"
                },
                "end": {
                  "type": "string",
                  "pattern": "^[0-2][0-9]:[0-5][0-9]$"
                }
              },
              "required": [
                "weekday",
                "start",
                "end"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "windows"
        ],
        "additionalProperties": false
      },
      "Booking": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "offeringId": {
            "type": "string"
          },
          "resourceId": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "enum": [
              "confirmed",
              "cancelled"
            ]
          },
          "customerId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$",
            "description": "Present only when linked, including retained erased contact links; never contact values."
          }
        },
        "required": [
          "id",
          "offeringId",
          "resourceId",
          "start",
          "end",
          "status"
        ],
        "additionalProperties": false
      },
      "BookingInput": {
        "type": "object",
        "properties": {
          "offeringId": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "customerId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$",
            "description": "Optional existing active contact in this exact environment. Explicit null invalid; requires BOOK+MANAGE. Normalized linked ID participates in idempotency intent."
          }
        },
        "required": [
          "offeringId",
          "start"
        ],
        "additionalProperties": false
      },
      "Availability": {
        "type": "object",
        "properties": {
          "slots": {
            "type": "array",
            "maxItems": 256,
            "items": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "string",
                  "format": "date-time"
                },
                "end": {
                  "type": "string",
                  "format": "date-time"
                },
                "remainingCapacity": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "required": [
                "start",
                "end",
                "remainingCapacity"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "slots"
        ],
        "additionalProperties": false
      },
      "Events": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "sequence": {
                  "type": "integer"
                },
                "type": {
                  "enum": [
                    "booking.created",
                    "booking.cancelled",
                    "booking.rescheduled"
                  ]
                },
                "bookingId": {
                  "type": "string"
                },
                "occurredAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "sequence",
                "type",
                "bookingId",
                "occurredAt"
              ],
              "additionalProperties": false
            }
          },
          "nextAfter": {
            "type": "integer"
          },
          "retentionFloor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "highWater": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "events",
          "nextAfter",
          "retentionFloor",
          "highWater"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "ResourcePage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "nextAfter"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/Resource"
            }
          },
          "nextAfter": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last emitted ID only when more results remain; otherwise null."
          }
        }
      },
      "OfferingPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "nextAfter"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/Offering"
            }
          },
          "nextAfter": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last emitted ID only when more results remain; otherwise null."
          }
        }
      },
      "BookingPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "nextAfter"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/Booking"
            }
          },
          "nextAfter": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last emitted ID only when more results remain; otherwise null."
          }
        }
      },
      "WebhookCreate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048,
            "description": "HTTPS hostname, port443; no IP, userinfo, query or fragment. Syntactic admission only; transport must validate DNS/address/redirect policy."
          }
        }
      },
      "Webhook": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "url",
          "enabled",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "url": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebhookCreated": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "url",
          "enabled",
          "createdAt",
          "signingSecret"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "url": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "signingSecret": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "description": "One-time base64url encoding of32 random bytes; response only, no replay storage."
          }
        }
      },
      "WebhookDelivery": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "subscriptionId",
          "eventId",
          "state",
          "createdAt",
          "attempts",
          "maxAttempts",
          "nextAttemptAt",
          "leaseExpiresAt",
          "lastAttemptAt",
          "lastOutcome",
          "lastHttpStatus"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "subscriptionId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "eventId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "suppressed",
              "leased",
              "sending",
              "delivered",
              "dead"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 5
          },
          "maxAttempts": {
            "type": "integer",
            "const": 5
          },
          "nextAttemptAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "leaseExpiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastAttemptAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastOutcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              null,
              "admitted_unknown",
              "claim_expired",
              "lease_expired_unknown",
              "disabled_unknown",
              "not_attempted",
              "invalid_target",
              "invalid_delivery",
              "address_denied",
              "transport_unknown",
              "deadline_unknown",
              "http_drained",
              "http_body_failed",
              "http_body_deadline",
              "http_body_too_large"
            ]
          },
          "lastHttpStatus": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 100,
            "maximum": 599
          }
        },
        "description": "M4 additive attempt summary; fixed safe codes only, no lease token/payload/secret/target. Suppressed forbids future dispatch but may have an unknown admitted attempt. See m4-delivery.md."
      },
      "WebhookPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "nextAfter"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/Webhook"
            }
          },
          "nextAfter": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "WebhookDeliveryPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "nextAfter"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            }
          },
          "nextAfter": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "WebhookDisable": {
        "type": "object",
        "additionalProperties": false,
        "required": [],
        "properties": {}
      },
      "UsageCounter": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "used",
          "limit",
          "remaining"
        ],
        "properties": {
          "used": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "remaining": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "description": "remaining=max(0,limit-used); advisory, not a reservation."
      },
      "UsagePeriod": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "start",
          "end"
        ],
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          }
        },
        "description": "Enclosing UTC calendar month, half-open: start <= asOf < end."
      },
      "UsageCounters": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "monthlyBookingCreates",
          "catalogObjects",
          "bookingRecords",
          "committedEvents",
          "webhookSubscriptions",
          "webhookDeliveries",
          "liveReplays",
          "customerRecords"
        ],
        "properties": {
          "monthlyBookingCreates": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "Committed M1 creates in the UTC month; replay, failure and cancellation do not consume/refund. Limit: current monthly_creates entitlement."
          },
          "catalogObjects": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "Retained M1 resources + offerings; hours are excluded. Limit: min(catalog entitlement,1000)."
          },
          "bookingRecords": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "All retained bookings including cancelled; limit10000."
          },
          "committedEvents": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "Consumed retained event sequence budget; limit20000; no pruning/refund."
          },
          "webhookSubscriptions": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "All retained subscriptions including disabled; limit16."
          },
          "webhookDeliveries": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "All retained queue rows including terminal/suppressed; limit4096. Queued does not mean delivered."
          },
          "liveReplays": {
            "$ref": "#/components/schemas/UsageCounter",
            "description": "Only entries with expires_ms > asOf; limit4096. Existing24h per-record expiry; read never deletes expired rows."
          },
          "customerRecords": {
            "$ref": "#/components/schemas/UsageCounter"
          }
        }
      },
      "Usage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "asOf",
          "period",
          "counters"
        ],
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          },
          "period": {
            "$ref": "#/components/schemas/UsagePeriod"
          },
          "counters": {
            "$ref": "#/components/schemas/UsageCounters"
          }
        }
      },
      "RescheduleInput": {
        "type": "object",
        "properties": {
          "expectedStart": {
            "type": "string",
            "format": "date-time",
            "description": "UTC RFC3339 instant with millisecond precision or coarser"
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "description": "UTC RFC3339 instant with millisecond precision or coarser"
          }
        },
        "required": [
          "expectedStart",
          "start"
        ],
        "additionalProperties": false
      },
      "HistoryPruneInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "limit"
        ],
        "properties": {
          "kind": {
            "enum": [
              "deliveries",
              "events",
              "bookings"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 128
          }
        }
      },
      "HistoryPruneResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "asOf",
          "cutoff",
          "deleted",
          "hasMore"
        ],
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date-time"
          },
          "cutoff": {
            "type": "string",
            "format": "date-time"
          },
          "deleted": {
            "type": "integer",
            "minimum": 0,
            "maximum": 128
          },
          "hasMore": {
            "type": "boolean"
          }
        }
      },
      "Customer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "displayName",
          "email",
          "phone",
          "archived"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 254
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 32
          },
          "archived": {
            "type": "boolean"
          },
          "erased": {
            "const": true
          }
        }
      },
      "CustomerInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "displayName"
        ],
        "properties": {
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 254
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 32
          }
        }
      },
      "CustomerPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "nextAfter"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/Customer"
            }
          },
          "nextAfter": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "CustomerErased": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "erased"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "erased": {
            "const": true
          }
        }
      },
      "MaintenanceInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "limit"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 128
          }
        }
      },
      "MaintenanceResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "asOf",
          "deleted",
          "hasMore"
        ],
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date-time"
          },
          "deleted": {
            "type": "integer",
            "minimum": 0,
            "maximum": 128
          },
          "hasMore": {
            "type": "boolean"
          }
        }
      },
      "Empty": {
        "type": "object",
        "additionalProperties": false,
        "properties": {}
      },
      "GlobalProblem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "request_id"
        ],
        "properties": {
          "type": {
            "const": "urn:availkit:problem"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "HumanEmpty": {
        "type": "object",
        "additionalProperties": false,
        "properties": {},
        "required": []
      },
      "HumanEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "description": "NFC local part; preserve case/dots/plus; IDNA lowercased domain. Production email uses ASCII local parts and a real domain. Synthetic profiles require example.invalid."
          }
        },
        "required": [
          "email"
        ]
      },
      "HumanEmailProof": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ceremony_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "code": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "ceremony_id",
          "code"
        ]
      },
      "HumanRecovery": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "code": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "email",
          "code"
        ]
      },
      "HumanRemoveCredential": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "credential_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "credential_id"
        ]
      },
      "HumanIssueKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "kind": {
            "enum": [
              "secret",
              "publishable"
            ]
          },
          "capabilities": {
            "type": "integer",
            "minimum": 0,
            "maximum": 63
          },
          "replaces": {
            "oneOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environment",
          "kind",
          "capabilities"
        ]
      },
      "HumanAssertionResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "clientDataJSON": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "authenticatorData": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "signature": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "userHandle": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 65536,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "clientDataJSON",
          "authenticatorData",
          "signature"
        ]
      },
      "HumanRegistrationResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "clientDataJSON": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "attestationObject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "transports": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "clientDataJSON",
          "attestationObject"
        ]
      },
      "HumanCredential": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "rawId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "type": {
            "const": "public-key"
          },
          "extensions": {
            "type": "object",
            "description": "Untrusted normal browser extension outputs, interpreted by webauthn-rs0.5.5."
          },
          "response": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/HumanAssertionResponse"
              },
              {
                "$ref": "#/components/schemas/HumanRegistrationResponse"
              }
            ]
          }
        },
        "required": [
          "id",
          "rawId",
          "type",
          "response"
        ]
      },
      "HumanFinish": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ceremony_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "credential": {
            "$ref": "#/components/schemas/HumanCredential"
          },
          "code": {
            "oneOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{43}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "ceremony_id",
          "credential"
        ]
      },
      "HumanRevokeKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "key_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environment",
          "key_id"
        ]
      },
      "HumanRevokedKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "revoked": {
            "const": true
          }
        },
        "required": [
          "id",
          "revoked"
        ]
      },
      "HumanMemberList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "after": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 20
          },
          "include_removed": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environment"
        ]
      },
      "HumanMemberGrant": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "account_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 1,
            "maximum": 63
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environment",
          "account_id",
          "capabilities"
        ]
      },
      "HumanMemberNarrow": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "membership_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "expected_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 1,
            "maximum": 63
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environment",
          "membership_id",
          "expected_revision",
          "capabilities"
        ]
      },
      "HumanMemberRemove": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "membership_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "expected_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environment",
          "membership_id",
          "expected_revision"
        ]
      },
      "HumanMembership": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "membership_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "account_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 1,
            "maximum": 63
          },
          "removed": {
            "type": "boolean"
          }
        },
        "required": [
          "membership_id",
          "account_id",
          "revision",
          "capabilities",
          "removed"
        ]
      },
      "HumanMembershipPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/HumanMembership"
            }
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "next"
        ]
      },
      "HumanSubjectExportInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "after_audit": {
            "type": "integer",
            "minimum": 0
          },
          "after_membership": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 100
          }
        }
      },
      "HumanProblem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "request_id"
        ],
        "properties": {
          "type": {
            "const": "urn:availkit:problem"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "HumanBrowserProfile": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "profile": {
            "enum": [
              "local-synthetic-v1",
              "private-synthetic-v1",
              "production-v1"
            ]
          },
          "rp_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253
          },
          "recovery_available": {
            "const": false
          },
          "preview_mailbox": {
            "type": "boolean"
          }
        },
        "required": [
          "profile",
          "rp_id",
          "recovery_available"
        ]
      },
      "HumanPublicCredential": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "id"
        ]
      },
      "HumanCredentialList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/HumanPublicCredential"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "HumanKeyMetadata": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "kind": {
            "enum": [
              "secret",
              "publishable"
            ]
          },
          "revoked": {
            "type": "boolean"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 0,
            "maximum": 63
          },
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "revoked",
          "capabilities",
          "organization_id",
          "workspace_id",
          "environment"
        ]
      },
      "HumanKeyMetadataList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 128,
            "items": {
              "$ref": "#/components/schemas/HumanKeyMetadata"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "HumanIssuedKey": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "kind": {
            "enum": [
              "secret",
              "publishable"
            ]
          },
          "secret": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 0,
            "maximum": 63
          },
          "reveal": {
            "const": "once"
          }
        },
        "required": [
          "id",
          "kind",
          "secret",
          "capabilities",
          "reveal"
        ]
      },
      "HumanSessionIssued": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "csrf_token": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "recent_until": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "account_id",
          "csrf_token",
          "recent_until"
        ]
      },
      "HumanDiscoveredMembership": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "membership_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "account_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 1,
            "maximum": 63
          },
          "removed": {
            "type": "boolean"
          },
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          }
        },
        "required": [
          "membership_id",
          "account_id",
          "revision",
          "capabilities",
          "removed",
          "organization_id",
          "workspace_id",
          "environment"
        ]
      },
      "HumanSessionState": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "csrf_token": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "recent_until": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "scope": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  "workspace_id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  }
                },
                "required": [
                  "organization_id",
                  "workspace_id"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "memberships": {
            "type": "array",
            "maxItems": 128,
            "items": {
              "$ref": "#/components/schemas/HumanDiscoveredMembership"
            }
          },
          "dashboard_scopes": {
            "type": "array",
            "maxItems": 130,
            "items": {
              "$ref": "#/components/schemas/HumanDashboardScope"
            }
          }
        },
        "required": [
          "account_id",
          "csrf_token",
          "recent_until",
          "scope",
          "memberships"
        ]
      },
      "HumanRegistrationStart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ceremony_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "options": {
            "type": "object",
            "required": [
              "publicKey"
            ],
            "properties": {
              "publicKey": {
                "type": "object",
                "required": [
                  "challenge",
                  "rp",
                  "user",
                  "pubKeyCredParams"
                ],
                "description": "Standard creation options from webauthn-rs0.5.5; decode base64url challenge/user.id/credential IDs before navigator.credentials.create."
              }
            }
          }
        },
        "required": [
          "ceremony_id",
          "options"
        ]
      },
      "HumanAuthenticationStart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ceremony_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "options": {
            "type": "object",
            "required": [
              "publicKey"
            ],
            "properties": {
              "publicKey": {
                "type": "object",
                "required": [
                  "challenge"
                ],
                "description": "Standard request options from webauthn-rs0.5.5; decode base64url challenge/allowCredentials IDs before navigator.credentials.get."
              }
            }
          }
        },
        "required": [
          "ceremony_id",
          "options"
        ]
      },
      "HumanEmailSelection": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ceremony_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "delivery": {
            "enum": [
              "local_spool",
              "email_queued"
            ]
          }
        },
        "required": [
          "ceremony_id",
          "delivery"
        ]
      },
      "HumanPasskeyAdded": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "added": {
            "const": true
          }
        },
        "required": [
          "added"
        ]
      },
      "HumanPasskeyRemoved": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "removed": {
            "const": true
          }
        },
        "required": [
          "removed"
        ]
      },
      "HumanLoggedOut": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "logged_out": {
            "const": true
          }
        },
        "required": [
          "logged_out"
        ]
      },
      "HumanRecoveryCodes": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "codes": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            },
            "minItems": 10,
            "uniqueItems": true
          },
          "reveal": {
            "const": "once"
          }
        },
        "required": [
          "codes",
          "reveal"
        ]
      },
      "HumanWorkspaceBootstrapped": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environments": {
            "type": "array",
            "minItems": 2,
            "maxItems": 2,
            "uniqueItems": true,
            "items": {
              "enum": [
                "test",
                "live"
              ]
            }
          }
        },
        "required": [
          "organization_id",
          "workspace_id",
          "environments"
        ]
      },
      "HumanSubjectSession": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "created": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_seen": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "verified_at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "created",
          "last_seen",
          "verified_at"
        ]
      },
      "HumanAuditEntry": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "action": {
            "type": "string",
            "maxLength": 40
          },
          "target": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "action",
          "target",
          "at"
        ]
      },
      "HumanSubjectMembership": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "membership_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "capabilities": {
            "type": "integer",
            "minimum": 1,
            "maximum": 63
          },
          "removed": {
            "type": "boolean"
          },
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          }
        },
        "required": [
          "membership_id",
          "revision",
          "capabilities",
          "removed",
          "organization_id",
          "workspace_id",
          "environment"
        ]
      },
      "HumanSubjectExport": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "credentials": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/HumanPublicCredential"
            }
          },
          "sessions": {
            "type": "array",
            "maxItems": 32,
            "items": {
              "$ref": "#/components/schemas/HumanSubjectSession"
            }
          },
          "keys": {
            "type": "array",
            "maxItems": 128,
            "items": {
              "$ref": "#/components/schemas/HumanKeyMetadata"
            }
          },
          "audit": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "items": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "$ref": "#/components/schemas/HumanAuditEntry"
                }
              },
              "next": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "items",
              "next"
            ]
          },
          "memberships": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "items": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "$ref": "#/components/schemas/HumanSubjectMembership"
                }
              },
              "next": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "items",
              "next"
            ]
          },
          "consistency": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "email",
          "credentials",
          "sessions",
          "keys",
          "audit",
          "memberships",
          "consistency"
        ]
      },
      "HumanSubjectErased": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "erased": {
            "const": true
          }
        },
        "required": [
          "erased"
        ]
      },
      "HumanSpoolPruned": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "type": "integer",
            "minimum": 0,
            "maximum": 256
          }
        },
        "required": [
          "deleted"
        ]
      },
      "HumanDashboardScope": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "organization_id",
          "workspace_id",
          "environment",
          "capabilities",
          "principal"
        ],
        "properties": {
          "organization_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspace_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          },
          "capabilities": {
            "type": "integer",
            "minimum": 0,
            "maximum": 63
          },
          "principal": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          }
        }
      },
      "RecoveryProfileV2": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "version",
              "rp_id",
              "recovery_available",
              "notice_delivery"
            ],
            "properties": {
              "version": {
                "const": 2
              },
              "rp_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 253
              },
              "recovery_available": {
                "const": false
              },
              "notice_delivery": {
                "const": "unavailable"
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "version",
              "rp_id",
              "recovery_available",
              "notice_delivery"
            ],
            "properties": {
              "version": {
                "const": 2
              },
              "rp_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 253
              },
              "recovery_available": {
                "const": true
              },
              "notice_delivery": {
                "enum": [
                  "email_queued",
                  "synthetic_only"
                ]
              }
            }
          }
        ]
      },
      "RecoveryStartV2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "code": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "email",
          "code"
        ]
      },
      "RecoveryFinishV2": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "ceremony_id",
          "credential"
        ],
        "properties": {
          "ceremony_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "credential": {
            "$ref": "#/components/schemas/HumanCredential"
          }
        }
      },
      "BookingPageInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "title",
          "enabled"
        ]
      },
      "BookingPageSettings": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "pageId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "needsRepublish": {
            "type": "boolean"
          }
        },
        "required": [
          "pageId",
          "title",
          "enabled",
          "needsRepublish"
        ]
      },
      "PublicPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "title": {
            "type": "string"
          },
          "environment": {
            "type": "string",
            "enum": [
              "test",
              "live"
            ]
          },
          "emailNotifications": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "title",
          "environment"
        ]
      },
      "PublicOffering": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "name": {
            "type": "string"
          },
          "durationMinutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1440
          },
          "timeZone": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "durationMinutes",
          "timeZone"
        ]
      },
      "PublicOfferingPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/PublicOffering"
            }
          },
          "nextAfter": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextAfter"
        ]
      },
      "PublicBookingInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "offeringId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          },
          "contact": {
            "$ref": "#/components/schemas/CustomerInput"
          }
        },
        "required": [
          "offeringId",
          "start",
          "contact"
        ]
      },
      "PublicBooking": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          },
          "status": {
            "type": "string",
            "enum": [
              "confirmed",
              "cancelled"
            ]
          },
          "offering": {
            "$ref": "#/components/schemas/PublicOffering"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          },
          "pageEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "start",
          "end",
          "status",
          "offering",
          "page",
          "pageEnabled"
        ]
      },
      "BusinessExportScope": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "organizationId",
          "workspaceId",
          "environment"
        ],
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "workspaceId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "environment": {
            "enum": [
              "test",
              "live"
            ]
          }
        }
      },
      "BusinessExportRetention": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "retentionFloor",
          "highWater"
        ],
        "properties": {
          "retentionFloor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "highWater": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        }
      },
      "BusinessExportConfiguration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "bookingPage",
          "usage",
          "eventRetention"
        ],
        "properties": {
          "bookingPage": {
            "$ref": "#/components/schemas/BookingPageSettings"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage"
          },
          "eventRetention": {
            "$ref": "#/components/schemas/BusinessExportRetention"
          }
        }
      },
      "BusinessExportResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "timeZone": {
            "type": "string"
          },
          "capacity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          },
          "archived": {
            "type": "boolean"
          },
          "hours": {
            "type": "object",
            "properties": {
              "windows": {
                "type": "array",
                "maxItems": 28,
                "items": {
                  "type": "object",
                  "properties": {
                    "weekday": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 7
                    },
                    "start": {
                      "type": "string",
                      "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
                    },
                    "end": {
                      "type": "string",
                      "pattern": "^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"
                    }
                  },
                  "required": [
                    "weekday",
                    "start",
                    "end"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "windows"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "timeZone",
          "capacity",
          "archived",
          "hours"
        ],
        "additionalProperties": false
      },
      "BusinessExportCustomer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "displayName",
          "email",
          "phone",
          "archived",
          "erased"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 254
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 32
          },
          "archived": {
            "type": "boolean"
          },
          "erased": {
            "type": "boolean"
          }
        }
      },
      "BusinessExportEvent": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "sequence",
          "type",
          "bookingId",
          "occurredAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "sequence": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "type": {
            "enum": [
              "booking.created",
              "booking.cancelled",
              "booking.rescheduled"
            ]
          },
          "bookingId": {
            "type": "string",
            "pattern": "^[0-9a-f]{32}$"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "Z$"
          }
        }
      },
      "BusinessExportUsageHistory": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "month",
          "bookingCreates"
        ],
        "properties": {
          "month": {
            "type": "string",
            "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])$"
          },
          "bookingCreates": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        }
      },
      "BusinessExportPage": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "configuration"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 1,
                "minItems": 1,
                "items": {
                  "$ref": "#/components/schemas/BusinessExportConfiguration"
                }
              },
              "nextAfter": {
                "type": "null"
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "resources"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/BusinessExportResource"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "offerings"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/Offering"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "customers"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/BusinessExportCustomer"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "bookings"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/Booking"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "events"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/BusinessExportEvent"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[1-9][0-9]{0,15}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "webhooks"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/Webhook"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "deliveries"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{32}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "schemaVersion",
              "scope",
              "section",
              "asOf",
              "consistency",
              "items",
              "nextAfter"
            ],
            "properties": {
              "schemaVersion": {
                "const": 1
              },
              "scope": {
                "$ref": "#/components/schemas/BusinessExportScope"
              },
              "section": {
                "const": "usage-history"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "Z$"
              },
              "consistency": {
                "const": "per-response"
              },
              "items": {
                "type": "array",
                "maxItems": 100,
                "minItems": 0,
                "items": {
                  "$ref": "#/components/schemas/BusinessExportUsageHistory"
                }
              },
              "nextAfter": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      }
    }
  },
  "x-webhook-semantics": {
    "documentation": "m4-delivery.md",
    "subscriptionLimitPerEnvironment": 16,
    "retainedDeliveryLimitPerEnvironment": 4096,
    "disabledSubscriptionsCountTowardLimit": true,
    "suppressedDeliveriesCountTowardLimit": true,
    "retentionExpiry": null,
    "historicalBackfill": false,
    "transportImplemented": true,
    "events": [
      "booking.created",
      "booking.cancelled"
    ],
    "overflow": "409 quota_exceeded rolls back booking, usage, event, replay and all delivery rows",
    "disable": "Serialize with claim/admission; suppress pending/leased/sending and fence settlement. Admitted attempts may already send; record disabled_unknown.",
    "signature": {
      "algorithm": "HMAC-SHA256",
      "key": "base64url-decoded signingSecret",
      "input": "ASCII decimal attempt Unix seconds + dot + immutable persisted UTF-8 payload bytes",
      "header": "AvailKit-Signature: t=<seconds>,v1=<lowercase hex MAC>",
      "deliveryIdHeader": "AvailKit-Delivery-Id",
      "payloadFieldOrder": [
        "schemaVersion",
        "deliveryId",
        "subscriptionId",
        "workspaceId",
        "environment",
        "event"
      ],
      "eventFieldOrder": [
        "id",
        "sequence",
        "type",
        "bookingId",
        "occurredAt"
      ]
    },
    "transportAcceptance": "Separate transport; strict DNS and integrated acceptance required before consumers are enabled",
    "startupSenderEnabled": false,
    "dispatch": {
      "maxAttempts": 5,
      "leaseMilliseconds": 30000,
      "backoffMilliseconds": [
        5000,
        30000,
        120000,
        600000
      ],
      "manualRetry": false,
      "deadLetterDeletion": false,
      "exactlyOnce": false
    }
  },
  "servers": [
    {
      "url": "https://api.availkit.com",
      "description": "Canonical production integration API"
    },
    {
      "url": "http://localhost:8080",
      "description": "Local development; configure one loopback port and exact matching identity origin."
    }
  ],
  "x-scope": "Current supported PostgreSQL rewrite HTTP surface; trusted local operator commands are documented separately. Historical comparison transport is not a product API."
}
