{
  "components": {
    "schemas": {
      "ActiveOrganization": {
        "properties": {
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          }
        },
        "required": [
          "organization_id"
        ],
        "title": "ActiveOrganization",
        "type": "object"
      },
      "Agg": {
        "additionalProperties": false,
        "description": "Aggregate over the evaluated args; nulls are dropped first.\n\nEmpty (after dropping nulls) → null, except ``count`` → 0.",
        "properties": {
          "args": {
            "items": {
              "discriminator": {
                "mapping": {
                  "agg": "#/components/schemas/Agg",
                  "bool": "#/components/schemas/BoolOp",
                  "calc": "#/components/schemas/Calc",
                  "cmp": "#/components/schemas/Cmp",
                  "if": "#/components/schemas/IfExpr",
                  "in": "#/components/schemas/InExpr",
                  "lit": "#/components/schemas/Lit",
                  "var": "#/components/schemas/Var",
                  "years_since": "#/components/schemas/YearsSince"
                },
                "propertyName": "op"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Lit"
                },
                {
                  "$ref": "#/components/schemas/Var"
                },
                {
                  "$ref": "#/components/schemas/Calc"
                },
                {
                  "$ref": "#/components/schemas/Cmp"
                },
                {
                  "$ref": "#/components/schemas/BoolOp"
                },
                {
                  "$ref": "#/components/schemas/IfExpr"
                },
                {
                  "$ref": "#/components/schemas/Agg"
                },
                {
                  "$ref": "#/components/schemas/InExpr"
                },
                {
                  "$ref": "#/components/schemas/YearsSince"
                }
              ]
            },
            "title": "Args",
            "type": "array"
          },
          "fn": {
            "enum": [
              "sum",
              "min",
              "max",
              "median",
              "count"
            ],
            "title": "Fn",
            "type": "string"
          },
          "op": {
            "const": "agg",
            "title": "Op",
            "type": "string"
          }
        },
        "required": [
          "op",
          "fn",
          "args"
        ],
        "title": "Agg",
        "type": "object"
      },
      "AnalyticsSummary": {
        "properties": {
          "completion_rate": {
            "title": "Completion Rate",
            "type": "number"
          },
          "ends_at": {
            "format": "date-time",
            "title": "Ends At",
            "type": "string"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "median_active_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Active Ms"
          },
          "median_questions": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Questions"
          },
          "privacy_floor_applied": {
            "title": "Privacy Floor Applied",
            "type": "boolean"
          },
          "question_metrics": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Question Metrics",
            "type": "array"
          },
          "sessions_completed": {
            "title": "Sessions Completed",
            "type": "integer"
          },
          "sessions_started": {
            "title": "Sessions Started",
            "type": "integer"
          },
          "starts_at": {
            "format": "date-time",
            "title": "Starts At",
            "type": "string"
          }
        },
        "required": [
          "environment_id",
          "starts_at",
          "ends_at",
          "sessions_started",
          "sessions_completed",
          "completion_rate",
          "median_questions",
          "median_active_ms",
          "question_metrics",
          "privacy_floor_applied"
        ],
        "title": "AnalyticsSummary",
        "type": "object"
      },
      "ApiErrorResponse": {
        "additionalProperties": false,
        "properties": {
          "detail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ErrorDetail"
              },
              {
                "type": "string"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ],
            "title": "Detail"
          }
        },
        "required": [
          "detail"
        ],
        "title": "ApiErrorResponse",
        "type": "object"
      },
      "ApiKeyPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ApiKeySummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "ApiKeyPage",
        "type": "object"
      },
      "ApiKeySummary": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "environment_id": {
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "key_prefix": {
            "title": "Key Prefix",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "revoked_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          }
        },
        "required": [
          "id",
          "environment_id",
          "name",
          "key_prefix",
          "scopes",
          "created_at",
          "revoked_at"
        ],
        "title": "ApiKeySummary",
        "type": "object"
      },
      "ApplicationPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ApplicationSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "ApplicationPage",
        "type": "object"
      },
      "ApplicationSummary": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "slug",
          "name",
          "description",
          "created_at"
        ],
        "title": "ApplicationSummary",
        "type": "object"
      },
      "AuditEvent": {
        "properties": {
          "action": {
            "title": "Action",
            "type": "string"
          },
          "actor_id": {
            "title": "Actor Id",
            "type": "string"
          },
          "actor_kind": {
            "title": "Actor Kind",
            "type": "string"
          },
          "app_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "App Id"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "environment_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Environment Id"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "organization_id": {
            "format": "uuid",
            "title": "Organization Id",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          },
          "resource_id": {
            "title": "Resource Id",
            "type": "string"
          },
          "resource_type": {
            "title": "Resource Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "actor_kind",
          "actor_id",
          "action",
          "resource_type",
          "resource_id",
          "created_at"
        ],
        "title": "AuditEvent",
        "type": "object"
      },
      "AuditEventPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AuditEvent"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "AuditEventPage",
        "type": "object"
      },
      "AuthPrincipal": {
        "properties": {
          "api_key_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "kind": {
            "enum": [
              "api_key",
              "session",
              "legacy"
            ],
            "title": "Kind",
            "type": "string"
          },
          "principal_id": {
            "title": "Principal Id",
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          }
        },
        "required": [
          "kind",
          "principal_id",
          "scopes"
        ],
        "title": "AuthPrincipal",
        "type": "object"
      },
      "AxisDelta": {
        "properties": {
          "axis": {
            "title": "Axis",
            "type": "string"
          },
          "band_changed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Band Changed"
          },
          "current_band_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Band Id"
          },
          "current_band_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Band Label"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "prior_band_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Band Id"
          },
          "prior_band_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Band Label"
          },
          "score": {
            "$ref": "#/components/schemas/NumericDelta"
          }
        },
        "required": [
          "axis",
          "score"
        ],
        "title": "AxisDelta",
        "type": "object"
      },
      "BehavioralEvent": {
        "description": "Privacy-minimized staff view of one canonical interaction event.",
        "properties": {
          "elapsed_ms": {
            "anyOf": [
              {
                "maximum": 86400000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Elapsed Ms"
          },
          "occurred_at": {
            "format": "date-time",
            "title": "Occurred At",
            "type": "string"
          },
          "question_id": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id"
          },
          "type": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "occurred_at"
        ],
        "title": "BehavioralEvent",
        "type": "object"
      },
      "BehavioralEventPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BehavioralEvent"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "BehavioralEventPage",
        "type": "object"
      },
      "BoolOp": {
        "additionalProperties": false,
        "description": "Boolean logic with three-valued (null-aware) semantics. ``not`` takes one arg.",
        "properties": {
          "args": {
            "items": {
              "discriminator": {
                "mapping": {
                  "agg": "#/components/schemas/Agg",
                  "bool": "#/components/schemas/BoolOp",
                  "calc": "#/components/schemas/Calc",
                  "cmp": "#/components/schemas/Cmp",
                  "if": "#/components/schemas/IfExpr",
                  "in": "#/components/schemas/InExpr",
                  "lit": "#/components/schemas/Lit",
                  "var": "#/components/schemas/Var",
                  "years_since": "#/components/schemas/YearsSince"
                },
                "propertyName": "op"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Lit"
                },
                {
                  "$ref": "#/components/schemas/Var"
                },
                {
                  "$ref": "#/components/schemas/Calc"
                },
                {
                  "$ref": "#/components/schemas/Cmp"
                },
                {
                  "$ref": "#/components/schemas/BoolOp"
                },
                {
                  "$ref": "#/components/schemas/IfExpr"
                },
                {
                  "$ref": "#/components/schemas/Agg"
                },
                {
                  "$ref": "#/components/schemas/InExpr"
                },
                {
                  "$ref": "#/components/schemas/YearsSince"
                }
              ]
            },
            "title": "Args",
            "type": "array"
          },
          "fn": {
            "enum": [
              "and",
              "or",
              "not"
            ],
            "title": "Fn",
            "type": "string"
          },
          "op": {
            "const": "bool",
            "title": "Op",
            "type": "string"
          }
        },
        "required": [
          "op",
          "fn",
          "args"
        ],
        "title": "BoolOp",
        "type": "object"
      },
      "Calc": {
        "additionalProperties": false,
        "description": "Arithmetic. ``sub``/``div`` use exactly two args; ``add``/``mul`` any number.",
        "properties": {
          "args": {
            "items": {
              "discriminator": {
                "mapping": {
                  "agg": "#/components/schemas/Agg",
                  "bool": "#/components/schemas/BoolOp",
                  "calc": "#/components/schemas/Calc",
                  "cmp": "#/components/schemas/Cmp",
                  "if": "#/components/schemas/IfExpr",
                  "in": "#/components/schemas/InExpr",
                  "lit": "#/components/schemas/Lit",
                  "var": "#/components/schemas/Var",
                  "years_since": "#/components/schemas/YearsSince"
                },
                "propertyName": "op"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Lit"
                },
                {
                  "$ref": "#/components/schemas/Var"
                },
                {
                  "$ref": "#/components/schemas/Calc"
                },
                {
                  "$ref": "#/components/schemas/Cmp"
                },
                {
                  "$ref": "#/components/schemas/BoolOp"
                },
                {
                  "$ref": "#/components/schemas/IfExpr"
                },
                {
                  "$ref": "#/components/schemas/Agg"
                },
                {
                  "$ref": "#/components/schemas/InExpr"
                },
                {
                  "$ref": "#/components/schemas/YearsSince"
                }
              ]
            },
            "title": "Args",
            "type": "array"
          },
          "fn": {
            "enum": [
              "add",
              "sub",
              "mul",
              "div"
            ],
            "title": "Fn",
            "type": "string"
          },
          "op": {
            "const": "calc",
            "title": "Op",
            "type": "string"
          }
        },
        "required": [
          "op",
          "fn",
          "args"
        ],
        "title": "Calc",
        "type": "object"
      },
      "Cmp": {
        "additionalProperties": false,
        "description": "Comparison. ``eq``/``neq`` compare same-typed scalars; the rest numbers only.",
        "properties": {
          "a": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "A"
          },
          "b": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "B"
          },
          "fn": {
            "enum": [
              "gt",
              "gte",
              "lt",
              "lte",
              "eq",
              "neq"
            ],
            "title": "Fn",
            "type": "string"
          },
          "op": {
            "const": "cmp",
            "title": "Op",
            "type": "string"
          }
        },
        "required": [
          "op",
          "fn",
          "a",
          "b"
        ],
        "title": "Cmp",
        "type": "object"
      },
      "ConsentRequirement": {
        "properties": {
          "notice_text": {
            "maxLength": 4000,
            "minLength": 1,
            "title": "Notice Text",
            "type": "string"
          },
          "notice_version": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9_.-]{0,62}[A-Za-z0-9])?$",
            "title": "Notice Version",
            "type": "string"
          },
          "purpose": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9_.-]{0,62}[A-Za-z0-9])?$",
            "title": "Purpose",
            "type": "string"
          }
        },
        "required": [
          "purpose",
          "notice_version",
          "notice_text"
        ],
        "title": "ConsentRequirement",
        "type": "object"
      },
      "ContinuousAlignmentRequest": {
        "additionalProperties": false,
        "properties": {
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "subject_id",
          "program_id"
        ],
        "title": "ContinuousAlignmentRequest",
        "type": "object"
      },
      "ContinuousAnswerReceipt": {
        "properties": {
          "client_answer_id": {
            "title": "Client Answer Id",
            "type": "string"
          },
          "delivery_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delivery Id"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "idempotent_replay": {
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "question_id": {
            "title": "Question Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "client_answer_id",
          "question_id",
          "idempotent_replay"
        ],
        "title": "ContinuousAnswerReceipt",
        "type": "object"
      },
      "ContinuousAnswerRequest": {
        "additionalProperties": false,
        "properties": {
          "answer": {
            "additionalProperties": true,
            "title": "Answer",
            "type": "object"
          },
          "answered_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answered At"
          },
          "client_answer_id": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Client Answer Id",
            "type": "string"
          },
          "delivery_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delivery Id"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "question_id": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Question Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "subject_id",
          "program_id",
          "client_answer_id",
          "question_id",
          "answer"
        ],
        "title": "ContinuousAnswerRequest",
        "type": "object"
      },
      "ContinuousCurrentAlignment": {
        "properties": {
          "alignment": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alignment"
          },
          "completed_at": {
            "format": "date-time",
            "title": "Completed At",
            "type": "string"
          },
          "confidence": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Confidence",
            "type": "object"
          },
          "coverage": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Coverage",
            "type": "object"
          },
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "primary_metric": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Metric"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "sub_scores": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Sub Scores",
            "type": "array"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "evaluation_id",
          "program_id",
          "subject_id",
          "completed_at"
        ],
        "title": "ContinuousCurrentAlignment",
        "type": "object"
      },
      "ContinuousDueQuestion": {
        "properties": {
          "delivery_id": {
            "format": "uuid",
            "title": "Delivery Id",
            "type": "string"
          },
          "due_reason": {
            "enum": [
              "first_delivery",
              "unanswered_retry",
              "per_login_window",
              "frequency_window_elapsed"
            ],
            "title": "Due Reason",
            "type": "string"
          },
          "question": {
            "discriminator": {
              "mapping": {
                "date": "#/components/schemas/DateQuestion",
                "multi_select": "#/components/schemas/MultiSelectQuestion",
                "number": "#/components/schemas/NumberQuestion",
                "number_group": "#/components/schemas/NumberGroupQuestion",
                "short_text": "#/components/schemas/ShortTextQuestion",
                "single_select": "#/components/schemas/SingleSelectQuestion"
              },
              "propertyName": "input"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/SingleSelectQuestion"
              },
              {
                "$ref": "#/components/schemas/MultiSelectQuestion"
              },
              {
                "$ref": "#/components/schemas/ShortTextQuestion"
              },
              {
                "$ref": "#/components/schemas/NumberQuestion"
              },
              {
                "$ref": "#/components/schemas/DateQuestion"
              },
              {
                "$ref": "#/components/schemas/NumberGroupQuestion"
              }
            ],
            "title": "Question"
          }
        },
        "required": [
          "delivery_id",
          "question",
          "due_reason"
        ],
        "title": "ContinuousDueQuestion",
        "type": "object"
      },
      "ContinuousDueQuestionsRequest": {
        "additionalProperties": false,
        "properties": {
          "now": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Now"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          },
          "trigger": {
            "$ref": "#/components/schemas/ContinuousTrigger"
          }
        },
        "required": [
          "subject_id",
          "program_id",
          "trigger"
        ],
        "title": "ContinuousDueQuestionsRequest",
        "type": "object"
      },
      "ContinuousDueQuestionsResponse": {
        "properties": {
          "delivered_at": {
            "format": "date-time",
            "title": "Delivered At",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContinuousDueQuestion"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items",
          "delivered_at"
        ],
        "title": "ContinuousDueQuestionsResponse",
        "type": "object"
      },
      "ContinuousEventBatchResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContinuousEventReceipt"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ContinuousEventBatchResponse",
        "type": "object"
      },
      "ContinuousEventInput": {
        "additionalProperties": false,
        "properties": {
          "client_event_id": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Client Event Id",
            "type": "string"
          },
          "event": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event"
          },
          "login_session_id": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Login Session Id"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "occurred_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Occurred At"
          },
          "page": {
            "anyOf": [
              {
                "maxLength": 1024,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page"
          },
          "type": {
            "enum": [
              "after_login",
              "page_visit",
              "event"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "client_event_id",
          "type"
        ],
        "title": "ContinuousEventInput",
        "type": "object"
      },
      "ContinuousEventReceipt": {
        "properties": {
          "client_event_id": {
            "title": "Client Event Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "idempotent_replay": {
            "title": "Idempotent Replay",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "client_event_id",
          "idempotent_replay"
        ],
        "title": "ContinuousEventReceipt",
        "type": "object"
      },
      "ContinuousEventsRequest": {
        "additionalProperties": false,
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/ContinuousEventInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Events",
            "type": "array"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "subject_id",
          "events"
        ],
        "title": "ContinuousEventsRequest",
        "type": "object"
      },
      "ContinuousTrigger": {
        "additionalProperties": false,
        "properties": {
          "event": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event"
          },
          "login_session_id": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Login Session Id"
          },
          "page": {
            "anyOf": [
              {
                "maxLength": 1024,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page"
          },
          "type": {
            "enum": [
              "after_login",
              "page_visit",
              "event"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "ContinuousTrigger",
        "type": "object"
      },
      "CreateApplicationRequest": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "maxLength": 4000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Slug",
            "type": "string"
          },
          "timezone": {
            "default": "UTC",
            "maxLength": 64,
            "minLength": 1,
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "name",
          "slug"
        ],
        "title": "CreateApplicationRequest",
        "type": "object"
      },
      "CreateEnvironmentKeyRequest": {
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "scopes": {
            "items": {
              "enum": [
                "admin",
                "ops",
                "ingest"
              ],
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "title": "CreateEnvironmentKeyRequest",
        "type": "object"
      },
      "CreateOrganizationRequest": {
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Slug",
            "type": "string"
          }
        },
        "required": [
          "name",
          "slug"
        ],
        "title": "CreateOrganizationRequest",
        "type": "object"
      },
      "CreatedApplication": {
        "properties": {
          "application": {
            "$ref": "#/components/schemas/ApplicationSummary"
          },
          "live_environment": {
            "$ref": "#/components/schemas/EnvironmentSummary"
          },
          "test_environment": {
            "$ref": "#/components/schemas/EnvironmentSummary"
          }
        },
        "required": [
          "application",
          "test_environment",
          "live_environment"
        ],
        "title": "CreatedApplication",
        "type": "object"
      },
      "CreatedEnvironmentKey": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "environment_id": {
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "idempotent_replay": {
            "default": false,
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "key_prefix": {
            "title": "Key Prefix",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "revoked_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          }
        },
        "required": [
          "id",
          "environment_id",
          "name",
          "key_prefix",
          "scopes",
          "created_at",
          "revoked_at",
          "key"
        ],
        "title": "CreatedEnvironmentKey",
        "type": "object"
      },
      "DateQuestion": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "date",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "purpose": {
            "items": {
              "type": "string"
            },
            "title": "Purpose",
            "type": "array"
          },
          "remarks": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remarks"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "section_id": {
            "title": "Section Id",
            "type": "string"
          },
          "visible_if": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "agg": "#/components/schemas/Agg",
                    "bool": "#/components/schemas/BoolOp",
                    "calc": "#/components/schemas/Calc",
                    "cmp": "#/components/schemas/Cmp",
                    "if": "#/components/schemas/IfExpr",
                    "in": "#/components/schemas/InExpr",
                    "lit": "#/components/schemas/Lit",
                    "var": "#/components/schemas/Var",
                    "years_since": "#/components/schemas/YearsSince"
                  },
                  "propertyName": "op"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Lit"
                  },
                  {
                    "$ref": "#/components/schemas/Var"
                  },
                  {
                    "$ref": "#/components/schemas/Calc"
                  },
                  {
                    "$ref": "#/components/schemas/Cmp"
                  },
                  {
                    "$ref": "#/components/schemas/BoolOp"
                  },
                  {
                    "$ref": "#/components/schemas/IfExpr"
                  },
                  {
                    "$ref": "#/components/schemas/Agg"
                  },
                  {
                    "$ref": "#/components/schemas/InExpr"
                  },
                  {
                    "$ref": "#/components/schemas/YearsSince"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Visible If"
          }
        },
        "required": [
          "id",
          "section_id",
          "prompt",
          "input"
        ],
        "title": "DateQuestion",
        "type": "object"
      },
      "DefinitionCreate": {
        "additionalProperties": false,
        "properties": {
          "business_id": {
            "pattern": "^[a-z0-9](?:[a-z0-9_-]{0,126}[a-z0-9])?$",
            "title": "Business Id",
            "type": "string"
          },
          "content": {
            "additionalProperties": true,
            "title": "Content",
            "type": "object"
          },
          "locale": {
            "default": "en",
            "maxLength": 35,
            "minLength": 2,
            "title": "Locale",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "business_id",
          "name",
          "content"
        ],
        "title": "DefinitionCreate",
        "type": "object"
      },
      "DefinitionDiff": {
        "properties": {
          "changed_paths": {
            "items": {
              "type": "string"
            },
            "title": "Changed Paths",
            "type": "array"
          },
          "from_version_id": {
            "format": "uuid",
            "title": "From Version Id",
            "type": "string"
          },
          "to_version_id": {
            "format": "uuid",
            "title": "To Version Id",
            "type": "string"
          }
        },
        "required": [
          "from_version_id",
          "to_version_id",
          "changed_paths"
        ],
        "title": "DefinitionDiff",
        "type": "object"
      },
      "DefinitionPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DefinitionVersion"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "DefinitionPage",
        "type": "object"
      },
      "DefinitionValidation": {
        "properties": {
          "errors": {
            "items": {
              "type": "string"
            },
            "title": "Errors",
            "type": "array"
          },
          "valid": {
            "title": "Valid",
            "type": "boolean"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "valid"
        ],
        "title": "DefinitionValidation",
        "type": "object"
      },
      "DefinitionVersion": {
        "properties": {
          "app_id": {
            "format": "uuid",
            "title": "App Id",
            "type": "string"
          },
          "business_id": {
            "title": "Business Id",
            "type": "string"
          },
          "content": {
            "additionalProperties": true,
            "title": "Content",
            "type": "object"
          },
          "content_hash": {
            "title": "Content Hash",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by_user_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By User Id"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "enum": [
              "experience",
              "scorecard",
              "context",
              "guardrail",
              "adaptive_policy",
              "report_template"
            ],
            "title": "Kind",
            "type": "string"
          },
          "locale": {
            "title": "Locale",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "published_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "status": {
            "enum": [
              "draft",
              "validated",
              "published",
              "deprecated",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "app_id",
          "kind",
          "business_id",
          "name",
          "revision",
          "status",
          "locale",
          "content",
          "content_hash",
          "created_at"
        ],
        "title": "DefinitionVersion",
        "type": "object"
      },
      "DueEnrollment": {
        "properties": {
          "enrollment_id": {
            "format": "uuid",
            "title": "Enrollment Id",
            "type": "string"
          },
          "next_due_at": {
            "format": "date-time",
            "title": "Next Due At",
            "type": "string"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "enrollment_id",
          "program_id",
          "subject_id",
          "next_due_at"
        ],
        "title": "DueEnrollment",
        "type": "object"
      },
      "DueEnrollmentPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DueEnrollment"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "DueEnrollmentPage",
        "type": "object"
      },
      "EmailLifecycleRequest": {
        "properties": {
          "email": {
            "maxLength": 320,
            "minLength": 3,
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "title": "EmailLifecycleRequest",
        "type": "object"
      },
      "Enrollment": {
        "properties": {
          "cycle_count": {
            "title": "Cycle Count",
            "type": "integer"
          },
          "enrolled_at": {
            "format": "date-time",
            "title": "Enrolled At",
            "type": "string"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "last_cycle_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Cycle At"
          },
          "next_due_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Due At"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "paused",
              "completed",
              "withdrawn"
            ],
            "title": "Status",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          },
          "withdrawn_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Withdrawn At"
          }
        },
        "required": [
          "id",
          "environment_id",
          "subject_id",
          "program_id",
          "status",
          "enrolled_at",
          "cycle_count"
        ],
        "title": "Enrollment",
        "type": "object"
      },
      "EnrollmentCreate": {
        "additionalProperties": false,
        "properties": {
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "subject_id",
          "program_id"
        ],
        "title": "EnrollmentCreate",
        "type": "object"
      },
      "EnrollmentStatusTransition": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "active",
              "paused",
              "completed",
              "withdrawn"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "EnrollmentStatusTransition",
        "type": "object"
      },
      "EnvironmentInstrumentHealth": {
        "properties": {
          "completion_rate": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Completion Rate",
            "type": "number"
          },
          "ends_at": {
            "format": "date-time",
            "title": "Ends At",
            "type": "string"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "median_active_ms": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Active Ms"
          },
          "median_questions": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Questions"
          },
          "privacy_floor_applied": {
            "title": "Privacy Floor Applied",
            "type": "boolean"
          },
          "question_health": {
            "items": {
              "$ref": "#/components/schemas/QuestionHealth"
            },
            "title": "Question Health",
            "type": "array"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "title": "Reasons",
            "type": "array"
          },
          "sessions_abandoned": {
            "minimum": 0.0,
            "title": "Sessions Abandoned",
            "type": "integer"
          },
          "sessions_active": {
            "minimum": 0.0,
            "title": "Sessions Active",
            "type": "integer"
          },
          "sessions_completed": {
            "minimum": 0.0,
            "title": "Sessions Completed",
            "type": "integer"
          },
          "sessions_started": {
            "minimum": 0.0,
            "title": "Sessions Started",
            "type": "integer"
          },
          "starts_at": {
            "format": "date-time",
            "title": "Starts At",
            "type": "string"
          },
          "status": {
            "enum": [
              "healthy",
              "attention_required",
              "insufficient_data"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "environment_id",
          "starts_at",
          "ends_at",
          "sessions_started",
          "sessions_completed",
          "sessions_abandoned",
          "sessions_active",
          "completion_rate",
          "status",
          "privacy_floor_applied"
        ],
        "title": "EnvironmentInstrumentHealth",
        "type": "object"
      },
      "EnvironmentPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/EnvironmentSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "EnvironmentPage",
        "type": "object"
      },
      "EnvironmentQuotaLimitChanges": {
        "additionalProperties": false,
        "properties": {
          "active_participant_sessions": {
            "anyOf": [
              {
                "maximum": 1000000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active Participant Sessions"
          },
          "active_subjects": {
            "anyOf": [
              {
                "maximum": 10000000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active Subjects"
          },
          "behavioral_event_batch_size": {
            "anyOf": [
              {
                "maximum": 100.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Behavioral Event Batch Size"
          },
          "continuous_event_batch_size": {
            "anyOf": [
              {
                "maximum": 100.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Continuous Event Batch Size"
          },
          "evaluations": {
            "anyOf": [
              {
                "maximum": 100000000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evaluations"
          },
          "programs": {
            "anyOf": [
              {
                "maximum": 100000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Programs"
          },
          "webhook_endpoints": {
            "anyOf": [
              {
                "maximum": 10000.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webhook Endpoints"
          }
        },
        "title": "EnvironmentQuotaLimitChanges",
        "type": "object"
      },
      "EnvironmentQuotaLimits": {
        "additionalProperties": false,
        "properties": {
          "active_participant_sessions": {
            "maximum": 1000000.0,
            "minimum": 1.0,
            "title": "Active Participant Sessions",
            "type": "integer"
          },
          "active_subjects": {
            "maximum": 10000000.0,
            "minimum": 1.0,
            "title": "Active Subjects",
            "type": "integer"
          },
          "behavioral_event_batch_size": {
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Behavioral Event Batch Size",
            "type": "integer"
          },
          "continuous_event_batch_size": {
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Continuous Event Batch Size",
            "type": "integer"
          },
          "evaluations": {
            "maximum": 100000000.0,
            "minimum": 1.0,
            "title": "Evaluations",
            "type": "integer"
          },
          "programs": {
            "maximum": 100000.0,
            "minimum": 1.0,
            "title": "Programs",
            "type": "integer"
          },
          "webhook_endpoints": {
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Webhook Endpoints",
            "type": "integer"
          }
        },
        "required": [
          "active_subjects",
          "programs",
          "evaluations",
          "active_participant_sessions",
          "webhook_endpoints",
          "behavioral_event_batch_size",
          "continuous_event_batch_size"
        ],
        "title": "EnvironmentQuotaLimits",
        "type": "object"
      },
      "EnvironmentQuotaResponse": {
        "additionalProperties": false,
        "properties": {
          "limits": {
            "$ref": "#/components/schemas/EnvironmentQuotaLimits"
          },
          "revision": {
            "minimum": 1.0,
            "title": "Revision",
            "type": "integer"
          },
          "schema_version": {
            "const": 1,
            "title": "Schema Version",
            "type": "integer"
          },
          "usage": {
            "$ref": "#/components/schemas/EnvironmentQuotaUsage"
          }
        },
        "required": [
          "schema_version",
          "revision",
          "limits",
          "usage"
        ],
        "title": "EnvironmentQuotaResponse",
        "type": "object"
      },
      "EnvironmentQuotaUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "expected_revision": {
            "minimum": 1.0,
            "title": "Expected Revision",
            "type": "integer"
          },
          "limits": {
            "$ref": "#/components/schemas/EnvironmentQuotaLimitChanges"
          }
        },
        "required": [
          "expected_revision",
          "limits"
        ],
        "title": "EnvironmentQuotaUpdateRequest",
        "type": "object"
      },
      "EnvironmentQuotaUsage": {
        "additionalProperties": false,
        "properties": {
          "active_participant_sessions": {
            "minimum": 0.0,
            "title": "Active Participant Sessions",
            "type": "integer"
          },
          "active_subjects": {
            "minimum": 0.0,
            "title": "Active Subjects",
            "type": "integer"
          },
          "behavioral_event_batch_size": {
            "const": 0,
            "title": "Behavioral Event Batch Size",
            "type": "integer"
          },
          "continuous_event_batch_size": {
            "const": 0,
            "title": "Continuous Event Batch Size",
            "type": "integer"
          },
          "evaluations": {
            "minimum": 0.0,
            "title": "Evaluations",
            "type": "integer"
          },
          "programs": {
            "minimum": 0.0,
            "title": "Programs",
            "type": "integer"
          },
          "webhook_endpoints": {
            "minimum": 0.0,
            "title": "Webhook Endpoints",
            "type": "integer"
          }
        },
        "required": [
          "active_subjects",
          "programs",
          "evaluations",
          "active_participant_sessions",
          "webhook_endpoints",
          "behavioral_event_batch_size",
          "continuous_event_batch_size"
        ],
        "title": "EnvironmentQuotaUsage",
        "type": "object"
      },
      "EnvironmentSummary": {
        "properties": {
          "app_id": {
            "title": "App Id",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "enum": [
              "test",
              "live"
            ],
            "title": "Kind",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "pending_review",
              "suspended"
            ],
            "title": "Status",
            "type": "string"
          },
          "timezone": {
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "app_id",
          "slug",
          "kind",
          "status",
          "timezone",
          "created_at"
        ],
        "title": "EnvironmentSummary",
        "type": "object"
      },
      "ErrorDetail": {
        "additionalProperties": false,
        "description": "Stable structured detail returned by versioned API errors.",
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "context": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Context"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "ErrorDetail",
        "type": "object"
      },
      "EvaluationDrift": {
        "properties": {
          "app_id": {
            "format": "uuid",
            "title": "App Id",
            "type": "string"
          },
          "axes": {
            "items": {
              "$ref": "#/components/schemas/AxisDelta"
            },
            "title": "Axes",
            "type": "array"
          },
          "completed_at": {
            "format": "date-time",
            "title": "Completed At",
            "type": "string"
          },
          "confidence_delta": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Confidence Delta",
            "type": "object"
          },
          "coverage_delta": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Coverage Delta",
            "type": "object"
          },
          "current_versions": {
            "$ref": "#/components/schemas/VersionProvenance"
          },
          "cycle_number": {
            "minimum": 1.0,
            "title": "Cycle Number",
            "type": "integer"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "has_prior": {
            "title": "Has Prior",
            "type": "boolean"
          },
          "primary": {
            "$ref": "#/components/schemas/PrimaryMetricDelta"
          },
          "prior_completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Completed At"
          },
          "prior_evaluation_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Evaluation Id"
          },
          "prior_versions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionProvenance"
              },
              {
                "type": "null"
              }
            ]
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "evaluation_id",
          "environment_id",
          "app_id",
          "program_id",
          "subject_id",
          "cycle_number",
          "has_prior",
          "primary",
          "axes",
          "current_versions",
          "completed_at"
        ],
        "title": "EvaluationDrift",
        "type": "object"
      },
      "EvaluationPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/EvaluationSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "EvaluationPage",
        "type": "object"
      },
      "EvaluationRelease": {
        "properties": {
          "actor_id": {
            "title": "Actor Id",
            "type": "string"
          },
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "idempotent_replay": {
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          },
          "released_at": {
            "format": "date-time",
            "title": "Released At",
            "type": "string"
          },
          "status": {
            "const": "completed",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "evaluation_id",
          "status",
          "actor_id",
          "reason",
          "released_at",
          "idempotent_replay"
        ],
        "title": "EvaluationRelease",
        "type": "object"
      },
      "EvaluationReleaseRequest": {
        "additionalProperties": false,
        "properties": {
          "reason": {
            "maxLength": 1000,
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "title": "EvaluationReleaseRequest",
        "type": "object"
      },
      "EvaluationResult": {
        "properties": {
          "adaptive_trace": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Adaptive Trace",
            "type": "array"
          },
          "alignment": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alignment"
          },
          "app_id": {
            "format": "uuid",
            "title": "App Id",
            "type": "string"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "confidence": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Confidence",
            "type": "object"
          },
          "context_fingerprint": {
            "title": "Context Fingerprint",
            "type": "string"
          },
          "coverage": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Coverage",
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "guardrail_conflicts": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Guardrail Conflicts",
            "type": "array"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "primary_metric": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Metric"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "report": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report"
          },
          "status": {
            "enum": [
              "pending",
              "in_progress",
              "needs_review",
              "completed",
              "failed",
              "superseded",
              "deleted"
            ],
            "title": "Status",
            "type": "string"
          },
          "sub_scores": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Sub Scores",
            "type": "array"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          },
          "trace": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trace"
          },
          "unanswered_concepts": {
            "items": {
              "type": "string"
            },
            "title": "Unanswered Concepts",
            "type": "array"
          },
          "version_bundle_id": {
            "format": "uuid",
            "title": "Version Bundle Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "environment_id",
          "app_id",
          "program_id",
          "subject_id",
          "version_bundle_id",
          "status",
          "context_fingerprint",
          "created_at"
        ],
        "title": "EvaluationResult",
        "type": "object"
      },
      "EvaluationSummary": {
        "description": "Bounded staff projection without answers, reports, or scoring traces.",
        "properties": {
          "answered_count": {
            "minimum": 0.0,
            "title": "Answered Count",
            "type": "integer"
          },
          "app_id": {
            "format": "uuid",
            "title": "App Id",
            "type": "string"
          },
          "axis_scores": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Axis Scores",
            "type": "array"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "confidence": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "coverage": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Coverage"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "cycle_number": {
            "minimum": 1.0,
            "title": "Cycle Number",
            "type": "integer"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "primary_metric": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Metric"
          },
          "prior_evaluation_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Evaluation Id"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "question_count": {
            "minimum": 0.0,
            "title": "Question Count",
            "type": "integer"
          },
          "status": {
            "enum": [
              "pending",
              "in_progress",
              "needs_review",
              "completed",
              "failed",
              "superseded",
              "deleted"
            ],
            "title": "Status",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          },
          "version_bundle_id": {
            "format": "uuid",
            "title": "Version Bundle Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "environment_id",
          "app_id",
          "program_id",
          "subject_id",
          "version_bundle_id",
          "cycle_number",
          "status",
          "answered_count",
          "question_count",
          "created_at"
        ],
        "title": "EvaluationSummary",
        "type": "object"
      },
      "ExperienceBranding": {
        "additionalProperties": false,
        "description": "Participant-safe branding pinned by an immutable experience version.",
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "primary_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Color"
          }
        },
        "title": "ExperienceBranding",
        "type": "object"
      },
      "GroupField": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "GroupField",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HealthResponse": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "title": "Api Version",
            "type": "string"
          },
          "auth_mode": {
            "enum": [
              "open",
              "legacy_api_key",
              "required"
            ],
            "title": "Auth Mode",
            "type": "string"
          },
          "auth_required": {
            "title": "Auth Required",
            "type": "boolean"
          },
          "db_connected": {
            "title": "Db Connected",
            "type": "boolean"
          },
          "llm_configured": {
            "title": "Llm Configured",
            "type": "boolean"
          },
          "models": {
            "items": {
              "type": "string"
            },
            "title": "Models",
            "type": "array"
          },
          "packs": {
            "items": {
              "type": "string"
            },
            "title": "Packs",
            "type": "array"
          },
          "status": {
            "enum": [
              "ok",
              "degraded"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "packs",
          "llm_configured",
          "models",
          "auth_required",
          "api_version",
          "db_connected",
          "auth_mode"
        ],
        "title": "HealthResponse",
        "type": "object"
      },
      "IfCase": {
        "additionalProperties": false,
        "properties": {
          "then": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "Then"
          },
          "when": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "When"
          }
        },
        "required": [
          "when",
          "then"
        ],
        "title": "IfCase",
        "type": "object"
      },
      "IfExpr": {
        "additionalProperties": false,
        "description": "First case whose ``when`` is true wins; null conditions are skipped.",
        "properties": {
          "cases": {
            "items": {
              "$ref": "#/components/schemas/IfCase"
            },
            "title": "Cases",
            "type": "array"
          },
          "else": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "Else"
          },
          "op": {
            "const": "if",
            "title": "Op",
            "type": "string"
          }
        },
        "required": [
          "op",
          "cases",
          "else"
        ],
        "title": "IfExpr",
        "type": "object"
      },
      "InExpr": {
        "additionalProperties": false,
        "description": "Membership test of a scalar against a list of literal scalars.",
        "properties": {
          "op": {
            "const": "in",
            "title": "Op",
            "type": "string"
          },
          "options": {
            "items": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Options",
            "type": "array"
          },
          "value": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "op",
          "value",
          "options"
        ],
        "title": "InExpr",
        "type": "object"
      },
      "InteractionEventBatch": {
        "additionalProperties": false,
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/InteractionEventInput"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Events",
            "type": "array"
          }
        },
        "required": [
          "events"
        ],
        "title": "InteractionEventBatch",
        "type": "object"
      },
      "InteractionEventBatchReceipt": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InteractionEventReceipt"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "InteractionEventBatchReceipt",
        "type": "object"
      },
      "InteractionEventInput": {
        "additionalProperties": false,
        "properties": {
          "answer": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answer"
          },
          "client_event_id": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Client Event Id",
            "type": "string"
          },
          "elapsed_ms": {
            "anyOf": [
              {
                "maximum": 86400000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Elapsed Ms"
          },
          "metadata": {
            "additionalProperties": true,
            "title": "Metadata",
            "type": "object"
          },
          "occurred_at": {
            "format": "date-time",
            "title": "Occurred At",
            "type": "string"
          },
          "previous_answer": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous Answer"
          },
          "question_id": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id"
          },
          "type": {
            "enum": [
              "session_started",
              "question_viewed",
              "answered",
              "answer_changed",
              "declined",
              "skipped",
              "backtracked",
              "idle",
              "resumed",
              "completed",
              "consent_accepted"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "client_event_id",
          "type",
          "occurred_at"
        ],
        "title": "InteractionEventInput",
        "type": "object"
      },
      "InteractionEventReceipt": {
        "properties": {
          "accepted": {
            "title": "Accepted",
            "type": "boolean"
          },
          "client_event_id": {
            "title": "Client Event Id",
            "type": "string"
          },
          "idempotent_replay": {
            "title": "Idempotent Replay",
            "type": "boolean"
          }
        },
        "required": [
          "client_event_id",
          "accepted",
          "idempotent_replay"
        ],
        "title": "InteractionEventReceipt",
        "type": "object"
      },
      "InvitationAcceptRequest": {
        "properties": {
          "password": {
            "anyOf": [
              {
                "maxLength": 1024,
                "minLength": 12,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "token": {
            "maxLength": 512,
            "minLength": 20,
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "title": "InvitationAcceptRequest",
        "type": "object"
      },
      "InvitationAcceptResponse": {
        "properties": {
          "membership_id": {
            "title": "Membership Id",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "organization_id",
          "membership_id",
          "role"
        ],
        "title": "InvitationAcceptResponse",
        "type": "object"
      },
      "InvitationPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InvitationSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "InvitationPage",
        "type": "object"
      },
      "InvitationResponse": {
        "properties": {
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "token": {
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "role",
          "expires_at",
          "token"
        ],
        "title": "InvitationResponse",
        "type": "object"
      },
      "InvitationSummary": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By User Id"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "admin",
              "builder",
              "developer",
              "analyst",
              "viewer"
            ],
            "title": "Role",
            "type": "string"
          },
          "status": {
            "const": "pending",
            "default": "pending",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "email",
          "role",
          "expires_at",
          "created_by_user_id",
          "created_at"
        ],
        "title": "InvitationSummary",
        "type": "object"
      },
      "LegalHoldChangeRequest": {
        "properties": {
          "reason": {
            "maxLength": 2000,
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "title": "LegalHoldChangeRequest",
        "type": "object"
      },
      "LegalHoldEventResponse": {
        "properties": {
          "action": {
            "enum": [
              "placed",
              "released"
            ],
            "title": "Action",
            "type": "string"
          },
          "actor_id": {
            "title": "Actor Id",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          }
        },
        "required": [
          "id",
          "action",
          "actor_id",
          "reason",
          "request_id",
          "created_at"
        ],
        "title": "LegalHoldEventResponse",
        "type": "object"
      },
      "LifecycleAccepted": {
        "properties": {
          "status": {
            "const": "accepted",
            "default": "accepted",
            "title": "Status",
            "type": "string"
          }
        },
        "title": "LifecycleAccepted",
        "type": "object"
      },
      "Lit": {
        "additionalProperties": false,
        "description": "A literal scalar value.",
        "properties": {
          "op": {
            "const": "lit",
            "title": "Op",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          }
        },
        "required": [
          "op",
          "value"
        ],
        "title": "Lit",
        "type": "object"
      },
      "LiveApprovalResponse": {
        "properties": {
          "approved_at": {
            "format": "date-time",
            "title": "Approved At",
            "type": "string"
          },
          "approved_by_user_id": {
            "title": "Approved By User Id",
            "type": "string"
          },
          "environment_id": {
            "title": "Environment Id",
            "type": "string"
          },
          "status": {
            "const": "active",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "environment_id",
          "status",
          "approved_at",
          "approved_by_user_id"
        ],
        "title": "LiveApprovalResponse",
        "type": "object"
      },
      "LoginRequest": {
        "properties": {
          "email": {
            "maxLength": 320,
            "minLength": 3,
            "title": "Email",
            "type": "string"
          },
          "password": {
            "maxLength": 1024,
            "minLength": 1,
            "title": "Password",
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ],
        "title": "LoginRequest",
        "type": "object"
      },
      "MembershipPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MembershipSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "MembershipPage",
        "type": "object"
      },
      "MembershipRequest": {
        "properties": {
          "email": {
            "maxLength": 320,
            "minLength": 3,
            "title": "Email",
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "admin",
              "builder",
              "developer",
              "analyst",
              "viewer"
            ],
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "email",
          "role"
        ],
        "title": "MembershipRequest",
        "type": "object"
      },
      "MembershipRoleRequest": {
        "properties": {
          "role": {
            "enum": [
              "owner",
              "admin",
              "builder",
              "developer",
              "analyst",
              "viewer"
            ],
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "role"
        ],
        "title": "MembershipRoleRequest",
        "type": "object"
      },
      "MembershipSummary": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "admin",
              "builder",
              "developer",
              "analyst",
              "viewer"
            ],
            "title": "Role",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "user_id",
          "role",
          "created_at",
          "updated_at"
        ],
        "title": "MembershipSummary",
        "type": "object"
      },
      "MultiSelectQuestion": {
        "additionalProperties": false,
        "properties": {
          "aggregation": {
            "default": "sum",
            "enum": [
              "sum",
              "max",
              "mean"
            ],
            "title": "Aggregation",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "multi_select",
            "title": "Input",
            "type": "string"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/Option"
            },
            "title": "Options",
            "type": "array"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "purpose": {
            "items": {
              "type": "string"
            },
            "title": "Purpose",
            "type": "array"
          },
          "remarks": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remarks"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "section_id": {
            "title": "Section Id",
            "type": "string"
          },
          "visible_if": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "agg": "#/components/schemas/Agg",
                    "bool": "#/components/schemas/BoolOp",
                    "calc": "#/components/schemas/Calc",
                    "cmp": "#/components/schemas/Cmp",
                    "if": "#/components/schemas/IfExpr",
                    "in": "#/components/schemas/InExpr",
                    "lit": "#/components/schemas/Lit",
                    "var": "#/components/schemas/Var",
                    "years_since": "#/components/schemas/YearsSince"
                  },
                  "propertyName": "op"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Lit"
                  },
                  {
                    "$ref": "#/components/schemas/Var"
                  },
                  {
                    "$ref": "#/components/schemas/Calc"
                  },
                  {
                    "$ref": "#/components/schemas/Cmp"
                  },
                  {
                    "$ref": "#/components/schemas/BoolOp"
                  },
                  {
                    "$ref": "#/components/schemas/IfExpr"
                  },
                  {
                    "$ref": "#/components/schemas/Agg"
                  },
                  {
                    "$ref": "#/components/schemas/InExpr"
                  },
                  {
                    "$ref": "#/components/schemas/YearsSince"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Visible If"
          }
        },
        "required": [
          "id",
          "section_id",
          "prompt",
          "input",
          "options"
        ],
        "title": "MultiSelectQuestion",
        "type": "object"
      },
      "NextQuestion": {
        "properties": {
          "complete": {
            "title": "Complete",
            "type": "boolean"
          },
          "progress": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Progress",
            "type": "number"
          },
          "question": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "date": "#/components/schemas/ParticipantDateQuestion",
                    "multi_select": "#/components/schemas/ParticipantMultiSelectQuestion",
                    "number": "#/components/schemas/ParticipantNumberQuestion",
                    "number_group": "#/components/schemas/ParticipantNumberGroupQuestion",
                    "short_text": "#/components/schemas/ParticipantShortTextQuestion",
                    "single_select": "#/components/schemas/ParticipantSingleSelectQuestion"
                  },
                  "propertyName": "input"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ParticipantSingleSelectQuestion"
                  },
                  {
                    "$ref": "#/components/schemas/ParticipantMultiSelectQuestion"
                  },
                  {
                    "$ref": "#/components/schemas/ParticipantShortTextQuestion"
                  },
                  {
                    "$ref": "#/components/schemas/ParticipantNumberQuestion"
                  },
                  {
                    "$ref": "#/components/schemas/ParticipantDateQuestion"
                  },
                  {
                    "$ref": "#/components/schemas/ParticipantNumberGroupQuestion"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Question"
          },
          "trace": {
            "$ref": "#/components/schemas/ParticipantSelectionTrace"
          },
          "why": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Why"
          }
        },
        "required": [
          "complete",
          "trace",
          "progress"
        ],
        "title": "NextQuestion",
        "type": "object"
      },
      "NumberGroupQuestion": {
        "additionalProperties": false,
        "description": "Multi-field numeric group (e.g. per-asset-class current values).\n\nField values are addressable in expressions as ``answers.<qid>.<fieldId>``.",
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/GroupField"
            },
            "title": "Fields",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "number_group",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "purpose": {
            "items": {
              "type": "string"
            },
            "title": "Purpose",
            "type": "array"
          },
          "remarks": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remarks"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "section_id": {
            "title": "Section Id",
            "type": "string"
          },
          "visible_if": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "agg": "#/components/schemas/Agg",
                    "bool": "#/components/schemas/BoolOp",
                    "calc": "#/components/schemas/Calc",
                    "cmp": "#/components/schemas/Cmp",
                    "if": "#/components/schemas/IfExpr",
                    "in": "#/components/schemas/InExpr",
                    "lit": "#/components/schemas/Lit",
                    "var": "#/components/schemas/Var",
                    "years_since": "#/components/schemas/YearsSince"
                  },
                  "propertyName": "op"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Lit"
                  },
                  {
                    "$ref": "#/components/schemas/Var"
                  },
                  {
                    "$ref": "#/components/schemas/Calc"
                  },
                  {
                    "$ref": "#/components/schemas/Cmp"
                  },
                  {
                    "$ref": "#/components/schemas/BoolOp"
                  },
                  {
                    "$ref": "#/components/schemas/IfExpr"
                  },
                  {
                    "$ref": "#/components/schemas/Agg"
                  },
                  {
                    "$ref": "#/components/schemas/InExpr"
                  },
                  {
                    "$ref": "#/components/schemas/YearsSince"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Visible If"
          }
        },
        "required": [
          "id",
          "section_id",
          "prompt",
          "input",
          "fields"
        ],
        "title": "NumberGroupQuestion",
        "type": "object"
      },
      "NumberQuestion": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "number",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "purpose": {
            "items": {
              "type": "string"
            },
            "title": "Purpose",
            "type": "array"
          },
          "remarks": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remarks"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "section_id": {
            "title": "Section Id",
            "type": "string"
          },
          "unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit"
          },
          "visible_if": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "agg": "#/components/schemas/Agg",
                    "bool": "#/components/schemas/BoolOp",
                    "calc": "#/components/schemas/Calc",
                    "cmp": "#/components/schemas/Cmp",
                    "if": "#/components/schemas/IfExpr",
                    "in": "#/components/schemas/InExpr",
                    "lit": "#/components/schemas/Lit",
                    "var": "#/components/schemas/Var",
                    "years_since": "#/components/schemas/YearsSince"
                  },
                  "propertyName": "op"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Lit"
                  },
                  {
                    "$ref": "#/components/schemas/Var"
                  },
                  {
                    "$ref": "#/components/schemas/Calc"
                  },
                  {
                    "$ref": "#/components/schemas/Cmp"
                  },
                  {
                    "$ref": "#/components/schemas/BoolOp"
                  },
                  {
                    "$ref": "#/components/schemas/IfExpr"
                  },
                  {
                    "$ref": "#/components/schemas/Agg"
                  },
                  {
                    "$ref": "#/components/schemas/InExpr"
                  },
                  {
                    "$ref": "#/components/schemas/YearsSince"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Visible If"
          }
        },
        "required": [
          "id",
          "section_id",
          "prompt",
          "input"
        ],
        "title": "NumberQuestion",
        "type": "object"
      },
      "NumericDelta": {
        "properties": {
          "current": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current"
          },
          "delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delta"
          },
          "prior": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior"
          }
        },
        "title": "NumericDelta",
        "type": "object"
      },
      "Option": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "scores": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Scores",
            "type": "object"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "Option",
        "type": "object"
      },
      "OrganizationPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/OrganizationSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "OrganizationPage",
        "type": "object"
      },
      "OrganizationSummary": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "default_context_json": {
            "additionalProperties": true,
            "title": "Default Context Json",
            "type": "object"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "default_context_json",
          "created_at"
        ],
        "title": "OrganizationSummary",
        "type": "object"
      },
      "OrganizationSwitchRequest": {
        "properties": {
          "organization_id": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Organization Id",
            "type": "string"
          }
        },
        "required": [
          "organization_id"
        ],
        "title": "OrganizationSwitchRequest",
        "type": "object"
      },
      "ParticipantDateQuestion": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "date",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "prompt",
          "input"
        ],
        "title": "ParticipantDateQuestion",
        "type": "object"
      },
      "ParticipantEvidenceInput": {
        "additionalProperties": false,
        "properties": {
          "answer": {
            "additionalProperties": true,
            "title": "Answer",
            "type": "object"
          },
          "confirmations": {
            "default": 1,
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Confirmations",
            "type": "integer"
          },
          "source": {
            "default": "api",
            "enum": [
              "api",
              "manual_entry"
            ],
            "title": "Source",
            "type": "string"
          }
        },
        "required": [
          "answer"
        ],
        "title": "ParticipantEvidenceInput",
        "type": "object"
      },
      "ParticipantGroupField": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "ParticipantGroupField",
        "type": "object"
      },
      "ParticipantMultiSelectQuestion": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "multi_select",
            "title": "Input",
            "type": "string"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/ParticipantOption"
            },
            "title": "Options",
            "type": "array"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "prompt",
          "input",
          "options"
        ],
        "title": "ParticipantMultiSelectQuestion",
        "type": "object"
      },
      "ParticipantNumberGroupQuestion": {
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/ParticipantGroupField"
            },
            "title": "Fields",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "number_group",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "prompt",
          "input",
          "fields"
        ],
        "title": "ParticipantNumberGroupQuestion",
        "type": "object"
      },
      "ParticipantNumberQuestion": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "number",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unit"
          }
        },
        "required": [
          "id",
          "prompt",
          "input"
        ],
        "title": "ParticipantNumberQuestion",
        "type": "object"
      },
      "ParticipantOption": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "title": "ParticipantOption",
        "type": "object"
      },
      "ParticipantReport": {
        "properties": {
          "alignment": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alignment"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "confidence": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Confidence",
            "type": "object"
          },
          "coverage": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Coverage",
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "guardrail_conflicts": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Guardrail Conflicts",
            "type": "array"
          },
          "primary_metric": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Metric"
          },
          "report": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report"
          },
          "status": {
            "enum": [
              "pending",
              "in_progress",
              "needs_review",
              "completed",
              "failed",
              "superseded",
              "deleted"
            ],
            "title": "Status",
            "type": "string"
          },
          "sub_scores": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Sub Scores",
            "type": "array"
          },
          "unanswered_concepts": {
            "items": {
              "type": "string"
            },
            "title": "Unanswered Concepts",
            "type": "array"
          }
        },
        "required": [
          "evaluation_id",
          "status",
          "created_at"
        ],
        "title": "ParticipantReport",
        "type": "object"
      },
      "ParticipantSelectionTrace": {
        "properties": {
          "mandatory": {
            "title": "Mandatory",
            "type": "boolean"
          },
          "policy_version": {
            "title": "Policy Version",
            "type": "string"
          },
          "selected_question_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Question Id"
          },
          "stop_reason": {
            "enum": [
              "mandatory_guardrail",
              "selected",
              "requirements_satisfied",
              "question_bank_exhausted"
            ],
            "title": "Stop Reason",
            "type": "string"
          }
        },
        "required": [
          "policy_version",
          "selected_question_id",
          "mandatory",
          "stop_reason"
        ],
        "title": "ParticipantSelectionTrace",
        "type": "object"
      },
      "ParticipantSessionCreate": {
        "additionalProperties": false,
        "properties": {
          "evidence": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ParticipantEvidenceInput"
            },
            "maxProperties": 500,
            "title": "Evidence",
            "type": "object"
          },
          "expires_in_seconds": {
            "default": 3600,
            "maximum": 86400.0,
            "minimum": 300.0,
            "title": "Expires In Seconds",
            "type": "integer"
          },
          "locale": {
            "default": "en",
            "maxLength": 35,
            "minLength": 2,
            "pattern": "^[a-z]{2,3}(?:-[A-Z]{2})?$",
            "title": "Locale",
            "type": "string"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "signals": {
            "additionalProperties": {
              "type": "number"
            },
            "maxProperties": 100,
            "title": "Signals",
            "type": "object"
          },
          "subject_context": {
            "additionalProperties": true,
            "title": "Subject Context",
            "type": "object"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "program_id",
          "subject_id"
        ],
        "title": "ParticipantSessionCreate",
        "type": "object"
      },
      "ParticipantSessionCreated": {
        "properties": {
          "branding": {
            "$ref": "#/components/schemas/ExperienceBranding"
          },
          "consent": {
            "$ref": "#/components/schemas/ConsentRequirement"
          },
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "hosted_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hosted Url"
          },
          "participant_token": {
            "title": "Participant Token",
            "type": "string"
          },
          "renderer_mode": {
            "enum": [
              "hosted",
              "embedded",
              "hosted_or_embedded"
            ],
            "title": "Renderer Mode",
            "type": "string"
          },
          "session_id": {
            "format": "uuid",
            "title": "Session Id",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "evaluation_id",
          "participant_token",
          "expires_at",
          "consent",
          "renderer_mode",
          "branding"
        ],
        "title": "ParticipantSessionCreated",
        "type": "object"
      },
      "ParticipantSessionState": {
        "properties": {
          "branding": {
            "$ref": "#/components/schemas/ExperienceBranding"
          },
          "consent": {
            "$ref": "#/components/schemas/ConsentRequirement"
          },
          "consented": {
            "title": "Consented",
            "type": "boolean"
          },
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "last_seen_at": {
            "format": "date-time",
            "title": "Last Seen At",
            "type": "string"
          },
          "locale": {
            "title": "Locale",
            "type": "string"
          },
          "renderer_mode": {
            "enum": [
              "hosted",
              "embedded",
              "hosted_or_embedded"
            ],
            "title": "Renderer Mode",
            "type": "string"
          },
          "session_id": {
            "format": "uuid",
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "completed",
              "revoked",
              "expired"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "evaluation_id",
          "status",
          "locale",
          "expires_at",
          "last_seen_at",
          "consent",
          "consented",
          "renderer_mode",
          "branding"
        ],
        "title": "ParticipantSessionState",
        "type": "object"
      },
      "ParticipantShortTextQuestion": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "short_text",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "prompt",
          "input"
        ],
        "title": "ParticipantShortTextQuestion",
        "type": "object"
      },
      "ParticipantSingleSelectQuestion": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "single_select",
            "title": "Input",
            "type": "string"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/ParticipantOption"
            },
            "title": "Options",
            "type": "array"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "prompt",
          "input",
          "options"
        ],
        "title": "ParticipantSingleSelectQuestion",
        "type": "object"
      },
      "PasswordResetConsumeRequest": {
        "properties": {
          "password": {
            "maxLength": 1024,
            "minLength": 12,
            "title": "Password",
            "type": "string"
          },
          "token": {
            "maxLength": 512,
            "minLength": 20,
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token",
          "password"
        ],
        "title": "PasswordResetConsumeRequest",
        "type": "object"
      },
      "PreviewRequest": {
        "additionalProperties": false,
        "properties": {
          "answers": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Answers",
            "type": "object"
          },
          "context": {
            "additionalProperties": true,
            "title": "Context",
            "type": "object"
          },
          "respondent_id": {
            "default": "synthetic-persona",
            "maxLength": 255,
            "minLength": 1,
            "title": "Respondent Id",
            "type": "string"
          },
          "signals": {
            "additionalProperties": {
              "type": "number"
            },
            "title": "Signals",
            "type": "object"
          }
        },
        "title": "PreviewRequest",
        "type": "object"
      },
      "PreviewResult": {
        "properties": {
          "report": {
            "additionalProperties": true,
            "title": "Report",
            "type": "object"
          },
          "trace": {
            "additionalProperties": true,
            "title": "Trace",
            "type": "object"
          }
        },
        "required": [
          "report",
          "trace"
        ],
        "title": "PreviewResult",
        "type": "object"
      },
      "PrimaryMetricDelta": {
        "properties": {
          "band_changed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Band Changed"
          },
          "current": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current"
          },
          "numeric": {
            "$ref": "#/components/schemas/NumericDelta"
          },
          "numeric_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Numeric Field"
          },
          "prior": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior"
          },
          "status_changed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Changed"
          }
        },
        "required": [
          "numeric"
        ],
        "title": "PrimaryMetricDelta",
        "type": "object"
      },
      "Program": {
        "properties": {
          "app_id": {
            "format": "uuid",
            "title": "App Id",
            "type": "string"
          },
          "context_overrides": {
            "additionalProperties": true,
            "title": "Context Overrides",
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by_user_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By User Id"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "mode": {
            "enum": [
              "one_time",
              "continuous"
            ],
            "title": "Mode",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "recurrence": {
            "additionalProperties": true,
            "title": "Recurrence",
            "type": "object"
          },
          "release_policy": {
            "enum": [
              "automatic",
              "review_required"
            ],
            "title": "Release Policy",
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "active",
              "paused",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "version_bundle_id": {
            "format": "uuid",
            "title": "Version Bundle Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "environment_id",
          "app_id",
          "name",
          "version_bundle_id",
          "mode",
          "status",
          "release_policy",
          "recurrence",
          "context_overrides",
          "created_at",
          "updated_at"
        ],
        "title": "Program",
        "type": "object"
      },
      "ProgramCreate": {
        "additionalProperties": false,
        "properties": {
          "context_overrides": {
            "additionalProperties": true,
            "title": "Context Overrides",
            "type": "object"
          },
          "mode": {
            "default": "one_time",
            "enum": [
              "one_time",
              "continuous"
            ],
            "title": "Mode",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "recurrence": {
            "$ref": "#/components/schemas/RecurrencePolicy"
          },
          "release_policy": {
            "default": "automatic",
            "enum": [
              "automatic",
              "review_required"
            ],
            "title": "Release Policy",
            "type": "string"
          },
          "version_bundle_id": {
            "format": "uuid",
            "title": "Version Bundle Id",
            "type": "string"
          }
        },
        "required": [
          "name",
          "version_bundle_id"
        ],
        "title": "ProgramCreate",
        "type": "object"
      },
      "ProgramPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Program"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "ProgramPage",
        "type": "object"
      },
      "ProgramStatusTransition": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "active",
              "paused",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "ProgramStatusTransition",
        "type": "object"
      },
      "ProgramTriggerInput": {
        "additionalProperties": false,
        "properties": {
          "event_name": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Event Name",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "title": "Occurred At",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "subject_id",
          "event_name",
          "occurred_at"
        ],
        "title": "ProgramTriggerInput",
        "type": "object"
      },
      "ProgramTriggerReceipt": {
        "properties": {
          "due": {
            "title": "Due",
            "type": "boolean"
          },
          "event_name": {
            "title": "Event Name",
            "type": "string"
          },
          "idempotent_replay": {
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "program_id": {
            "format": "uuid",
            "title": "Program Id",
            "type": "string"
          },
          "subject_id": {
            "format": "uuid",
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "program_id",
          "subject_id",
          "event_name",
          "due",
          "idempotent_replay"
        ],
        "title": "ProgramTriggerReceipt",
        "type": "object"
      },
      "QuestionHealth": {
        "properties": {
          "answer_change_rate": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Answer Change Rate",
            "type": "number"
          },
          "answer_changes": {
            "minimum": 0.0,
            "title": "Answer Changes",
            "type": "integer"
          },
          "answer_rate": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Answer Rate",
            "type": "number"
          },
          "answers": {
            "minimum": 0.0,
            "title": "Answers",
            "type": "integer"
          },
          "median_elapsed_ms": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median Elapsed Ms"
          },
          "question_id": {
            "title": "Question Id",
            "type": "string"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "title": "Reasons",
            "type": "array"
          },
          "respondents": {
            "minimum": 0.0,
            "title": "Respondents",
            "type": "integer"
          },
          "skip_rate": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Skip Rate",
            "type": "number"
          },
          "skips": {
            "minimum": 0.0,
            "title": "Skips",
            "type": "integer"
          },
          "status": {
            "enum": [
              "healthy",
              "attention_required"
            ],
            "title": "Status",
            "type": "string"
          },
          "views": {
            "minimum": 0.0,
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "question_id",
          "respondents",
          "views",
          "answers",
          "answer_changes",
          "skips",
          "answer_rate",
          "skip_rate",
          "answer_change_rate",
          "status"
        ],
        "title": "QuestionHealth",
        "type": "object"
      },
      "RecurrencePolicy": {
        "additionalProperties": false,
        "properties": {
          "day_of_month": {
            "anyOf": [
              {
                "maximum": 31.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Day Of Month"
          },
          "event_names": {
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "title": "Event Names",
            "type": "array"
          },
          "frequency": {
            "default": "one_time",
            "enum": [
              "one_time",
              "daily",
              "weekly",
              "fortnightly",
              "monthly",
              "quarterly",
              "semiannually",
              "annually",
              "event_driven"
            ],
            "title": "Frequency",
            "type": "string"
          },
          "local_time": {
            "default": "09:00",
            "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$",
            "title": "Local Time",
            "type": "string"
          },
          "starts_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "timezone": {
            "default": "UTC",
            "maxLength": 64,
            "minLength": 1,
            "title": "Timezone",
            "type": "string"
          },
          "weekday": {
            "anyOf": [
              {
                "maximum": 6.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weekday"
          }
        },
        "title": "RecurrencePolicy",
        "type": "object"
      },
      "ReportShare": {
        "properties": {
          "evaluation_id": {
            "format": "uuid",
            "title": "Evaluation Id",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "share_token": {
            "title": "Share Token",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "id",
          "evaluation_id",
          "share_token",
          "url",
          "expires_at"
        ],
        "title": "ReportShare",
        "type": "object"
      },
      "ReportShareCreate": {
        "additionalProperties": false,
        "properties": {
          "expires_in_seconds": {
            "default": 86400,
            "maximum": 2592000.0,
            "minimum": 300.0,
            "title": "Expires In Seconds",
            "type": "integer"
          }
        },
        "title": "ReportShareCreate",
        "type": "object"
      },
      "ReportShareRevoked": {
        "properties": {
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "revoked_at": {
            "format": "date-time",
            "title": "Revoked At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "revoked_at"
        ],
        "title": "ReportShareRevoked",
        "type": "object"
      },
      "ReusableProfileConsentRequirement": {
        "properties": {
          "notice_text": {
            "title": "Notice Text",
            "type": "string"
          },
          "notice_version": {
            "title": "Notice Version",
            "type": "string"
          },
          "purpose": {
            "const": "reusable_participant_profile",
            "title": "Purpose",
            "type": "string"
          }
        },
        "required": [
          "purpose",
          "notice_version",
          "notice_text"
        ],
        "title": "ReusableProfileConsentRequirement",
        "type": "object"
      },
      "ReusableProfileLinkRequest": {
        "additionalProperties": false,
        "properties": {
          "consent_granted": {
            "const": true,
            "title": "Consent Granted",
            "type": "boolean"
          },
          "consent_notice_version": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Consent Notice Version",
            "type": "string"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile"
          }
        },
        "required": [
          "consent_granted",
          "consent_notice_version"
        ],
        "title": "ReusableProfileLinkRequest",
        "type": "object"
      },
      "ReusableProfileMutationReceipt": {
        "properties": {
          "consent_notice_version": {
            "title": "Consent Notice Version",
            "type": "string"
          },
          "consented_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consented At"
          },
          "idempotent_replay": {
            "default": false,
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "link_id": {
            "title": "Link Id",
            "type": "string"
          },
          "linked": {
            "title": "Linked",
            "type": "boolean"
          },
          "profile_revision": {
            "minimum": 0.0,
            "title": "Profile Revision",
            "type": "integer"
          },
          "withdrawn_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Withdrawn At"
          }
        },
        "required": [
          "link_id",
          "linked",
          "profile_revision",
          "consent_notice_version"
        ],
        "title": "ReusableProfileMutationReceipt",
        "type": "object"
      },
      "ReusableProfileState": {
        "properties": {
          "consent": {
            "$ref": "#/components/schemas/ReusableProfileConsentRequirement"
          },
          "consented_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consented At"
          },
          "linked": {
            "title": "Linked",
            "type": "boolean"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile"
          },
          "profile_revision": {
            "minimum": 0.0,
            "title": "Profile Revision",
            "type": "integer"
          },
          "withdrawn_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Withdrawn At"
          }
        },
        "required": [
          "linked",
          "profile",
          "profile_revision",
          "consent"
        ],
        "title": "ReusableProfileState",
        "type": "object"
      },
      "ReusableProfileUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "profile": {
            "additionalProperties": true,
            "title": "Profile",
            "type": "object"
          }
        },
        "required": [
          "profile"
        ],
        "title": "ReusableProfileUpdateRequest",
        "type": "object"
      },
      "RevokedEnvironmentKey": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "environment_id": {
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "idempotent_replay": {
            "default": false,
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "key_prefix": {
            "title": "Key Prefix",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "revoked_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          }
        },
        "required": [
          "id",
          "environment_id",
          "name",
          "key_prefix",
          "scopes",
          "created_at",
          "revoked_at"
        ],
        "title": "RevokedEnvironmentKey",
        "type": "object"
      },
      "Rubric": {
        "additionalProperties": false,
        "description": "LLM rubric scoring for a free-text answer (Approach 2, \"Spec Foundry\").\n\nScored beside the deterministic path: temperature-0 LLM call returning\nscore + rationale + quoted evidence, fully logged, human-overridable.\nScore range is [0, max_score].",
        "properties": {
          "axis": {
            "title": "Axis",
            "type": "string"
          },
          "criteria": {
            "title": "Criteria",
            "type": "string"
          },
          "max_score": {
            "title": "Max Score",
            "type": "number"
          }
        },
        "required": [
          "axis",
          "max_score",
          "criteria"
        ],
        "title": "Rubric",
        "type": "object"
      },
      "SandboxSignupRequest": {
        "properties": {
          "app_name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "App Name",
            "type": "string"
          },
          "app_slug": {
            "maxLength": 128,
            "minLength": 1,
            "title": "App Slug",
            "type": "string"
          },
          "email": {
            "maxLength": 320,
            "minLength": 3,
            "title": "Email",
            "type": "string"
          },
          "organization_name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Organization Name",
            "type": "string"
          },
          "organization_slug": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Organization Slug",
            "type": "string"
          },
          "password": {
            "maxLength": 1024,
            "minLength": 12,
            "title": "Password",
            "type": "string"
          },
          "timezone": {
            "default": "UTC",
            "maxLength": 64,
            "minLength": 1,
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "email",
          "password",
          "organization_name",
          "organization_slug",
          "app_name",
          "app_slug"
        ],
        "title": "SandboxSignupRequest",
        "type": "object"
      },
      "SandboxSignupResponse": {
        "properties": {
          "application": {
            "$ref": "#/components/schemas/ApplicationSummary"
          },
          "live_environment": {
            "$ref": "#/components/schemas/EnvironmentSummary"
          },
          "organization": {
            "$ref": "#/components/schemas/OrganizationSummary"
          },
          "test_environment": {
            "$ref": "#/components/schemas/EnvironmentSummary"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "organization",
          "application",
          "test_environment",
          "live_environment"
        ],
        "title": "SandboxSignupResponse",
        "type": "object"
      },
      "Schedule": {
        "additionalProperties": false,
        "description": "Continuous Evaluation metadata (from the Excel's CE Question builder).",
        "properties": {
          "frequency": {
            "enum": [
              "one_time",
              "per_login",
              "fortnightly",
              "monthly",
              "quarterly",
              "semiannually",
              "annually"
            ],
            "title": "Frequency",
            "type": "string"
          },
          "max_per_login": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Per Login"
          },
          "repeat_until_answered": {
            "default": false,
            "title": "Repeat Until Answered",
            "type": "boolean"
          },
          "trigger": {
            "$ref": "#/components/schemas/Trigger"
          }
        },
        "required": [
          "frequency",
          "trigger"
        ],
        "title": "Schedule",
        "type": "object"
      },
      "ShortTextQuestion": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "short_text",
            "title": "Input",
            "type": "string"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "purpose": {
            "items": {
              "type": "string"
            },
            "title": "Purpose",
            "type": "array"
          },
          "remarks": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remarks"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "rubric": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Rubric"
              },
              {
                "type": "null"
              }
            ]
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "section_id": {
            "title": "Section Id",
            "type": "string"
          },
          "visible_if": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "agg": "#/components/schemas/Agg",
                    "bool": "#/components/schemas/BoolOp",
                    "calc": "#/components/schemas/Calc",
                    "cmp": "#/components/schemas/Cmp",
                    "if": "#/components/schemas/IfExpr",
                    "in": "#/components/schemas/InExpr",
                    "lit": "#/components/schemas/Lit",
                    "var": "#/components/schemas/Var",
                    "years_since": "#/components/schemas/YearsSince"
                  },
                  "propertyName": "op"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Lit"
                  },
                  {
                    "$ref": "#/components/schemas/Var"
                  },
                  {
                    "$ref": "#/components/schemas/Calc"
                  },
                  {
                    "$ref": "#/components/schemas/Cmp"
                  },
                  {
                    "$ref": "#/components/schemas/BoolOp"
                  },
                  {
                    "$ref": "#/components/schemas/IfExpr"
                  },
                  {
                    "$ref": "#/components/schemas/Agg"
                  },
                  {
                    "$ref": "#/components/schemas/InExpr"
                  },
                  {
                    "$ref": "#/components/schemas/YearsSince"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Visible If"
          }
        },
        "required": [
          "id",
          "section_id",
          "prompt",
          "input"
        ],
        "title": "ShortTextQuestion",
        "type": "object"
      },
      "SingleSelectQuestion": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "input": {
            "const": "single_select",
            "title": "Input",
            "type": "string"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/Option"
            },
            "title": "Options",
            "type": "array"
          },
          "prompt": {
            "title": "Prompt",
            "type": "string"
          },
          "purpose": {
            "items": {
              "type": "string"
            },
            "title": "Purpose",
            "type": "array"
          },
          "remarks": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remarks"
          },
          "required": {
            "default": false,
            "title": "Required",
            "type": "boolean"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "section_id": {
            "title": "Section Id",
            "type": "string"
          },
          "visible_if": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "agg": "#/components/schemas/Agg",
                    "bool": "#/components/schemas/BoolOp",
                    "calc": "#/components/schemas/Calc",
                    "cmp": "#/components/schemas/Cmp",
                    "if": "#/components/schemas/IfExpr",
                    "in": "#/components/schemas/InExpr",
                    "lit": "#/components/schemas/Lit",
                    "var": "#/components/schemas/Var",
                    "years_since": "#/components/schemas/YearsSince"
                  },
                  "propertyName": "op"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Lit"
                  },
                  {
                    "$ref": "#/components/schemas/Var"
                  },
                  {
                    "$ref": "#/components/schemas/Calc"
                  },
                  {
                    "$ref": "#/components/schemas/Cmp"
                  },
                  {
                    "$ref": "#/components/schemas/BoolOp"
                  },
                  {
                    "$ref": "#/components/schemas/IfExpr"
                  },
                  {
                    "$ref": "#/components/schemas/Agg"
                  },
                  {
                    "$ref": "#/components/schemas/InExpr"
                  },
                  {
                    "$ref": "#/components/schemas/YearsSince"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Visible If"
          }
        },
        "required": [
          "id",
          "section_id",
          "prompt",
          "input",
          "options"
        ],
        "title": "SingleSelectQuestion",
        "type": "object"
      },
      "StatusTransition": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "draft",
              "validated",
              "published",
              "deprecated",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "StatusTransition",
        "type": "object"
      },
      "SubjectDataExport": {
        "properties": {
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile"
          },
          "subject_id": {
            "title": "Subject Id",
            "type": "string"
          }
        },
        "required": [
          "subject_id",
          "external_id",
          "profile",
          "data"
        ],
        "title": "SubjectDataExport",
        "type": "object"
      },
      "SubjectImportReceiptResponse": {
        "properties": {
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Code"
          },
          "item_index": {
            "title": "Item Index",
            "type": "integer"
          },
          "outcome": {
            "enum": [
              "created",
              "updated",
              "conflict"
            ],
            "title": "Outcome",
            "type": "string"
          },
          "subject_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Id"
          }
        },
        "required": [
          "item_index",
          "subject_id",
          "outcome",
          "error_code"
        ],
        "title": "SubjectImportReceiptResponse",
        "type": "object"
      },
      "SubjectImportRequest": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SubjectUpsertRequest"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "SubjectImportRequest",
        "type": "object"
      },
      "SubjectImportResponse": {
        "properties": {
          "batch_id": {
            "title": "Batch Id",
            "type": "string"
          },
          "idempotent_replay": {
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/SubjectImportReceiptResponse"
            },
            "title": "Receipts",
            "type": "array"
          }
        },
        "required": [
          "batch_id",
          "idempotent_replay",
          "receipts"
        ],
        "title": "SubjectImportResponse",
        "type": "object"
      },
      "SubjectLegalHoldResponse": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "boolean"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/LegalHoldEventResponse"
            },
            "title": "Events",
            "type": "array"
          },
          "idempotent_replay": {
            "default": false,
            "title": "Idempotent Replay",
            "type": "boolean"
          }
        },
        "required": [
          "active",
          "events"
        ],
        "title": "SubjectLegalHoldResponse",
        "type": "object"
      },
      "SubjectPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SubjectSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "title": "SubjectPage",
        "type": "object"
      },
      "SubjectSummary": {
        "properties": {
          "app_id": {
            "title": "App Id",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "environment_id": {
            "title": "Environment Id",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "identity_mode": {
            "enum": [
              "enterprise_managed",
              "reusable",
              "legacy_anonymous"
            ],
            "title": "Identity Mode",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "deleted"
            ],
            "title": "Status",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "app_id",
          "environment_id",
          "identity_mode",
          "status",
          "created_at",
          "updated_at"
        ],
        "title": "SubjectSummary",
        "type": "object"
      },
      "SubjectUpsertRequest": {
        "additionalProperties": false,
        "properties": {
          "external_id": {
            "maxLength": 512,
            "minLength": 1,
            "title": "External Id",
            "type": "string"
          },
          "identity_mode": {
            "const": "enterprise_managed",
            "default": "enterprise_managed",
            "title": "Identity Mode",
            "type": "string"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile"
          }
        },
        "required": [
          "external_id"
        ],
        "title": "SubjectUpsertRequest",
        "type": "object"
      },
      "SubjectUpsertResponse": {
        "properties": {
          "created": {
            "title": "Created",
            "type": "boolean"
          },
          "idempotent_replay": {
            "default": false,
            "title": "Idempotent Replay",
            "type": "boolean"
          },
          "subject": {
            "$ref": "#/components/schemas/SubjectSummary"
          }
        },
        "required": [
          "subject",
          "created"
        ],
        "title": "SubjectUpsertResponse",
        "type": "object"
      },
      "TemplateCloneRequest": {
        "additionalProperties": false,
        "properties": {
          "business_id_prefix": {
            "default": "template",
            "pattern": "^[a-z0-9](?:[a-z0-9_-]{0,126}[a-z0-9])?$",
            "title": "Business Id Prefix",
            "type": "string"
          }
        },
        "title": "TemplateCloneRequest",
        "type": "object"
      },
      "TemplateCloneResult": {
        "properties": {
          "definitions": {
            "items": {
              "$ref": "#/components/schemas/DefinitionVersion"
            },
            "title": "Definitions",
            "type": "array"
          },
          "template_id": {
            "format": "uuid",
            "title": "Template Id",
            "type": "string"
          }
        },
        "required": [
          "template_id",
          "definitions"
        ],
        "title": "TemplateCloneResult",
        "type": "object"
      },
      "TemplatePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TemplateSummary"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "TemplatePage",
        "type": "object"
      },
      "TemplateSummary": {
        "properties": {
          "content_hash": {
            "title": "Content Hash",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "content_hash",
          "created_at"
        ],
        "title": "TemplateSummary",
        "type": "object"
      },
      "TokenConsumeRequest": {
        "properties": {
          "token": {
            "maxLength": 512,
            "minLength": 20,
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "title": "TokenConsumeRequest",
        "type": "object"
      },
      "Trigger": {
        "additionalProperties": false,
        "properties": {
          "event": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event"
          },
          "page": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page"
          },
          "type": {
            "enum": [
              "after_login",
              "page_visit",
              "event"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "Trigger",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "Var": {
        "additionalProperties": false,
        "description": "A dotted path into the evaluation context.\n\nAllowed roots: ``answers.<questionId>[.<fieldId>]``, ``computed.<id>``,\n``signals.<id>``. A missing path evaluates to null.",
        "properties": {
          "op": {
            "const": "var",
            "title": "Op",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "op",
          "path"
        ],
        "title": "Var",
        "type": "object"
      },
      "VersionBundle": {
        "properties": {
          "adaptive_policy_version_id": {
            "format": "uuid",
            "title": "Adaptive Policy Version Id",
            "type": "string"
          },
          "app_id": {
            "format": "uuid",
            "title": "App Id",
            "type": "string"
          },
          "context_version_id": {
            "format": "uuid",
            "title": "Context Version Id",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by_user_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By User Id"
          },
          "experience_version_id": {
            "format": "uuid",
            "title": "Experience Version Id",
            "type": "string"
          },
          "fingerprint": {
            "title": "Fingerprint",
            "type": "string"
          },
          "guardrail_version_id": {
            "format": "uuid",
            "title": "Guardrail Version Id",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "published_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "report_template_version_id": {
            "format": "uuid",
            "title": "Report Template Version Id",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "scorecard_version_id": {
            "format": "uuid",
            "title": "Scorecard Version Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "validated",
              "published",
              "deprecated",
              "archived"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "app_id",
          "name",
          "revision",
          "status",
          "fingerprint",
          "experience_version_id",
          "scorecard_version_id",
          "context_version_id",
          "guardrail_version_id",
          "adaptive_policy_version_id",
          "report_template_version_id",
          "created_at"
        ],
        "title": "VersionBundle",
        "type": "object"
      },
      "VersionBundleCreate": {
        "additionalProperties": false,
        "properties": {
          "adaptive_policy_version_id": {
            "format": "uuid",
            "title": "Adaptive Policy Version Id",
            "type": "string"
          },
          "context_version_id": {
            "format": "uuid",
            "title": "Context Version Id",
            "type": "string"
          },
          "experience_version_id": {
            "format": "uuid",
            "title": "Experience Version Id",
            "type": "string"
          },
          "guardrail_version_id": {
            "format": "uuid",
            "title": "Guardrail Version Id",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "report_template_version_id": {
            "format": "uuid",
            "title": "Report Template Version Id",
            "type": "string"
          },
          "scorecard_version_id": {
            "format": "uuid",
            "title": "Scorecard Version Id",
            "type": "string"
          }
        },
        "required": [
          "name",
          "experience_version_id",
          "scorecard_version_id",
          "context_version_id",
          "guardrail_version_id",
          "adaptive_policy_version_id",
          "report_template_version_id"
        ],
        "title": "VersionBundleCreate",
        "type": "object"
      },
      "VersionBundlePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/VersionBundle"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "VersionBundlePage",
        "type": "object"
      },
      "VersionProvenance": {
        "properties": {
          "adaptive_policy_version_id": {
            "format": "uuid",
            "title": "Adaptive Policy Version Id",
            "type": "string"
          },
          "bundle_id": {
            "format": "uuid",
            "title": "Bundle Id",
            "type": "string"
          },
          "context_version_id": {
            "format": "uuid",
            "title": "Context Version Id",
            "type": "string"
          },
          "experience_version_id": {
            "format": "uuid",
            "title": "Experience Version Id",
            "type": "string"
          },
          "guardrail_version_id": {
            "format": "uuid",
            "title": "Guardrail Version Id",
            "type": "string"
          },
          "report_template_version_id": {
            "format": "uuid",
            "title": "Report Template Version Id",
            "type": "string"
          },
          "scorecard_version_id": {
            "format": "uuid",
            "title": "Scorecard Version Id",
            "type": "string"
          }
        },
        "required": [
          "bundle_id",
          "experience_version_id",
          "scorecard_version_id",
          "context_version_id",
          "guardrail_version_id",
          "adaptive_policy_version_id",
          "report_template_version_id"
        ],
        "title": "VersionProvenance",
        "type": "object"
      },
      "WebhookDelivery": {
        "properties": {
          "attempt_count": {
            "title": "Attempt Count",
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "delivered_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delivered At"
          },
          "endpoint_id": {
            "format": "uuid",
            "title": "Endpoint Id",
            "type": "string"
          },
          "event_id": {
            "format": "uuid",
            "title": "Event Id",
            "type": "string"
          },
          "event_type": {
            "title": "Event Type",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error"
          },
          "next_attempt_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Attempt At"
          },
          "response_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Response Status"
          },
          "status": {
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "dead_letter"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "endpoint_id",
          "event_id",
          "event_type",
          "status",
          "attempt_count",
          "created_at"
        ],
        "title": "WebhookDelivery",
        "type": "object"
      },
      "WebhookDeliveryPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "WebhookDeliveryPage",
        "type": "object"
      },
      "WebhookEndpoint": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "disabled_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled At"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "environment_id": {
            "format": "uuid",
            "title": "Environment Id",
            "type": "string"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "title": "Event Types",
            "type": "array"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "id",
          "environment_id",
          "url",
          "event_types",
          "enabled",
          "created_at"
        ],
        "title": "WebhookEndpoint",
        "type": "object"
      },
      "WebhookEndpointCreate": {
        "additionalProperties": false,
        "properties": {
          "event_types": {
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "title": "Event Types",
            "type": "array"
          },
          "url": {
            "format": "uri",
            "maxLength": 2083,
            "minLength": 1,
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "event_types"
        ],
        "title": "WebhookEndpointCreate",
        "type": "object"
      },
      "WebhookEndpointPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WebhookEndpoint"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "WebhookEndpointPage",
        "type": "object"
      },
      "WebhookSecretRotated": {
        "properties": {
          "endpoint_id": {
            "format": "uuid",
            "title": "Endpoint Id",
            "type": "string"
          },
          "rotated_at": {
            "format": "date-time",
            "title": "Rotated At",
            "type": "string"
          },
          "secret": {
            "title": "Secret",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id",
          "secret",
          "rotated_at"
        ],
        "title": "WebhookSecretRotated",
        "type": "object"
      },
      "YearsSince": {
        "additionalProperties": false,
        "description": "Whole years elapsed between an ISO date (``YYYY-MM-DD``) and ctx.now.",
        "properties": {
          "date": {
            "discriminator": {
              "mapping": {
                "agg": "#/components/schemas/Agg",
                "bool": "#/components/schemas/BoolOp",
                "calc": "#/components/schemas/Calc",
                "cmp": "#/components/schemas/Cmp",
                "if": "#/components/schemas/IfExpr",
                "in": "#/components/schemas/InExpr",
                "lit": "#/components/schemas/Lit",
                "var": "#/components/schemas/Var",
                "years_since": "#/components/schemas/YearsSince"
              },
              "propertyName": "op"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/Lit"
              },
              {
                "$ref": "#/components/schemas/Var"
              },
              {
                "$ref": "#/components/schemas/Calc"
              },
              {
                "$ref": "#/components/schemas/Cmp"
              },
              {
                "$ref": "#/components/schemas/BoolOp"
              },
              {
                "$ref": "#/components/schemas/IfExpr"
              },
              {
                "$ref": "#/components/schemas/Agg"
              },
              {
                "$ref": "#/components/schemas/InExpr"
              },
              {
                "$ref": "#/components/schemas/YearsSince"
              }
            ],
            "title": "Date"
          },
          "op": {
            "const": "years_since",
            "title": "Op",
            "type": "string"
          }
        },
        "required": [
          "op",
          "date"
        ],
        "title": "YearsSince",
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "Header alias for a named or legacy API key.",
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      },
      "BearerAuth": {
        "description": "Named syn_ API key or migration-only legacy key.",
        "scheme": "bearer",
        "type": "http"
      },
      "ParticipantToken": {
        "bearerFormat": "spt_...",
        "description": "Short-lived token bound to one participant session.",
        "scheme": "bearer",
        "type": "http"
      },
      "ReportShareToken": {
        "bearerFormat": "shr_...",
        "description": "Expiring, revocable report-share token.",
        "scheme": "bearer",
        "type": "http"
      },
      "SessionCookie": {
        "description": "Opaque administrator browser session.",
        "in": "cookie",
        "name": "synapse_session",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Are we on the same page?",
    "title": "Synapse",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/auth/email-verification/consume": {
      "post": {
        "operationId": "email_verification_consume_auth_email_verification_consume_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenConsumeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Bad request"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [],
        "summary": "Email Verification Consume",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/email-verification/request": {
      "post": {
        "operationId": "email_verification_request_auth_email_verification_request_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailLifecycleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LifecycleAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Rate or budget limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [],
        "summary": "Email Verification Request",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/login": {
      "post": {
        "operationId": "login_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthPrincipal"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Rate or budget limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [],
        "summary": "Login",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/logout": {
      "post": {
        "operationId": "logout_auth_logout_post",
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [],
        "summary": "Logout",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/me": {
      "get": {
        "operationId": "me_auth_me_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthPrincipal"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Me",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/password-reset/consume": {
      "post": {
        "operationId": "password_reset_consume_auth_password_reset_consume_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetConsumeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Bad request"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [],
        "summary": "Password Reset Consume",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/password-reset/request": {
      "post": {
        "operationId": "password_reset_request_auth_password_reset_request_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailLifecycleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LifecycleAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Rate or budget limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [],
        "summary": "Password Reset Request",
        "tags": [
          "auth"
        ]
      }
    },
    "/auth/switch-organization": {
      "post": {
        "operationId": "switch_organization_auth_switch_organization_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationSwitchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveOrganization"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Switch Organization",
        "tags": [
          "auth"
        ]
      }
    },
    "/health": {
      "get": {
        "description": "Unauthenticated readiness probe — also reports what this instance can do.",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            },
            "description": "Readiness dependency unavailable"
          }
        },
        "security": [],
        "summary": "Health"
      }
    },
    "/v1/invitations/accept": {
      "post": {
        "operationId": "accept_invitation_v1_invitations_accept_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationAcceptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationAcceptResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "Accept Invitation",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations": {
      "get": {
        "operationId": "organizations_v1_organizations_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Organizations",
        "tags": [
          "v1 control plane"
        ]
      },
      "post": {
        "operationId": "create_organization_v1_organizations_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSummary"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Organization",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}": {
      "get": {
        "operationId": "organization_v1_organizations__organization_id__get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSummary"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Organization",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps": {
      "get": {
        "operationId": "applications_v1_organizations__organization_id__apps_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Applications",
        "tags": [
          "v1 control plane"
        ]
      },
      "post": {
        "operationId": "create_app_v1_organizations__organization_id__apps_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedApplication"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create App",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}": {
      "get": {
        "operationId": "application_v1_organizations__organization_id__apps__app_id__get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationSummary"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Application",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/bundles": {
      "get": {
        "operationId": "bundles_v1_organizations__organization_id__apps__app_id__bundles_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionBundlePage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Bundles",
        "tags": [
          "v1-platform"
        ]
      },
      "post": {
        "operationId": "create_bundle_v1_organizations__organization_id__apps__app_id__bundles_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionBundleCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionBundle"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Bundle",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/bundles/{bundle_id}/preview": {
      "post": {
        "operationId": "preview_bundle_v1_organizations__organization_id__apps__app_id__bundles__bundle_id__preview_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bundle_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Bundle Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Preview Bundle",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/bundles/{bundle_id}/publish": {
      "post": {
        "operationId": "publish_bundle_v1_organizations__organization_id__apps__app_id__bundles__bundle_id__publish_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bundle_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Bundle Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionBundle"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Publish Bundle",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/bundles/{bundle_id}/status": {
      "post": {
        "operationId": "transition_bundle_v1_organizations__organization_id__apps__app_id__bundles__bundle_id__status_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bundle_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Bundle Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusTransition"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionBundle"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Transition Bundle",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/definitions": {
      "get": {
        "operationId": "definitions_v1_organizations__organization_id__apps__app_id__definitions_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "experience",
                    "scorecard",
                    "context",
                    "guardrail",
                    "adaptive_policy",
                    "report_template"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "draft",
                    "validated",
                    "published",
                    "deprecated",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefinitionPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Definitions",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/definitions/{definition_id}": {
      "get": {
        "operationId": "definition_v1_organizations__organization_id__apps__app_id__definitions__definition_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "definition_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Definition Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefinitionVersion"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Definition",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/definitions/{definition_id}/status": {
      "post": {
        "operationId": "transition_definition_v1_organizations__organization_id__apps__app_id__definitions__definition_id__status_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "definition_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Definition Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusTransition"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefinitionVersion"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Transition Definition",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/definitions/{definition_id}/validate": {
      "post": {
        "operationId": "validate_definition_v1_organizations__organization_id__apps__app_id__definitions__definition_id__validate_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "definition_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Definition Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefinitionValidation"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Validate Definition",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/definitions/{from_id}/diff/{to_id}": {
      "get": {
        "operationId": "diff_definitions_v1_organizations__organization_id__apps__app_id__definitions__from_id__diff__to_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "from_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "From Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "to_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "To Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefinitionDiff"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Diff Definitions",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/definitions/{kind}": {
      "post": {
        "operationId": "create_definition_v1_organizations__organization_id__apps__app_id__definitions__kind__post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "experience",
                "scorecard",
                "context",
                "guardrail",
                "adaptive_policy",
                "report_template"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DefinitionCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefinitionVersion"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Definition",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments": {
      "get": {
        "operationId": "environments_v1_organizations__organization_id__apps__app_id__environments_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Environments",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}": {
      "get": {
        "operationId": "environment_v1_organizations__organization_id__apps__app_id__environments__environment_id__get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentSummary"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Environment",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/analytics/instrument-health": {
      "get": {
        "operationId": "instrument_health_v1_organizations__organization_id__apps__app_id__environments__environment_id__analytics_instrument_health_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "starts_at",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Starts At",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "ends_at",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Ends At",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentInstrumentHealth"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Instrument Health",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/analytics/summary": {
      "get": {
        "operationId": "analytics_v1_organizations__organization_id__apps__app_id__environments__environment_id__analytics_summary_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "starts_at",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Starts At",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "ends_at",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "Ends At",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsSummary"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Analytics",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/continuous-evaluation/answers": {
      "post": {
        "operationId": "submit_continuous_answer_v1_organizations__organization_id__apps__app_id__environments__environment_id__continuous_evaluation_answers_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContinuousAnswerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContinuousAnswerReceipt"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Submit Continuous Answer",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/continuous-evaluation/current-alignment": {
      "post": {
        "operationId": "continuous_current_alignment_v1_organizations__organization_id__apps__app_id__environments__environment_id__continuous_evaluation_current_alignment_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContinuousAlignmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContinuousCurrentAlignment"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Continuous Current Alignment",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/continuous-evaluation/due-questions": {
      "post": {
        "operationId": "continuous_due_questions_v1_organizations__organization_id__apps__app_id__environments__environment_id__continuous_evaluation_due_questions_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContinuousDueQuestionsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContinuousDueQuestionsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Continuous Due Questions",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/continuous-evaluation/events": {
      "post": {
        "operationId": "ingest_continuous_events_v1_organizations__organization_id__apps__app_id__environments__environment_id__continuous_evaluation_events_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContinuousEventsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContinuousEventBatchResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Rate or budget limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Ingest Continuous Events",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/continuous-evaluation/score-drift": {
      "post": {
        "operationId": "continuous_score_drift_v1_organizations__organization_id__apps__app_id__environments__environment_id__continuous_evaluation_score_drift_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContinuousAlignmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationDrift"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Continuous Score Drift",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/enrollments": {
      "post": {
        "operationId": "enroll_v1_organizations__organization_id__apps__app_id__environments__environment_id__enrollments_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollmentCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Enrollment"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Enroll",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/enrollments/{enrollment_id}/status": {
      "post": {
        "operationId": "transition_enrollment_v1_organizations__organization_id__apps__app_id__environments__environment_id__enrollments__enrollment_id__status_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "enrollment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Enrollment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollmentStatusTransition"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Enrollment"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Transition Enrollment",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/evaluations": {
      "get": {
        "operationId": "evaluations_v1_organizations__organization_id__apps__app_id__environments__environment_id__evaluations_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "program_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "in": "query",
            "name": "subject_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Subject Id"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "in_progress",
                    "needs_review",
                    "completed",
                    "failed",
                    "superseded",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Evaluations",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/evaluations/{evaluation_id}": {
      "get": {
        "operationId": "evaluation_result_v1_organizations__organization_id__apps__app_id__environments__environment_id__evaluations__evaluation_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "evaluation_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Evaluation Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Evaluation Result",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/evaluations/{evaluation_id}/behavioral-events": {
      "get": {
        "operationId": "evaluation_behavioral_events_v1_organizations__organization_id__apps__app_id__environments__environment_id__evaluations__evaluation_id__behavioral_events_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "evaluation_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Evaluation Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BehavioralEventPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Evaluation Behavioral Events",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/evaluations/{evaluation_id}/drift": {
      "get": {
        "operationId": "evaluation_drift_v1_organizations__organization_id__apps__app_id__environments__environment_id__evaluations__evaluation_id__drift_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "evaluation_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Evaluation Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationDrift"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Evaluation Drift",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/evaluations/{evaluation_id}/release": {
      "post": {
        "operationId": "release_evaluation_v1_organizations__organization_id__apps__app_id__environments__environment_id__evaluations__evaluation_id__release_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "evaluation_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Evaluation Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationReleaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationRelease"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Release Evaluation",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/evaluations/{evaluation_id}/report-shares": {
      "post": {
        "operationId": "create_report_share_v1_organizations__organization_id__apps__app_id__environments__environment_id__evaluations__evaluation_id__report_shares_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "evaluation_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Evaluation Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportShareCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportShare"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Report Share",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/keys": {
      "get": {
        "operationId": "environment_keys_v1_organizations__organization_id__apps__app_id__environments__environment_id__keys_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Environment Keys",
        "tags": [
          "v1 control plane"
        ]
      },
      "post": {
        "operationId": "create_environment_key_v1_organizations__organization_id__apps__app_id__environments__environment_id__keys_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEnvironmentKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedEnvironmentKey"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Environment Key",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/keys/{key_id}": {
      "delete": {
        "operationId": "revoke_environment_key_v1_organizations__organization_id__apps__app_id__environments__environment_id__keys__key_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokedEnvironmentKey"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Revoke Environment Key",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/keys/{key_id}/rotate": {
      "post": {
        "operationId": "rotate_environment_key_v1_organizations__organization_id__apps__app_id__environments__environment_id__keys__key_id__rotate_post",
        "parameters": [
          {
            "in": "path",
            "name": "key_id",
            "required": true,
            "schema": {
              "title": "Key Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedEnvironmentKey"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Rotate Environment Key",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/participant-sessions": {
      "post": {
        "operationId": "create_participant_session_v1_organizations__organization_id__apps__app_id__environments__environment_id__participant_sessions_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParticipantSessionCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantSessionCreated"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Participant Session",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/programs": {
      "get": {
        "operationId": "programs_v1_organizations__organization_id__apps__app_id__environments__environment_id__programs_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Programs",
        "tags": [
          "v1-platform"
        ]
      },
      "post": {
        "operationId": "create_program_v1_organizations__organization_id__apps__app_id__environments__environment_id__programs_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProgramCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Program"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Program",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/programs/{program_id}/activate": {
      "post": {
        "operationId": "activate_program_v1_organizations__organization_id__apps__app_id__environments__environment_id__programs__program_id__activate_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "program_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Program Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Program"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Activate Program",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/programs/{program_id}/due-enrollments": {
      "get": {
        "operationId": "program_due_enrollments_v1_organizations__organization_id__apps__app_id__environments__environment_id__programs__program_id__due_enrollments_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "program_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Program Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "as_of",
            "required": true,
            "schema": {
              "format": "date-time",
              "title": "As Of",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DueEnrollmentPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Program Due Enrollments",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/programs/{program_id}/events": {
      "post": {
        "operationId": "trigger_program_v1_organizations__organization_id__apps__app_id__environments__environment_id__programs__program_id__events_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "program_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Program Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProgramTriggerInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramTriggerReceipt"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Trigger Program",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/programs/{program_id}/status": {
      "post": {
        "operationId": "transition_program_v1_organizations__organization_id__apps__app_id__environments__environment_id__programs__program_id__status_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "program_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Program Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProgramStatusTransition"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Program"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Transition Program",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/quotas": {
      "get": {
        "description": "Read capacity controls for exactly one test or live environment.",
        "operationId": "environment_quotas_v1_organizations__organization_id__apps__app_id__environments__environment_id__quotas_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentQuotaResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Environment Quotas",
        "tags": [
          "v1 control plane"
        ]
      },
      "patch": {
        "description": "Update operational safety limits; this endpoint does not change billing.",
        "operationId": "update_environment_quotas_v1_organizations__organization_id__apps__app_id__environments__environment_id__quotas_patch",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnvironmentQuotaUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvironmentQuotaResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Update Environment Quotas",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/report-shares/{share_id}": {
      "delete": {
        "operationId": "revoke_report_share_v1_organizations__organization_id__apps__app_id__environments__environment_id__report_shares__share_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "share_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Share Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportShareRevoked"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Revoke Report Share",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/subjects": {
      "get": {
        "operationId": "subjects_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Subjects",
        "tags": [
          "v1 control plane"
        ]
      },
      "post": {
        "operationId": "upsert_subject_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectUpsertRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectUpsertResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Upsert Subject",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/subjects/batch": {
      "post": {
        "operationId": "import_subjects_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects_batch_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectImportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectImportResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Import Subjects",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/subjects/{subject_id}": {
      "delete": {
        "operationId": "delete_subject_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects__subject_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "subject_id",
            "required": true,
            "schema": {
              "title": "Subject Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Delete Subject",
        "tags": [
          "v1 control plane"
        ]
      },
      "get": {
        "operationId": "subject_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects__subject_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "subject_id",
            "required": true,
            "schema": {
              "title": "Subject Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectSummary"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Subject",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/subjects/{subject_id}/export": {
      "get": {
        "operationId": "export_subject_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects__subject_id__export_get",
        "parameters": [
          {
            "in": "path",
            "name": "subject_id",
            "required": true,
            "schema": {
              "title": "Subject Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectDataExport"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Export Subject",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/subjects/{subject_id}/legal-hold": {
      "get": {
        "operationId": "subject_legal_hold_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects__subject_id__legal_hold_get",
        "parameters": [
          {
            "in": "path",
            "name": "subject_id",
            "required": true,
            "schema": {
              "title": "Subject Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectLegalHoldResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Subject Legal Hold",
        "tags": [
          "v1 control plane"
        ]
      },
      "put": {
        "operationId": "place_subject_legal_hold_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects__subject_id__legal_hold_put",
        "parameters": [
          {
            "in": "path",
            "name": "subject_id",
            "required": true,
            "schema": {
              "title": "Subject Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalHoldChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectLegalHoldResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Place Subject Legal Hold",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/subjects/{subject_id}/legal-hold/release": {
      "post": {
        "operationId": "release_subject_legal_hold_v1_organizations__organization_id__apps__app_id__environments__environment_id__subjects__subject_id__legal_hold_release_post",
        "parameters": [
          {
            "in": "path",
            "name": "subject_id",
            "required": true,
            "schema": {
              "title": "Subject Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalHoldChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectLegalHoldResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Release Subject Legal Hold",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/webhook-deliveries": {
      "get": {
        "operationId": "webhook_deliveries_v1_organizations__organization_id__apps__app_id__environments__environment_id__webhook_deliveries_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "succeeded",
                    "failed",
                    "dead_letter"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Webhook Deliveries",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/webhook-deliveries/{delivery_id}/replay": {
      "post": {
        "operationId": "replay_webhook_delivery_v1_organizations__organization_id__apps__app_id__environments__environment_id__webhook_deliveries__delivery_id__replay_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delivery_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Delivery Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Replay Webhook Delivery",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/webhooks": {
      "get": {
        "operationId": "webhooks_v1_organizations__organization_id__apps__app_id__environments__environment_id__webhooks_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Webhooks",
        "tags": [
          "v1-platform"
        ]
      },
      "post": {
        "operationId": "create_webhook_v1_organizations__organization_id__apps__app_id__environments__environment_id__webhooks_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Create Webhook",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/webhooks/{endpoint_id}": {
      "delete": {
        "operationId": "disable_webhook_v1_organizations__organization_id__apps__app_id__environments__environment_id__webhooks__endpoint_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Endpoint Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Disable Webhook",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/environments/{environment_id}/webhooks/{endpoint_id}/rotate-secret": {
      "post": {
        "operationId": "rotate_webhook_v1_organizations__organization_id__apps__app_id__environments__environment_id__webhooks__endpoint_id__rotate_secret_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Endpoint Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecretRotated"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Rotate Webhook",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/apps/{app_id}/templates/{template_id}/clone": {
      "post": {
        "operationId": "clone_template_v1_organizations__organization_id__apps__app_id__templates__template_id__clone_post",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "app_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "App Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Template Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateCloneRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateCloneResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Clone Template",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/audit-events": {
      "get": {
        "operationId": "organization_audit_events_v1_organizations__organization_id__audit_events_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditEventPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Organization Audit Events",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/organizations/{organization_id}/invitations": {
      "get": {
        "operationId": "pending_invitations_v1_organizations__organization_id__invitations_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Pending Invitations",
        "tags": [
          "v1 control plane"
        ]
      },
      "post": {
        "operationId": "invite_member_v1_organizations__organization_id__invitations_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Invite Member",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/invitations/{invitation_id}": {
      "delete": {
        "operationId": "revoke_invitation_v1_organizations__organization_id__invitations__invitation_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "invitation_id",
            "required": true,
            "schema": {
              "title": "Invitation Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Revoke Invitation",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/memberships": {
      "get": {
        "operationId": "memberships_v1_organizations__organization_id__memberships_get",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Memberships",
        "tags": [
          "v1 control plane"
        ]
      },
      "post": {
        "operationId": "add_membership_v1_organizations__organization_id__memberships_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipSummary"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Add Membership",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/memberships/{membership_id}": {
      "delete": {
        "operationId": "remove_membership_v1_organizations__organization_id__memberships__membership_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "title": "Membership Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Remove Membership",
        "tags": [
          "v1 control plane"
        ]
      },
      "patch": {
        "operationId": "update_membership_v1_organizations__organization_id__memberships__membership_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "title": "Membership Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipSummary"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Update Membership",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/organizations/{organization_id}/templates": {
      "get": {
        "operationId": "templates_v1_organizations__organization_id__templates_get",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Organization Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplatePage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Insufficient scope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Templates",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/participant/complete": {
      "post": {
        "operationId": "participant_complete_v1_participant_complete_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantReport"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": []
          }
        ],
        "summary": "Participant Complete",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/participant/events": {
      "post": {
        "operationId": "participant_events_v1_participant_events_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InteractionEventBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InteractionEventBatchReceipt"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Rate or budget limit exceeded"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": []
          }
        ],
        "summary": "Participant Events",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/participant/next": {
      "get": {
        "operationId": "participant_next_question_v1_participant_next_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NextQuestion"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": []
          }
        ],
        "summary": "Participant Next Question",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/participant/profile": {
      "get": {
        "operationId": "get_reusable_profile_v1_participant_profile_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReusableProfileState"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": [],
            "SessionCookie": []
          }
        ],
        "summary": "Get Reusable Profile",
        "tags": [
          "participant-profile"
        ]
      },
      "patch": {
        "operationId": "update_reusable_profile_v1_participant_profile_patch",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReusableProfileUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReusableProfileMutationReceipt"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": [],
            "SessionCookie": []
          }
        ],
        "summary": "Update Reusable Profile",
        "tags": [
          "participant-profile"
        ]
      }
    },
    "/v1/participant/profile/link": {
      "delete": {
        "operationId": "unlink_reusable_profile_v1_participant_profile_link_delete",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReusableProfileMutationReceipt"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": [],
            "SessionCookie": []
          }
        ],
        "summary": "Unlink Reusable Profile",
        "tags": [
          "participant-profile"
        ]
      },
      "post": {
        "operationId": "link_reusable_profile_v1_participant_profile_link_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReusableProfileLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReusableProfileMutationReceipt"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Request validation failed"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": [],
            "SessionCookie": []
          }
        ],
        "summary": "Link Reusable Profile",
        "tags": [
          "participant-profile"
        ]
      }
    },
    "/v1/participant/report": {
      "get": {
        "operationId": "get_participant_report_v1_participant_report_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantReport"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "State or idempotency conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": []
          }
        ],
        "summary": "Get Participant Report",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/participant/session": {
      "get": {
        "operationId": "participant_session_state_v1_participant_session_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantSessionState"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "API error"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ParticipantToken": []
          }
        ],
        "summary": "Participant Session State",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/platform/environments/{environment_id}/approve-live": {
      "post": {
        "operationId": "approve_live_environment_v1_platform_environments__environment_id__approve_live_post",
        "parameters": [
          {
            "in": "path",
            "name": "environment_id",
            "required": true,
            "schema": {
              "title": "Environment Id",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiveApprovalResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "ApiKeyAuth": []
          },
          {
            "SessionCookie": []
          }
        ],
        "summary": "Approve Live Environment",
        "tags": [
          "v1 control plane"
        ]
      }
    },
    "/v1/report-shares/current": {
      "get": {
        "operationId": "shared_report_v1_report_shares_current_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantReport"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Authentication required"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "ReportShareToken": []
          }
        ],
        "summary": "Shared Report",
        "tags": [
          "v1-platform"
        ]
      }
    },
    "/v1/signup": {
      "post": {
        "operationId": "signup_v1_signup_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SandboxSignupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxSignupResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "Signup",
        "tags": [
          "v1 control plane"
        ]
      }
    }
  }
}
