{
  "openapi": "3.1.0",
  "info": {
    "title": "DebugBundle HTTP API",
    "version": "v1",
    "description": "Source-backed OpenAPI description for the public DebugBundle HTTP API."
  },
  "servers": [
    {
      "url": "https://api.debugbundle.com",
      "description": "DebugBundle Cloud API"
    }
  ],
  "tags": [
    {
      "name": "System"
    },
    {
      "name": "Auth"
    },
    {
      "name": "Account"
    },
    {
      "name": "Ingestion"
    },
    {
      "name": "Incidents"
    },
    {
      "name": "Services"
    },
    {
      "name": "Organization"
    },
    {
      "name": "Projects"
    },
    {
      "name": "Billing"
    },
    {
      "name": "Tokens"
    },
    {
      "name": "Alerts"
    },
    {
      "name": "Weekly Reports"
    },
    {
      "name": "Webhooks"
    },
    {
      "name": "Probes"
    },
    {
      "name": "Capture Policy"
    },
    {
      "name": "SDK"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Get service health",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "Current health status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/ready": {
      "get": {
        "operationId": "getReadiness",
        "summary": "Get readiness status",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "Current readiness status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadyResponse"
                }
              }
            }
          },
          "503": {
            "description": "A required runtime dependency is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotReadyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/live": {
      "get": {
        "operationId": "getLiveness",
        "summary": "Get liveness status",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "Current liveness status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiveResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/request-code": {
      "post": {
        "operationId": "requestEmailCode",
        "summary": "Request a one-time email code",
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestEmailCodeBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Email code request accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many auth attempts from this IP.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/verify-code": {
      "post": {
        "operationId": "verifyEmailCode",
        "summary": "Verify a one-time email code and create a browser session",
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyEmailCodeBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Browser session created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid code or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many auth attempts from this IP.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/github/start": {
      "get": {
        "operationId": "startGithubLogin",
        "summary": "Start GitHub OAuth",
        "tags": [
          "Auth"
        ],
        "responses": {
          "302": {
            "description": "Redirects to GitHub authorization.",
            "headers": {
              "Location": {
                "description": "GitHub authorization URL.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/github/callback": {
      "get": {
        "operationId": "completeGithubLogin",
        "summary": "Complete GitHub OAuth",
        "tags": [
          "Auth"
        ],
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirects back to the application callback URL.",
            "headers": {
              "Location": {
                "description": "Application redirect URL.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "Invalid callback query.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/session": {
      "get": {
        "operationId": "getSession",
        "summary": "Resolve the current browser session",
        "tags": [
          "Auth"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current browser session or null when signed out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/logout": {
      "post": {
        "operationId": "logout",
        "summary": "Revoke the current browser session",
        "tags": [
          "Auth"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Browser session revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponse"
                }
              }
            }
          },
          "401": {
            "description": "Browser session is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/accept-invite": {
      "post": {
        "operationId": "acceptInvite",
        "summary": "Accept an organization invite",
        "tags": [
          "Auth"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInviteBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Invite accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptInviteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid invite token or payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Browser session is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Invite email does not match the signed-in account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Auth is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/account/export": {
      "get": {
        "operationId": "exportAccount",
        "summary": "Export retained organization account data",
        "tags": [
          "Account"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account export JSON attachment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountExportResponse"
                }
              }
            }
          },
          "401": {
            "description": "Browser session is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Account export was not available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Account management is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/account": {
      "delete": {
        "operationId": "deleteAccount",
        "summary": "Delete the current organization account",
        "tags": [
          "Account"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountDeleteBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Account deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDeletionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid confirmation payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Browser session is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Account was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Other owner-scoped organizations still exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Account management is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events": {
      "post": {
        "operationId": "ingestEvents",
        "summary": "Ingest batched events",
        "tags": [
          "Ingestion"
        ],
        "security": [
          {
            "projectBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestionRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Events accepted for processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Malformed ingestion payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            }
          },
          "401": {
            "description": "Project token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit or monthly ingestion quota exceeded.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until the caller should retry.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestionAcceptedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents": {
      "get": {
        "operationId": "listIncidents",
        "summary": "List incidents",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "resolved",
                "regressed"
              ]
            }
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Incident list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{id}": {
      "get": {
        "operationId": "getIncident",
        "summary": "Get a single incident",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Incident details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid incident id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Incident was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{id}/resolve": {
      "post": {
        "operationId": "resolveIncident",
        "summary": "Resolve an incident",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Resolved incident details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid incident id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Incident was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Incident resolution is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{id}/reopen": {
      "post": {
        "operationId": "reopenIncident",
        "summary": "Reopen an incident",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reopened incident details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid incident id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Incident was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Incident reopen is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{id}/bundle": {
      "get": {
        "operationId": "getBundle",
        "summary": "Get the generated bundle for an incident",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bundle document or a generation status.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/BundleDocument"
                    },
                    {
                      "$ref": "#/components/schemas/PendingStatus"
                    },
                    {
                      "$ref": "#/components/schemas/BundleFailedStatus"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid incident id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Incident was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/incidents/{id}/reproduction": {
      "get": {
        "operationId": "getReproduction",
        "summary": "Get the reproduction artifact for an incident",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reproduction artifact or a pending status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReproductionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid incident id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Incident or reproduction artifact was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/logs": {
      "get": {
        "operationId": "getLogs",
        "summary": "Query incident logs",
        "tags": [
          "Incidents"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Incident logs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/services": {
      "get": {
        "operationId": "listServices",
        "summary": "List services for a project",
        "tags": [
          "Services"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project services.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Service retrieval is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/organization/members": {
      "get": {
        "operationId": "listOrganizationMembers",
        "summary": "List organization members",
        "tags": [
          "Organization"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Organization members.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationMemberListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Organization member management is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/organization/members/invites": {
      "get": {
        "operationId": "listOrganizationInvites",
        "summary": "List pending organization invites",
        "tags": [
          "Organization"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Pending organization invites.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationInviteListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Organization member management is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/organization/members/invite": {
      "post": {
        "operationId": "inviteOrganizationMember",
        "summary": "Invite an organization member",
        "tags": [
          "Organization"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationInviteBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Invite created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationInviteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Organization member management is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Member or invite already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected invite creation failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/organization/members/invites/{inviteId}": {
      "delete": {
        "operationId": "cancelOrganizationInvite",
        "summary": "Cancel an organization invite",
        "tags": [
          "Organization"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "inviteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Invite cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationInviteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid invite id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Invite was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/organization/members/{userId}": {
      "patch": {
        "operationId": "updateOrganizationMemberRole",
        "summary": "Update an organization member role",
        "tags": [
          "Organization"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationMemberRoleBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated organization member.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationMemberResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid member id or payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Member was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Owner role cannot be changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeOrganizationMember",
        "summary": "Remove an organization member",
        "tags": [
          "Organization"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Removed organization member.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationMemberResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid member id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Member was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Owner cannot be removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List projects",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Projects for the caller organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Projects are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createProject",
        "summary": "Create a project",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Project created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Projects are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Project slug already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}": {
      "patch": {
        "operationId": "updateProject",
        "summary": "Update a project",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found or projects are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Project slug is already in use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteProject",
        "summary": "Delete a project",
        "tags": [
          "Projects"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDeleteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found or projects are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing": {
      "get": {
        "operationId": "getBillingSummary",
        "summary": "Get the billing summary",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Billing summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSummaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Billing was not found or is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/checkout": {
      "post": {
        "operationId": "createBillingCheckout",
        "summary": "Create a Stripe checkout link",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCheckoutBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Hosted checkout URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingLinkResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Browser session is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or a verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Billing was not found or is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Requested plan change is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Billing is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/portal": {
      "post": {
        "operationId": "createBillingPortal",
        "summary": "Create a Stripe customer portal link",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "browserSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Hosted billing portal URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingLinkResponse"
                }
              }
            }
          },
          "401": {
            "description": "Browser session is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or a verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Billing was not found or is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "No active subscription exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Billing is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/capacity/increase": {
      "post": {
        "operationId": "increaseCapacity",
        "summary": "Increase capacity immediately",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCapacityBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated billing summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSummaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or a verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Billing was not found or is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Requested capacity change is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Billing is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/capacity/scheduled-reduction": {
      "post": {
        "operationId": "scheduleCapacityReduction",
        "summary": "Schedule a capacity reduction",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCapacityBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated billing summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSummaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or a verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Billing was not found or is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Requested capacity reduction is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Billing is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "cancelCapacityReduction",
        "summary": "Cancel a scheduled capacity reduction",
        "tags": [
          "Billing"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Updated billing summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSummaryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access or a verified email is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Billing was not found or is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "No scheduled reduction exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Billing is not configured.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/tokens": {
      "get": {
        "operationId": "listProjectTokens",
        "summary": "List project tokens",
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project tokens.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id or query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createProjectToken",
        "summary": "Create a project token",
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTokenBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Project token created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/tokens/{tokenId}/revoke": {
      "post": {
        "operationId": "revokeProjectToken",
        "summary": "Revoke a project token",
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tokenId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked project token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid token id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Token was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/member/tokens": {
      "get": {
        "operationId": "listMemberTokens",
        "summary": "List member tokens",
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Member tokens.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createMemberToken",
        "summary": "Create a member token",
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTokenBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Member token created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Verified email is required before creating the first member token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/member/tokens/{tokenId}/revoke": {
      "post": {
        "operationId": "revokeMemberToken",
        "summary": "Revoke a member token",
        "tags": [
          "Tokens"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "tokenId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked member token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid token id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Token was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/alerts": {
      "get": {
        "operationId": "listAlerts",
        "summary": "List alert rules",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Alert rules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createAlert",
        "summary": "Create an alert rule",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAlertBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Alert rule created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/alerts/{id}": {
      "patch": {
        "operationId": "updateAlert",
        "summary": "Update an alert rule",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlertBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated alert rule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid alert id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Alert was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteAlert",
        "summary": "Delete an alert rule",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Alert rule deleted."
          },
          "400": {
            "description": "Invalid alert id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Alert was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/weekly-report-channels": {
      "get": {
        "operationId": "listWeeklyReportChannels",
        "summary": "List weekly report channels",
        "tags": [
          "Weekly Reports"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Weekly report channels.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeeklyReportChannelListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWeeklyReportChannel",
        "summary": "Create a weekly report channel",
        "tags": [
          "Weekly Reports"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWeeklyReportChannelBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Weekly report channel created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeeklyReportChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/weekly-report-channels/{id}": {
      "patch": {
        "operationId": "updateWeeklyReportChannel",
        "summary": "Update a weekly report channel",
        "tags": [
          "Weekly Reports"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWeeklyReportChannelBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated weekly report channel.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeeklyReportChannelResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid channel id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Weekly report channel was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWeeklyReportChannel",
        "summary": "Delete a weekly report channel",
        "tags": [
          "Weekly Reports"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Weekly report channel deleted."
          },
          "400": {
            "description": "Invalid channel id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Weekly report channel was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks": {
      "get": {
        "operationId": "listWebhooks",
        "summary": "List webhooks",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhooks for a project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWebhook",
        "summary": "Create a webhook",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Webhook created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}": {
      "get": {
        "operationId": "getWebhook",
        "summary": "Get a webhook",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid webhook id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Webhook was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateWebhook",
        "summary": "Update a webhook",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid webhook id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Webhook was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhook",
        "summary": "Delete a webhook",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Webhook deleted."
          },
          "400": {
            "description": "Invalid webhook id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Webhook was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/test": {
      "post": {
        "operationId": "testWebhook",
        "summary": "Queue a synthetic webhook delivery",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Synthetic delivery queued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookTestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid webhook id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Webhook was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "List webhook deliveries",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook deliveries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid webhook id or query parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Webhook was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/deliveries/{deliveryId}/retry": {
      "post": {
        "operationId": "retryWebhookDelivery",
        "summary": "Retry a webhook delivery",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook delivery reset for retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookRetryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid webhook or delivery id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Webhook or delivery was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/probes/activate": {
      "post": {
        "operationId": "activateProbes",
        "summary": "Activate remote probes",
        "tags": [
          "Probes"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProbeActivateBody"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Probe activation created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProbeActivationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Remote probes are not available for the caller tier.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Concurrent activation limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Monthly remote activation quota exceeded.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until the caller should retry.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/probes": {
      "get": {
        "operationId": "listActiveProbes",
        "summary": "List active remote probes",
        "tags": [
          "Probes"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Active probe activations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProbeActivationListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Remote probes are not available for the caller tier.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/probes/deactivate": {
      "post": {
        "operationId": "deactivateProbes",
        "summary": "Deactivate a remote probe",
        "tags": [
          "Probes"
        ],
        "security": [
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProbeDeactivateBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Probe activation deactivated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProbeDeactivationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Member token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Remote probes are not available for the caller tier.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Activation was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/capture-policy": {
      "get": {
        "operationId": "getCapturePolicy",
        "summary": "Get the resolved capture policy for a project",
        "tags": [
          "Capture Policy"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Resolved capture policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapturePolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateCapturePolicy",
        "summary": "Update the capture policy for a project",
        "tags": [
          "Capture Policy"
        ],
        "security": [
          {
            "browserSession": []
          },
          {
            "memberBearerToken": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CapturePolicyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated resolved capture policy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapturePolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid project id or request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Owner access is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Project was not found or capture policy is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sdk/config": {
      "get": {
        "operationId": "getSdkConfig",
        "summary": "Get SDK config for a project token",
        "tags": [
          "SDK"
        ],
        "security": [
          {
            "projectBearerToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "SDK config payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkConfigResponse"
                }
              }
            }
          },
          "304": {
            "description": "SDK config has not changed since the provided ETag."
          },
          "401": {
            "description": "Project token is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "browserSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "dbundle_session",
        "description": "Browser session cookie for interactive authenticated routes."
      },
      "memberBearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Opaque member token",
        "description": "Bearer member token used by the CLI, MCP, and automation."
      },
      "projectBearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Opaque project token",
        "description": "Bearer project token used by ingestion and SDK config routes."
      }
    },
    "schemas": {
      "HealthResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "ok"
          },
          "version": {
            "type": "string"
          },
          "uptime": {
            "type": "number"
          }
        },
        "required": [
          "status",
          "version",
          "uptime"
        ],
        "additionalProperties": false
      },
      "ReadyResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "ready"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "NotReadyResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "not_ready"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "reason"
        ],
        "additionalProperties": false
      },
      "LiveResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "live"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "RequestEmailCodeBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "accepted_terms": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "email",
          "accepted_terms"
        ],
        "additionalProperties": false
      },
      "SuccessResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "VerifyEmailCodeBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$"
          }
        },
        "required": [
          "email",
          "code"
        ],
        "additionalProperties": false
      },
      "SessionResponse": {
        "type": "object",
        "properties": {
          "session": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "email_verified_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organization_id": {
                    "type": "string"
                  },
                  "organization_plan": {
                    "type": "string",
                    "enum": [
                      "free",
                      "solo",
                      "team"
                    ]
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "member"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "revoked_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "csrf_token": {
                    "type": "string"
                  },
                  "auth_methods": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "boolean"
                      },
                      "github": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "email",
                      "github"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "session_id",
                  "user_id",
                  "email",
                  "email_verified_at",
                  "organization_id",
                  "organization_plan",
                  "role",
                  "created_at",
                  "expires_at",
                  "revoked_at",
                  "csrf_token",
                  "auth_methods"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "session"
        ],
        "additionalProperties": false
      },
      "AcceptInviteBody": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "AcceptInviteResponse": {
        "type": "object",
        "properties": {
          "membership": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string"
              },
              "organization_id": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": [
                  "owner",
                  "member"
                ]
              }
            },
            "required": [
              "user_id",
              "organization_id",
              "role"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "membership"
        ],
        "additionalProperties": false
      },
      "AccountExportResponse": {
        "type": "object",
        "properties": {
          "exported_at": {
            "type": "string",
            "format": "date-time"
          },
          "user": {
            "type": "object",
            "additionalProperties": {}
          },
          "organization": {
            "type": "object",
            "additionalProperties": {}
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "invites": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "member_tokens": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "project_tokens": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "capture_policies": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "deployments": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "processed_events": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "incidents": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "incident_events": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "bundle_generations": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "alert_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "alert_deliveries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "weekly_report_channels": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "weekly_report_deliveries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "agent_webhooks": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "webhook_deliveries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "github_installations": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "project_github_repos": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "github_dispatch_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "github_dispatch_deliveries": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "org_usage_counters": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "processed_billing_events": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "audit_logs": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "artifacts": {
            "type": "object",
            "properties": {
              "raw_events": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "content": {}
                  },
                  "required": [
                    "key"
                  ],
                  "additionalProperties": false
                }
              },
              "bundles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "content": {}
                  },
                  "required": [
                    "key"
                  ],
                  "additionalProperties": false
                }
              },
              "reproductions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "content": {}
                  },
                  "required": [
                    "key"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "raw_events",
              "bundles",
              "reproductions"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "exported_at",
          "user",
          "organization",
          "members",
          "invites",
          "member_tokens",
          "projects",
          "project_tokens",
          "capture_policies",
          "services",
          "deployments",
          "processed_events",
          "incidents",
          "incident_events",
          "bundle_generations",
          "alert_rules",
          "alert_deliveries",
          "weekly_report_channels",
          "weekly_report_deliveries",
          "agent_webhooks",
          "webhook_deliveries",
          "github_installations",
          "project_github_repos",
          "github_dispatch_rules",
          "github_dispatch_deliveries",
          "org_usage_counters",
          "processed_billing_events",
          "audit_logs",
          "artifacts"
        ],
        "additionalProperties": false
      },
      "AccountDeleteBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false
      },
      "AccountDeletionResponse": {
        "type": "object",
        "properties": {
          "account": {
            "type": "object",
            "properties": {
              "deleted_at": {
                "type": "string",
                "format": "date-time"
              },
              "organization_id": {
                "type": "string"
              },
              "deleted_project_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "user_deleted": {
                "type": "boolean"
              },
              "deleted_member_token_count": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "deleted_at",
              "organization_id",
              "deleted_project_ids",
              "user_deleted",
              "deleted_member_token_count"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "account"
        ],
        "additionalProperties": false
      },
      "IngestionRequest": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "backend_exception"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1
                        },
                        "stack": {
                          "type": "string",
                          "minLength": 1
                        },
                        "handled": {
                          "type": "boolean"
                        },
                        "request": {
                          "type": "object",
                          "properties": {
                            "method": {
                              "type": "string",
                              "minLength": 1
                            },
                            "path": {
                              "type": "string",
                              "minLength": 1
                            },
                            "query": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "headers": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "body": {
                              "anyOf": [
                                {},
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "method",
                            "path",
                            "query",
                            "headers"
                          ],
                          "additionalProperties": false
                        },
                        "response": {
                          "type": "object",
                          "properties": {
                            "status_code": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "headers": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "body": {}
                          },
                          "required": [
                            "status_code"
                          ],
                          "additionalProperties": false
                        },
                        "runtime": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "version"
                          ],
                          "additionalProperties": false
                        },
                        "probe_data": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "number",
                              "const": 1
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "data": {
                                    "type": "object",
                                    "additionalProperties": {}
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "activation_id": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "label",
                                  "data",
                                  "timestamp",
                                  "activation_id"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "version",
                            "items"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "name",
                        "message",
                        "stack",
                        "handled",
                        "request",
                        "response",
                        "runtime"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "request_event"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "method": {
                          "type": "string",
                          "minLength": 1
                        },
                        "path": {
                          "type": "string",
                          "minLength": 1
                        },
                        "query": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "headers": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "body": {
                          "anyOf": [
                            {},
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "response_status": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "duration_ms": {
                          "type": "number",
                          "minimum": 0
                        },
                        "route_template": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "response_headers": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "response_body": {}
                      },
                      "required": [
                        "method",
                        "path",
                        "query",
                        "headers",
                        "response_status",
                        "duration_ms"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "log_event"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "string",
                          "minLength": 1
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1
                        },
                        "attributes": {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "level",
                        "message",
                        "attributes"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "frontend_breadcrumb"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "breadcrumb_type": {
                          "type": "string",
                          "enum": [
                            "route_change",
                            "click",
                            "form_submit",
                            "console_log",
                            "network_request"
                          ]
                        },
                        "route": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "data": {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "breadcrumb_type",
                        "data"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "frontend_exception"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1
                        },
                        "stack": {
                          "type": "string",
                          "minLength": 1
                        },
                        "route": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "browser": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "version": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "name",
                            "version"
                          ],
                          "additionalProperties": false
                        },
                        "breadcrumbs": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "breadcrumb_type": {
                                "type": "string",
                                "enum": [
                                  "route_change",
                                  "click",
                                  "form_submit",
                                  "console_log",
                                  "network_request"
                                ]
                              },
                              "route": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "data": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "ts": {
                                "type": "string",
                                "format": "date-time"
                              }
                            },
                            "required": [
                              "breadcrumb_type",
                              "data",
                              "ts"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "device": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "user_agent": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "os": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "device_type": {
                                  "type": "string",
                                  "enum": [
                                    "desktop",
                                    "mobile",
                                    "tablet",
                                    "unknown"
                                  ]
                                },
                                "screen": {
                                  "type": "object",
                                  "properties": {
                                    "width": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "height": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "width",
                                    "height"
                                  ],
                                  "additionalProperties": false
                                },
                                "viewport": {
                                  "type": "object",
                                  "properties": {
                                    "width": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "height": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "width",
                                    "height"
                                  ],
                                  "additionalProperties": false
                                },
                                "device_pixel_ratio": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "exclusiveMinimum": true,
                                      "minimum": 0
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "touch_capable": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "connection_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "color_scheme_preference": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "light",
                                        "dark",
                                        "no-preference"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "user_agent",
                                "os",
                                "device_type",
                                "screen",
                                "viewport",
                                "device_pixel_ratio",
                                "touch_capable",
                                "language",
                                "connection_type",
                                "color_scheme_preference"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dom_context": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "mode": {
                                  "type": "string",
                                  "const": "lightweight"
                                },
                                "html_excerpt": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "mode",
                                "html_excerpt"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "probe_data": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "number",
                              "const": 1
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "data": {
                                    "type": "object",
                                    "additionalProperties": {}
                                  },
                                  "timestamp": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "activation_id": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "label",
                                  "data",
                                  "timestamp",
                                  "activation_id"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "version",
                            "items"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "name",
                        "message",
                        "stack",
                        "browser"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "deploy_metadata"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "commit_sha": {
                          "type": "string",
                          "minLength": 1
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1
                        },
                        "branch": {
                          "type": "string",
                          "minLength": 1
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        },
                        "deployed_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "commit_sha",
                        "version",
                        "branch",
                        "environment",
                        "deployed_at"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "error_suppressed"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "fingerprint": {
                          "type": "string",
                          "minLength": 1
                        },
                        "suppressed_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "window_seconds": {
                          "type": "integer",
                          "exclusiveMinimum": true,
                          "minimum": 0
                        },
                        "first_seen": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "last_seen": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "fingerprint",
                        "suppressed_count",
                        "window_seconds",
                        "first_seen",
                        "last_seen"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "event_type": {
                      "type": "string",
                      "const": "probe_event"
                    },
                    "project_token": {
                      "type": "string",
                      "minLength": 1
                    },
                    "project_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sdk_name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sdk_version": {
                      "type": "string",
                      "minLength": 1
                    },
                    "service": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "runtime": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "framework": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "environment": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "name",
                        "environment"
                      ],
                      "additionalProperties": false
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "correlation": {
                      "type": "object",
                      "properties": {
                        "request_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "trace_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "session_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "user_id_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "request_id",
                        "trace_id",
                        "session_id",
                        "user_id_hash"
                      ],
                      "additionalProperties": false
                    },
                    "payload": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "data": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "activation_id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "probe_label_pattern": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "label",
                        "data",
                        "activation_id",
                        "probe_label_pattern"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "event_id",
                    "event_type",
                    "sdk_name",
                    "sdk_version",
                    "service",
                    "occurred_at",
                    "payload"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          }
        },
        "required": [
          "events"
        ],
        "additionalProperties": false
      },
      "IngestionAcceptedResponse": {
        "type": "object",
        "properties": {
          "accepted": {
            "type": "integer",
            "minimum": 0
          },
          "rejected": {
            "type": "integer",
            "minimum": 0
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "index",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "retry_after_ms": {
            "type": "integer",
            "exclusiveMinimum": true,
            "minimum": 0
          },
          "probe_directives": {
            "type": "object",
            "properties": {
              "active_probes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "activation_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "label_pattern": {
                      "type": "string"
                    },
                    "service": {
                      "type": "string"
                    },
                    "environment": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "trigger_expires_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "activation_id",
                    "label_pattern",
                    "service",
                    "environment",
                    "expires_at",
                    "trigger_expires_at"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "active_probes"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "accepted",
          "rejected",
          "errors"
        ],
        "additionalProperties": false
      },
      "IncidentListResponse": {
        "type": "object",
        "properties": {
          "incidents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "incident_id": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "project_name": {
                  "type": "string"
                },
                "service_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "service_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latest_deployment_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "environment": {
                  "type": "string"
                },
                "fingerprint": {
                  "type": "string"
                },
                "fingerprint_version": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "severity": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "first_seen_at": {
                  "type": "string"
                },
                "last_seen_at": {
                  "type": "string"
                },
                "occurrence_count": {
                  "type": "integer"
                },
                "spike_detected_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "resolved_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "regressed_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "matched_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "incident_id",
                "project_id",
                "project_name",
                "service_id",
                "service_name",
                "latest_deployment_id",
                "environment",
                "fingerprint",
                "fingerprint_version",
                "title",
                "severity",
                "status",
                "first_seen_at",
                "last_seen_at",
                "occurrence_count",
                "spike_detected_at",
                "regressed_at",
                "matched_fields"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "incidents"
        ],
        "additionalProperties": false
      },
      "IncidentResponse": {
        "type": "object",
        "properties": {
          "incident": {
            "type": "object",
            "properties": {
              "incident_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "project_name": {
                "type": "string"
              },
              "service_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "service_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "latest_deployment_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "environment": {
                "type": "string"
              },
              "fingerprint": {
                "type": "string"
              },
              "fingerprint_version": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "severity": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "first_seen_at": {
                "type": "string"
              },
              "last_seen_at": {
                "type": "string"
              },
              "occurrence_count": {
                "type": "integer"
              },
              "spike_detected_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "resolved_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "regressed_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "matched_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "incident_id",
              "project_id",
              "project_name",
              "service_id",
              "service_name",
              "latest_deployment_id",
              "environment",
              "fingerprint",
              "fingerprint_version",
              "title",
              "severity",
              "status",
              "first_seen_at",
              "last_seen_at",
              "occurrence_count",
              "spike_detected_at",
              "regressed_at",
              "matched_fields"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "incident"
        ],
        "additionalProperties": false
      },
      "BundleDocument": {
        "type": "object",
        "properties": {
          "bundle_version": {
            "type": "number",
            "const": 1
          },
          "bundle_id": {
            "type": "string",
            "minLength": 1
          },
          "bundle_type": {
            "type": "string",
            "enum": [
              "failure",
              "improvement"
            ]
          },
          "captured_at": {
            "type": "string",
            "format": "date-time"
          },
          "sdk": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "version": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "name",
              "version"
            ],
            "additionalProperties": false
          },
          "project": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "slug": {
                "type": "string",
                "minLength": 1
              },
              "environment": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "id",
              "slug",
              "environment"
            ],
            "additionalProperties": false
          },
          "service": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "runtime": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "framework": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "version": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "region": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "runtime",
              "framework",
              "version",
              "region"
            ],
            "additionalProperties": false
          },
          "signal": {
            "type": "object",
            "properties": {
              "signal_id": {
                "type": "string",
                "minLength": 1
              },
              "signal_type": {
                "type": "string",
                "enum": [
                  "exception",
                  "fatal_error",
                  "request_failure",
                  "frontend_exception",
                  "warning",
                  "deprecation",
                  "performance_issue",
                  "retry_loop",
                  "slow_query"
                ]
              },
              "severity": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "fingerprint": {
                "type": "string",
                "minLength": 1
              },
              "first_seen_at": {
                "type": "string",
                "format": "date-time"
              },
              "last_seen_at": {
                "type": "string",
                "format": "date-time"
              },
              "occurrence_count": {
                "type": "integer",
                "minimum": 0
              },
              "source_event_types": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            },
            "required": [
              "signal_id",
              "signal_type",
              "severity",
              "fingerprint",
              "first_seen_at",
              "last_seen_at",
              "occurrence_count",
              "source_event_types"
            ],
            "additionalProperties": false
          },
          "summary": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1
              },
              "description": {
                "type": "string",
                "minLength": 1
              },
              "likely_cause": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "recommended_action": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "severity": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "error_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "error_message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "first_application_frame": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "file": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "line": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "function": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "file",
                      "line",
                      "function"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "primary_signal": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signals": {
                "type": "object",
                "properties": {
                  "new_deploy": {
                    "type": "boolean"
                  },
                  "regression_suspected": {
                    "type": "boolean"
                  },
                  "customer_visible": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "new_deploy",
                  "regression_suspected",
                  "customer_visible"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "title",
              "description",
              "likely_cause",
              "confidence",
              "recommended_action",
              "severity",
              "error_type",
              "error_message",
              "first_application_frame",
              "primary_signal",
              "signals"
            ],
            "additionalProperties": false
          },
          "impact": {
            "type": "object",
            "properties": {
              "affected_users_estimate": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "affected_requests_estimate": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "business_criticality": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "customer_visible": {
                "type": "boolean"
              },
              "regression_suspected": {
                "type": "boolean"
              }
            },
            "required": [
              "affected_users_estimate",
              "affected_requests_estimate",
              "business_criticality",
              "customer_visible",
              "regression_suspected"
            ],
            "additionalProperties": false
          },
          "context": {
            "type": "object",
            "properties": {
              "error": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "version": {
                            "type": "number",
                            "const": 1
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "message": {
                            "type": "string",
                            "minLength": 1
                          },
                          "stack": {
                            "type": "string",
                            "minLength": 1
                          },
                          "handled": {
                            "type": "boolean"
                          },
                          "top_frames": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "version",
                          "name",
                          "message",
                          "stack",
                          "handled",
                          "top_frames"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "request": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "method": {
                        "type": "string",
                        "minLength": 1
                      },
                      "path": {
                        "type": "string",
                        "minLength": 1
                      },
                      "route_template": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "query": {
                        "type": "object",
                        "additionalProperties": {}
                      },
                      "headers": {
                        "type": "object",
                        "additionalProperties": {}
                      },
                      "body": {
                        "anyOf": [
                          {},
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "request_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "method",
                      "path",
                      "route_template",
                      "query",
                      "headers",
                      "request_id"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "response": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "status_code": {
                        "type": "integer"
                      },
                      "duration_ms": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "headers": {
                        "type": "object",
                        "additionalProperties": {}
                      },
                      "body": {}
                    },
                    "required": [
                      "version",
                      "status_code",
                      "duration_ms"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logs": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "level": {
                              "type": "string",
                              "minLength": 1
                            },
                            "message": {
                              "type": "string",
                              "minLength": 1
                            },
                            "timestamp": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "level",
                            "message",
                            "timestamp",
                            "attributes"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "items"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frontend": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "route_changes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "from": {
                              "type": "string"
                            },
                            "to": {
                              "type": "string"
                            },
                            "ts": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "required": [
                            "from",
                            "to",
                            "ts"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "clicks": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "selector": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "ts": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "required": [
                            "selector",
                            "label",
                            "ts"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "form_submissions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "form": {
                              "type": "string"
                            },
                            "fields": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "ts": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "required": [
                            "form",
                            "fields",
                            "ts"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "console_logs": {
                        "type": "array",
                        "items": {}
                      },
                      "network_requests": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "method": {
                              "type": "string"
                            },
                            "url": {
                              "type": "string"
                            },
                            "status": {
                              "type": "integer"
                            },
                            "ts": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "duration_ms": {
                              "type": "number",
                              "minimum": 0
                            },
                            "caller_trace": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "response_body": {},
                            "request_body": {},
                            "response_headers": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            "response_content_length": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "method",
                            "url",
                            "status",
                            "ts"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "exceptions": {
                        "type": "array",
                        "items": {}
                      },
                      "dom_context": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "const": "lightweight"
                              },
                              "html_excerpt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "mode",
                              "html_excerpt"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "route_changes",
                      "clicks",
                      "form_submissions",
                      "console_logs",
                      "network_requests",
                      "exceptions",
                      "dom_context"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "environment": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "os": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "host": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "container_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "os",
                      "host",
                      "container_id"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deploy": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "commit_sha": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "deploy_version": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "branch": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "deployed_at": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "regression_window": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "commit_sha",
                      "deploy_version",
                      "branch",
                      "deployed_at",
                      "regression_window"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "runtime": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "runtime_version": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "platform": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "arch": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "pid": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cwd": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "uptime_sec": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hostname": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "thread_id": {
                        "anyOf": [
                          {
                            "type": [
                              "string",
                              "number"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "framework": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "framework_version": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "memory": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "rss": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "heap_total": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "heap_used": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "external": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "peak": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "rss",
                              "heap_total",
                              "heap_used",
                              "external",
                              "peak"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "framework_extras": {
                        "anyOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "name",
                      "runtime_version",
                      "platform",
                      "arch",
                      "pid",
                      "cwd",
                      "uptime_sec",
                      "hostname",
                      "thread_id",
                      "framework",
                      "framework_version",
                      "memory"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "git": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "commit": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "commit_short": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "branch": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "dirty": {
                        "type": "boolean"
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "config",
                          "env",
                          "local",
                          "unknown"
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "commit",
                      "commit_short",
                      "branch",
                      "repo",
                      "dirty",
                      "source"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dependencies": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "ok",
                                "degraded",
                                "failed",
                                "unknown"
                              ]
                            },
                            "notes": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "status",
                            "notes"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "items"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "probe_data": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "label": {
                              "type": "string",
                              "minLength": 1
                            },
                            "data": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "timestamp": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "activation_id": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "label",
                            "data",
                            "timestamp",
                            "activation_id"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "items"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "device": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "user_agent": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "browser": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "os": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "device_type": {
                        "type": "string",
                        "enum": [
                          "desktop",
                          "mobile",
                          "tablet",
                          "unknown"
                        ]
                      },
                      "screen": {
                        "type": "object",
                        "properties": {
                          "width": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "height": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "required": [
                          "width",
                          "height"
                        ],
                        "additionalProperties": false
                      },
                      "viewport": {
                        "type": "object",
                        "properties": {
                          "width": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "height": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "required": [
                          "width",
                          "height"
                        ],
                        "additionalProperties": false
                      },
                      "device_pixel_ratio": {
                        "anyOf": [
                          {
                            "type": "number",
                            "exclusiveMinimum": true,
                            "minimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "touch_capable": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "language": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "connection_type": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "color_scheme_preference": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "light",
                              "dark",
                              "no-preference"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "user_agent",
                      "browser",
                      "os",
                      "device_type",
                      "screen",
                      "viewport",
                      "device_pixel_ratio",
                      "touch_capable",
                      "language",
                      "connection_type",
                      "color_scheme_preference"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "reproduction": {
            "type": "object",
            "properties": {
              "possible": {
                "type": "boolean"
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "reason": {
                "type": "string"
              },
              "artifacts": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "curl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "httpie": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "json_spec": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "method": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              },
                              "headers": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "query": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "body": {
                                "anyOf": [
                                  {},
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "method",
                              "url",
                              "headers"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "curl",
                      "httpie",
                      "json_spec"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feasibility_reference": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "standard_http_bugs": {
                        "type": "string"
                      },
                      "frontend_interaction_plus_failing_request": {
                        "type": "string"
                      },
                      "background_jobs": {
                        "type": "string"
                      },
                      "race_conditions": {
                        "type": "string"
                      },
                      "external_outage_timing": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "standard_http_bugs",
                      "frontend_interaction_plus_failing_request",
                      "background_jobs",
                      "race_conditions",
                      "external_outage_timing"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "possible",
              "confidence",
              "reason",
              "artifacts"
            ],
            "additionalProperties": false
          },
          "verification": {
            "type": "object",
            "properties": {
              "verification_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "synthetic": {
                "type": "boolean"
              },
              "local_verified": {
                "type": "boolean"
              },
              "production_verified": {
                "type": "boolean"
              }
            },
            "required": [
              "verification_type",
              "synthetic",
              "local_verified",
              "production_verified"
            ],
            "additionalProperties": false
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reproduction": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "incident": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "project": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "docs": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "self",
              "reproduction",
              "incident",
              "project",
              "docs"
            ],
            "additionalProperties": false
          },
          "redaction": {
            "type": "object",
            "properties": {
              "redacted": {
                "type": "boolean"
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notes": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "redacted",
              "fields",
              "notes"
            ],
            "additionalProperties": false
          },
          "metadata": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              },
              "generator_version": {
                "type": "string",
                "minLength": 1
              },
              "generation_number": {
                "type": "integer",
                "exclusiveMinimum": true,
                "minimum": 0
              }
            },
            "required": [
              "created_at",
              "updated_at",
              "generator_version",
              "generation_number"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "bundle_version",
          "bundle_id",
          "bundle_type",
          "captured_at",
          "sdk",
          "project",
          "service",
          "signal",
          "summary",
          "impact",
          "context",
          "reproduction",
          "verification",
          "links",
          "redaction",
          "metadata"
        ],
        "additionalProperties": false
      },
      "PendingStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "pending"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "BundleFailedStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "failed"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "reason"
        ],
        "additionalProperties": false
      },
      "ReproductionResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "pending"
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "possible": {
                "type": "boolean"
              },
              "confidence": {
                "type": "number"
              },
              "reason": {
                "type": "string"
              },
              "artifacts": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "curl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "httpie": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "json_spec": {
                        "anyOf": [
                          {},
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feasibility_reference": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "possible",
              "confidence",
              "reason",
              "artifacts"
            ],
            "additionalProperties": false
          }
        ]
      },
      "LogsResponse": {
        "type": "object",
        "properties": {
          "logs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "event_id": {
                  "type": "string"
                },
                "event_type": {
                  "type": "string"
                },
                "occurred_at": {
                  "type": "string"
                },
                "is_sampled": {
                  "type": "boolean"
                },
                "level": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "event_id",
                "event_type",
                "occurred_at",
                "is_sampled",
                "level"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "logs"
        ],
        "additionalProperties": false
      },
      "ServicesResponse": {
        "type": "object",
        "properties": {
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service_id": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "runtime": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "framework": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "environment": {
                  "type": "string"
                }
              },
              "required": [
                "service_id",
                "project_id",
                "name",
                "runtime",
                "framework",
                "environment"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "services"
        ],
        "additionalProperties": false
      },
      "OrganizationMemberListResponse": {
        "type": "object",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "user_id": {
                  "type": "string"
                },
                "email": {
                  "type": "string",
                  "format": "email"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "member"
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "user_id",
                "email",
                "role",
                "created_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "members"
        ],
        "additionalProperties": false
      },
      "OrganizationInviteListResponse": {
        "type": "object",
        "properties": {
          "invites": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "invite_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "organization_id": {
                  "type": "string"
                },
                "email": {
                  "type": "string",
                  "format": "email"
                },
                "role": {
                  "type": "string",
                  "const": "member"
                },
                "invited_by": {
                  "type": "string"
                },
                "accepted_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "invite_id",
                "organization_id",
                "email",
                "role",
                "invited_by",
                "accepted_at",
                "expires_at",
                "created_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "invites"
        ],
        "additionalProperties": false
      },
      "CreateOrganizationInviteBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "role": {
            "type": "string",
            "const": "member",
            "default": "member"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false
      },
      "OrganizationInviteResponse": {
        "type": "object",
        "properties": {
          "invite": {
            "type": "object",
            "properties": {
              "invite_id": {
                "type": "string",
                "format": "uuid"
              },
              "organization_id": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "role": {
                "type": "string",
                "const": "member"
              },
              "invited_by": {
                "type": "string"
              },
              "accepted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "invite_id",
              "organization_id",
              "email",
              "role",
              "invited_by",
              "accepted_at",
              "expires_at",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "invite"
        ],
        "additionalProperties": false
      },
      "UpdateOrganizationMemberRoleBody": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "member"
            ]
          }
        },
        "required": [
          "role"
        ],
        "additionalProperties": false
      },
      "OrganizationMemberResponse": {
        "type": "object",
        "properties": {
          "member": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "role": {
                "type": "string",
                "enum": [
                  "owner",
                  "member"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "user_id",
              "email",
              "role",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "member"
        ],
        "additionalProperties": false
      },
      "ProjectListResponse": {
        "type": "object",
        "properties": {
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "project_id": {
                  "type": "string"
                },
                "organization_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "environment_default": {
                  "type": "string"
                },
                "organization_plan": {
                  "type": "string",
                  "enum": [
                    "free",
                    "solo",
                    "team"
                  ]
                },
                "metrics": {
                  "type": "object",
                  "properties": {
                    "monthly_bundle_requests": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "monthly_raw_ingested_events": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "retained_bundles": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "monthly_alert_deliveries": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "monthly_bundle_requests",
                    "monthly_raw_ingested_events",
                    "retained_bundles",
                    "monthly_alert_deliveries"
                  ],
                  "additionalProperties": false
                },
                "created_at": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "project_id",
                "organization_id",
                "name",
                "slug",
                "environment_default",
                "organization_plan",
                "metrics",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "projects"
        ],
        "additionalProperties": false
      },
      "CreateProjectBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "environment_default": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "default": "production"
          }
        },
        "required": [
          "name",
          "slug"
        ],
        "additionalProperties": false
      },
      "ProjectCreateResponse": {
        "type": "object",
        "properties": {
          "project": {
            "type": "object",
            "properties": {
              "project_id": {
                "type": "string"
              },
              "organization_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "environment_default": {
                "type": "string"
              },
              "organization_plan": {
                "type": "string",
                "enum": [
                  "free",
                  "solo",
                  "team"
                ]
              },
              "metrics": {
                "type": "object",
                "properties": {
                  "monthly_bundle_requests": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "monthly_raw_ingested_events": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "retained_bundles": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "monthly_alert_deliveries": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "monthly_bundle_requests",
                  "monthly_raw_ingested_events",
                  "retained_bundles",
                  "monthly_alert_deliveries"
                ],
                "additionalProperties": false
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "project_id",
              "organization_id",
              "name",
              "slug",
              "environment_default",
              "organization_plan",
              "metrics",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project"
        ],
        "additionalProperties": false
      },
      "UpdateProjectBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "environment_default": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50
          }
        },
        "additionalProperties": false
      },
      "ProjectUpdateResponse": {
        "type": "object",
        "properties": {
          "project": {
            "type": "object",
            "properties": {
              "project_id": {
                "type": "string"
              },
              "organization_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "environment_default": {
                "type": "string"
              },
              "organization_plan": {
                "type": "string",
                "enum": [
                  "free",
                  "solo",
                  "team"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              },
              "metrics": {
                "type": "object",
                "properties": {
                  "monthly_bundle_requests": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "monthly_raw_ingested_events": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "retained_bundles": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "monthly_alert_deliveries": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "monthly_bundle_requests",
                  "monthly_raw_ingested_events",
                  "retained_bundles",
                  "monthly_alert_deliveries"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "project_id",
              "organization_id",
              "name",
              "slug",
              "environment_default",
              "organization_plan",
              "created_at",
              "updated_at",
              "metrics"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project"
        ],
        "additionalProperties": false
      },
      "ProjectDeleteResponse": {
        "type": "object",
        "properties": {
          "project": {
            "type": "object",
            "properties": {
              "project_id": {
                "type": "string"
              },
              "organization_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "environment_default": {
                "type": "string"
              },
              "organization_plan": {
                "type": "string",
                "enum": [
                  "free",
                  "solo",
                  "team"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "project_id",
              "organization_id",
              "name",
              "slug",
              "environment_default",
              "organization_plan",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project"
        ],
        "additionalProperties": false
      },
      "BillingSummaryResponse": {
        "type": "object",
        "properties": {
          "billing": {
            "type": "object",
            "properties": {
              "plan": {
                "type": "string",
                "enum": [
                  "free",
                  "solo",
                  "team"
                ]
              },
              "stripe_customer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "active_projects": {
                "type": "integer",
                "minimum": 0
              },
              "capacity_units": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "included": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "additional_purchased": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "pending_reduction": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "additional_purchased": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "effective_at": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "additional_purchased",
                          "total",
                          "effective_at"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "total",
                  "included",
                  "additional_purchased",
                  "pending_reduction"
                ],
                "additionalProperties": false
              },
              "usage_window": {
                "type": "object",
                "properties": {
                  "starts_at": {
                    "type": "string"
                  },
                  "ends_at": {
                    "type": "string"
                  }
                },
                "required": [
                  "starts_at",
                  "ends_at"
                ],
                "additionalProperties": false
              },
              "allowances": {
                "type": "object",
                "properties": {
                  "monthly_bundle_requests": {
                    "type": "object",
                    "properties": {
                      "used": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "used",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  "monthly_raw_ingested_events": {
                    "type": "object",
                    "properties": {
                      "used": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "used",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  "retained_bundle_cap": {
                    "type": "object",
                    "properties": {
                      "used": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "used",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  "monthly_remote_activations": {
                    "type": "object",
                    "properties": {
                      "used": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "used",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  "monthly_alert_deliveries": {
                    "type": "object",
                    "properties": {
                      "used": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "used",
                      "limit"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "monthly_bundle_requests",
                  "monthly_raw_ingested_events",
                  "retained_bundle_cap",
                  "monthly_remote_activations",
                  "monthly_alert_deliveries"
                ],
                "additionalProperties": false
              },
              "email_verification_required": {
                "type": "boolean"
              }
            },
            "required": [
              "plan",
              "stripe_customer_id",
              "active_projects",
              "capacity_units",
              "usage_window",
              "allowances"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "billing"
        ],
        "additionalProperties": false
      },
      "BillingCheckoutBody": {
        "type": "object",
        "properties": {
          "target_plan": {
            "type": "string",
            "enum": [
              "solo",
              "team"
            ]
          }
        },
        "required": [
          "target_plan"
        ],
        "additionalProperties": false
      },
      "BillingLinkResponse": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "BillingCapacityBody": {
        "type": "object",
        "properties": {
          "target_additional_capacity_units": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          }
        },
        "required": [
          "target_additional_capacity_units"
        ],
        "additionalProperties": false
      },
      "TokenListResponse": {
        "type": "object",
        "properties": {
          "tokens": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "token_id": {
                      "type": "string"
                    },
                    "project_id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "last_used_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "revoked_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "plaintext": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token_id",
                    "project_id",
                    "label",
                    "created_at",
                    "last_used_at",
                    "revoked_at",
                    "expires_at"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "token_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "organization_id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "last_used_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "revoked_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "plaintext": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token_id",
                    "user_id",
                    "organization_id",
                    "label",
                    "created_at",
                    "last_used_at",
                    "revoked_at",
                    "expires_at"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          }
        },
        "required": [
          "tokens"
        ],
        "additionalProperties": false
      },
      "CreateTokenBody": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "label"
        ],
        "additionalProperties": false
      },
      "TokenResponse": {
        "type": "object",
        "properties": {
          "token": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "token_id": {
                    "type": "string"
                  },
                  "project_id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "created_at": {
                    "type": "string"
                  },
                  "last_used_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "revoked_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "expires_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "plaintext": {
                    "type": "string"
                  }
                },
                "required": [
                  "token_id",
                  "project_id",
                  "label",
                  "created_at",
                  "last_used_at",
                  "revoked_at",
                  "expires_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "token_id": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "string"
                  },
                  "organization_id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "created_at": {
                    "type": "string"
                  },
                  "last_used_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "revoked_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "expires_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "plaintext": {
                    "type": "string"
                  }
                },
                "required": [
                  "token_id",
                  "user_id",
                  "organization_id",
                  "label",
                  "created_at",
                  "last_used_at",
                  "revoked_at",
                  "expires_at"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "AlertListResponse": {
        "type": "object",
        "properties": {
          "alerts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "alert_id": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "service_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "slack",
                    "discord",
                    "webhook"
                  ]
                },
                "condition_type": {
                  "type": "string",
                  "enum": [
                    "new_incident",
                    "incident_regressed",
                    "error_spike",
                    "severity_threshold",
                    "regression_after_deploy"
                  ]
                },
                "severity_min": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "config": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "is_enabled": {
                  "type": "boolean"
                },
                "created_at": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "alert_id",
                "project_id",
                "service_id",
                "channel",
                "condition_type",
                "severity_min",
                "config",
                "is_enabled",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "alerts"
        ],
        "additionalProperties": false
      },
      "CreateAlertBody": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "service_id": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "slack",
              "discord",
              "webhook"
            ]
          },
          "condition_type": {
            "type": "string",
            "enum": [
              "new_incident",
              "incident_regressed",
              "error_spike",
              "severity_threshold",
              "regression_after_deploy"
            ]
          },
          "severity_min": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ]
          },
          "config": {
            "type": "object",
            "additionalProperties": {},
            "default": {}
          },
          "is_enabled": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "project_id",
          "channel",
          "condition_type"
        ],
        "additionalProperties": false
      },
      "AlertResponse": {
        "type": "object",
        "properties": {
          "alert": {
            "type": "object",
            "properties": {
              "alert_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "service_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "channel": {
                "type": "string",
                "enum": [
                  "email",
                  "slack",
                  "discord",
                  "webhook"
                ]
              },
              "condition_type": {
                "type": "string",
                "enum": [
                  "new_incident",
                  "incident_regressed",
                  "error_spike",
                  "severity_threshold",
                  "regression_after_deploy"
                ]
              },
              "severity_min": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "config": {
                "type": "object",
                "additionalProperties": {}
              },
              "is_enabled": {
                "type": "boolean"
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "alert_id",
              "project_id",
              "service_id",
              "channel",
              "condition_type",
              "severity_min",
              "config",
              "is_enabled",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "alert"
        ],
        "additionalProperties": false
      },
      "UpdateAlertBody": {
        "type": "object",
        "properties": {
          "service_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "slack",
              "discord",
              "webhook"
            ]
          },
          "condition_type": {
            "type": "string",
            "enum": [
              "new_incident",
              "incident_regressed",
              "error_spike",
              "severity_threshold",
              "regression_after_deploy"
            ]
          },
          "severity_min": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "config": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "is_enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WeeklyReportChannelListResponse": {
        "type": "object",
        "properties": {
          "channels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "channel_id": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "slack"
                  ]
                },
                "config": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "schedule": {
                  "type": "object",
                  "properties": {
                    "day_of_week": {
                      "type": "string",
                      "enum": [
                        "monday",
                        "tuesday",
                        "wednesday",
                        "thursday",
                        "friday",
                        "saturday",
                        "sunday"
                      ]
                    },
                    "hour_of_day": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 23
                    },
                    "timezone": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "day_of_week",
                    "hour_of_day",
                    "timezone"
                  ],
                  "additionalProperties": false
                },
                "is_enabled": {
                  "type": "boolean"
                },
                "created_at": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "channel_id",
                "project_id",
                "channel",
                "config",
                "schedule",
                "is_enabled",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "channels"
        ],
        "additionalProperties": false
      },
      "CreateWeeklyReportChannelBody": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "project_id": {
                "type": "string",
                "format": "uuid"
              },
              "channel": {
                "type": "string",
                "const": "email"
              },
              "config": {
                "type": "object",
                "properties": {
                  "to": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "to"
                ],
                "additionalProperties": false
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "day_of_week": {
                    "type": "string",
                    "enum": [
                      "monday",
                      "tuesday",
                      "wednesday",
                      "thursday",
                      "friday",
                      "saturday",
                      "sunday"
                    ]
                  },
                  "hour_of_day": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "day_of_week",
                  "hour_of_day",
                  "timezone"
                ],
                "additionalProperties": false
              },
              "is_enabled": {
                "type": "boolean",
                "default": true
              }
            },
            "required": [
              "project_id",
              "channel",
              "config",
              "schedule"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "project_id": {
                "type": "string",
                "format": "uuid"
              },
              "channel": {
                "type": "string",
                "const": "slack"
              },
              "config": {
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2000
                  }
                },
                "required": [
                  "webhook_url"
                ],
                "additionalProperties": false
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "day_of_week": {
                    "type": "string",
                    "enum": [
                      "monday",
                      "tuesday",
                      "wednesday",
                      "thursday",
                      "friday",
                      "saturday",
                      "sunday"
                    ]
                  },
                  "hour_of_day": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "day_of_week",
                  "hour_of_day",
                  "timezone"
                ],
                "additionalProperties": false
              },
              "is_enabled": {
                "type": "boolean",
                "default": true
              }
            },
            "required": [
              "project_id",
              "channel",
              "config",
              "schedule"
            ],
            "additionalProperties": false
          }
        ]
      },
      "WeeklyReportChannelResponse": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "object",
            "properties": {
              "channel_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "channel": {
                "type": "string",
                "enum": [
                  "email",
                  "slack"
                ]
              },
              "config": {
                "type": "object",
                "additionalProperties": {}
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "day_of_week": {
                    "type": "string",
                    "enum": [
                      "monday",
                      "tuesday",
                      "wednesday",
                      "thursday",
                      "friday",
                      "saturday",
                      "sunday"
                    ]
                  },
                  "hour_of_day": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "day_of_week",
                  "hour_of_day",
                  "timezone"
                ],
                "additionalProperties": false
              },
              "is_enabled": {
                "type": "boolean"
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "channel_id",
              "project_id",
              "channel",
              "config",
              "schedule",
              "is_enabled",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "channel"
        ],
        "additionalProperties": false
      },
      "UpdateWeeklyReportChannelBody": {
        "type": "object",
        "properties": {
          "config": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "to": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "to"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "webhook_url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2000
                  }
                },
                "required": [
                  "webhook_url"
                ],
                "additionalProperties": false
              }
            ]
          },
          "schedule": {
            "type": "object",
            "properties": {
              "day_of_week": {
                "type": "string",
                "enum": [
                  "monday",
                  "tuesday",
                  "wednesday",
                  "thursday",
                  "friday",
                  "saturday",
                  "sunday"
                ]
              },
              "hour_of_day": {
                "type": "integer",
                "minimum": 0,
                "maximum": 23
              },
              "timezone": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "day_of_week",
              "hour_of_day",
              "timezone"
            ],
            "additionalProperties": false
          },
          "is_enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WebhookListResponse": {
        "type": "object",
        "properties": {
          "webhooks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "webhook_id": {
                  "type": "string"
                },
                "project_id": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "events": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "bundle.created",
                      "bundle.updated",
                      "bundle.reopened",
                      "bundle.resolved",
                      "verification.passed",
                      "verification.failed",
                      "improvement_bundle.created",
                      "incident.spike_detected"
                    ]
                  }
                },
                "filters": {
                  "type": "object",
                  "properties": {
                    "environment": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "service": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "severity_min": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ]
                    },
                    "bundle_type": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "failure",
                          "improvement"
                        ]
                      }
                    },
                    "verification": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "is_enabled": {
                  "type": "boolean"
                },
                "created_at": {
                  "type": "string"
                },
                "updated_at": {
                  "type": "string"
                }
              },
              "required": [
                "webhook_id",
                "project_id",
                "url",
                "events",
                "filters",
                "is_enabled",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "webhooks"
        ],
        "additionalProperties": false
      },
      "CreateWebhookBody": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2000
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "bundle.created",
                "bundle.updated",
                "bundle.reopened",
                "bundle.resolved",
                "verification.passed",
                "verification.failed",
                "improvement_bundle.created",
                "incident.spike_detected"
              ]
            },
            "minItems": 1
          },
          "filters": {
            "type": "object",
            "properties": {
              "environment": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "service": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "severity_min": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "bundle_type": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "failure",
                    "improvement"
                  ]
                }
              },
              "verification": {
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "default": {}
          },
          "is_enabled": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "project_id",
          "url",
          "events"
        ],
        "additionalProperties": false
      },
      "WebhookCreateResponse": {
        "type": "object",
        "properties": {
          "webhook": {
            "type": "object",
            "properties": {
              "webhook_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "bundle.created",
                    "bundle.updated",
                    "bundle.reopened",
                    "bundle.resolved",
                    "verification.passed",
                    "verification.failed",
                    "improvement_bundle.created",
                    "incident.spike_detected"
                  ]
                }
              },
              "filters": {
                "type": "object",
                "properties": {
                  "environment": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "service": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "severity_min": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ]
                  },
                  "bundle_type": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "failure",
                        "improvement"
                      ]
                    }
                  },
                  "verification": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "is_enabled": {
                "type": "boolean"
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              },
              "signing_secret": {
                "type": "string"
              }
            },
            "required": [
              "webhook_id",
              "project_id",
              "url",
              "events",
              "filters",
              "is_enabled",
              "created_at",
              "updated_at",
              "signing_secret"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "webhook"
        ],
        "additionalProperties": false
      },
      "WebhookResponse": {
        "type": "object",
        "properties": {
          "webhook": {
            "type": "object",
            "properties": {
              "webhook_id": {
                "type": "string"
              },
              "project_id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "bundle.created",
                    "bundle.updated",
                    "bundle.reopened",
                    "bundle.resolved",
                    "verification.passed",
                    "verification.failed",
                    "improvement_bundle.created",
                    "incident.spike_detected"
                  ]
                }
              },
              "filters": {
                "type": "object",
                "properties": {
                  "environment": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "service": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "severity_min": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ]
                  },
                  "bundle_type": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "failure",
                        "improvement"
                      ]
                    }
                  },
                  "verification": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "is_enabled": {
                "type": "boolean"
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "webhook_id",
              "project_id",
              "url",
              "events",
              "filters",
              "is_enabled",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "webhook"
        ],
        "additionalProperties": false
      },
      "UpdateWebhookBody": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2000
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "bundle.created",
                "bundle.updated",
                "bundle.reopened",
                "bundle.resolved",
                "verification.passed",
                "verification.failed",
                "improvement_bundle.created",
                "incident.spike_detected"
              ]
            },
            "minItems": 1
          },
          "filters": {
            "type": "object",
            "properties": {
              "environment": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "service": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "severity_min": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "bundle_type": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "failure",
                    "improvement"
                  ]
                }
              },
              "verification": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "is_enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WebhookTestBody": {
        "type": "object",
        "properties": {
          "event_type": {
            "type": "string",
            "enum": [
              "bundle.created",
              "bundle.updated",
              "bundle.reopened",
              "bundle.resolved",
              "verification.passed",
              "verification.failed",
              "improvement_bundle.created",
              "incident.spike_detected"
            ],
            "default": "verification.passed"
          }
        },
        "additionalProperties": false
      },
      "WebhookTestResponse": {
        "type": "object",
        "properties": {
          "delivery": {
            "type": "object",
            "properties": {
              "delivery_id": {
                "type": "string"
              },
              "event_type": {
                "type": "string",
                "enum": [
                  "bundle.created",
                  "bundle.updated",
                  "bundle.reopened",
                  "bundle.resolved",
                  "verification.passed",
                  "verification.failed",
                  "improvement_bundle.created",
                  "incident.spike_detected"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "retrying",
                  "delivered",
                  "failed",
                  "disabled"
                ]
              },
              "attempt_count": {
                "type": "number"
              },
              "next_attempt_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_response_code": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "last_attempted_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_error": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "delivery_id",
              "event_type",
              "status",
              "attempt_count",
              "next_attempt_at",
              "last_response_code",
              "last_attempted_at",
              "last_error"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "delivery"
        ],
        "additionalProperties": false
      },
      "WebhookDeliveriesResponse": {
        "type": "object",
        "properties": {
          "deliveries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "delivery_id": {
                  "type": "string"
                },
                "event_type": {
                  "type": "string",
                  "enum": [
                    "bundle.created",
                    "bundle.updated",
                    "bundle.reopened",
                    "bundle.resolved",
                    "verification.passed",
                    "verification.failed",
                    "improvement_bundle.created",
                    "incident.spike_detected"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "retrying",
                    "delivered",
                    "failed",
                    "disabled"
                  ]
                },
                "attempt_count": {
                  "type": "number"
                },
                "next_attempt_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_response_code": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "last_attempted_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_error": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "delivery_id",
                "event_type",
                "status",
                "attempt_count",
                "next_attempt_at",
                "last_response_code",
                "last_attempted_at",
                "last_error"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "deliveries"
        ],
        "additionalProperties": false
      },
      "WebhookRetryResponse": {
        "type": "object",
        "properties": {
          "delivery_id": {
            "type": "string"
          },
          "event_type": {
            "type": "string",
            "enum": [
              "bundle.created",
              "bundle.updated",
              "bundle.reopened",
              "bundle.resolved",
              "verification.passed",
              "verification.failed",
              "improvement_bundle.created",
              "incident.spike_detected"
            ]
          }
        },
        "required": [
          "delivery_id",
          "event_type"
        ],
        "additionalProperties": false
      },
      "ProbeActivateBody": {
        "type": "object",
        "properties": {
          "label_pattern": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "service": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "default": "*"
          },
          "environment": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "default": "*"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600,
            "default": 3600
          },
          "trigger_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 86400,
            "default": 86400
          }
        },
        "required": [
          "label_pattern"
        ],
        "additionalProperties": false
      },
      "ProbeActivationResponse": {
        "type": "object",
        "properties": {
          "activation": {
            "type": "object",
            "properties": {
              "activation_id": {
                "type": "string",
                "format": "uuid"
              },
              "label_pattern": {
                "type": "string"
              },
              "service": {
                "type": "string"
              },
              "environment": {
                "type": "string"
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              },
              "trigger_expires_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "activation_id",
              "label_pattern",
              "service",
              "environment",
              "expires_at",
              "trigger_expires_at"
            ],
            "additionalProperties": false
          },
          "trigger_token": {
            "type": "string"
          }
        },
        "required": [
          "activation",
          "trigger_token"
        ],
        "additionalProperties": false
      },
      "ProbeActivationListResponse": {
        "type": "object",
        "properties": {
          "activations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "activation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "label_pattern": {
                  "type": "string"
                },
                "service": {
                  "type": "string"
                },
                "environment": {
                  "type": "string"
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "trigger_expires_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "activation_id",
                "label_pattern",
                "service",
                "environment",
                "expires_at",
                "trigger_expires_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "activations"
        ],
        "additionalProperties": false
      },
      "ProbeDeactivateBody": {
        "type": "object",
        "properties": {
          "activation_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "activation_id"
        ],
        "additionalProperties": false
      },
      "ProbeDeactivationResponse": {
        "type": "object",
        "properties": {
          "deactivated": {
            "type": "object",
            "properties": {
              "activation_id": {
                "type": "string",
                "format": "uuid"
              },
              "deactivated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "activation_id",
              "deactivated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "deactivated"
        ],
        "additionalProperties": false
      },
      "CapturePolicyResponse": {
        "type": "object",
        "properties": {
          "policy": {
            "type": "object",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "minimal",
                  "balanced",
                  "investigative"
                ]
              },
              "capture_logs": {
                "type": "string",
                "enum": [
                  "off",
                  "error",
                  "warning",
                  "info"
                ]
              },
              "capture_request_events": {
                "type": "string",
                "enum": [
                  "off",
                  "failures_only",
                  "filtered",
                  "all"
                ]
              },
              "capture_breadcrumbs": {
                "type": "string",
                "enum": [
                  "local_only",
                  "exception_only",
                  "standalone"
                ]
              },
              "capture_probe_events": {
                "type": "string",
                "enum": [
                  "buffer_only",
                  "standalone_when_activated"
                ]
              }
            },
            "required": [
              "preset",
              "capture_logs",
              "capture_request_events",
              "capture_breadcrumbs",
              "capture_probe_events"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "policy"
        ],
        "additionalProperties": false
      },
      "CapturePolicyUpdate": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "minimal",
              "balanced",
              "investigative"
            ]
          },
          "capture_logs": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "off",
                  "error",
                  "warning",
                  "info"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "capture_request_events": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "off",
                  "failures_only",
                  "filtered",
                  "all"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "capture_breadcrumbs": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "local_only",
                  "exception_only",
                  "standalone"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "capture_probe_events": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "buffer_only",
                  "standalone_when_activated"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SdkConfigResponse": {
        "type": "object",
        "properties": {
          "probes_enabled": {
            "type": "boolean"
          },
          "remote_probes_enabled": {
            "type": "boolean"
          },
          "active_probes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "activation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "label_pattern": {
                  "type": "string"
                },
                "service": {
                  "type": "string"
                },
                "environment": {
                  "type": "string"
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "trigger_expires_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "activation_id",
                "label_pattern",
                "service",
                "environment",
                "expires_at",
                "trigger_expires_at"
              ],
              "additionalProperties": false
            }
          },
          "poll_interval_ms": {
            "type": "integer",
            "minimum": 0
          },
          "capture_policy": {
            "type": "object",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "minimal",
                  "balanced",
                  "investigative"
                ]
              },
              "capture_logs": {
                "type": "string",
                "enum": [
                  "off",
                  "error",
                  "warning",
                  "info"
                ]
              },
              "capture_request_events": {
                "type": "string",
                "enum": [
                  "off",
                  "failures_only",
                  "filtered",
                  "all"
                ]
              },
              "capture_breadcrumbs": {
                "type": "string",
                "enum": [
                  "local_only",
                  "exception_only",
                  "standalone"
                ]
              },
              "capture_probe_events": {
                "type": "string",
                "enum": [
                  "buffer_only",
                  "standalone_when_activated"
                ]
              }
            },
            "required": [
              "preset",
              "capture_logs",
              "capture_request_events",
              "capture_breadcrumbs",
              "capture_probe_events"
            ],
            "additionalProperties": false
          },
          "trigger_token_key": {
            "type": "string"
          }
        },
        "required": [
          "probes_enabled",
          "remote_probes_enabled",
          "active_probes",
          "poll_interval_ms",
          "capture_policy"
        ],
        "additionalProperties": false
      }
    }
  }
}
