{
  "components": {
    "schemas": {
      "AcceptBaaDto": {
        "properties": {
          "authorized": {
            "description": "Must be true: the signer confirms they are authorized to accept for the entity.",
            "type": "boolean"
          },
          "entity_name": {
            "description": "Legal name of the covered entity entering the agreement. Latin characters only.",
            "maxLength": 300,
            "type": "string"
          },
          "sha256": {
            "description": "SHA-256 of the BAA text being accepted, from `document.sha256` in the BAA status. Guards against accepting a text that changed since it was read.",
            "maxLength": 64,
            "type": "string"
          },
          "signer_name": {
            "description": "Full name of the person accepting on the organization's behalf. Latin characters only.",
            "maxLength": 200,
            "type": "string"
          },
          "signer_title": {
            "description": "Job title of the signer. Latin characters only.",
            "maxLength": 200,
            "type": "string"
          },
          "version": {
            "description": "Version of the BAA being accepted. Must equal `current_version` from the BAA status.",
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "version",
          "sha256",
          "signer_name",
          "signer_title",
          "entity_name",
          "authorized"
        ],
        "type": "object"
      },
      "ActiveBuilderSessionDto": {
        "properties": {
          "agentActive": {
            "description": "True while the builder agent is working on a turn",
            "type": "boolean"
          },
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "disconnectedSince": {
            "description": "When the dashboard tab last disconnected from the session, in milliseconds since the epoch; null while connected",
            "nullable": true,
            "type": "number"
          },
          "lastAgentActivityAt": {
            "description": "When the builder agent last acted in the session, in milliseconds since the epoch",
            "nullable": true,
            "type": "number"
          },
          "lastHumanActivityAt": {
            "description": "When a person last acted in the session, in milliseconds since the epoch",
            "nullable": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow being built",
            "nullable": true,
            "type": "string"
          },
          "sessionSource": {
            "description": "`api`: started through the API, CLI or MCP. `frontend`: started in the dashboard.",
            "enum": [
              "api",
              "frontend"
            ],
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "name",
          "disconnectedSince",
          "lastHumanActivityAt",
          "lastAgentActivityAt",
          "agentActive",
          "sessionSource"
        ],
        "type": "object"
      },
      "ActiveBuilderSessionsDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the first session in `sessions`, or null",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "disconnectedSince": {
            "description": "`disconnectedSince` of the first session in `sessions`, or null",
            "nullable": true,
            "type": "number"
          },
          "hasSessionRunning": {
            "description": "True when you have at least one open session",
            "type": "boolean"
          },
          "name": {
            "description": "Workflow name of the first session in `sessions`, or null",
            "nullable": true,
            "type": "string"
          },
          "sessions": {
            "description": "Every builder session you have open, from the dashboard or the API",
            "items": {
              "$ref": "#/components/schemas/ActiveBuilderSessionDto"
            },
            "type": "array"
          }
        },
        "required": [
          "hasSessionRunning",
          "conversationId",
          "name",
          "disconnectedSince",
          "sessions"
        ],
        "type": "object"
      },
      "AddSigningSecretDto": {
        "properties": {
          "secret": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentEndpointDto": {
        "properties": {
          "agentEndpointUrl": {
            "description": "The workspace's agent endpoint URL. Null when none is set.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "agentEndpointUrl"
        ],
        "type": "object"
      },
      "AgentMessageAcceptedDto": {
        "properties": {
          "accepted": {
            "description": "Always true: the builder accepted the message",
            "type": "boolean"
          },
          "answeredInChat": {
            "description": "True when the builder was waiting for input and the message answered that request",
            "type": "boolean"
          },
          "conversationId": {
            "description": "ID of the builder conversation",
            "type": "string"
          },
          "messageId": {
            "description": "ID of the message that was sent",
            "type": "string"
          },
          "turnId": {
            "description": "ID of the turn this message belongs to, the same value get_turn_state reports as `turnId`. Equals `messageId` when the message opened a turn. When `answeredInChat` is true, it is the ID of the message that opened the waiting turn. `null` only when the answered turn has no recorded ID.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "messageId",
          "turnId",
          "accepted"
        ],
        "type": "object"
      },
      "ApiKeyDeletedDto": {
        "properties": {
          "success": {
            "description": "Always true; failures return an error status instead.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "ApiKeySummaryDto": {
        "properties": {
          "created_at": {
            "description": "When the key was created.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the API key. Use it to delete the key.",
            "format": "uuid",
            "type": "string"
          },
          "key_alias": {
            "description": "Name given to the key when it was created.",
            "example": "CI pipeline",
            "nullable": true,
            "type": "string"
          },
          "key_hint": {
            "description": "Last four characters of the key, to tell keys apart. The key itself is shown only once, at creation.",
            "example": "a1b2",
            "nullable": true,
            "type": "string"
          },
          "last_used_at": {
            "description": "When the key was last used, or null if never.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "key_alias",
          "key_hint",
          "created_at",
          "last_used_at"
        ],
        "type": "object"
      },
      "ApprovedErrorCodeDto": {
        "properties": {
          "errorCode": {
            "description": "Name of the approved error code, e.g. `CLAIM_NOT_FOUND`.",
            "type": "string"
          },
          "id": {
            "description": "ID of the approved error code.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "errorCode"
        ],
        "type": "object"
      },
      "AvailableVariableDto": {
        "properties": {
          "description": {
            "description": "What the variable holds",
            "type": "string"
          },
          "example": {
            "description": "Example value",
            "type": "string"
          },
          "path": {
            "description": "Path of the variable, such as `context.inputs.name`",
            "type": "string"
          },
          "type": {
            "description": "JSON schema type of the variable",
            "type": "string"
          },
          "variable": {
            "description": "Variable name",
            "type": "string"
          }
        },
        "required": [
          "variable",
          "path",
          "type"
        ],
        "type": "object"
      },
      "BaaDocumentDto": {
        "properties": {
          "markdown": {
            "description": "Full BAA text, in Markdown.",
            "type": "string"
          },
          "sha256": {
            "description": "SHA-256 of the BAA text. Pass it back when accepting.",
            "type": "string"
          },
          "version": {
            "description": "Version of the BAA text.",
            "type": "string"
          }
        },
        "required": [
          "version",
          "sha256",
          "markdown"
        ],
        "type": "object"
      },
      "BaaStatusDto": {
        "properties": {
          "agreement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrganizationAgreementDto"
              }
            ],
            "description": "The organization's active agreement. Null when none is on file.",
            "nullable": true,
            "type": "object"
          },
          "can_accept": {
            "description": "Whether the caller can accept the BAA: true only for organization owners.",
            "type": "boolean"
          },
          "current_version": {
            "description": "Version of the current BAA text.",
            "type": "string"
          },
          "document": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BaaDocumentDto"
              }
            ],
            "description": "The current BAA text."
          },
          "needs_reacceptance": {
            "description": "True when a self-serve agreement is on file but for an older version, so it must be accepted again.",
            "type": "boolean"
          }
        },
        "required": [
          "can_accept",
          "current_version",
          "document",
          "agreement",
          "needs_reacceptance"
        ],
        "type": "object"
      },
      "BaseWebhook": {
        "properties": {
          "event_types_subscribed": {
            "description": "Execution event types to receive. Common events:\n- execution.queued: run queued and waiting for a worker\n- execution.start: run started\n- execution.step: workflow step completed\n- execution.paused: run paused, for example by workspace pause controls\n- execution.requeued: run scheduled for another attempt after a recoverable failure (not final)\n- execution.success: run completed successfully (final)\n- execution.failed: run failed and will not be retried (final)\n- execution.stopped: run stopped (final)\n- execution.password_updated: password recovery completed and the vault credential was updated\n- file.uploaded: file artifact generated\n- screenshot.uploaded: screenshot captured\n- video.uploaded: video recording saved\n- interaction.waiting, interaction.finished, interaction.failed: user interaction events\n- agent.decision_requested, agent.decision_answered, agent.decision_applied: recovery agent decision events",
            "items": {
              "enum": [
                "agent.error_analysis",
                "execution.failed",
                "execution.paused",
                "execution.queued",
                "execution.requeued",
                "execution.start",
                "execution.step",
                "execution.stopped",
                "execution.success",
                "file.uploaded",
                "interaction.failed",
                "interaction.finished",
                "interaction.waiting",
                "screenshot.uploaded",
                "video.uploaded",
                "execution.password_recovery",
                "execution.password_updated",
                "agent.tfa_setup_recovery",
                "agent.recovery",
                "agent.decision_requested",
                "agent.decision_answered",
                "agent.decision_applied"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "metadata": {
            "additionalProperties": true,
            "description": "Custom data included in every webhook event payload for this run. Any JSON-serializable object.",
            "type": "object"
          },
          "nr_retries": {
            "description": "Maximum retry attempts for webhook delivery, with exponential backoff. Defaults to 3.",
            "maximum": 10,
            "minimum": 0,
            "type": "number"
          },
          "secret": {
            "default": "",
            "description": "Secret key used to generate the X-HMAC-Signature header: 64 hexadecimal characters. Use it to verify that a webhook payload is authentic.",
            "example": "a3f1c9e2b4d6f8a0c2e4f6a8b0d2e4f6a8c0e2f4a6b8d0f2a4c6e8f0a2b4c6d8",
            "pattern": "^([0-9a-fA-F]{64})?$",
            "type": "string"
          },
          "url": {
            "default": "",
            "description": "HTTP or HTTPS endpoint that receives webhook events.",
            "example": "https://example.com/webhooks/cloudcruise",
            "format": "uri",
            "type": "string"
          },
          "validity": {
            "default": 0,
            "description": "Seconds a webhook event stays valid. Each event's expires_at is set to send time plus this many seconds, so your endpoint can reject replayed events.",
            "type": "number"
          }
        },
        "type": "object"
      },
      "BillingInvoiceDto": {
        "properties": {
          "created": {
            "description": "Time the invoice was created, in Unix seconds.",
            "nullable": true,
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter ISO currency code, lowercase.",
            "example": "usd",
            "nullable": true,
            "type": "string"
          },
          "hosted_invoice_url": {
            "description": "Stripe-hosted page for the invoice.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "ID of the Stripe invoice.",
            "type": "string"
          },
          "invoice_pdf": {
            "description": "Link to the invoice PDF.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "number": {
            "description": "Invoice number shown on the invoice.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "Invoice status. Only paid invoices are listed, so this is `paid`.",
            "nullable": true,
            "type": "string"
          },
          "subscription": {
            "description": "ID of the Stripe subscription the invoice bills.",
            "nullable": true,
            "type": "string"
          },
          "total": {
            "description": "Invoice total in the currency's smallest unit, for example cents.",
            "nullable": true,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "number",
          "created",
          "status",
          "total",
          "currency",
          "hosted_invoice_url",
          "invoice_pdf",
          "subscription"
        ],
        "type": "object"
      },
      "BillingSessionUrlDto": {
        "properties": {
          "url": {
            "description": "Stripe-hosted page to open in a browser. It expires after a short time.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "BrowserControlFailureDto": {
        "properties": {
          "FailureReason": {
            "description": "Why the change could not be applied to the session.",
            "example": "Session not found",
            "type": "string"
          },
          "SessionId": {
            "description": "Identifier of the builder's remote browser session.",
            "example": "builder-7f3a",
            "type": "string"
          }
        },
        "type": "object"
      },
      "BrowserControlResultDto": {
        "properties": {
          "RequestId": {
            "description": "Identifier of the request to the remote browser service.",
            "example": "8a5c1b2e-0f3d-4c6a-9b7e-1d2f3a4b5c6d",
            "type": "string"
          },
          "SuccessfulList": {
            "description": "Browser sessions whose control setting was changed.",
            "items": {
              "$ref": "#/components/schemas/BrowserControlSessionDto"
            },
            "type": "array"
          },
          "UnsuccessfulList": {
            "description": "Browser sessions that could not be changed, with the reason. When it is not empty, the change did not take effect.",
            "items": {
              "$ref": "#/components/schemas/BrowserControlFailureDto"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "BrowserControlSessionDto": {
        "properties": {
          "SessionId": {
            "description": "Identifier of the builder's remote browser session.",
            "example": "builder-7f3a",
            "type": "string"
          }
        },
        "type": "object"
      },
      "BuilderChatMessageDto": {
        "properties": {
          "args": {
            "additionalProperties": true,
            "description": "Arguments the builder passed to the tool",
            "type": "object"
          },
          "content": {
            "description": "Payload of the message, which depends on `event_type`: an object, or a list for `network_traffic_batch`. Answers to `secret` questions read `[REDACTED]`. Screenshots, page HTML and tool output are removed.",
            "oneOf": [
              {
                "type": "object"
              },
              {
                "items": {
                  "type": "object"
                },
                "type": "array"
              }
            ]
          },
          "conversation_id": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "createdAt": {
            "description": "When the message was created, in milliseconds since the epoch",
            "type": "number"
          },
          "event_type": {
            "description": "What the message carries, for example `message` or `execution.tool.node`",
            "type": "string"
          },
          "id": {
            "description": "ID of the message",
            "type": "string"
          },
          "related_message_id": {
            "description": "ID of the message this one answers or updates",
            "nullable": true,
            "type": "string"
          },
          "role": {
            "description": "Who sent the message",
            "enum": [
              "assistant",
              "system",
              "tool",
              "user"
            ],
            "type": "string"
          },
          "status": {
            "description": "State of the step the message reports",
            "enum": [
              "error",
              "success",
              "in_progress",
              "pending",
              "processing",
              "waiting_for_input"
            ],
            "type": "string"
          },
          "text": {
            "description": "Text of the message",
            "type": "string"
          },
          "toolCallId": {
            "description": "ID of the tool call",
            "type": "string"
          },
          "toolName": {
            "description": "Name of the tool the builder called",
            "type": "string"
          },
          "turnId": {
            "description": "ID of the turn the message belongs to",
            "type": "string"
          },
          "type": {
            "description": "How the dashboard renders the message",
            "enum": [
              "action",
              "error",
              "success",
              "interaction",
              "text",
              "reasoning"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "conversation_id",
          "event_type",
          "role",
          "type"
        ],
        "type": "object"
      },
      "BuilderConversationChatDto": {
        "properties": {
          "can_manage_sharing": {
            "description": "True when you started the conversation, so you can manage all its shares",
            "type": "boolean"
          },
          "can_reshare": {
            "description": "True when you can share the conversation with others: you started it or hold a `share` permission",
            "type": "boolean"
          },
          "chat": {
            "description": "The saved chat, oldest message first. Null when `chat` is false, when the conversation has no saved chat yet, or when it could not be read.",
            "items": {
              "$ref": "#/components/schemas/BuilderChatMessageDto"
            },
            "nullable": true,
            "type": "array"
          },
          "chat_error": {
            "description": "Why the saved chat could not be read",
            "nullable": true,
            "type": "string"
          },
          "conversation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BuilderConversationDto"
              }
            ],
            "description": "The conversation's record"
          },
          "retention_notice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RetentionNoticeDto"
              }
            ],
            "description": "Set when the workspace's retention has already deleted some of the conversation's files",
            "nullable": true,
            "type": "object"
          },
          "workflow_accessible": {
            "description": "True when you can open the conversation's workflow",
            "type": "boolean"
          },
          "workflow_snapshot": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowDetailDto"
              }
            ],
            "description": "The builder's copy of the workflow when the conversation ended, including unsaved edits",
            "nullable": true,
            "type": "object"
          },
          "workflow_snapshot_error": {
            "description": "Why the workflow snapshot could not be read",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "conversation",
          "chat",
          "chat_error",
          "workflow_snapshot",
          "workflow_snapshot_error",
          "workflow_accessible",
          "can_manage_sharing",
          "can_reshare",
          "retention_notice"
        ],
        "type": "object"
      },
      "BuilderConversationDto": {
        "properties": {
          "cached_input_tokens": {
            "description": "Builder model input tokens read from the prompt cache; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "conversation_id": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "description": "When the record was created",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "creater_id": {
            "description": "ID of the user who started the conversation",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "end_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client that ended the conversation; null when the system ended it (see `end_reason`)",
            "nullable": true,
            "type": "object"
          },
          "end_reason": {
            "description": "Why the conversation ended, such as `api_ended`, `frontend_ended`, `api_idle`, `idle`, `browser_unavailable`, `retention_expired`, `session_expired`, `frontend_cleared` or `worker_error`; null while it is open",
            "nullable": true,
            "type": "string"
          },
          "end_time": {
            "description": "When the conversation ended; null while it is open",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "estimated_cost_usd": {
            "description": "Estimated builder model cost in US dollars, from token counts; null until the conversation ends or when a model has no price",
            "nullable": true,
            "type": "number"
          },
          "final_workflow_version_id": {
            "description": "Last workflow version saved in this conversation; null if nothing was saved",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_tokens": {
            "description": "Builder model input tokens, cached tokens included; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "latest_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client of the latest human input (message, answer, interrupt or save)",
            "nullable": true,
            "type": "object"
          },
          "model_time_ms": {
            "description": "Total time of builder model calls in milliseconds; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_compactions": {
            "description": "Times the builder's history was compacted; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_debug_runs": {
            "description": "Debug runs started in the conversation",
            "nullable": true,
            "type": "number"
          },
          "nr_debug_runs_failed": {
            "description": "Debug runs that ended in an error",
            "nullable": true,
            "type": "number"
          },
          "nr_debug_runs_passed": {
            "description": "Debug runs that completed without error",
            "nullable": true,
            "type": "number"
          },
          "nr_errors": {
            "description": "Errors during the conversation",
            "nullable": true,
            "type": "number"
          },
          "nr_fallbacks": {
            "description": "Builder model calls served by a fallback provider; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_human_messages": {
            "description": "Messages people sent",
            "nullable": true,
            "type": "number"
          },
          "nr_interrupts": {
            "description": "Turns that were interrupted",
            "nullable": true,
            "type": "number"
          },
          "nr_nodes": {
            "description": "Number of nodes in the workflow when the conversation ended",
            "nullable": true,
            "type": "number"
          },
          "nr_steps": {
            "description": "Builder model calls; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_tool_calls": {
            "description": "Tool calls the builder made",
            "nullable": true,
            "type": "number"
          },
          "nr_turns": {
            "description": "Builder turns, one per message or trigger; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "output_tokens": {
            "description": "Builder model output tokens; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "previous_conversation_id": {
            "description": "Nearest saved conversation that a clear replaced with this one",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "shared_with_workspace": {
            "description": "True when every member of the workspace can read the conversation",
            "type": "boolean"
          },
          "source_error_id": {
            "description": "For a repair conversation: ID of the run error it repairs",
            "nullable": true,
            "type": "string"
          },
          "source_session_id": {
            "description": "For a repair conversation: ID of the failed run it repairs",
            "nullable": true,
            "type": "string"
          },
          "start_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client that started the conversation",
            "nullable": true,
            "type": "object"
          },
          "start_time": {
            "description": "When the conversation started",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "start_url": {
            "description": "URL the builder's browser opened at start",
            "nullable": true,
            "type": "string"
          },
          "trigger_type": {
            "description": "How the conversation started: `new_workflow`, `edit_workflow`, `agent_new`, `agent_from_workflow`, `agent_repair`, `restart` or `cleared`",
            "nullable": true,
            "type": "string"
          },
          "workflow_id": {
            "description": "ID of the workflow built in the conversation",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workflow_name": {
            "description": "Name of the workflow when the conversation started",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversation_id",
          "workspace_id",
          "workflow_id",
          "workflow_name",
          "creater_id",
          "start_time",
          "end_time",
          "created_at",
          "start_url",
          "end_reason",
          "trigger_type",
          "previous_conversation_id",
          "final_workflow_version_id",
          "shared_with_workspace",
          "source_session_id",
          "source_error_id",
          "nr_nodes",
          "nr_human_messages",
          "nr_tool_calls",
          "nr_errors",
          "nr_interrupts",
          "nr_turns",
          "nr_steps",
          "nr_fallbacks",
          "nr_compactions",
          "nr_debug_runs",
          "nr_debug_runs_passed",
          "nr_debug_runs_failed",
          "input_tokens",
          "cached_input_tokens",
          "output_tokens",
          "estimated_cost_usd",
          "model_time_ms",
          "start_origin",
          "latest_origin",
          "end_origin"
        ],
        "type": "object"
      },
      "BuilderConversationSearchResultDto": {
        "properties": {
          "conversations": {
            "description": "Saved conversations that match, in the requested order",
            "items": {
              "$ref": "#/components/schemas/BuilderConversationSearchRowDto"
            },
            "type": "array"
          },
          "count": {
            "description": "Number of conversations in this page",
            "type": "number"
          }
        },
        "required": [
          "count",
          "conversations"
        ],
        "type": "object"
      },
      "BuilderConversationSearchRowDto": {
        "properties": {
          "cached_input_tokens": {
            "description": "Builder model input tokens read from the prompt cache; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "conversation_id": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "description": "When the record was created",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "creater_id": {
            "description": "ID of the user who started the conversation",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "creator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationCreatorDto"
              }
            ],
            "description": "User who started the conversation",
            "nullable": true,
            "type": "object"
          },
          "end_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client that ended the conversation; null when the system ended it (see `end_reason`)",
            "nullable": true,
            "type": "object"
          },
          "end_reason": {
            "description": "Why the conversation ended, such as `api_ended`, `frontend_ended`, `api_idle`, `idle`, `browser_unavailable`, `retention_expired`, `session_expired`, `frontend_cleared` or `worker_error`; null while it is open",
            "nullable": true,
            "type": "string"
          },
          "end_time": {
            "description": "When the conversation ended; null while it is open",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "estimated_cost_usd": {
            "description": "Estimated builder model cost in US dollars, from token counts; null until the conversation ends or when a model has no price",
            "nullable": true,
            "type": "number"
          },
          "final_workflow_version_id": {
            "description": "Last workflow version saved in this conversation; null if nothing was saved",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_tokens": {
            "description": "Builder model input tokens, cached tokens included; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "latest_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client of the latest human input (message, answer, interrupt or save)",
            "nullable": true,
            "type": "object"
          },
          "model_time_ms": {
            "description": "Total time of builder model calls in milliseconds; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_compactions": {
            "description": "Times the builder's history was compacted; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_debug_runs": {
            "description": "Debug runs started in the conversation",
            "nullable": true,
            "type": "number"
          },
          "nr_debug_runs_failed": {
            "description": "Debug runs that ended in an error",
            "nullable": true,
            "type": "number"
          },
          "nr_debug_runs_passed": {
            "description": "Debug runs that completed without error",
            "nullable": true,
            "type": "number"
          },
          "nr_errors": {
            "description": "Errors during the conversation",
            "nullable": true,
            "type": "number"
          },
          "nr_fallbacks": {
            "description": "Builder model calls served by a fallback provider; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_human_messages": {
            "description": "Messages people sent",
            "nullable": true,
            "type": "number"
          },
          "nr_interrupts": {
            "description": "Turns that were interrupted",
            "nullable": true,
            "type": "number"
          },
          "nr_nodes": {
            "description": "Number of nodes in the workflow when the conversation ended",
            "nullable": true,
            "type": "number"
          },
          "nr_steps": {
            "description": "Builder model calls; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "nr_tool_calls": {
            "description": "Tool calls the builder made",
            "nullable": true,
            "type": "number"
          },
          "nr_turns": {
            "description": "Builder turns, one per message or trigger; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "output_tokens": {
            "description": "Builder model output tokens; null until the conversation ends",
            "nullable": true,
            "type": "number"
          },
          "previous_conversation_id": {
            "description": "Nearest saved conversation that a clear replaced with this one",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "shared_with_workspace": {
            "description": "True when every member of the workspace can read the conversation",
            "type": "boolean"
          },
          "source_error_id": {
            "description": "For a repair conversation: ID of the run error it repairs",
            "nullable": true,
            "type": "string"
          },
          "source_session_id": {
            "description": "For a repair conversation: ID of the failed run it repairs",
            "nullable": true,
            "type": "string"
          },
          "start_origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client that started the conversation",
            "nullable": true,
            "type": "object"
          },
          "start_time": {
            "description": "When the conversation started",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "start_url": {
            "description": "URL the builder's browser opened at start",
            "nullable": true,
            "type": "string"
          },
          "trigger_type": {
            "description": "How the conversation started: `new_workflow`, `edit_workflow`, `agent_new`, `agent_from_workflow`, `agent_repair`, `restart` or `cleared`",
            "nullable": true,
            "type": "string"
          },
          "workflow_id": {
            "description": "ID of the workflow built in the conversation",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workflow_name": {
            "description": "Name of the workflow when the conversation started",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversation_id",
          "workspace_id",
          "workflow_id",
          "workflow_name",
          "creater_id",
          "start_time",
          "end_time",
          "created_at",
          "start_url",
          "end_reason",
          "trigger_type",
          "previous_conversation_id",
          "final_workflow_version_id",
          "shared_with_workspace",
          "source_session_id",
          "source_error_id",
          "nr_nodes",
          "nr_human_messages",
          "nr_tool_calls",
          "nr_errors",
          "nr_interrupts",
          "nr_turns",
          "nr_steps",
          "nr_fallbacks",
          "nr_compactions",
          "nr_debug_runs",
          "nr_debug_runs_passed",
          "nr_debug_runs_failed",
          "input_tokens",
          "cached_input_tokens",
          "output_tokens",
          "estimated_cost_usd",
          "model_time_ms",
          "start_origin",
          "latest_origin",
          "end_origin",
          "creator"
        ],
        "type": "object"
      },
      "BuilderConversationSummaryDto": {
        "properties": {
          "conversation": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BuilderConversationDto"
              }
            ],
            "description": "The conversation's record"
          },
          "creator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationCreatorDto"
              }
            ],
            "description": "User who started the conversation",
            "nullable": true,
            "type": "object"
          },
          "workflow_accessible": {
            "description": "True when you can open the conversation's workflow",
            "type": "boolean"
          }
        },
        "required": [
          "conversation",
          "creator",
          "workflow_accessible"
        ],
        "type": "object"
      },
      "BuilderHtmlDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "html": {
            "description": "HTML of the page as the browser holds it now, including hidden fields and typed values",
            "nullable": true,
            "type": "string"
          },
          "url": {
            "description": "URL of the page in the builder's browser",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "url",
          "html"
        ],
        "type": "object"
      },
      "BuilderMessagesPageDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "hasMore": {
            "description": "True when more messages lie beyond this page",
            "type": "boolean"
          },
          "isProcessing": {
            "description": "True while the builder is working on a turn",
            "type": "boolean"
          },
          "limit": {
            "description": "The limit applied, or null when every message was returned",
            "nullable": true,
            "type": "number"
          },
          "messages": {
            "description": "The page of messages, oldest first",
            "items": {
              "$ref": "#/components/schemas/BuilderChatMessageDto"
            },
            "type": "array"
          },
          "offset": {
            "description": "The offset applied",
            "type": "number"
          },
          "tail": {
            "description": "True when `offset` counts back from the newest message",
            "type": "boolean"
          },
          "total": {
            "description": "Number of messages in the conversation, before paging",
            "type": "number"
          }
        },
        "required": [
          "conversationId",
          "messages",
          "total",
          "offset",
          "limit",
          "tail",
          "hasMore",
          "isProcessing"
        ],
        "type": "object"
      },
      "BuilderProxyIpDto": {
        "properties": {
          "ip": {
            "description": "Public IP address the builder's browser uses through its proxy; null when the session has no proxy",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "ip"
        ],
        "type": "object"
      },
      "BuilderSaveResultDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "pendingAnalysisTasks": {
            "description": "Number of background analyses still running on the saved version, such as node descriptions",
            "type": "number"
          },
          "workflow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowDetailDto"
              }
            ],
            "description": "The saved workflow version"
          }
        },
        "required": [
          "conversationId",
          "workflow",
          "pendingAnalysisTasks"
        ],
        "type": "object"
      },
      "BuilderScreenshotDto": {
        "properties": {
          "base64": {
            "description": "Screenshot of the builder's browser tab as a JPEG data URL (`data:image/jpeg;base64,...`)",
            "nullable": true,
            "type": "string"
          },
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "url": {
            "description": "URL of the page in the builder's browser",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "url",
          "base64"
        ],
        "type": "object"
      },
      "BuilderSessionEndedDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "snapshotSettled": {
            "description": "True when the conversation snapshot (workflow and chat) was stored before the browser closed",
            "type": "boolean"
          },
          "success": {
            "description": "Always true: the session ended",
            "type": "boolean"
          }
        },
        "required": [
          "conversationId",
          "success",
          "snapshotSettled"
        ],
        "type": "object"
      },
      "BuilderSessionListDto": {
        "properties": {
          "sessions": {
            "description": "Your open builder sessions across all your workspaces, newest first",
            "items": {
              "$ref": "#/components/schemas/BuilderSessionSummaryDto"
            },
            "type": "array"
          }
        },
        "required": [
          "sessions"
        ],
        "type": "object"
      },
      "BuilderSessionStartedDto": {
        "properties": {
          "builderSession": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BuilderViewerDto"
              }
            ],
            "description": "The live builder viewer: the URL and session to watch the builder's browser. Missing on a local stack."
          },
          "conversationId": {
            "description": "ID of the builder conversation. Pass it to the other builder operations.",
            "type": "string"
          },
          "currentNode": {
            "description": "ID of the node the builder starts at",
            "type": "string"
          },
          "extensionConnected": {
            "description": "Whether the browser extension was connected when the response was built. Always false at start.",
            "type": "boolean"
          },
          "hasInitialExecution": {
            "description": "True when the builder started a run up to `targetNodeId`. Only returned when starting from a workflow.",
            "type": "boolean"
          },
          "isLocal": {
            "description": "True when the session runs on a local stack",
            "type": "boolean"
          },
          "workflow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowDetailDto"
              }
            ],
            "description": "The workflow the builder is editing"
          }
        },
        "required": [
          "conversationId",
          "workflow",
          "currentNode",
          "extensionConnected"
        ],
        "type": "object"
      },
      "BuilderSessionSummaryDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "interrupted": {
            "description": "`true` when the last turn was interrupted, for example by interrupt or the dashboard's Stop button. Only with `status` `idle`, and gone once the next turn starts.",
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "latestOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client that sent the latest request to the session",
            "nullable": true,
            "type": "object"
          },
          "previousConversationIds": {
            "description": "IDs of the conversations this one replaced after a clear or restart, oldest first",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "startOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConversationOriginDto"
              }
            ],
            "description": "Client that started the session",
            "nullable": true,
            "type": "object"
          },
          "startUrl": {
            "description": "URL the builder's browser opened at start",
            "type": "string"
          },
          "startedAt": {
            "description": "When the session started, in milliseconds since the epoch",
            "type": "number"
          },
          "status": {
            "description": "Phase of the current turn, as in get_turn_state: `processing`, `completed`, `awaiting-human-input`, `agent-errored`, `idle` or `ended`",
            "enum": [
              "completed",
              "awaiting-human-input",
              "agent-errored",
              "processing",
              "idle",
              "ended"
            ],
            "type": "string"
          },
          "title": {
            "description": "Name of the workflow being built",
            "type": "string"
          },
          "triggerType": {
            "description": "How the session started: from the dashboard (`new_workflow`, `edit_workflow`), through the API (`agent_new`, `agent_from_workflow`, `agent_repair`), or as a successor (`restart`, `cleared`)",
            "enum": [
              "new_workflow",
              "edit_workflow",
              "agent_new",
              "agent_from_workflow",
              "agent_repair",
              "restart",
              "cleared"
            ],
            "nullable": true,
            "type": "string"
          },
          "workflowId": {
            "description": "ID of the workflow being built. Missing until the builder has created it.",
            "format": "uuid",
            "type": "string"
          },
          "workspaceId": {
            "description": "ID of the workspace the session belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "previousConversationIds",
          "status",
          "startedAt",
          "title",
          "startUrl",
          "workspaceId",
          "triggerType",
          "startOrigin",
          "latestOrigin"
        ],
        "type": "object"
      },
      "BuilderStatusDto": {
        "properties": {
          "browserAttached": {
            "description": "True when the builder's browser is connected",
            "type": "boolean"
          },
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "humanInput": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HumanInputRequestDto"
              }
            ],
            "description": "The open question. Only when `status` is `awaiting-human-input`."
          },
          "interrupted": {
            "description": "`true` when the last turn was interrupted, for example by interrupt or the dashboard's Stop button. Only with `status` `idle`, and gone once the next turn starts.",
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "isProcessing": {
            "description": "True while the builder is working on a turn",
            "type": "boolean"
          },
          "status": {
            "description": "Phase of the current turn, as `phase` in get_turn_state",
            "enum": [
              "completed",
              "awaiting-human-input",
              "agent-errored",
              "processing",
              "idle",
              "ended"
            ],
            "type": "string"
          },
          "terminal": {
            "description": "True when the current turn has stopped: `status` is `completed`, `awaiting-human-input`, `agent-errored` or `ended`. While false, the turn is still running, none has started, or the last one was interrupted (see `interrupted`); poll again or send a message.",
            "type": "boolean"
          },
          "workerConnected": {
            "description": "Same as `browserAttached`, kept for older clients",
            "type": "boolean"
          },
          "workflowId": {
            "description": "ID of the workflow being built. Missing until the builder has created it, and when the session has ended.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "status",
          "terminal",
          "isProcessing",
          "browserAttached",
          "workerConnected"
        ],
        "type": "object"
      },
      "BuilderViewerDto": {
        "properties": {
          "authToken": {
            "description": "Token the viewer uses to connect",
            "type": "string"
          },
          "sessionId": {
            "description": "ID of the live builder viewer session",
            "type": "string"
          },
          "subdirectory": {
            "description": "Path segment of the viewer session",
            "type": "string"
          },
          "url": {
            "description": "URL of the live builder viewer",
            "type": "string"
          }
        },
        "required": [
          "sessionId",
          "subdirectory",
          "url",
          "authToken"
        ],
        "type": "object"
      },
      "BuilderWorkflowDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "currentNodeId": {
            "description": "ID of the node the builder is at. The builder's next node is inserted after it.",
            "nullable": true,
            "type": "string"
          },
          "nextNodeId": {
            "description": "ID of the node after the current one, or null when the current node is last",
            "nullable": true,
            "type": "string"
          },
          "workflow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowDetailDto"
              }
            ],
            "description": "The builder's working copy of the workflow, including unsaved edits"
          }
        },
        "required": [
          "conversationId",
          "workflow",
          "currentNodeId",
          "nextNodeId"
        ],
        "type": "object"
      },
      "CallerIdentityDto": {
        "properties": {
          "apiKeyAlias": {
            "description": "Alias of the API key, when the request uses an API key.",
            "type": "string"
          },
          "apiKeyId": {
            "description": "Identifier of the API key, when the request uses an API key.",
            "format": "uuid",
            "type": "string"
          },
          "email": {
            "description": "Email address of that user.",
            "format": "email",
            "type": "string"
          },
          "role": {
            "description": "Set only for CloudCruise staff and service accounts; absent for customers.",
            "type": "string"
          },
          "userId": {
            "description": "Identifier of the signed-in user, or of the user who owns the API key.",
            "format": "uuid",
            "type": "string"
          },
          "workspaceId": {
            "description": "Workspace the request acts on: the API key's workspace, or the workspace chosen for the call when it uses a user token. Absent when neither names one.",
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CancelQueuedRunResponseDto": {
        "properties": {
          "success": {
            "description": "Always true; a run not found in the workspace's queues returns 404.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "CancelQueuedRunsRequestDto": {
        "properties": {
          "session_ids": {
            "description": "Session IDs of the queued runs to cancel. IDs not found in the workspace's active queues are skipped.",
            "example": [
              "e5f6a7b8-9abc-4def-0123-56789abcdef0"
            ],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "session_ids"
        ],
        "type": "object"
      },
      "CancelQueuedRunsResponseDto": {
        "properties": {
          "removedRuns": {
            "description": "Number of queued runs cancelled.",
            "example": 2,
            "type": "number"
          },
          "success": {
            "description": "Always true; a failed cancellation returns an error.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "removedRuns"
        ],
        "type": "object"
      },
      "ChangePasswordDto": {
        "properties": {
          "currentPassword": {
            "description": "The caller's current password. It is checked before the password changes.",
            "maxLength": 128,
            "type": "string"
          },
          "newPassword": {
            "description": "The new password. Supabase Auth rejects weak passwords.",
            "maxLength": 128,
            "minLength": 12,
            "type": "string"
          }
        },
        "required": [
          "currentPassword",
          "newPassword"
        ],
        "type": "object"
      },
      "ChangePasswordResultDto": {
        "properties": {
          "ok": {
            "description": "Always true; a failed change returns an error instead.",
            "type": "boolean"
          }
        },
        "required": [
          "ok"
        ],
        "type": "object"
      },
      "ClaimVerifiedDomainDto": {
        "properties": {
          "domain": {
            "description": "Email domain to claim, as a lowercase DNS hostname.",
            "example": "acme.com",
            "type": "string"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "ClearConversationResultDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the new conversation that replaces the cleared one. Use it for every later call.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversationId"
        ],
        "type": "object"
      },
      "ClosestProxyDto": {
        "properties": {
          "proxy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProxyDto"
              }
            ],
            "description": "The managed proxy closest to the requested location."
          }
        },
        "required": [
          "proxy"
        ],
        "type": "object"
      },
      "ComponentEnrichmentResultDto": {
        "properties": {
          "componentId": {
            "description": "ID of the component.",
            "format": "uuid",
            "type": "string"
          },
          "componentIntent": {
            "description": "The component's canonical intent, stored on the component.",
            "enum": [
              "NAV.GOTO",
              "NAV.SCROLL",
              "NAV.TAB",
              "NAV.WINDOW",
              "AUTH.LOGIN",
              "AUTH.INPUT_CREDENTIALS",
              "AUTH.TFA",
              "SEARCH.QUERY",
              "FORM.INPUT",
              "FORM.SELECT",
              "FORM.SUBMIT",
              "FORM.UPLOAD",
              "TABLE.SELECT_ROW",
              "BUTTON.CLICK",
              "DATA.EXTRACT",
              "DATA.EXTRACT_NETWORK",
              "FILE.DOWNLOAD",
              "FLOW.CONDITION",
              "FLOW.LOOP",
              "FLOW.DELAY",
              "FLOW.CAPTCHA",
              "FLOW.TRANSFORM",
              "FLOW.START",
              "FLOW.END",
              "APP.ACTION",
              "INTERACTION.USER",
              "SCREENSHOT.CAPTURE",
              "UNKNOWN"
            ],
            "type": "string"
          },
          "description": {
            "description": "The generated description, stored on the component.",
            "type": "string"
          },
          "enriched": {
            "description": "Whether a description was generated, stored and propagated. When false, `reason` says why and nothing changed.",
            "type": "boolean"
          },
          "instanceCount": {
            "description": "Number of instances whose screenshots were pooled.",
            "type": "number"
          },
          "reason": {
            "description": "Why nothing was enriched: the feature is off, the component has no nodes, no workflow uses it, no instance has screenshots from the last 30 days, or the model returned nothing.",
            "enum": [
              "flag-disabled",
              "no-definition-nodes",
              "no-instances",
              "no-screenshots",
              "llm-empty"
            ],
            "type": "string"
          },
          "sampleWorkflowIds": {
            "description": "IDs of the workflows the sampled screenshots came from.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "componentId",
          "enriched"
        ],
        "type": "object"
      },
      "ComponentNodeDto": {
        "properties": {
          "position": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComponentNodePositionDto"
              }
            ],
            "description": "Where the node sits on the visualizer canvas."
          },
          "workflowNode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NodeDto"
              }
            ],
            "description": "The workflow node, with the same shape as a node in a workflow."
          }
        },
        "required": [
          "workflowNode",
          "position"
        ],
        "type": "object"
      },
      "ComponentNodePositionDto": {
        "properties": {
          "x": {
            "description": "Horizontal canvas position of the node.",
            "type": "number"
          },
          "y": {
            "description": "Vertical canvas position of the node.",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "type": "object"
      },
      "ComponentSourceMetadataDto": {
        "properties": {
          "component_intent": {
            "description": "Canonical intent token for the component's purpose, set by component enrichment, e.g. `AUTH.LOGIN`.",
            "type": "string"
          },
          "credentials": {
            "description": "Vault credential aliases the component uses.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": {
            "description": "What the component does. Written by component enrichment, or by the caller.",
            "type": "string"
          },
          "domain": {
            "description": "Domain of the site the component automates.",
            "type": "string"
          },
          "inputs": {
            "description": "Input variables the component reads.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ComponentUsageWorkflowDto": {
        "properties": {
          "id": {
            "description": "ID of the workflow.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the workflow.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "ComponentVaultCredentialDto": {
        "properties": {
          "domain": {
            "description": "Domain associated with the credential.",
            "example": "https://example.com",
            "type": "string"
          },
          "example": {
            "description": "Example permissioned_user_id for this credential.",
            "type": "string"
          },
          "hasPasskey": {
            "description": "Whether the credential signs in with a passkey.",
            "type": "boolean"
          },
          "type": {
            "description": "Kind of vault entry. Always `credential`.",
            "enum": [
              "credential"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "domain"
        ],
        "type": "object"
      },
      "ComponentVersionCreatedDto": {
        "properties": {
          "version_number": {
            "description": "The version number of the newly created component version.",
            "minimum": 1,
            "type": "number"
          }
        },
        "required": [
          "version_number"
        ],
        "type": "object"
      },
      "ComponentVersionDto": {
        "properties": {
          "component_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowComponentDataDto"
              }
            ],
            "description": "The component's nodes, edges and vault schema at this version."
          },
          "component_id": {
            "description": "ID of the parent component.",
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version.",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "ID of the version row.",
            "format": "uuid",
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version.",
            "nullable": true,
            "type": "string"
          },
          "version_number": {
            "description": "Version number, starting at 1 and incrementing per component.",
            "minimum": 1,
            "type": "number"
          }
        },
        "required": [
          "id",
          "component_id",
          "version_number",
          "version_note",
          "created_by",
          "created_at",
          "component_data"
        ],
        "type": "object"
      },
      "ComponentVersionSummaryDto": {
        "properties": {
          "component_id": {
            "description": "ID of the parent component.",
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version.",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "ID of the version row.",
            "format": "uuid",
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version.",
            "nullable": true,
            "type": "string"
          },
          "version_number": {
            "description": "Version number, starting at 1 and incrementing per component.",
            "minimum": 1,
            "type": "number"
          }
        },
        "required": [
          "id",
          "component_id",
          "version_number",
          "version_note",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "ConversationCreatorDto": {
        "properties": {
          "email": {
            "description": "Creator's email address",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Creator's display name",
            "nullable": true,
            "type": "string"
          },
          "user_uuid": {
            "description": "Creator's user ID",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "email",
          "user_uuid"
        ],
        "type": "object"
      },
      "ConversationOriginDto": {
        "properties": {
          "agent": {
            "description": "Agent or tool that drove the client, as the client reported it, for example `claude-code`",
            "type": "string"
          },
          "auth": {
            "description": "How the request authenticated: a user session or an API key",
            "enum": [
              "user_jwt",
              "cc_key"
            ],
            "type": "string"
          },
          "client": {
            "description": "Client that made the request. `builder_agent` is the builder acting on its own; `unknown` is a client that did not identify itself.",
            "enum": [
              "cli",
              "sdk-js",
              "sdk-python",
              "dashboard",
              "extension",
              "mcp",
              "builder_agent",
              "unknown"
            ],
            "type": "string"
          },
          "clientVersion": {
            "description": "Version the client reported",
            "type": "string"
          }
        },
        "required": [
          "client",
          "agent"
        ],
        "type": "object"
      },
      "ConversationShareDto": {
        "properties": {
          "conversation_id": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "description": "When the share was created",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the share",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "ID of the share",
            "format": "uuid",
            "type": "string"
          },
          "permission": {
            "description": "`view`: the user can read the conversation. `share`: the user can also share it with others.",
            "enum": [
              "view",
              "share"
            ],
            "type": "string"
          },
          "shared_with": {
            "description": "ID of the user the conversation is shared with",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "conversation_id",
          "workspace_id",
          "shared_with",
          "permission",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "CreateApiKeyDto": {
        "properties": {
          "alias": {
            "default": "",
            "type": "string"
          }
        },
        "required": [
          "alias"
        ],
        "type": "object"
      },
      "CreateBranchDto": {
        "properties": {
          "fromBranchId": {
            "description": "Branch to start from: the new branch begins at this branch's latest version. Defaults to the workflow's default branch. Ignored when `fromVersionId` is given",
            "format": "uuid",
            "type": "string"
          },
          "fromVersionId": {
            "description": "Workflow version to start from, for branching off an older version rather than a branch's latest one. Takes precedence over `fromBranchId`",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Name of the new branch, unique within the workflow. Follows git branch naming rules: no spaces, no `..`, no leading or trailing `/` or `.`",
            "example": "fix/login-timeout",
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateBranchRulesetDto": {
        "properties": {
          "branchPatterns": {
            "default": [],
            "description": "Glob patterns (`*` matches any characters) matched against branch names and IDs. Used only when `branchTarget` is `pattern`",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branchTarget": {
            "default": "default_branch",
            "description": "Which branches it protects: `default_branch` (each workflow's default branch), `all_branches`, or `pattern` (branches matching `branchPatterns`)",
            "enum": [
              "default_branch",
              "all_branches",
              "pattern"
            ],
            "type": "string"
          },
          "bypassRoles": {
            "default": [],
            "description": "Workspace roles that may skip the ruleset: edit matched branches directly, or merge with `force` without approvals",
            "items": {
              "enum": [
                "owner",
                "member"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "default": true,
            "description": "Whether the ruleset applies. A disabled ruleset protects nothing",
            "type": "boolean"
          },
          "minApprovals": {
            "default": 0,
            "description": "Approvals a pull request needs when `requireReview` is true",
            "maximum": 32,
            "minimum": 0,
            "type": "number"
          },
          "name": {
            "description": "Name of the ruleset",
            "maxLength": 256,
            "type": "string"
          },
          "protected": {
            "default": false,
            "description": "Block direct edits to matched branches, so changes must arrive through a merged pull request",
            "type": "boolean"
          },
          "requireReview": {
            "default": false,
            "description": "Require approvals before a pull request can merge into a matched branch",
            "type": "boolean"
          },
          "workflowPatterns": {
            "default": [],
            "description": "Glob patterns (`*` matches any characters) matched against workflow IDs and folder paths. Used only when `workflowScope` is `matching`",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "workflowScope": {
            "default": "all",
            "description": "Which workflows it covers: `all` workflows in the workspace, or `matching` (workflows matching `workflowPatterns`)",
            "enum": [
              "all",
              "matching"
            ],
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateCheckoutSessionDto": {
        "properties": {
          "plan_type": {
            "description": "Plan the checkout subscribes the organization to.",
            "enum": [
              "free",
              "scale"
            ],
            "type": "string"
          }
        },
        "required": [
          "plan_type"
        ],
        "type": "object"
      },
      "CreateConversationShareDto": {
        "properties": {
          "permission": {
            "description": "`view`: the user can read the conversation. `share`: the user can also share it with others.",
            "enum": [
              "view",
              "share"
            ],
            "type": "string"
          },
          "sharedWithUserId": {
            "description": "ID of the user to share with. They must be a member of the conversation's workspace.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "sharedWithUserId",
          "permission"
        ],
        "type": "object"
      },
      "CreateErrorCodeDto": {
        "properties": {
          "description": {
            "description": "Short description of the error, shown on failed runs.",
            "example": "Claim not found in the portal",
            "type": "string"
          },
          "enriched_description": {
            "description": "Longer description used to classify errors against this code.",
            "type": "string"
          },
          "error_action": {
            "description": "What CloudCruise does when a run fails with this code. `alert` fails the run and notifies. `retry` requeues the run up to `retries` times (once when `retries` is unset), waiting `retry_after` seconds (at least 10), within the workflow's requeue limits (`allow_requeue`, `max_retries`). `pause_workflow` ends the run as `execution.stopped` and pauses its workflow, so its queued runs stay held (`execution.paused`) until you unpause runs with `pause_resource` set to `workflow`. `pause_credential` ends the run as `execution.stopped` and pauses the vault credential the run used, so only queued runs that use it stay held, until you unpause runs with `pause_resource` set to `credential`. Runs that fail with a code that has no action are handled as `alert`.",
            "enum": [
              "alert",
              "pause_workflow",
              "pause_credential",
              "retry"
            ],
            "example": "alert",
            "type": "string"
          },
          "error_code": {
            "description": "Name of the error code, e.g. `CLAIM_NOT_FOUND`. Must not be blank or match another code in the workspace (case- and whitespace-insensitive).",
            "example": "CLAIM_NOT_FOUND",
            "maxLength": 100,
            "pattern": "\\S",
            "type": "string"
          },
          "retries": {
            "description": "Number of retries when `error_action` is `retry`.",
            "minimum": 0,
            "type": "integer"
          },
          "retry_after": {
            "description": "Seconds to wait between retries when `error_action` is `retry`.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "error_code",
          "description"
        ],
        "type": "object"
      },
      "CreateInviteDto": {
        "properties": {
          "email": {
            "description": "Email address to invite. The invite can only be accepted by a verified account with this email.",
            "format": "email",
            "type": "string"
          },
          "expiresInDays": {
            "description": "Days until the invite expires.",
            "example": 7,
            "type": "number"
          },
          "organizationId": {
            "description": "Organization to invite to. The caller must be an owner of it.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "email",
          "organizationId",
          "expiresInDays"
        ],
        "type": "object"
      },
      "CreateOrgSsoConfigurationDto": {
        "properties": {
          "attribute_mapping": {
            "additionalProperties": true,
            "description": "Supabase Auth SAML attribute mapping from IdP attributes to user fields. Left out, the defaults apply.",
            "type": "object"
          },
          "enforced": {
            "description": "True to require SSO for the domain, blocking password sign-in and sign-up for its users. Needs an owner who has signed in through SSO once. Left out on create, SSO is not required.",
            "type": "boolean"
          },
          "idp_certificate": {
            "description": "The identity provider's public x509 signing certificate in PEM form, including the BEGIN and END CERTIFICATE lines.",
            "type": "string"
          },
          "idp_entity_id": {
            "description": "SAML entity ID (issuer) of the identity provider, from its metadata.",
            "example": "https://idp.acme.com/metadata",
            "type": "string"
          },
          "idp_sso_url": {
            "description": "HTTPS sign-on URL of the identity provider.",
            "example": "https://idp.acme.com/sso",
            "format": "uri",
            "type": "string"
          },
          "verified_domain_id": {
            "description": "ID of the organization's DNS-verified domain whose users sign in through this identity provider.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "verified_domain_id",
          "idp_entity_id",
          "idp_sso_url",
          "idp_certificate"
        ],
        "type": "object"
      },
      "CreateOrganizationDto": {
        "properties": {
          "imageUrl": {
            "description": "Ignored: the logo is not saved on create. Set it afterwards with the organization update operation.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the new organization.",
            "type": "string"
          },
          "workspace_name": {
            "description": "Name of the first workspace, created in the organization with the caller as its owner.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "workspace_name"
        ],
        "type": "object"
      },
      "CreatePullRequestDto": {
        "properties": {
          "sourceBranchId": {
            "description": "Branch whose changes the pull request proposes to merge",
            "format": "uuid",
            "type": "string"
          },
          "targetBranchId": {
            "description": "Branch the changes merge into, usually the workflow's default branch",
            "format": "uuid",
            "type": "string"
          },
          "title": {
            "description": "Title of the pull request",
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "sourceBranchId",
          "targetBranchId"
        ],
        "type": "object"
      },
      "CreateSecretProviderDto": {
        "properties": {
          "account_id": {
            "type": "string"
          },
          "cache_ttl_seconds": {
            "maximum": 86400,
            "minimum": 0,
            "type": "number"
          },
          "config": {
            "type": "object"
          },
          "host": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider_type": {
            "enum": [
              "1password",
              "custom_http"
            ],
            "type": "string"
          }
        },
        "required": [
          "provider_type",
          "name",
          "config"
        ],
        "type": "object"
      },
      "CreateWebhookDto": {
        "properties": {
          "eventTypesSubscribed": {
            "items": {
              "enum": [
                "agent.error_analysis",
                "execution.failed",
                "execution.paused",
                "execution.queued",
                "execution.requeued",
                "execution.start",
                "execution.step",
                "execution.stopped",
                "execution.success",
                "file.uploaded",
                "interaction.failed",
                "interaction.finished",
                "interaction.waiting",
                "screenshot.uploaded",
                "video.uploaded",
                "execution.password_recovery",
                "execution.password_updated",
                "agent.tfa_setup_recovery",
                "agent.recovery",
                "agent.decision_requested",
                "agent.decision_answered",
                "agent.decision_applied"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "excludeInputVariables": {
            "type": "boolean"
          },
          "nrRetries": {
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "secret": {
            "pattern": "^[0-9a-fA-F]{64}$",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "type": "string"
          },
          "validity": {
            "maximum": 2592000,
            "minimum": 0,
            "type": "number"
          },
          "workflowId": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "secret",
          "validity",
          "url",
          "eventTypesSubscribed",
          "nrRetries"
        ],
        "type": "object"
      },
      "CreateWorkflowComponentDto": {
        "properties": {
          "componentData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowComponentDataDto"
              }
            ],
            "description": "The component's nodes, edges and vault schema, in the shape the workflow visualizer uses."
          },
          "name": {
            "description": "Display name for the component.",
            "maxLength": 100,
            "type": "string"
          },
          "sourceMetadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComponentSourceMetadataDto"
              }
            ],
            "description": "Where the component came from and what it does. Component enrichment fills `description` and `component_intent` later."
          }
        },
        "required": [
          "name",
          "componentData"
        ],
        "type": "object"
      },
      "CreateWorkflowDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "Branch this version was saved to. On update, the branch to save to; left out, the save goes to the workflow's default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "bump_type": {
            "description": "How `version` was derived from its parent, or null when it was chosen explicitly or has no parent",
            "enum": [
              "major",
              "minor",
              "patch"
            ],
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "component_imports": {
            "description": "Workspace components this workflow calls, as `{ id, version }`. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "conversation_id": {
            "description": "Builder conversation that produced this version, if any",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_via": {
            "description": "Which CloudCruise client saved this version. Set by CloudCruise's own clients; leave it out.",
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_error_handling": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_extract_datamodel_recovery": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "error_codes": {
            "description": "Error codes the workflow's nodes reference. On create and import, each is matched to a workspace error code by name and description, and created when none matches. On update, send the saved codes unchanged or leave the field out; a difference is rejected with `409 READ_ONLY_FIELD_CONFLICT`.",
            "items": {
              "$ref": "#/components/schemas/ErrorCodeDto"
            },
            "type": "array"
          },
          "extract_network_urls": {
            "description": "URL patterns to capture from network traffic during a run",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder to file the workflow under, as a `/`-separated path of up to 5 segments, or null for the top level",
            "example": "billing/claims",
            "nullable": true,
            "type": "string"
          },
          "generation": {
            "description": "Depth of this version in the workflow's version history",
            "readOnly": true,
            "type": "number"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow. On create, the new workflow gets this id, or a generated one when it is left out; an id another workspace holds is rejected with `409 WORKFLOW_ID_TAKEN`. On update, send the saved id or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "local_components": {
            "description": "Components defined inside this workflow, available to its Component Call nodes. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "major": {
            "description": "Major part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "type": "number"
          },
          "merge_parent_version_id": {
            "description": "For a merge, the head of the branch that was merged in",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor": {
            "description": "Minor part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "type": "object"
          },
          "parent_version_id": {
            "description": "The version this one was saved on top of",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "patch": {
            "description": "Patch part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that are dismissed automatically",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration: `country`, `static`, `custom`, `random` or `off`. Changing it clears `proxy_value` unless a new one is sent.",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "release_version": {
            "description": "Tag the new version with this exact `major.minor.patch` instead of the computed one. Must be higher than the version the save is based on and not already used by this workflow.",
            "example": "2.0.0",
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "skip_udp_proxying": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "use_native_actions": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Vault credentials the workflow needs, keyed by alias. Each value is `{ \"type\": \"credential\", \"domain\": <site>, \"example\"?: <credential id> }`. A run passes a credential id for each alias in its input.",
            "type": "object"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version",
            "example": "2.1.0",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this workflow version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version",
            "type": "string"
          },
          "version_number": {
            "deprecated": true,
            "description": "Legacy version counter, ignored",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "video_record_session": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "workflow_id": {
            "description": "Same as `id`, accepted so a read can be sent back unchanged. Must equal `id` when both are sent.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to. On a write, send the caller's workspace or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "output_schema",
          "max_retries"
        ],
        "type": "object"
      },
      "CreateWorkflowFolderDto": {
        "properties": {
          "folder_path": {
            "description": "Path of the folder to create: up to 5 `/`-separated segments, no leading or trailing `/`, at most 512 characters. Segments may not contain `,`, `%` or `*` or be `.` or `..`.",
            "example": "billing/claims",
            "type": "string"
          }
        },
        "required": [
          "folder_path"
        ],
        "type": "object"
      },
      "CreateWorkspaceDto": {
        "properties": {
          "addAllOrgMembers": {
            "description": "Add every organization member to the workspace: the caller as OWNER, everyone else as MEMBER. The creator always becomes an OWNER.",
            "type": "boolean"
          },
          "name": {
            "description": "Name of the new workspace.",
            "type": "string"
          },
          "organizationId": {
            "description": "Organization to create the workspace in. The caller must be an owner of it.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "organizationId",
          "addAllOrgMembers"
        ],
        "type": "object"
      },
      "CreatedErrorCodeDto": {
        "properties": {
          "created": {
            "description": "`true` if a new code was created, `false` if an existing code with the same name was returned.",
            "type": "boolean"
          },
          "created_at": {
            "description": "Timestamp when the error code was created.",
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "description": "Short description of the error, shown on failed runs.",
            "nullable": true,
            "type": "string"
          },
          "enriched_description": {
            "description": "Longer description used to classify errors against this code.",
            "nullable": true,
            "type": "string"
          },
          "error_action": {
            "description": "What CloudCruise does when a run fails with this code. `alert` fails the run and notifies. `retry` requeues the run up to `retries` times (once when `retries` is unset), waiting `retry_after` seconds (at least 10), within the workflow's requeue limits (`allow_requeue`, `max_retries`). `pause_workflow` ends the run as `execution.stopped` and pauses its workflow, so its queued runs stay held (`execution.paused`) until you unpause runs with `pause_resource` set to `workflow`. `pause_credential` ends the run as `execution.stopped` and pauses the vault credential the run used, so only queued runs that use it stay held, until you unpause runs with `pause_resource` set to `credential`. Runs that fail with a code that has no action are handled as `alert`.",
            "enum": [
              "alert",
              "pause_workflow",
              "pause_credential",
              "retry"
            ],
            "nullable": true,
            "type": "string"
          },
          "error_code": {
            "description": "Name of the error code, e.g. `CLAIM_NOT_FOUND`.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier. Use this value in a node's error-code parameter.",
            "format": "uuid",
            "type": "string"
          },
          "pending_approval": {
            "description": "True while the code awaits approval: the maintenance agent suggested it after a failed run. The recovery agent's decision requests and the builder agent skip pending codes.",
            "type": "boolean"
          },
          "referenced_session_id": {
            "description": "Run session the maintenance agent suggested this code from.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "retries": {
            "description": "Number of retries when `error_action` is `retry`.",
            "nullable": true,
            "type": "integer"
          },
          "retry_after": {
            "description": "Seconds to wait between retries when `error_action` is `retry`.",
            "nullable": true,
            "type": "integer"
          },
          "user_id": {
            "description": "Legacy column. The database fills it with a random UUID when no user is given, so it does not identify who created the code.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this error code belongs to.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "error_code",
          "description",
          "enriched_description",
          "error_action",
          "retries",
          "retry_after",
          "pending_approval",
          "referenced_session_id",
          "user_id",
          "workspace_id",
          "created_at",
          "created"
        ],
        "type": "object"
      },
      "CredentialPauseSettingsDto": {
        "properties": {
          "workflow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CredentialPauseValuesDto"
              }
            ],
            "description": "The workflow's override. Null when no `workflow_id` was given.",
            "nullable": true,
            "type": "object"
          },
          "workspace": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CredentialPauseValuesDto"
              }
            ],
            "description": "The workspace default."
          }
        },
        "required": [
          "workspace",
          "workflow"
        ],
        "type": "object"
      },
      "CredentialPauseValuesDto": {
        "properties": {
          "pause_on_invalid_credentials": {
            "description": "Pause the vault credential a run used when the site rejects its username or password, so queued runs stop retrying it. Null inherits: a workflow inherits the workspace value, and an unset workspace value means off.",
            "nullable": true,
            "type": "boolean"
          },
          "pause_on_password_update": {
            "description": "Pause the vault credential a run used when the site demands a password change that can't be dismissed. Null inherits as above. Cannot be on while Password Update Recovery is on.",
            "nullable": true,
            "type": "boolean"
          }
        },
        "required": [
          "pause_on_invalid_credentials",
          "pause_on_password_update"
        ],
        "type": "object"
      },
      "CurrentIpDto": {
        "properties": {
          "ip": {
            "description": "The caller's public IP address as CloudCruise sees it, or null when it cannot be determined.",
            "example": "203.0.113.24",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "ip"
        ],
        "type": "object"
      },
      "CustomReplayTargetDto": {
        "properties": {
          "secret": {
            "description": "Signing secret for this target: 64 hexadecimal characters. Deliveries are signed with it so the receiver can verify them.",
            "example": "a3f1c9e2b4d6f8a0c2e4f6a8b0d2e4f6a8c0e2f4a6b8d0f2a4c6e8f0a2b4c6d8",
            "pattern": "^[0-9a-fA-F]{64}$",
            "type": "string"
          },
          "url": {
            "description": "Extra URL to deliver the run's webhook events to, in addition to the original recipients.",
            "example": "https://example.com/hooks/cloudcruise",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "url",
          "secret"
        ],
        "type": "object"
      },
      "DataModelSchemaDto": {
        "properties": {
          "description": {
            "description": "What the data holds",
            "type": "string"
          },
          "items": {
            "additionalProperties": true,
            "description": "Schema of each item, when `type` is `array`",
            "type": "object"
          },
          "properties": {
            "additionalProperties": {
              "additionalProperties": true,
              "description": "A field's JSON schema. `path` holds its XPath once one is found; nested objects and arrays repeat this shape.",
              "type": "object"
            },
            "description": "Fields of the data, keyed by field name",
            "type": "object"
          },
          "type": {
            "description": "JSON schema type of the data, usually `object`",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "DataRetentionSettingsDto": {
        "properties": {
          "data_retention_days": {
            "description": "How many days run data is kept.",
            "enum": [
              1,
              7,
              30,
              90,
              180,
              365
            ],
            "type": "number"
          },
          "file_url_expiration_seconds": {
            "description": "How long signed file and media URLs stay valid, in seconds.",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "data_retention_days",
          "file_url_expiration_seconds"
        ],
        "type": "object"
      },
      "DebugSnapshotsResponseDto": {
        "properties": {
          "node_id": {
            "description": "Identifier of the workflow node the snapshots belong to.",
            "example": "9f8e7d6c-5b4a-4321-9edc-ba9876543210",
            "type": "string"
          },
          "page_snapshot_url": {
            "description": "Temporary URL of the HTML page snapshot captured when the node ran. It holds the full DOM, including inlined iframe content, and is valid for the workspace's Signed File URL Expiration. Null when no snapshot was captured.",
            "example": "https://storage.example.com/page_snapshots/workspace/workflow/node/session.html?token=...",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "screenshots": {
            "description": "Screenshots taken at this node. Empty when none were taken.",
            "items": {
              "$ref": "#/components/schemas/RunScreenshotUrlDto"
            },
            "type": "array"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "node_id",
          "page_snapshot_url",
          "screenshots"
        ],
        "type": "object"
      },
      "DecisionOperatingHoursDto": {
        "properties": {
          "timezone": {
            "description": "IANA time zone the windows are evaluated in",
            "example": "America/Chicago",
            "maxLength": 64,
            "type": "string"
          },
          "windows": {
            "description": "Time windows in which decision requests were accepted",
            "items": {
              "$ref": "#/components/schemas/DecisionOperatingWindowDto"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "timezone",
          "windows"
        ],
        "type": "object"
      },
      "DecisionOperatingWindowDto": {
        "properties": {
          "days": {
            "description": "Days of the week the window covers, as numbers 0 to 6",
            "items": {
              "maximum": 6,
              "minimum": 0,
              "type": "number"
            },
            "minItems": 1,
            "type": "array"
          },
          "end": {
            "description": "End time of the window, as `HH:MM`",
            "example": "17:00",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "type": "string"
          },
          "start": {
            "description": "Start time of the window, as `HH:MM`",
            "example": "09:00",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "type": "string"
          }
        },
        "required": [
          "days",
          "start",
          "end"
        ],
        "type": "object"
      },
      "DeleteEntriesDto": {
        "properties": {
          "nodeIds": {
            "description": "Identifiers of the workflow nodes whose cached elements to delete. At most 1000.",
            "example": [
              "0b1c2d3e-4f50-4617-8899-aabbccddeeff"
            ],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "nodeIds"
        ],
        "type": "object"
      },
      "DeleteWorkflowFolderDto": {
        "properties": {
          "delete_workflows": {
            "default": false,
            "description": "When true, permanently deletes every workflow in the folder and its subfolders. When false, those workflows move up to the parent folder.",
            "type": "boolean"
          },
          "folder_path": {
            "description": "Path of the folder to delete",
            "example": "billing/claims",
            "type": "string"
          }
        },
        "required": [
          "folder_path"
        ],
        "type": "object"
      },
      "DeleteWorkspaceResultDto": {
        "properties": {
          "deletedWorkspace": {
            "description": "The deleted workspace, as a one-item list.",
            "items": {
              "$ref": "#/components/schemas/WorkspaceDto"
            },
            "type": "array"
          },
          "success": {
            "description": "Always true; a failed delete returns an error.",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "deletedWorkspace"
        ],
        "type": "object"
      },
      "DestinationDto": {
        "properties": {
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SlackDestinationConfigDto"
              }
            ],
            "description": "Slack-specific settings for this channel."
          },
          "id": {
            "description": "Slack channel ID, from the Slack channel listing. Give it or `name`.",
            "example": "C01ABCDEF",
            "type": "string"
          },
          "name": {
            "description": "Channel name without the #. Without `id`, the server looks it up in the connected Slack workspace.",
            "example": "alerts",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
          },
          "type": {
            "default": "slack",
            "description": "Where the notification goes. Only Slack is supported.",
            "enum": [
              "slack"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "DirtyComponentInstanceDto": {
        "properties": {
          "currentEdges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "The whole workflow's edge map, keyed by source node ID, not only the instance's edges.",
            "type": "object"
          },
          "currentNodes": {
            "description": "The instance's nodes as they are in the workflow now.",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "instanceId": {
            "description": "The instance's `source_component_instance_id`. Pass it in `skipInstanceIds` to keep its local edits.",
            "format": "uuid",
            "type": "string"
          },
          "workflowId": {
            "description": "ID of the workflow that holds the instance.",
            "format": "uuid",
            "type": "string"
          },
          "workflowName": {
            "description": "Display name of that workflow.",
            "type": "string"
          }
        },
        "required": [
          "workflowId",
          "workflowName",
          "instanceId",
          "currentNodes",
          "currentEdges"
        ],
        "type": "object"
      },
      "DryRun": {
        "properties": {
          "add_to_output": {
            "additionalProperties": true,
            "description": "Additional data to add to the output of the workflow. Use it to mock the output of steps the dry run skipped.",
            "type": "object"
          },
          "enabled": {
            "default": false,
            "description": "When true, executes the workflow in test mode without making permanent changes.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EdgeDto": {
        "properties": {
          "false": {
            "description": "ID of the node to run when the condition is false (BOOL_CONDITION nodes)",
            "nullable": true,
            "type": "string"
          },
          "loop_done": {
            "description": "ID of the node to run when the loop has finished (LOOP nodes)",
            "nullable": true,
            "type": "string"
          },
          "loop_not_done": {
            "description": "ID of the node to run for the next loop iteration (LOOP nodes)",
            "nullable": true,
            "type": "string"
          },
          "to": {
            "description": "ID of the next node, for nodes that do not branch",
            "nullable": true,
            "type": "string"
          },
          "true": {
            "description": "ID of the node to run when the condition is true (BOOL_CONDITION nodes)",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "EffectiveBranchProtectionDto": {
        "properties": {
          "bypassRoles": {
            "description": "Workspace roles that may skip the protection: edit the branch directly, or merge into it with `force` without approvals",
            "items": {
              "enum": [
                "owner",
                "member"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "matchedRulesetIds": {
            "description": "IDs of the enabled branch rulesets that apply to the branch. Protection combines them: a setting is on if any ruleset turns it on, `minApprovals` is the highest among rulesets that require review, and `bypassRoles` is the union",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "minApprovals": {
            "description": "Approvals a pull request into the branch needs before it can merge; 0 when `requireReview` is false",
            "minimum": 0,
            "type": "number"
          },
          "protected": {
            "description": "Whether direct edits to the branch are blocked, so changes must arrive through a merged pull request",
            "type": "boolean"
          },
          "requireReview": {
            "description": "Whether merging a pull request into the branch needs approvals",
            "type": "boolean"
          }
        },
        "required": [
          "protected",
          "requireReview",
          "minApprovals",
          "bypassRoles",
          "matchedRulesetIds"
        ],
        "type": "object"
      },
      "ErrorCodeDto": {
        "properties": {
          "description": {
            "description": "Short description of the error",
            "nullable": true,
            "type": "string"
          },
          "enriched_description": {
            "description": "Longer description used to classify a run's error against this code",
            "nullable": true,
            "type": "string"
          },
          "error_action": {
            "description": "What CloudCruise does when a run fails with this code: `alert` fails the run and notifies (also used when empty), `retry` retries it, `pause_workflow` stops it and pauses the workflow, and `pause_credential` stops it and pauses its vault credential. On import, the retired `cancel` and `input_required` become `alert`, and `pause` becomes `pause_workflow`.",
            "nullable": true,
            "type": "string"
          },
          "error_code": {
            "description": "Name of the error code",
            "example": "CLAIM_NOT_FOUND",
            "type": "string"
          },
          "id": {
            "description": "ID of the error code. Nodes reference error codes by this value.",
            "type": "string"
          },
          "retries": {
            "description": "Number of retries when `error_action` is `retry`",
            "nullable": true,
            "type": "number"
          },
          "retry_after": {
            "description": "Seconds to wait between retries when `error_action` is `retry`",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "id",
          "error_code"
        ],
        "type": "object"
      },
      "ErrorCodeResponseDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the error code was created.",
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "description": "Short description of the error, shown on failed runs.",
            "nullable": true,
            "type": "string"
          },
          "enriched_description": {
            "description": "Longer description used to classify errors against this code.",
            "nullable": true,
            "type": "string"
          },
          "error_action": {
            "description": "What CloudCruise does when a run fails with this code. `alert` fails the run and notifies. `retry` requeues the run up to `retries` times (once when `retries` is unset), waiting `retry_after` seconds (at least 10), within the workflow's requeue limits (`allow_requeue`, `max_retries`). `pause_workflow` ends the run as `execution.stopped` and pauses its workflow, so its queued runs stay held (`execution.paused`) until you unpause runs with `pause_resource` set to `workflow`. `pause_credential` ends the run as `execution.stopped` and pauses the vault credential the run used, so only queued runs that use it stay held, until you unpause runs with `pause_resource` set to `credential`. Runs that fail with a code that has no action are handled as `alert`.",
            "enum": [
              "alert",
              "pause_workflow",
              "pause_credential",
              "retry"
            ],
            "nullable": true,
            "type": "string"
          },
          "error_code": {
            "description": "Name of the error code, e.g. `CLAIM_NOT_FOUND`.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier. Use this value in a node's error-code parameter.",
            "format": "uuid",
            "type": "string"
          },
          "pending_approval": {
            "description": "True while the code awaits approval: the maintenance agent suggested it after a failed run. The recovery agent's decision requests and the builder agent skip pending codes.",
            "type": "boolean"
          },
          "referenced_session_id": {
            "description": "Run session the maintenance agent suggested this code from.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "retries": {
            "description": "Number of retries when `error_action` is `retry`.",
            "nullable": true,
            "type": "integer"
          },
          "retry_after": {
            "description": "Seconds to wait between retries when `error_action` is `retry`.",
            "nullable": true,
            "type": "integer"
          },
          "user_id": {
            "description": "Legacy column. The database fills it with a random UUID when no user is given, so it does not identify who created the code.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this error code belongs to.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "error_code",
          "description",
          "enriched_description",
          "error_action",
          "retries",
          "retry_after",
          "pending_approval",
          "referenced_session_id",
          "user_id",
          "workspace_id",
          "created_at"
        ],
        "type": "object"
      },
      "ErrorHandlingSettingsDto": {
        "properties": {
          "enable_action_timing_recovery": {
            "description": "Retry actions that ran before the page finished loading, with a delay.",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "When the recovery agent reaches a choice it shouldn't make alone, ask a person instead of guessing or failing the run, then carry on from their answer. Defaults to false. False turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Generate and assign error codes to errors that runs hit.",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Generate node descriptions from screenshots of successful runs, which improves error classification.",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "When a site forces a password change mid-run, generate a new password, update the vault credential, log in again and resume. Cannot be on while pausing credentials on a required password update is on.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Detect unexpected popups during runs and close them with AI, adding their close buttons to the workflow's popup list.",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Retry runs with exponential backoff when an external service is unavailable.",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect.",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Repair broken XPath selectors with AI when an element can't be found.",
            "type": "boolean"
          }
        },
        "required": [
          "enable_popup_handling",
          "enable_xpath_recovery",
          "enable_node_description_enrichment",
          "enable_error_code_generation",
          "enable_service_unavailable_recovery",
          "enable_action_timing_recovery",
          "enable_incorrect_form_input_recovery",
          "enable_password_update_recovery",
          "enable_tfa_setup_recovery",
          "enable_decision_required_recovery"
        ],
        "type": "object"
      },
      "ExpiredRunDto": {
        "properties": {
          "created_at": {
            "description": "When the run was created. Pass the last row's value as `cursor` to fetch the next page.",
            "example": "2026-02-15T10:00:00Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "credential_domains": {
            "description": "Vault credentials the run used, each with the domain it was used on. Null until the run starts, and absent on expired runs, which did not keep the domain.",
            "items": {
              "$ref": "#/components/schemas/RunCredentialDomainDto"
            },
            "nullable": true,
            "type": "array"
          },
          "credential_ids": {
            "description": "Vault credential IDs (permissioned_user_id) the run used.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "details_expired": {
            "description": "Always true: the workspace's retention policy deleted the run's details, so only these summary fields remain.",
            "example": true,
            "type": "boolean"
          },
          "dry_run": {
            "description": "Whether the run was a dry run.",
            "example": false,
            "nullable": true,
            "type": "boolean"
          },
          "execution_end": {
            "description": "When execution ended.",
            "example": "2026-02-15T10:00:30Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "execution_start": {
            "description": "When execution began.",
            "example": "2026-02-15T10:00:01Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "type": "string"
          },
          "status": {
            "description": "Execution status of the run: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped. Only execution.success, execution.failed and execution.stopped are final; a run that will be retried reports execution.requeued, never execution.failed.",
            "example": "execution.success",
            "type": "string"
          },
          "workflow_id": {
            "description": "Identifier of the workflow that ran.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "Identifier of the workspace the run belongs to.",
            "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "created_at",
          "workflow_id",
          "workspace_id",
          "status",
          "execution_start",
          "execution_end",
          "dry_run",
          "credential_ids",
          "details_expired"
        ],
        "type": "object"
      },
      "ExtractNodeDto": {
        "properties": {
          "description": {
            "description": "What the node extracts; helps the model find the data",
            "type": "string"
          },
          "id": {
            "description": "ID of the extract node",
            "type": "string"
          },
          "parameters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExtractNodeParametersDto"
              }
            ],
            "description": "The node's parameters; only `extract_data_model` is read"
          }
        },
        "required": [
          "parameters"
        ],
        "type": "object"
      },
      "ExtractNodeParametersDto": {
        "properties": {
          "extract_data_model": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataModelSchemaDto"
              }
            ],
            "description": "JSON schema of the data to extract. Each property gets a `path` XPath."
          }
        },
        "required": [
          "extract_data_model"
        ],
        "type": "object"
      },
      "FilteredRunDto": {
        "properties": {
          "created_at": {
            "description": "When the run was created. Pass the last row's value as `cursor` to fetch the next page.",
            "example": "2026-02-15T10:00:00Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "credential_domains": {
            "description": "Vault credentials the run used, each with the domain it was used on. Null until the run starts, and absent on expired runs, which did not keep the domain.",
            "items": {
              "$ref": "#/components/schemas/RunCredentialDomainDto"
            },
            "nullable": true,
            "type": "array"
          },
          "credential_ids": {
            "description": "Vault credential IDs (permissioned_user_id) the run used.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "dry_run": {
            "description": "Whether the run was a dry run.",
            "example": false,
            "nullable": true,
            "type": "boolean"
          },
          "execution_end": {
            "description": "When execution ended.",
            "example": "2026-02-15T10:00:30Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "execution_start": {
            "description": "When execution began.",
            "example": "2026-02-15T10:00:01Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "type": "string"
          },
          "status": {
            "description": "Execution status of the run: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped. Only execution.success, execution.failed and execution.stopped are final; a run that will be retried reports execution.requeued, never execution.failed.",
            "example": "execution.success",
            "type": "string"
          },
          "workflow_id": {
            "description": "Identifier of the workflow that ran.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "Identifier of the workspace the run belongs to.",
            "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "created_at",
          "workflow_id",
          "workspace_id",
          "status",
          "execution_start",
          "execution_end",
          "dry_run",
          "credential_ids"
        ],
        "type": "object"
      },
      "ForkWorkflowDto": {
        "properties": {
          "bypassProtection": {
            "description": "When overwriting, save to a branch protected by a workspace rule. Only allowed for roles the rule lets bypass it.",
            "type": "boolean"
          },
          "overwriteExistingWorkflows": {
            "description": "When true, overwrite the workflow named in `selectedExistingWorkflowId` with a new version instead of creating a workflow",
            "type": "boolean"
          },
          "selectedExistingWorkflowId": {
            "description": "Workflow in the target workspace to overwrite when `overwriteExistingWorkflows` is true; null otherwise",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "targetBranchId": {
            "description": "When overwriting, the branch of the target workflow to save to. Left out, the save goes to its default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspaceIdToForkTo": {
            "description": "Workspace to copy the workflow into. The caller must be a member of it.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "workspaceIdToForkTo",
          "overwriteExistingWorkflows",
          "selectedExistingWorkflowId"
        ],
        "type": "object"
      },
      "GenerateXpathsRequestDto": {
        "properties": {
          "availableVariables": {
            "deprecated": true,
            "description": "Ignored",
            "items": {
              "$ref": "#/components/schemas/AvailableVariableDto"
            },
            "type": "array"
          },
          "document": {
            "description": "HTML of the page to extract from",
            "type": "string"
          },
          "node": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExtractNodeDto"
              }
            ],
            "description": "The extract-data-model node to fill in"
          }
        },
        "required": [
          "node",
          "document"
        ],
        "type": "object"
      },
      "GlobalSearchResponseDto": {
        "properties": {
          "conversations": {
            "description": "Matching workflow builder conversations, by workflow name or conversation ID.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          },
          "members": {
            "description": "Matching workspace members, by name or email.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          },
          "organizations": {
            "description": "Matching organizations the caller belongs to, by name.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          },
          "sessions": {
            "description": "Matching runs, by session ID or by text in their input, result or error.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          },
          "vault": {
            "description": "Matching vault entries, by alias, domain or user. Credentials are never returned.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          },
          "webhooks": {
            "description": "Matching webhooks, by URL.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          },
          "workflows": {
            "description": "Matching workflows, by name or ID.",
            "items": {
              "$ref": "#/components/schemas/SearchResultDto"
            },
            "type": "array"
          }
        },
        "required": [
          "workflows",
          "sessions",
          "vault",
          "webhooks",
          "members",
          "organizations",
          "conversations"
        ],
        "type": "object"
      },
      "HeldRunsDto": {
        "properties": {
          "credentials": {
            "additionalProperties": {
              "$ref": "#/components/schemas/HeldRunsEntryDto"
            },
            "description": "Held runs per paused credential, keyed like `pausedCredentials`. A run is held by a credential only when every credential it could use for that site is paused, and is then listed under each of them.",
            "type": "object"
          },
          "total": {
            "description": "Number of distinct runs waiting in `execution.paused`. A run held by both its workflow and a credential counts once.",
            "example": 14,
            "type": "number"
          },
          "unattributed": {
            "description": "Held runs that no listed pause holds any more. They are released on the dispatcher's next pass.",
            "example": 0,
            "type": "number"
          },
          "workflows": {
            "additionalProperties": {
              "$ref": "#/components/schemas/HeldRunsEntryDto"
            },
            "description": "Held runs per paused workflow, keyed like `pausedWorkflows`. Workflows that hold no runs are left out.",
            "type": "object"
          }
        },
        "required": [
          "total",
          "unattributed",
          "workflows",
          "credentials"
        ],
        "type": "object"
      },
      "HeldRunsEntryDto": {
        "properties": {
          "count": {
            "description": "Number of runs this pause holds in `execution.paused`.",
            "example": 12,
            "type": "number"
          },
          "session_ids": {
            "description": "Session IDs of the held runs, most recently paused first, at most 50.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "count",
          "session_ids"
        ],
        "type": "object"
      },
      "HumanInputFieldDto": {
        "properties": {
          "columns": {
            "description": "Column names of an `array` field with object items",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "currentErrorCodeId": {
            "description": "For a `remove` error field: the error code to remove",
            "type": "string"
          },
          "default": {
            "description": "Suggested answer",
            "type": "string"
          },
          "description": {
            "description": "What the builder asks for",
            "type": "string"
          },
          "itemsType": {
            "description": "Item type of an `array` field",
            "enum": [
              "string",
              "object"
            ],
            "type": "string"
          },
          "json_schema": {
            "description": "Schema the answer must match, for a `json_schema` field",
            "type": "object"
          },
          "name": {
            "description": "Field name. It is the key in `responses`, except for `error` fields, whose key also carries `targetNodeId`, `targetParam` and `rowType`.",
            "type": "string"
          },
          "options": {
            "description": "Choices for a `select` field",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rowType": {
            "description": "For an `error` field: `set` asks for an error code, `remove` asks to confirm removing one",
            "enum": [
              "set",
              "remove"
            ],
            "type": "string"
          },
          "suggestedCode": {
            "description": "For a `set` error field: the suggested error code",
            "type": "string"
          },
          "suggestedDescription": {
            "description": "For a `set` error field: the suggested code's description",
            "type": "string"
          },
          "suggestedEnrichedDescription": {
            "description": "For a `set` error field: a longer description of the suggested code",
            "type": "string"
          },
          "suggestedErrorCodeId": {
            "description": "For a `set` error field: the suggested existing error code's ID",
            "type": "string"
          },
          "targetNodeId": {
            "description": "For an `error` field: the node the error code belongs to",
            "type": "string"
          },
          "targetParam": {
            "description": "For an `error` field: the node parameter the code sets",
            "enum": [
              "error_on_false_message",
              "selector_error_message",
              "error_message"
            ],
            "type": "string"
          },
          "type": {
            "description": "Kind of answer the field takes. Never send `secret` values through the API; ask the user to enter them in the dashboard.",
            "enum": [
              "text",
              "secret",
              "number",
              "boolean",
              "select",
              "json_schema",
              "file",
              "auth",
              "array",
              "error"
            ],
            "type": "string"
          },
          "variableName": {
            "description": "Workflow variable the answer is stored in",
            "type": "string"
          },
          "warning": {
            "description": "Warning to show with the question",
            "type": "string"
          }
        },
        "required": [
          "type",
          "name",
          "description"
        ],
        "type": "object"
      },
      "HumanInputRequestDto": {
        "properties": {
          "fields": {
            "description": "Fields the builder needs answered",
            "items": {
              "$ref": "#/components/schemas/HumanInputFieldDto"
            },
            "type": "array"
          },
          "messageId": {
            "description": "ID of the request. Send it as `messageId` when you respond.",
            "type": "string"
          },
          "prompt": {
            "description": "The builder's question",
            "type": "string"
          }
        },
        "required": [
          "messageId",
          "fields"
        ],
        "type": "object"
      },
      "ImportWorkflowDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "Branch this version was saved to. On update, the branch to save to; left out, the save goes to the workflow's default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "bump_type": {
            "description": "How `version` was derived from its parent, or null when it was chosen explicitly or has no parent",
            "enum": [
              "major",
              "minor",
              "patch"
            ],
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "component_imports": {
            "description": "Workspace components this workflow calls, as `{ id, version }`. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "conversation_id": {
            "description": "Builder conversation that produced this version, if any",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_via": {
            "description": "Which CloudCruise client saved this version. Set by CloudCruise's own clients; leave it out.",
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_error_handling": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_extract_datamodel_recovery": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "error_codes": {
            "description": "Error codes the workflow's nodes reference. On create and import, each is matched to a workspace error code by name and description, and created when none matches. On update, send the saved codes unchanged or leave the field out; a difference is rejected with `409 READ_ONLY_FIELD_CONFLICT`.",
            "items": {
              "$ref": "#/components/schemas/ErrorCodeDto"
            },
            "type": "array"
          },
          "extract_network_urls": {
            "description": "URL patterns to capture from network traffic during a run",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder to file the workflow under, as a `/`-separated path of up to 5 segments, or null for the top level",
            "example": "billing/claims",
            "nullable": true,
            "type": "string"
          },
          "generation": {
            "description": "Depth of this version in the workflow's version history",
            "readOnly": true,
            "type": "number"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow. On create, the new workflow gets this id, or a generated one when it is left out; an id another workspace holds is rejected with `409 WORKFLOW_ID_TAKEN`. On update, send the saved id or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "local_components": {
            "description": "Components defined inside this workflow, available to its Component Call nodes. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "major": {
            "description": "Major part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "type": "number"
          },
          "merge_parent_version_id": {
            "description": "For a merge, the head of the branch that was merged in",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor": {
            "description": "Minor part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "type": "object"
          },
          "parent_version_id": {
            "description": "The version this one was saved on top of",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "patch": {
            "description": "Patch part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that are dismissed automatically",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration: `country`, `static`, `custom`, `random` or `off`. Changing it clears `proxy_value` unless a new one is sent.",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "release_version": {
            "description": "Tag the new version with this exact `major.minor.patch` instead of the computed one. Must be higher than the version the save is based on and not already used by this workflow.",
            "example": "2.0.0",
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "skip_udp_proxying": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "use_native_actions": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Vault credentials the workflow needs, keyed by alias. Each value is `{ \"type\": \"credential\", \"domain\": <site>, \"example\"?: <credential id> }`. A run passes a credential id for each alias in its input.",
            "type": "object"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version",
            "example": "2.1.0",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this workflow version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version",
            "type": "string"
          },
          "version_number": {
            "deprecated": true,
            "description": "Legacy version counter, ignored",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "video_record_session": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "workflow_id": {
            "description": "Same as `id`, accepted so a read can be sent back unchanged. Must equal `id` when both are sent.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to. On a write, send the caller's workspace or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "output_schema",
          "max_retries"
        ],
        "type": "object"
      },
      "IntegrationActionResultDto": {
        "properties": {
          "status": {
            "description": "Outcome of the change. Always `success`; failures return an error status instead.",
            "example": "success",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "IntegrationStatusDto": {
        "properties": {
          "sentry_connected": {
            "description": "Whether the workspace has a Sentry project connected.",
            "type": "boolean"
          },
          "sentry_event_filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SentryEventFiltersDto"
              }
            ],
            "description": "Which run outcomes are forwarded to Sentry. Present only when Sentry is connected."
          },
          "slack_connected": {
            "description": "Whether the workspace has a Slack workspace connected.",
            "type": "boolean"
          },
          "slack_missing_scopes": {
            "description": "Slack scopes needed to answer decisions from Slack that the connected install has not granted. Empty when none are missing or Slack is not connected; reconnect Slack to grant them.",
            "example": [
              "users:read.email"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "slack_team_id": {
            "description": "Identifier of the connected Slack workspace (team), or null when Slack is not connected.",
            "example": "T01ABCDEF",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "slack_connected",
          "slack_team_id",
          "sentry_connected"
        ],
        "type": "object"
      },
      "InterruptResultDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "interrupted": {
            "description": "True when a running turn was stopped; false when no turn was running",
            "type": "boolean"
          }
        },
        "required": [
          "conversationId",
          "interrupted"
        ],
        "type": "object"
      },
      "InterruptRunResponseDto": {
        "properties": {
          "message": {
            "description": "What happened. For a browser run: a running run was told to stop, or a queued run was removed from the queue. For an api run: a run that had not started was stopped, or a running run is being stopped by its compute host.",
            "enum": [
              "Run interrupt triggered",
              "Queued run successfully cleared",
              "Run stopped before it started",
              "Run is stopping; it ends once its host has stopped it"
            ],
            "example": "Run interrupt triggered",
            "type": "string"
          },
          "status": {
            "description": "`stopped`: the run had not started and is already `execution.stopped`. `stopping`: the run is running and was told to stop; it reaches `execution.stopped` once it has.",
            "enum": [
              "stopped",
              "stopping"
            ],
            "example": "stopping",
            "type": "string"
          },
          "success": {
            "description": "Always true; a run that cannot be stopped returns an error.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "status",
          "message"
        ],
        "type": "object"
      },
      "InviteDto": {
        "properties": {
          "email": {
            "description": "Email address the invite was sent to, in lowercase.",
            "format": "email",
            "type": "string"
          },
          "expires_at": {
            "description": "When the invite expires.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the invite.",
            "format": "uuid",
            "type": "string"
          },
          "invited_by": {
            "description": "User who sent the invite.",
            "format": "uuid",
            "type": "string"
          },
          "organization_id": {
            "description": "Organization the invite joins.",
            "format": "uuid",
            "type": "string"
          },
          "token": {
            "description": "Token in the emailed invite link. Only a verified account with the invited email can redeem it.",
            "format": "uuid",
            "type": "string"
          },
          "used_at": {
            "description": "When the invite was accepted. Null while it is pending.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "email",
          "organization_id",
          "invited_by",
          "expires_at",
          "token",
          "used_at"
        ],
        "type": "object"
      },
      "InviteOutcomeDto": {
        "properties": {
          "organization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InvitedOrganizationDto"
              }
            ],
            "description": "The organization the invite joins. Present only when status is accepted or valid."
          },
          "status": {
            "description": "What happened to the invite. accepted: the caller joined the organization. already_joined: the invite was used before. expired: past its expiry. email_mismatch: the caller's email is not the invited one. seat_limit: the organization's plan has no free seat. not_found: no pending invite or account matches. invalid: the token is unknown or joining failed. valid: the invite is usable but was not redeemed because the caller is not signed in.",
            "enum": [
              "valid",
              "accepted",
              "already_joined",
              "expired",
              "email_mismatch",
              "seat_limit",
              "not_found",
              "invalid"
            ],
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "InviteOutcomeResponseDto": {
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InviteOutcomeDto"
              }
            ],
            "description": "The outcome, nested one level: read `status.status` for the outcome itself."
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "InvitedOrganizationDto": {
        "properties": {
          "archived_at": {
            "description": "When the organization was archived. Null if it is active.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "browser_hours_usage_cap": {
            "description": "Monthly cap on browser hours. Null when the organization has no cap.",
            "nullable": true,
            "type": "number"
          },
          "created_at": {
            "description": "When the organization was created.",
            "format": "date-time",
            "type": "string"
          },
          "creator_user_id": {
            "description": "User who created the organization.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the organization.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Identifier of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "image_url": {
            "description": "URL of the organization's logo.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the organization.",
            "type": "string"
          },
          "require_mfa": {
            "description": "Whether members must set up MFA to use the organization.",
            "type": "boolean"
          },
          "sso_domains": {
            "description": "Email domains that sign in to the organization through SSO.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sso_enabled": {
            "description": "Whether SSO sign-in is enabled for the organization.",
            "type": "boolean"
          },
          "stripe_customer_id": {
            "description": "Stripe customer id of the organization. Null before its first billing setup.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "When the organization was last updated.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "image_url",
          "created_at",
          "updated_at",
          "creator_user_id",
          "archived_at",
          "browser_hours_usage_cap",
          "require_mfa",
          "sso_domains",
          "sso_enabled",
          "stripe_customer_id"
        ],
        "type": "object"
      },
      "InvoiceUrlsDto": {
        "properties": {
          "hosted_invoice_url": {
            "description": "Stripe-hosted page for the invoice.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "invoice_pdf": {
            "description": "Link to the invoice PDF.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "hosted_invoice_url",
          "invoice_pdf"
        ],
        "type": "object"
      },
      "LiveViewConnectionDto": {
        "properties": {
          "authToken": {
            "description": "Single-use DCV viewer token for the session. Anyone holding it can watch the run's browser until it is used.",
            "example": "eyJhbGciOiJSUzI1NiJ9",
            "type": "string"
          },
          "sessionId": {
            "description": "Identifier of the DCV session that streams the run's browser.",
            "example": "console-3f9a",
            "type": "string"
          },
          "url": {
            "description": "Browser link that opens the run's live view. It embeds `authToken`, so it works once; call again for a fresh link.",
            "example": "https://dcv-gateway.example.com/?authToken=eyJhbGciOiJSUzI1NiJ9#console-3f9a",
            "type": "string"
          }
        },
        "required": [
          "url",
          "sessionId",
          "authToken"
        ],
        "type": "object"
      },
      "MergeBaseDto": {
        "properties": {
          "id": {
            "description": "ID of the workflow version",
            "format": "uuid",
            "type": "string"
          },
          "version": {
            "description": "Release version of that workflow version, if it has one",
            "example": "1.2.0",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "version"
        ],
        "type": "object"
      },
      "MergeConflictDto": {
        "properties": {
          "base": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "additionalProperties": true,
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "description": "Value in the common ancestor of the two branches; absent when the entry did not exist there. Any JSON value: an object for a node, edge or component, a string, number, boolean or null for a single-value field"
          },
          "dependsOn": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MergeConflictRefDto"
              }
            ],
            "description": "Only for `referential` conflicts: the conflict this one depends on. If it is not resolved explicitly, the merge resolves it the same way as that conflict"
          },
          "field": {
            "description": "Workflow field the conflict is in",
            "enum": [
              "nodes",
              "edges",
              "local_components",
              "input_schema",
              "output_schema",
              "vault_schema",
              "proxy_setting",
              "proxy_value",
              "max_retries",
              "use_native_actions",
              "video_record_session",
              "component_imports",
              "enable_network_listener",
              "skip_udp_proxying",
              "manual_captcha_solve",
              "allow_requeue",
              "deny_requeue_past_dry_run_marker",
              "enable_action_timing_recovery",
              "enable_xpath_recovery",
              "enable_service_unavailable_recovery",
              "enable_incorrect_form_input_recovery",
              "enable_decision_required_recovery"
            ],
            "type": "string"
          },
          "key": {
            "description": "Key of the conflicting entry within the field: a node or edge ID for `nodes` and `edges`, a component ID for `local_components` and `component_imports`, a property name for `input_schema` and `output_schema` (or `$schema-root` for their other keywords), a credential key for `vault_schema`, and `$value` for single-value fields such as `max_retries`. Use `<field>:<key>` as the key in the merge's `resolutions`, for example `max_retries:$value`",
            "example": "node-123",
            "type": "string"
          },
          "reason": {
            "description": "`modify-modify`: both branches changed it differently. `modify-delete` / `delete-modify`: one branch changed it and the other deleted it. `action-mismatch`: both changed a node to different actions. `validation-failed`: the combined value is invalid. `referential`: neither branch's change conflicts, but it references an entry that is in conflict (see `dependsOn`)",
            "enum": [
              "modify-modify",
              "modify-delete",
              "delete-modify",
              "action-mismatch",
              "validation-failed",
              "referential"
            ],
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "additionalProperties": true,
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "description": "Value on the source branch; absent when the source deleted the entry. Any JSON value: an object for a node, edge or component, a string, number, boolean or null for a single-value field"
          },
          "target": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "additionalProperties": true,
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "description": "Value on the target branch; absent when the target deleted the entry. Any JSON value: an object for a node, edge or component, a string, number, boolean or null for a single-value field"
          }
        },
        "required": [
          "field",
          "key",
          "reason"
        ],
        "type": "object"
      },
      "MergeConflictRefDto": {
        "properties": {
          "field": {
            "description": "Field of the conflict this one depends on",
            "enum": [
              "nodes",
              "edges",
              "local_components",
              "input_schema",
              "output_schema",
              "vault_schema",
              "proxy_setting",
              "proxy_value",
              "max_retries",
              "use_native_actions",
              "video_record_session",
              "component_imports",
              "enable_network_listener",
              "skip_udp_proxying",
              "manual_captcha_solve",
              "allow_requeue",
              "deny_requeue_past_dry_run_marker",
              "enable_action_timing_recovery",
              "enable_xpath_recovery",
              "enable_service_unavailable_recovery",
              "enable_incorrect_form_input_recovery",
              "enable_decision_required_recovery"
            ],
            "type": "string"
          },
          "key": {
            "description": "Key of the conflict this one depends on",
            "type": "string"
          }
        },
        "required": [
          "field",
          "key"
        ],
        "type": "object"
      },
      "MergeGraphValidationIssueDto": {
        "properties": {
          "message": {
            "description": "What is wrong",
            "type": "string"
          },
          "path": {
            "description": "Where in the merged workflow the problem is",
            "type": "string"
          },
          "severity": {
            "description": "`error` blocks the merge; `warning` does not",
            "enum": [
              "error",
              "warning"
            ],
            "type": "string"
          }
        },
        "required": [
          "severity",
          "path",
          "message"
        ],
        "type": "object"
      },
      "MergePullRequestDto": {
        "properties": {
          "force": {
            "default": false,
            "description": "Merge without the approvals the target branch's rulesets require. Allowed only when the caller's workspace role is in the target branch's `bypassRoles`; anyone else gets 403. Never skips unresolved conflicts. Set it only when the user asks to bypass review",
            "type": "boolean"
          },
          "previewSourceHeadVersionId": {
            "description": "`sourceHeadVersionId` of the merge preview the resolutions were made against. Required when `resolutions` is not empty; the merge is rejected with 409 if the source branch has moved since",
            "format": "uuid",
            "type": "string"
          },
          "previewTargetHeadVersionId": {
            "description": "`targetHeadVersionId` of the merge preview the resolutions were made against. Required when `resolutions` is not empty; the merge is rejected with 409 if the target branch has moved since",
            "format": "uuid",
            "type": "string"
          },
          "resolutions": {
            "additionalProperties": true,
            "description": "Resolutions for the conflicts a merge preview reported, keyed `<field>:<key>` from the conflict's `field` and `key` (for example `nodes:node-123`). Each value is the JSON to write for that key. Requires `previewSourceHeadVersionId` and `previewTargetHeadVersionId`",
            "example": {
              "nodes:node-123": {
                "action": "CLICK",
                "id": "node-123"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "MergedWorkflowFieldsDto": {
        "properties": {
          "component_imports": {
            "description": "Merged components the workflow imports; null when neither branch has any",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "edges": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "description": "Merged edges keyed by edge ID, in the workflow definition's edge format. An edge in conflict is left out",
            "type": "object"
          },
          "enable_network_listener": {
            "description": "Merged setting for whether network listener capture is enabled",
            "nullable": true,
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Merged input variable keys whose values are encrypted with the workspace AES key. The keys are names, not values",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "extract_network_urls": {
            "description": "Merged URL patterns to extract from network traffic during execution",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "input_schema": {
            "additionalProperties": true,
            "description": "Merged input schema (JSON Schema)",
            "nullable": true,
            "type": "object"
          },
          "local_components": {
            "description": "Merged components defined inside the workflow; null when neither branch has any",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "manual_captcha_solve": {
            "description": "Merged setting for solving captchas only at CAPTCHA nodes",
            "nullable": true,
            "type": "boolean"
          },
          "max_retries": {
            "description": "Merged maximum number of retry attempts for failed workflow steps",
            "nullable": true,
            "type": "integer"
          },
          "nodes": {
            "description": "Merged nodes, in the workflow definition's node format. A node in conflict is left out",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "output_schema": {
            "additionalProperties": true,
            "description": "Merged output schema (JSON Schema)",
            "nullable": true,
            "type": "object"
          },
          "popup_xpaths": {
            "description": "Merged XPath selectors for popups that are dismissed automatically",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "proxy_setting": {
            "description": "Merged proxy setting: `country`, `static`, `custom`, `random` or `off`; null for no override",
            "nullable": true,
            "type": "string"
          },
          "proxy_value": {
            "description": "Merged proxy value for `proxy_setting`: a country code, an IP address, or for `custom` a proxy URL stored as AES ciphertext under the workspace key",
            "nullable": true,
            "type": "string"
          },
          "skip_udp_proxying": {
            "description": "Deprecated and ignored; merged as stored",
            "nullable": true,
            "type": "boolean"
          },
          "use_native_actions": {
            "description": "Deprecated and ignored; merged as stored",
            "nullable": true,
            "type": "boolean"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Merged schema defining the vault credentials the workflow uses",
            "nullable": true,
            "type": "object"
          },
          "video_record_session": {
            "description": "Deprecated and ignored; merged as stored",
            "nullable": true,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "MfaRequirementDto": {
        "properties": {
          "require_mfa": {
            "description": "Whether every member must sign in with multi-factor authentication.",
            "type": "boolean"
          }
        },
        "required": [
          "require_mfa"
        ],
        "type": "object"
      },
      "MfaRequirementResultDto": {
        "properties": {
          "require_mfa": {
            "description": "The MFA requirement now in effect.",
            "type": "boolean"
          },
          "success": {
            "description": "True when the setting was saved.",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "require_mfa"
        ],
        "type": "object"
      },
      "MoveWorkflowFolderDto": {
        "properties": {
          "new_path": {
            "description": "New path for the folder. Its workflows and subfolders move with it.",
            "example": "archive/claims",
            "type": "string"
          },
          "old_path": {
            "description": "Current path of the folder",
            "example": "billing/claims",
            "type": "string"
          }
        },
        "required": [
          "old_path",
          "new_path"
        ],
        "type": "object"
      },
      "MoveWorkflowToFolderDto": {
        "properties": {
          "folder_path": {
            "description": "Folder to move the workflow to. Null, empty or left out moves it to the top level.",
            "example": "billing/claims",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "MyWorkspaceDto": {
        "properties": {
          "id": {
            "description": "Identifier of the workspace.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Name of the workspace.",
            "type": "string"
          },
          "organization_id": {
            "description": "Identifier of the organization the workspace belongs to.",
            "format": "uuid",
            "type": "string"
          },
          "organization_name": {
            "description": "Name of the organization the workspace belongs to.",
            "nullable": true,
            "type": "string"
          },
          "role": {
            "description": "The caller's role in the workspace: OWNER manages members and settings, MEMBER builds and runs workflows, VIEWER has read-only access.",
            "enum": [
              "MEMBER",
              "OWNER",
              "VIEWER"
            ],
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "organization_id",
          "organization_name",
          "role"
        ],
        "type": "object"
      },
      "NodeDto": {
        "properties": {
          "action": {
            "description": "The action this node performs. The shape of `parameters` depends on it.",
            "enum": [
              "API_FLOW",
              "APP_ACTION",
              "BOOL_CONDITION",
              "CAPTCHA",
              "CLICK",
              "COMPONENT_CALL",
              "DELAY",
              "END",
              "EXTRACT_DATAMODEL",
              "EXTRACT_NETWORK",
              "FILE_DOWNLOAD",
              "FILE_UPLOAD",
              "INPUT_SELECT",
              "INPUT_TEXT",
              "LOOP",
              "NAVIGATE",
              "SCREENSHOT",
              "SCROLL",
              "START",
              "TAB_MANAGEMENT",
              "TFA",
              "TRANSFORM",
              "USER_INTERACTION",
              "WINDOW_MANAGEMENT"
            ],
            "type": "string"
          },
          "description": {
            "description": "What this node does, in plain language",
            "type": "string"
          },
          "errored": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. True when the node failed.",
            "readOnly": true,
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the node within the workflow",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the node",
            "type": "string"
          },
          "parameters": {
            "additionalProperties": true,
            "description": "Action-specific parameters. Their shape depends on `action`; read an existing workflow's nodes for examples.",
            "type": "object"
          },
          "popup_xpaths": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. Copied from the workflow's `popup_xpaths`.",
            "items": {
              "type": "string"
            },
            "readOnly": true,
            "type": "array"
          },
          "previous_node_errored": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. True when the node before it failed.",
            "readOnly": true,
            "type": "boolean"
          },
          "session_id": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. ID of the run.",
            "readOnly": true,
            "type": "string"
          },
          "session_retries": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. How many times the run has been retried.",
            "readOnly": true,
            "type": "number"
          },
          "source_component_id": {
            "description": "Component this node was copied from, when the node belongs to a component instance",
            "format": "uuid",
            "type": "string"
          },
          "source_component_instance_id": {
            "description": "Shared by every node of one component instance in this workflow. Delete all nodes with the same value together.",
            "type": "string"
          },
          "source_component_node_id": {
            "description": "ID of the matching node in the component's definition, when the node belongs to a component instance",
            "type": "string"
          },
          "take_snapshot": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. True when the run captures a page snapshot at this node.",
            "readOnly": true,
            "type": "boolean"
          },
          "type": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. Copied from the workflow's `type`.",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "readOnly": true,
            "type": "string"
          },
          "use_native_actions": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "workflow_id": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. ID of the workflow.",
            "readOnly": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "Set by CloudCruise on the node it dispatches during a run. Leave it out when saving a workflow. ID of the run's workspace.",
            "readOnly": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "action"
        ],
        "type": "object"
      },
      "NotificationOptions": {
        "properties": {
          "enabled": {
            "default": true,
            "description": "Controls workspace-owned run notifications for the entire run lifecycle. Omitting notifications leaves them enabled. Independent of dry_run; internal CloudCruise notifications stay enabled.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "OktaVerifyEnrollRequest": {
        "properties": {
          "enrollment_url": {
            "type": "string"
          }
        },
        "required": [
          "enrollment_url"
        ],
        "type": "object"
      },
      "OrgMemberApiKeySummaryDto": {
        "properties": {
          "created_at": {
            "description": "When the key was created.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the API key. Use it to delete the key.",
            "format": "uuid",
            "type": "string"
          },
          "key_alias": {
            "description": "Name given to the key when it was created.",
            "example": "CI pipeline",
            "nullable": true,
            "type": "string"
          },
          "key_hint": {
            "description": "Last four characters of the key, to tell keys apart. The key itself is shown only once, at creation.",
            "example": "a1b2",
            "nullable": true,
            "type": "string"
          },
          "last_used_at": {
            "description": "When the key was last used, or null if never.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "Workspace the key belongs to.",
            "format": "uuid",
            "type": "string"
          },
          "workspace_name": {
            "description": "Name of the workspace the key belongs to.",
            "example": "Production",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "key_alias",
          "key_hint",
          "created_at",
          "last_used_at",
          "workspace_id",
          "workspace_name"
        ],
        "type": "object"
      },
      "OrganizationAgreementDto": {
        "properties": {
          "accepted_at": {
            "description": "Time the agreement was accepted.",
            "format": "date-time",
            "type": "string"
          },
          "agreement_type": {
            "description": "Kind of agreement.",
            "enum": [
              "baa"
            ],
            "type": "string"
          },
          "content_sha256": {
            "description": "SHA-256 of the accepted text. Null for negotiated agreements.",
            "nullable": true,
            "type": "string"
          },
          "entity_name": {
            "description": "Legal name of the covered entity.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the agreement.",
            "format": "uuid",
            "type": "string"
          },
          "organization_id": {
            "description": "ID of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "signer_email": {
            "description": "Email address of the signer.",
            "format": "email",
            "type": "string"
          },
          "signer_name": {
            "description": "Full name of the signer.",
            "type": "string"
          },
          "signer_title": {
            "description": "Job title of the signer.",
            "type": "string"
          },
          "source": {
            "description": "How the agreement was made: accepted in the dashboard or API (`self_serve`), or signed separately with CloudCruise (`negotiated`).",
            "enum": [
              "self_serve",
              "negotiated"
            ],
            "type": "string"
          },
          "version": {
            "description": "Version of the BAA text that was accepted.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "agreement_type",
          "source",
          "version",
          "content_sha256",
          "signer_name",
          "signer_title",
          "signer_email",
          "entity_name",
          "accepted_at"
        ],
        "type": "object"
      },
      "OrganizationDto": {
        "properties": {
          "archived_at": {
            "description": "Time the organization was archived. Null while it is active.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "browser_hours_usage_cap": {
            "description": "Monthly cap on browser hours. Null when the organization has no cap.",
            "nullable": true,
            "type": "integer"
          },
          "created_at": {
            "description": "Time the organization was created.",
            "format": "date-time",
            "type": "string"
          },
          "creator_user_id": {
            "description": "ID of the user who created the organization.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the organization.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "image_url": {
            "description": "URL of the organization's logo.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the organization.",
            "type": "string"
          },
          "require_mfa": {
            "description": "Whether every member must sign in with multi-factor authentication.",
            "type": "boolean"
          },
          "sso_domains": {
            "description": "Email domains whose users sign in through the organization's SSO.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sso_enabled": {
            "description": "Whether SAML single sign-on is turned on for the organization.",
            "type": "boolean"
          },
          "stripe_customer_id": {
            "description": "ID of the organization's Stripe customer. Null until the organization first opens checkout or the billing portal.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "Time the organization was last updated.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "image_url",
          "creator_user_id",
          "browser_hours_usage_cap",
          "require_mfa",
          "sso_enabled",
          "sso_domains",
          "stripe_customer_id",
          "created_at",
          "updated_at",
          "archived_at"
        ],
        "type": "object"
      },
      "OrganizationMemberAuthStatusDto": {
        "properties": {
          "has_mfa": {
            "description": "Whether the member has a verified MFA factor.",
            "type": "boolean"
          },
          "last_sign_in_at": {
            "description": "When the member last signed in. Null if never.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "user_id": {
            "description": "Identifier of the member.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "has_mfa",
          "last_sign_in_at"
        ],
        "type": "object"
      },
      "OrganizationMemberDto": {
        "properties": {
          "created_at": {
            "description": "When the user joined the organization.",
            "format": "date-time",
            "type": "string"
          },
          "email": {
            "description": "Email address of the member.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Display name of the member.",
            "nullable": true,
            "type": "string"
          },
          "organization_id": {
            "description": "Identifier of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "role": {
            "description": "Role in the organization: OWNER manages members, billing, security settings and workspaces; MEMBER uses the workspaces they belong to.",
            "enum": [
              "MEMBER",
              "OWNER"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "When the membership last changed.",
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "description": "Identifier of the member.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "organization_id",
          "role",
          "created_at",
          "updated_at",
          "email",
          "name"
        ],
        "type": "object"
      },
      "OrganizationMembershipDto": {
        "properties": {
          "created_at": {
            "description": "When the user joined the organization.",
            "format": "date-time",
            "type": "string"
          },
          "organization_id": {
            "description": "Identifier of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "role": {
            "description": "Role in the organization: OWNER manages members, billing, security settings and workspaces; MEMBER uses the workspaces they belong to.",
            "enum": [
              "MEMBER",
              "OWNER"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "When the membership last changed.",
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "description": "Identifier of the member.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "organization_id",
          "role",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "OrganizationPlanDto": {
        "properties": {
          "billing_scheme": {
            "description": "Stripe billing scheme of the plan's main price: `tiered` or `per_unit`.",
            "type": "string"
          },
          "browser_hours_usage_cap": {
            "description": "Monthly cap on browser hours. Null when there is no cap.",
            "nullable": true,
            "type": "integer"
          },
          "cancel_at_period_end": {
            "description": "True when the subscription is set to end at the close of the current period.",
            "type": "boolean"
          },
          "current_period_end": {
            "description": "End of the current billing period, in Unix seconds.",
            "type": "integer"
          },
          "current_period_start": {
            "description": "Start of the current billing period, in Unix seconds.",
            "type": "integer"
          },
          "organization_id": {
            "description": "ID of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "organization_name": {
            "description": "Name of the organization.",
            "type": "string"
          },
          "price_metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PriceMetadataDto"
              }
            ],
            "description": "Usage pricing details from the Stripe price.",
            "nullable": true,
            "type": "object"
          },
          "stripe_customer_id": {
            "description": "ID of the organization's Stripe customer.",
            "type": "string"
          },
          "stripe_product_id": {
            "description": "ID of the Stripe product the plan is built on.",
            "type": "string"
          },
          "stripe_product_name": {
            "description": "Display name of the plan's Stripe product.",
            "type": "string"
          },
          "stripe_subscription_id": {
            "description": "ID of the Stripe subscription.",
            "type": "string"
          },
          "stripe_subscription_schedule_id": {
            "description": "ID of a Stripe subscription schedule holding a pending plan change. Null when no change is scheduled.",
            "nullable": true,
            "type": "string"
          },
          "stripe_subscription_schedule_metadata": {
            "additionalProperties": true,
            "description": "Metadata of the pending subscription schedule, such as `new_product_id`. Null when no change is scheduled.",
            "nullable": true,
            "type": "object"
          },
          "stripe_subscription_status": {
            "description": "Stripe subscription status, for example `active`, `trialing`, `past_due` or `canceled`.",
            "type": "string"
          },
          "subscription_created": {
            "description": "Time the subscription was created, in Unix seconds.",
            "type": "integer"
          },
          "unit_amount": {
            "description": "Base price of the plan in dollars per period. Null when the plan has no flat base price.",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "organization_id",
          "organization_name",
          "stripe_customer_id",
          "stripe_product_id",
          "stripe_product_name",
          "stripe_subscription_status",
          "current_period_start",
          "current_period_end",
          "stripe_subscription_id",
          "subscription_created",
          "cancel_at_period_end",
          "browser_hours_usage_cap",
          "stripe_subscription_schedule_id",
          "stripe_subscription_schedule_metadata",
          "billing_scheme",
          "unit_amount",
          "price_metadata"
        ],
        "type": "object"
      },
      "OrganizationSuccessDto": {
        "properties": {
          "success": {
            "description": "True when the operation completed.",
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "PasskeyAssertionRequest": {
        "properties": {
          "rp_id": {
            "type": "string"
          },
          "session_id": {
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "rp_id"
        ],
        "type": "object"
      },
      "PasskeyCommitRequest": {
        "properties": {
          "cose_alg": {
            "type": "number"
          },
          "credential_id": {
            "type": "string"
          },
          "private_key_pkcs8": {
            "type": "string"
          },
          "public_key_spki": {
            "type": "string"
          },
          "rp_id": {
            "type": "string"
          },
          "session_id": {
            "type": "string"
          },
          "user_handle": {
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "credential_id",
          "private_key_pkcs8",
          "public_key_spki",
          "cose_alg",
          "rp_id"
        ],
        "type": "object"
      },
      "PasskeyDeleteRequest": {
        "properties": {
          "domain": {
            "description": "Domain of the vault entry, as stored on the entry.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the vault entry's user, unique together with domain.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "PasskeyEnrollRequest": {
        "properties": {
          "domain": {
            "description": "Domain of the vault entry, as stored on the entry.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "instructions": {
            "description": "Guidance for the agent, such as where the site's passkey settings are or which subdomain to sign in on.",
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the vault entry's user, unique together with domain. The agent signs in with this entry's credentials and stores the new passkey on it.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          },
          "start_url": {
            "description": "URL the agent opens first, such as the site's login or security settings page. Defaults to the entry's domain.",
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "PasskeyEnrollmentCancelledDto": {
        "properties": {
          "stopped": {
            "description": "Whether a running enrollment agent was stopped. False when the agent had already finished; the session is torn down either way.",
            "type": "boolean"
          }
        },
        "required": [
          "stopped"
        ],
        "type": "object"
      },
      "PasskeyEnrollmentConversationRequest": {
        "properties": {
          "conversation_id": {
            "description": "Identifier of the enrollment session, as returned when the enrollment started.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversation_id"
        ],
        "type": "object"
      },
      "PasskeyEnrollmentFeedbackRequest": {
        "properties": {
          "conversation_id": {
            "description": "Identifier of the enrollment session, as returned when the enrollment started.",
            "format": "uuid",
            "type": "string"
          },
          "message": {
            "description": "Instruction for the running agent, applied at its next step. Leading and trailing whitespace is removed.",
            "example": "The passkey settings are under Security, not Profile.",
            "type": "string"
          }
        },
        "required": [
          "conversation_id",
          "message"
        ],
        "type": "object"
      },
      "PasskeyEnrollmentOkDto": {
        "properties": {
          "ok": {
            "description": "Always true; failures return an error status instead.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "ok"
        ],
        "type": "object"
      },
      "PasskeyEnrollmentStartedDto": {
        "properties": {
          "conversationId": {
            "description": "Identifier of the enrollment session. Pass it to cancel, take over or send feedback to the enrollment.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversationId"
        ],
        "type": "object"
      },
      "PauseDataDto": {
        "properties": {
          "expire_existing_sessions": {
            "description": "Credentials only. Whether the credential's saved browser data is cleared when it is unpaused.",
            "type": "boolean"
          },
          "paused_at": {
            "description": "When the pause started, in milliseconds since the Unix epoch.",
            "example": 1763000000000,
            "type": "number"
          },
          "paused_by_user_id": {
            "description": "ID of the user or API key that paused it, or `error_code` for a pause set by an error code action. Absent for a run-window hold.",
            "type": "string"
          },
          "reason": {
            "description": "Why it is paused. For a run-window hold, `Outside run window`.",
            "example": "Portal maintenance",
            "type": "string"
          },
          "resumes_at": {
            "description": "Run-window holds only. When the window next opens, in milliseconds since the Unix epoch.",
            "nullable": true,
            "type": "number"
          },
          "source": {
            "description": "`run_window` for a hold from a closed run window; `manual` for every other pause. Absent on older pauses, which are manual.",
            "enum": [
              "manual",
              "run_window"
            ],
            "type": "string"
          },
          "time_zone": {
            "description": "Run-window holds only. The run window's IANA time zone.",
            "example": "America/New_York",
            "type": "string"
          }
        },
        "required": [
          "paused_at"
        ],
        "type": "object"
      },
      "PauseRequestDto": {
        "properties": {
          "expire_existing_sessions": {
            "default": false,
            "description": "Credentials only. When true, the credential's saved browser data (cookies and storage) is cleared when it is unpaused. Sending true with `workflow` returns 400.",
            "type": "boolean"
          },
          "pause_resource": {
            "default": "workflow",
            "description": "What kind of resource to pause: workflows, or vault credentials on one domain.",
            "enum": [
              "workflow",
              "credential"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Why the resource is paused. Shown in the list of paused resources.",
            "example": "Portal maintenance",
            "type": "string"
          },
          "resource_ids": {
            "default": [],
            "description": "Resources to pause. Workflow IDs (UUIDs) for `workflow`; credential IDs of the form `<workspace_id>:<permissioned_user_id>:<domain>` for `credential`.",
            "example": [
              "11223344-5566-7788-9900-112233445566"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "PauseRunsResponseDto": {
        "properties": {
          "errors": {
            "description": "Always empty. Failures return an error instead.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "pausedResources": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PausedResourcesResponseDto"
              }
            ],
            "description": "Every paused resource in the workspace after this call, in the same form as the list of paused resources."
          },
          "pausedRuns": {
            "description": "Number of queued runs moved to the paused queue.",
            "example": 3,
            "type": "number"
          },
          "skippedResourceGroups": {
            "description": "Worker groups that were busy and could not be processed. Their queued runs are not held yet, so repeat the request.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "success": {
            "description": "Always true; a failed pause returns an error.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "pausedRuns",
          "skippedResourceGroups",
          "errors"
        ],
        "type": "object"
      },
      "PausedResourcesResponseDto": {
        "properties": {
          "pausedCredentials": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PauseDataDto"
            },
            "description": "Paused vault credentials, keyed by `dispatcher:pause:credential:<workspace_id>:<permissioned_user_id>:<domain>`. Pass `<workspace_id>:<permissioned_user_id>:<domain>` as the credential ID to unpause it.",
            "type": "object"
          },
          "pausedWorkflows": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PauseDataDto"
            },
            "description": "Paused workflows, including workflows held by a closed run window, keyed by `dispatcher:pause:workflow:<workspace_id>:<workflow_id>`. Pass the workflow ID to unpause it.",
            "type": "object"
          }
        },
        "required": [
          "pausedWorkflows",
          "pausedCredentials"
        ],
        "type": "object"
      },
      "PausedResourcesWithHeldRunsResponseDto": {
        "properties": {
          "heldRuns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HeldRunsDto"
              }
            ],
            "description": "The runs each pause holds in `execution.paused`, so a paused workflow or credential can be traced to the runs waiting on it."
          },
          "pausedCredentials": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PauseDataDto"
            },
            "description": "Paused vault credentials, keyed by `dispatcher:pause:credential:<workspace_id>:<permissioned_user_id>:<domain>`. Pass `<workspace_id>:<permissioned_user_id>:<domain>` as the credential ID to unpause it.",
            "type": "object"
          },
          "pausedWorkflows": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PauseDataDto"
            },
            "description": "Paused workflows, including workflows held by a closed run window, keyed by `dispatcher:pause:workflow:<workspace_id>:<workflow_id>`. Pass the workflow ID to unpause it.",
            "type": "object"
          }
        },
        "required": [
          "pausedWorkflows",
          "pausedCredentials",
          "heldRuns"
        ],
        "type": "object"
      },
      "PendingInviteDto": {
        "properties": {
          "expires_at": {
            "description": "When the invite expires.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the invite. Pass it to accept the invite.",
            "format": "uuid",
            "type": "string"
          },
          "organization_id": {
            "description": "Organization the invite joins.",
            "format": "uuid",
            "type": "string"
          },
          "organization_name": {
            "description": "Name of that organization.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "organization_name",
          "expires_at"
        ],
        "type": "object"
      },
      "PostRunPayloadDto": {
        "properties": {
          "additional_context": {
            "additionalProperties": true,
            "description": "JSON data that helps the maintenance agent handle unexpected scenarios, mainly in form-filling workflows. When a site asks for information the input variables do not cover, such as a secondary phone number, the maintenance agent can take it from here.",
            "type": "object"
          },
          "capture_console_logs": {
            "default": false,
            "description": "Capture browser console logs during the run.",
            "type": "boolean"
          },
          "client_id": {
            "description": "Client identifier SDKs use to bind server-sent event streams to this run.",
            "type": "string"
          },
          "debug": {
            "default": false,
            "description": "Captures an HTML snapshot of every node the run executes and records the run's network traffic, for troubleshooting failures. Network traffic is recorded on workers with network capture.",
            "type": "boolean"
          },
          "dry_run": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DryRun"
              }
            ],
            "description": "Dry run settings. A dry run executes the workflow without making permanent changes in the target software."
          },
          "encrypted_keys": {
            "description": "Keys of run_input_variables whose values are encrypted with your workspace AES key.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "force_refresh": {
            "default": false,
            "description": "Force-refresh the workflow and encryption key caches before starting the run.",
            "type": "boolean"
          },
          "notifications": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationOptions"
              }
            ],
            "description": "Workspace notification settings for this run."
          },
          "priority_level": {
            "description": "Execution priority of the run, applied across workflows. When runs compete for the same resource, such as a vault credential at its concurrency limit, HIGH runs get it first, then MEDIUM, then LOW. A run waiting for an unavailable resource does not hold back lower-priority runs whose resources are free, and running runs are never interrupted. If higher-priority runs keep arriving, lower-priority runs competing with them can wait indefinitely. Defaults to LOW.",
            "enum": [
              "HIGH",
              "LOW",
              "MEDIUM",
              "TEST"
            ],
            "type": "string"
          },
          "profiling": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProfilingOptions"
              }
            ],
            "description": "Admin only. Profiling settings for the run; ignored for non-admin callers."
          },
          "run_input_variables": {
            "additionalProperties": true,
            "description": "Variables the workflow needs for the run: regular workflow inputs and vault credential references.\n\nReference a vault credential by its permissioned_user_id under the alias defined in the workflow's vault_schema:\n- Single credential: `\"USER\": \"a1b2c3d4-5678-90ab-cdef-1234567890ab\"`\n- Pooled credentials: `\"USER\": [\"a1b2c3d4-...\", \"b2c3d4e5-...\"]`. CloudCruise picks among them round-robin and respects each credential's concurrency limit.\n- All credentials for the alias's domain: `\"USER\": []`. The request fails with 400 if the workspace has none.",
            "example": {
              "USER": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
              "other_input": "value"
            },
            "type": "object"
          },
          "send_connection_string": {
            "default": false,
            "description": "Include live-view connection details in run execution events when available.",
            "type": "boolean"
          },
          "webhook": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BaseWebhook"
              }
            ],
            "description": "Webhook settings for receiving this run's execution events: destination URL, event types, signing secret, validity period and custom metadata."
          },
          "workflow_branch_id": {
            "description": "Pins the run to a branch's current head version. If no pin is given, the workflow's default branch runs. At most one of workflow_version, workflow_version_number or workflow_branch_id may be given.",
            "format": "uuid",
            "type": "string"
          },
          "workflow_id": {
            "default": "",
            "description": "Unique identifier of the workflow to run.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "type": "string"
          },
          "workflow_version": {
            "description": "Pins the run to a tagged release by an exact semver version or a range, e.g. \"1.2.3\", \"^1.2.3\", \"~1.2.3\", \"1.x\" or \">=1.2.3 <2.0.0\". The highest tagged release that satisfies the range runs. Every saved workflow version is tagged with a release automatically. At most one of workflow_version, workflow_version_number or workflow_branch_id may be given.",
            "example": "^1.2.0",
            "type": "string"
          },
          "workflow_version_number": {
            "description": "Legacy: prefer workflow_version. Pins the run to the highest tagged release with this major version, so `N` behaves like workflow_version `\"N.x.x\"`. If no pin is given, the default branch's latest version runs. At most one of workflow_version, workflow_version_number or workflow_branch_id may be given.",
            "type": "number"
          }
        },
        "required": [
          "workflow_id"
        ],
        "type": "object"
      },
      "PreviewPropagationDto": {
        "properties": {
          "componentData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowComponentDataDto"
              }
            ],
            "description": "The component's nodes, edges and vault schema, in the shape the workflow visualizer uses. The data you intend to save with an update."
          }
        },
        "required": [
          "componentData"
        ],
        "type": "object"
      },
      "PriceMetadataDto": {
        "properties": {
          "browser_hours_included": {
            "description": "Browser hours included in the plan each period, as text.",
            "example": "100",
            "type": "string"
          },
          "unit_price": {
            "description": "Price per browser hour beyond the included hours, as text.",
            "example": "0.50",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfilingOptions": {
        "properties": {
          "detailed": {
            "default": false,
            "description": "Admin only. Records detailed profiling data for the run.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "PropagationPreviewDto": {
        "properties": {
          "cleanCount": {
            "description": "Number of instances that match the current version and would update cleanly.",
            "type": "number"
          },
          "dirtyInstances": {
            "description": "Instances with local edits that an update with propagation would overwrite.",
            "items": {
              "$ref": "#/components/schemas/DirtyComponentInstanceDto"
            },
            "type": "array"
          }
        },
        "required": [
          "cleanCount",
          "dirtyInstances"
        ],
        "type": "object"
      },
      "ProxyConfig": {
        "properties": {
          "enable": {
            "type": "boolean"
          },
          "target_ip": {
            "type": "string"
          }
        },
        "required": [
          "enable"
        ],
        "type": "object"
      },
      "ProxyCountriesDto": {
        "properties": {
          "countries": {
            "description": "ISO 3166-1 alpha-2 codes of the countries with managed proxies, in upper case.",
            "example": [
              "US",
              "DE",
              "GB"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "countries"
        ],
        "type": "object"
      },
      "ProxyCoverageDto": {
        "properties": {
          "coverage": {
            "description": "Each distinct city that has at least one managed proxy.",
            "items": {
              "$ref": "#/components/schemas/ProxyLocationDto"
            },
            "type": "array"
          }
        },
        "required": [
          "coverage"
        ],
        "type": "object"
      },
      "ProxyDto": {
        "properties": {
          "city": {
            "description": "City name.",
            "example": "Chicago",
            "type": "string"
          },
          "country_code": {
            "description": "ISO 3166-1 alpha-2 country code, in upper case.",
            "example": "US",
            "type": "string"
          },
          "ip": {
            "description": "The proxy's public IP address. Target sites see requests from this address, so it is the one to allowlist.",
            "example": "198.51.100.7",
            "type": "string"
          },
          "latitude": {
            "description": "Latitude of the city, as a decimal string.",
            "example": "41.8500",
            "type": "string"
          },
          "longitude": {
            "description": "Longitude of the city, as a decimal string.",
            "example": "-87.6500",
            "type": "string"
          },
          "port": {
            "description": "The proxy's port.",
            "example": 8080,
            "type": "number"
          },
          "region": {
            "description": "Region or state name.",
            "example": "Illinois",
            "type": "string"
          }
        },
        "required": [
          "city",
          "region",
          "country_code",
          "latitude",
          "longitude",
          "ip",
          "port"
        ],
        "type": "object"
      },
      "ProxyListDto": {
        "properties": {
          "proxies": {
            "description": "Every managed proxy, with its address and location.",
            "items": {
              "$ref": "#/components/schemas/ProxyDto"
            },
            "type": "array"
          }
        },
        "required": [
          "proxies"
        ],
        "type": "object"
      },
      "ProxyLocationDto": {
        "properties": {
          "city": {
            "description": "City name.",
            "example": "Chicago",
            "type": "string"
          },
          "country_code": {
            "description": "ISO 3166-1 alpha-2 country code, in upper case.",
            "example": "US",
            "type": "string"
          },
          "latitude": {
            "description": "Latitude of the city, as a decimal string.",
            "example": "41.8500",
            "type": "string"
          },
          "longitude": {
            "description": "Longitude of the city, as a decimal string.",
            "example": "-87.6500",
            "type": "string"
          },
          "region": {
            "description": "Region or state name.",
            "example": "Illinois",
            "type": "string"
          }
        },
        "required": [
          "city",
          "region",
          "country_code",
          "latitude",
          "longitude"
        ],
        "type": "object"
      },
      "PullRequestMergePreviewDto": {
        "properties": {
          "conflicts": {
            "description": "Conflicts to resolve before merging; empty when `mergeable` is true",
            "items": {
              "$ref": "#/components/schemas/MergeConflictDto"
            },
            "type": "array"
          },
          "graphErrors": {
            "description": "Problems with the merged workflow as a whole, such as a dangling edge. Present only when `mergeable` is true",
            "items": {
              "$ref": "#/components/schemas/MergeGraphValidationIssueDto"
            },
            "type": "array"
          },
          "graphWarnings": {
            "description": "Warnings about the merged workflow as a whole. Present only when `mergeable` is true",
            "items": {
              "$ref": "#/components/schemas/MergeGraphValidationIssueDto"
            },
            "type": "array"
          },
          "mergeBases": {
            "description": "Present only when the branches share more than one common ancestor. The first is the one the comparison used; changes that arrived through the others can merge without being reported as conflicts",
            "items": {
              "$ref": "#/components/schemas/MergeBaseDto"
            },
            "type": "array"
          },
          "mergeable": {
            "description": "Whether the branches merge without conflicts. Graph errors can still block a merge when this is true",
            "type": "boolean"
          },
          "merged": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MergedWorkflowFieldsDto"
              }
            ],
            "description": "The merged workflow fields. A conflicting node, edge or component is left out, and a conflicting single-value field holds the target branch's value, so read `conflicts` first"
          },
          "sourceHeadVersionId": {
            "description": "Latest version of the source branch the preview used. Send it back as `previewSourceHeadVersionId` when merging with resolutions",
            "format": "uuid",
            "type": "string"
          },
          "targetHeadVersionId": {
            "description": "Latest version of the target branch the preview used. Send it back as `previewTargetHeadVersionId` when merging with resolutions",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "mergeable",
          "merged",
          "conflicts",
          "sourceHeadVersionId",
          "targetHeadVersionId"
        ],
        "type": "object"
      },
      "QueuedRunDto": {
        "properties": {
          "created_at": {
            "description": "When the run was queued, in milliseconds since the Unix epoch.",
            "example": 1763000000000,
            "type": "number"
          },
          "last_unpaused_at": {
            "description": "When the run last left the paused queue, in milliseconds since the Unix epoch. Absent when it was never paused.",
            "example": 1763000300000,
            "type": "number"
          },
          "paused_ms": {
            "description": "Total time the run spent held by pauses, in milliseconds. Absent when it was never paused.",
            "example": 60000,
            "type": "number"
          },
          "priority": {
            "description": "Execution priority the run was started with. HIGH runs get a contended resource first, then MEDIUM, then LOW.",
            "enum": [
              "HIGH",
              "LOW",
              "MEDIUM",
              "TEST"
            ],
            "example": "LOW",
            "type": "string"
          },
          "queue": {
            "description": "Identifier of the worker group whose queue holds the run.",
            "example": "general",
            "type": "string"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "format": "uuid",
            "type": "string"
          },
          "start_execution_after": {
            "description": "Earliest time the run may start, in milliseconds since the Unix epoch. Absent when the run may start as soon as a worker and its credentials are free.",
            "example": 1763000600000,
            "type": "number"
          },
          "vault_info": {
            "description": "Vault credentials the run needs, one entry per credential alias. A run waits while its credentials are at their concurrency limit. Absent when the workflow uses no vault credentials.",
            "items": {
              "$ref": "#/components/schemas/QueuedRunVaultInfoDto"
            },
            "type": "array"
          },
          "workflow_id": {
            "description": "Identifier of the workflow the run executes.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "format": "uuid",
            "type": "string"
          },
          "workflow_name": {
            "description": "Name of the workflow the run executes.",
            "example": "Download invoices",
            "type": "string"
          },
          "workspace_id": {
            "description": "Identifier of the workspace the run belongs to.",
            "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "workspace_id",
          "priority",
          "workflow_id",
          "workflow_name",
          "created_at",
          "queue"
        ],
        "type": "object"
      },
      "QueuedRunVaultInfoDto": {
        "properties": {
          "alias": {
            "description": "Credential alias from the workflow's vault_schema that the run fills.",
            "example": "USER",
            "type": "string"
          },
          "domain": {
            "description": "Domain the credential logs in to.",
            "example": "example.com",
            "type": "string"
          },
          "vault_references": {
            "description": "The vault credentials the run may use for this alias. More than one means credential pooling.",
            "items": {
              "$ref": "#/components/schemas/QueuedRunVaultReferenceDto"
            },
            "type": "array"
          }
        },
        "required": [
          "alias",
          "domain",
          "vault_references"
        ],
        "type": "object"
      },
      "QueuedRunVaultReferenceDto": {
        "properties": {
          "max_concurrency": {
            "description": "How many runs may use the credential at once. -1 means unlimited.",
            "example": 1,
            "type": "number"
          },
          "permissioned_user_id": {
            "description": "The permissioned_user_id of the vault credential.",
            "example": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "type": "string"
          },
          "prevent_concurrency_during_login": {
            "description": "Whether other runs must wait while a run logs in with the credential.",
            "example": false,
            "type": "boolean"
          },
          "user_alias": {
            "description": "Display alias of the credential's user, if one is set.",
            "example": "billing-team",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "max_concurrency",
          "prevent_concurrency_during_login",
          "user_alias"
        ],
        "type": "object"
      },
      "ReactFlowEdgeDto": {
        "properties": {
          "sourceHandle": {
            "description": "Visualizer handle the edge leaves from, e.g. `true` or `false` on a condition node.",
            "type": "string"
          },
          "sourceId": {
            "description": "ID of the node the edge starts from.",
            "type": "string"
          },
          "targetHandle": {
            "description": "Visualizer handle the edge enters.",
            "type": "string"
          },
          "targetId": {
            "description": "ID of the node the edge ends at.",
            "type": "string"
          }
        },
        "required": [
          "sourceId",
          "targetId"
        ],
        "type": "object"
      },
      "RenameWorkflowComponentDto": {
        "properties": {
          "name": {
            "description": "New display name for the component.",
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "RepairEligibilityDto": {
        "properties": {
          "defaultInstructions": {
            "description": "First message the repair session sends the builder unless you pass `instructions`",
            "type": "string"
          },
          "failureScreenshotUrl": {
            "description": "Signed URL of the screenshot taken when the run failed. Valid for 12 hours.",
            "nullable": true,
            "type": "string"
          },
          "reason": {
            "description": "Why the check reached this tier",
            "type": "string"
          },
          "referenceScreenshotUrl": {
            "description": "Signed URL of a screenshot of the failing node from a recent successful run, for comparison. Prefers a run of the same workflow version.",
            "nullable": true,
            "type": "string"
          },
          "referenceScreenshotVersionMatched": {
            "description": "True when the reference screenshot comes from the same workflow version as the failed run",
            "type": "boolean"
          },
          "signals": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RepairSignalsDto"
              }
            ],
            "description": "The checks behind the tier"
          },
          "tier": {
            "description": "`SHOW`: a repair is worth starting. `WARN`: the failing node is gone or the workflow was re-versioned since the run, so a fix may already exist. `SUPPRESS`: the failing node was already changed for this failure.",
            "enum": [
              "SHOW",
              "WARN",
              "SUPPRESS"
            ],
            "type": "string"
          }
        },
        "required": [
          "tier",
          "reason",
          "signals",
          "defaultInstructions",
          "referenceScreenshotUrl",
          "failureScreenshotUrl",
          "referenceScreenshotVersionMatched"
        ],
        "type": "object"
      },
      "RepairSignalsDto": {
        "properties": {
          "failingNodeModifiedSinceRun": {
            "description": "True when the failing node's selector, action or parameters changed since the run",
            "type": "boolean"
          },
          "failingNodeStillPresent": {
            "description": "True when the node that failed is still in the workflow",
            "type": "boolean"
          },
          "workflowReversionedSinceRun": {
            "description": "True when a newer workflow version was saved since the run",
            "type": "boolean"
          }
        },
        "required": [
          "failingNodeStillPresent",
          "failingNodeModifiedSinceRun",
          "workflowReversionedSinceRun"
        ],
        "type": "object"
      },
      "RepairStartedDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the new builder conversation. The builder starts diagnosing at once; poll get_turn_state.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversationId"
        ],
        "type": "object"
      },
      "ReplayWebhooksDto": {
        "properties": {
          "customTargets": {
            "description": "Extra URLs that receive every replayed event, each signed with its own secret.",
            "items": {
              "$ref": "#/components/schemas/CustomReplayTargetDto"
            },
            "type": "array"
          },
          "deliveryErrorContains": {
            "description": "Replay only events with a delivery error containing this text, compared case-insensitively.",
            "example": "timeout",
            "type": "string"
          },
          "onlyFailed": {
            "description": "Replay only events whose original delivery failed. When omitted, every event is replayed.",
            "type": "boolean"
          },
          "persistResult": {
            "description": "Record each replay attempt in the run's webhook delivery log. When omitted, replays are not recorded.",
            "type": "boolean"
          },
          "skipSuccessfulReplays": {
            "default": true,
            "description": "With `persistResult`, skip destinations that already received a successful replay of the same event. Applies unless set to false.",
            "type": "boolean"
          },
          "targetUrls": {
            "description": "Original recipient URLs to replay to. When omitted, every original recipient gets its events again; an empty list replays to none of them, which is useful with `customTargets`.",
            "example": [
              "https://example.com/hooks/cloudcruise"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "RespondAcceptedDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "type": "string"
          },
          "messageId": {
            "description": "ID of the request that was answered",
            "type": "string"
          },
          "responded": {
            "description": "Always true: the answer was recorded",
            "type": "boolean"
          },
          "turnId": {
            "description": "ID of the turn the answer continues: the message that opened it, the same value get_turn_state reports as `turnId`. `null` only when that turn has no recorded ID.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "messageId",
          "turnId",
          "responded"
        ],
        "type": "object"
      },
      "RespondToHumanInputDto": {
        "properties": {
          "messageId": {
            "description": "The `humanInput.messageId` from the turn state; it must match the open request",
            "type": "string"
          },
          "responses": {
            "additionalProperties": {
              "anyOf": [
                {
                  "nullable": true,
                  "type": "string"
                },
                {
                  "nullable": true,
                  "type": "number"
                },
                {
                  "nullable": true,
                  "type": "boolean"
                },
                {
                  "nullable": true,
                  "type": "object"
                }
              ]
            },
            "description": "Answers keyed by field. The key is the field's `name`; for an `error` field it is `name`, `targetNodeId`, `targetParam` and `rowType` joined by NUL characters (\\u0000), though the plain `name` also works. Values take the same shapes as `value`. Keys that match no field are ignored or declined.",
            "type": "object"
          },
          "value": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              }
            ],
            "description": "Answer to the request's first field. Use `responses` when the request has several fields. Error-code fields take `{\"kind\":\"accept_suggestion\"}`, `{\"kind\":\"existing\",\"error_code_id\":\"<id>\"}` or `{\"kind\":\"remove_confirmed\"}`; `auth` fields take `{\"permissioned_user_id\":\"<id>\",\"domain\":\"<domain>\"}`."
          }
        },
        "required": [
          "messageId"
        ],
        "type": "object"
      },
      "RetentionNoticeDto": {
        "properties": {
          "current_tier": {
            "description": "The workspace's current retention period, in days.",
            "type": "number"
          },
          "expired_tier": {
            "description": "The shorter retention period, in days, that has expired for this run.",
            "type": "number"
          },
          "since": {
            "description": "When the current retention period took effect.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "expired_tier",
          "current_tier",
          "since"
        ],
        "type": "object"
      },
      "RevokeShareResultDto": {
        "properties": {
          "success": {
            "description": "Always true: the share was removed",
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "RoutingRuleBodyDto": {
        "properties": {
          "classes": {
            "description": "Failure classes the rule passes when `classes_mode` is `only`: `SERVICE_UNAVAILABLE`, `AUTHENTICATION_ERROR`, `PAGE_STILL_LOADING`, `XPATH_INCORRECT`, `UNEXPECTED_UI_STATE`, `PASSWORD_UPDATE_REQUIRED`, `INCORRECT_INPUTS`, `IGNORE_ERROR`, `INTERNAL_ERROR`. Required, and not empty, when `classes_mode` is `only`; ignored otherwise.",
            "example": [
              "AUTHENTICATION_ERROR"
            ],
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "classes_mode": {
            "default": "all",
            "description": "`all` passes every failure, including failures with no class yet; `only` passes just the failures in `classes`.",
            "enum": [
              "all",
              "only"
            ],
            "type": "string"
          },
          "destinations": {
            "description": "Slack channels the notification goes to. 1 to 50.",
            "items": {
              "$ref": "#/components/schemas/DestinationDto"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "events": {
            "description": "Run events the rule fires on: `run.started`, `run.succeeded`, `run.failed`, `run.stopped`, `run.requeued` (the run was put back in the queue), `run.maintenance_triggered` (the maintenance agent started on a failure) and `run.action_required` (the run waits for a person). Null or omitted fires on every event.",
            "example": [
              "run.failed"
            ],
            "items": {
              "enum": [
                "run.started",
                "run.succeeded",
                "run.failed",
                "run.stopped",
                "run.requeued",
                "run.maintenance_triggered",
                "run.action_required"
              ],
              "type": "string"
            },
            "minItems": 1,
            "nullable": true,
            "type": "array"
          },
          "include_unclassified": {
            "default": true,
            "description": "With `classes_mode` `only`, also pass failures that have no class yet.",
            "type": "boolean"
          },
          "note": {
            "description": "Free-text note about the rule. At most 500 characters.",
            "example": "Pages the on-call channel for login failures",
            "maxLength": 500,
            "nullable": true,
            "type": "string"
          },
          "workflow_ids": {
            "description": "Workflows the rule applies to. Null or omitted applies it to every workflow in the workspace. At most 1000.",
            "example": [
              "d4e5f6a7-89ab-45cd-ef01-456789012abc"
            ],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "destinations"
        ],
        "type": "object"
      },
      "RoutingRuleDestinationConfigDto": {
        "properties": {
          "mentions": {
            "description": "Slack members and user groups mentioned in this channel.",
            "items": {
              "$ref": "#/components/schemas/RoutingRuleMentionDto"
            },
            "type": "array"
          }
        },
        "required": [
          "mentions"
        ],
        "type": "object"
      },
      "RoutingRuleDestinationDto": {
        "properties": {
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RoutingRuleDestinationConfigDto"
              }
            ],
            "description": "Slack-specific settings for this channel."
          },
          "id": {
            "description": "Slack channel ID.",
            "example": "C01ABCDEF",
            "type": "string"
          },
          "name": {
            "description": "Channel name when the rule was saved, without the #.",
            "example": "alerts",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "description": "Where the notification goes. Always `slack`.",
            "enum": [
              "slack"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "name",
          "config"
        ],
        "type": "object"
      },
      "RoutingRuleDto": {
        "properties": {
          "classes": {
            "description": "Failure classes the rule passes when `classes_mode` is `only`: `SERVICE_UNAVAILABLE`, `AUTHENTICATION_ERROR`, `PAGE_STILL_LOADING`, `XPATH_INCORRECT`, `UNEXPECTED_UI_STATE`, `PASSWORD_UPDATE_REQUIRED`, `INCORRECT_INPUTS`, `IGNORE_ERROR`, `INTERNAL_ERROR`. Empty when `classes_mode` is `all`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "classes_mode": {
            "description": "`all` passes every failure; `only` passes just the failures in `classes`.",
            "enum": [
              "all",
              "only"
            ],
            "type": "string"
          },
          "created_at": {
            "description": "When the rule was created.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "User who created the rule.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "destinations": {
            "description": "Slack channels the notification goes to.",
            "items": {
              "$ref": "#/components/schemas/RoutingRuleDestinationDto"
            },
            "type": "array"
          },
          "events": {
            "description": "Run events the rule fires on: `run.started`, `run.succeeded`, `run.failed`, `run.stopped`, `run.requeued` (the run was put back in the queue), `run.maintenance_triggered` (the maintenance agent started on a failure) and `run.action_required` (the run waits for a person). Null means every event.",
            "items": {
              "enum": [
                "run.started",
                "run.succeeded",
                "run.failed",
                "run.stopped",
                "run.requeued",
                "run.maintenance_triggered",
                "run.action_required"
              ],
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "description": "Unique identifier of the rule.",
            "example": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "format": "uuid",
            "type": "string"
          },
          "include_unclassified": {
            "description": "With `classes_mode` `only`, whether failures with no class yet also pass.",
            "type": "boolean"
          },
          "name": {
            "description": "The rule's name, unique in the workspace.",
            "example": "login-failures",
            "type": "string"
          },
          "note": {
            "description": "Free-text note about the rule.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "When the rule was last changed.",
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "description": "User who last changed the rule.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workflow_ids": {
            "description": "Workflows the rule applies to; null for every workflow.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "workspace_id": {
            "description": "Workspace the rule belongs to.",
            "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspace_id",
          "name",
          "workflow_ids",
          "events",
          "classes_mode",
          "classes",
          "include_unclassified",
          "destinations",
          "note",
          "created_by",
          "updated_by",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "RoutingRuleMentionDto": {
        "properties": {
          "id": {
            "description": "Slack member or user group ID.",
            "example": "U01ABCDEF",
            "type": "string"
          },
          "name": {
            "description": "Member display name or group handle when the rule was saved.",
            "example": "Jane Doe",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "description": "Whether a Slack member or a user group is mentioned.",
            "enum": [
              "user",
              "group"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "name"
        ],
        "type": "object"
      },
      "RunCredentialDomainDto": {
        "properties": {
          "domain": {
            "description": "Domain of the vault entry the run used.",
            "nullable": true,
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Vault credential ID (permissioned_user_id).",
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "RunDecisionRecoveryDto": {
        "properties": {
          "error_fingerprint_id": {
            "description": "Error fingerprint the decision belongs to, when known.",
            "nullable": true,
            "type": "string"
          },
          "kind": {
            "description": "applied: a saved decision applied automatically and the run recovered. answered: a person answered a decision during the run and it recovered.",
            "enum": [
              "applied",
              "answered"
            ],
            "type": "string"
          }
        },
        "required": [
          "kind",
          "error_fingerprint_id"
        ],
        "type": "object"
      },
      "RunErrorDto": {
        "properties": {
          "action_display_name": {
            "description": "Human-readable name of the failed action.",
            "example": "Click on the confirm button",
            "nullable": true,
            "type": "string"
          },
          "action_type": {
            "description": "Type of the action that failed.",
            "example": "CLICK",
            "nullable": true,
            "type": "string"
          },
          "classification_stage": {
            "description": "Classification stage that produced the error category.",
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "description": "When the error occurred.",
            "example": "2024-01-01T00:00:00.000000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "error_code": {
            "description": "System error code for known error types.",
            "example": "ERR-0001",
            "nullable": true,
            "type": "string"
          },
          "error_id": {
            "description": "Unique identifier of this error instance.",
            "example": "7c8d9e0f-1a2b-4c3d-8e5f-6a7b8c9d0e1f",
            "type": "string"
          },
          "full_url": {
            "description": "URL of the page where the error occurred.",
            "example": "https://www.example.com/current-page",
            "nullable": true,
            "type": "string"
          },
          "input_recovery": {
            "additionalProperties": true,
            "description": "Recovery metadata when incorrect input handling was applied to this error.",
            "nullable": true,
            "type": "object"
          },
          "llm_error_category": {
            "description": "AI-generated category of the error. See the Maintenance Agent documentation for all values.",
            "example": "AUTHENTICATION_ERROR",
            "nullable": true,
            "type": "string"
          },
          "llm_error_description": {
            "description": "AI-generated explanation of why the error happened.",
            "example": "The login button selector did not match any element.",
            "nullable": true,
            "type": "string"
          },
          "llm_error_sub_type": {
            "description": "More specific sub-type within the error category. See the Maintenance Agent documentation for all values per category.",
            "example": "INVALID_CREDENTIALS",
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Description of what went wrong.",
            "example": "Button not found",
            "type": "string"
          },
          "node_id": {
            "description": "ID of the workflow node where the error occurred.",
            "example": "9f8e7d6c-5b4a-4321-9edc-ba9876543210",
            "nullable": true,
            "type": "string"
          },
          "original_error": {
            "description": "Raw technical error message before any AI processing or simplification.",
            "example": "Element not found: //button[@id='login-submit']",
            "nullable": true,
            "type": "string"
          },
          "password_update_recovery": {
            "additionalProperties": true,
            "description": "Recovery metadata when automatic password rotation was applied to this error.",
            "nullable": true,
            "type": "object"
          },
          "recovery_error_category": {
            "description": "Error category assigned after the recovery agent reclassified the error.",
            "nullable": true,
            "type": "string"
          },
          "recovery_error_sub_type": {
            "description": "Error sub-type assigned after the recovery agent reclassified the error.",
            "nullable": true,
            "type": "string"
          },
          "recovery_reclassification_reason": {
            "description": "Why the recovery agent reclassified the error.",
            "nullable": true,
            "type": "string"
          },
          "recovery_reclassification_source": {
            "description": "What triggered the recovery reclassification.",
            "nullable": true,
            "type": "string"
          },
          "same_error_reuse": {
            "additionalProperties": true,
            "description": "Metadata when this error's classification was reused from an earlier identical error.",
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "message",
          "error_id",
          "full_url",
          "created_at",
          "error_code",
          "action_type",
          "action_display_name",
          "llm_error_category",
          "llm_error_sub_type",
          "llm_error_description",
          "original_error",
          "node_id",
          "input_recovery",
          "password_update_recovery",
          "classification_stage",
          "same_error_reuse",
          "recovery_error_category",
          "recovery_error_sub_type",
          "recovery_reclassification_source",
          "recovery_reclassification_reason"
        ],
        "type": "object"
      },
      "RunFileUrlDto": {
        "properties": {
          "file_name": {
            "description": "Original name of the file.",
            "example": "file.csv",
            "type": "string"
          },
          "metadata": {
            "additionalProperties": true,
            "description": "Additional metadata about the file.",
            "type": "object"
          },
          "signed_file_url": {
            "description": "Temporary URL of the file. It answers with a 302 to a short-lived signed URL, so follow redirects. Its validity is set per workspace (default 7 days, range 1 hour to 7 days).",
            "example": "https://files.cloudcruise.com/v1/f/<token>",
            "type": "string"
          },
          "signed_file_url_expires": {
            "description": "When the signed file URL expires.",
            "example": "2025-06-11T20:45:11.669Z",
            "format": "date-time",
            "type": "string"
          },
          "timestamp": {
            "description": "When the file was uploaded.",
            "example": "2025-06-04T20:45:11.669Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "signed_file_url",
          "file_name",
          "timestamp",
          "signed_file_url_expires"
        ],
        "type": "object"
      },
      "RunNetworkEventDto": {
        "properties": {
          "category": {
            "description": "Kind of traffic, classified from the URL and content type.",
            "enum": [
              "api",
              "graphql",
              "analytics",
              "feature_flags",
              "maps",
              "assets",
              "unknown"
            ],
            "example": "api",
            "type": "string"
          },
          "content_type": {
            "description": "Content type of the response, or null when it had none.",
            "example": "application/json",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Identifier of the captured request, unique within one attempt of the run.",
            "type": "string"
          },
          "method": {
            "description": "HTTP method of the request.",
            "example": "POST",
            "type": "string"
          },
          "request_body": {
            "description": "Request body as text. Values under known secret keys, and values shaped like JWTs, emails, phone or card numbers, are redacted; requests to login, token and other auth URLs have the whole body redacted. Redaction matches patterns only, so an unusual key or format can come back as captured. Null when there was no body or it was omitted; see `request_truncated`.",
            "nullable": true,
            "type": "string"
          },
          "request_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Request headers by name. Known auth and cookie headers read `[REDACTED]`; other headers come back as captured.",
            "type": "object"
          },
          "request_truncated": {
            "description": "True when the request body was cut at capture or left out to keep the response under its size limit.",
            "type": "boolean"
          },
          "response_body": {
            "description": "Response body as text, redacted the same way as `request_body`. Null when there was no body or it was omitted; see `response_truncated`.",
            "nullable": true,
            "type": "string"
          },
          "response_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Response headers by name. Known auth and cookie headers read `[REDACTED]`; other headers come back as captured.",
            "type": "object"
          },
          "response_truncated": {
            "description": "True when the response body was cut at capture or left out to keep the response under its size limit.",
            "type": "boolean"
          },
          "retry": {
            "description": "Attempt of the run the request was captured in, starting at 0. A retried run captures each attempt separately.",
            "example": 0,
            "type": "number"
          },
          "status": {
            "description": "HTTP status of the response, or 0 when the browser recorded no response.",
            "example": 200,
            "type": "number"
          },
          "timestamp": {
            "description": "When the browser sent the request, as captured.",
            "example": "2025-01-15T10:30:02.120Z",
            "type": "string"
          },
          "url": {
            "description": "Full URL of the request, with the values of known secret query parameters such as `token` or `code` redacted.",
            "example": "https://portal.example.com/api/claims?page=1",
            "type": "string"
          }
        },
        "required": [
          "id",
          "retry",
          "timestamp",
          "method",
          "status",
          "url",
          "category",
          "content_type",
          "request_headers",
          "response_headers",
          "request_body",
          "response_body",
          "request_truncated",
          "response_truncated"
        ],
        "type": "object"
      },
      "RunNetworkResponseDto": {
        "properties": {
          "complete": {
            "description": "True when the run has ended (success, failed or stopped), so no more traffic will be captured.",
            "example": true,
            "type": "boolean"
          },
          "events": {
            "description": "Captured requests, oldest first.",
            "items": {
              "$ref": "#/components/schemas/RunNetworkEventDto"
            },
            "type": "array"
          },
          "omitted_bodies": {
            "description": "Number of request and response bodies left out because the response reached its size limit. Those events have a null body and the matching `*_truncated` flag set.",
            "example": 0,
            "type": "number"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "complete",
          "omitted_bodies",
          "events"
        ],
        "type": "object"
      },
      "RunPasswordRecoveryDto": {
        "properties": {
          "message": {
            "description": "Human-readable progress message for the current phase.",
            "type": "string"
          },
          "phase": {
            "description": "Current phase of automatic password recovery: started, analyzing_form, submitting, verifying, resuming, completed or failed.",
            "type": "string"
          },
          "resume_mode": {
            "description": "Where the run resumes after recovery: login or original_node.",
            "type": "string"
          },
          "updated_at": {
            "description": "When the phase was last updated.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "phase",
          "message",
          "updated_at"
        ],
        "type": "object"
      },
      "RunResultsDto": {
        "properties": {
          "adoptable_error_ids": {
            "description": "error_id values of recovered popup errors that can be adopted into the workflow with the Builder Agent.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "description": "When the run was created. Present only when `details_expired` is true.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "cumulative_duration": {
            "description": "Total execution time of the run across attempts, in seconds.",
            "type": "number"
          },
          "data": {
            "additionalProperties": true,
            "description": "Output data of the run, shaped by the workflow's data model. Null until the run has produced output, and when `details_expired` is true.",
            "example": {
              "your_defined_datamodel": "example_value"
            },
            "nullable": true,
            "type": "object"
          },
          "details_expired": {
            "description": "True when the run's details were deleted under the workspace's retention policy. Only summary fields remain. Present only when `details_expired` is true.",
            "type": "boolean"
          },
          "encrypted_variables": {
            "description": "Keys of input_variables whose values are encrypted. Use it to tell which input variables hold sensitive data that should not be shown in plaintext.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "errors": {
            "description": "Errors the run hit, newest first. Empty when `details_expired` is true.",
            "items": {
              "$ref": "#/components/schemas/RunErrorDto"
            },
            "type": "array"
          },
          "execution_end": {
            "description": "When execution ended. Present only when `details_expired` is true.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "execution_start": {
            "description": "When execution began. Present only when `details_expired` is true.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "file_urls": {
            "description": "Files the run downloaded or generated. Null when there are none.",
            "items": {
              "$ref": "#/components/schemas/RunFileUrlDto"
            },
            "nullable": true,
            "type": "array"
          },
          "finalized_at": {
            "description": "When the run reached its final status.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "finalized_by": {
            "description": "Which component finalized the run: end_run, sweeper or dispatcher.",
            "nullable": true,
            "type": "string"
          },
          "input_variables": {
            "additionalProperties": true,
            "description": "Variables provided when the run started: workflow inputs and vault credential references. Vault credentials are referenced by permissioned_user_id, as a single string or an array for credential pooling. Empty when `details_expired` is true.",
            "nullable": true,
            "type": "object"
          },
          "maintenance_video_urls": {
            "description": "Partial clips recorded mid-run for the maintenance agent. Filled only for admins; empty for everyone else.",
            "items": {
              "$ref": "#/components/schemas/RunVideoUrlDto"
            },
            "type": "array"
          },
          "organization_id": {
            "description": "Organization the run belonged to. Present only when `details_expired` is true.",
            "type": "string"
          },
          "password_recovery": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunPasswordRecoveryDto"
              }
            ],
            "description": "State of automatic password recovery, when the run attempted one.",
            "nullable": true,
            "type": "object"
          },
          "recovered_by_decision": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunDecisionRecoveryDto"
              }
            ],
            "description": "Set when a recovery in this run came from a decision: a saved decision applied automatically, or a person's answer.",
            "nullable": true,
            "type": "object"
          },
          "recovered_error_ids": {
            "description": "error_id values from errors that the Maintenance Agent recovered.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "retention_deleted_at": {
            "description": "When the run's details were deleted. Present only when `details_expired` is true.",
            "format": "date-time",
            "type": "string"
          },
          "retention_notice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RetentionNoticeDto"
              }
            ],
            "description": "Set when some of the run's artifacts may already be deleted because a shorter retention period than the workspace's current one has expired for this run.",
            "nullable": true,
            "type": "object"
          },
          "retention_policy_days": {
            "description": "Retention period, in days, that deleted the run's details. Present only when `details_expired` is true.",
            "type": "number"
          },
          "screenshot_urls": {
            "description": "Screenshots taken during the run.",
            "items": {
              "$ref": "#/components/schemas/RunScreenshotUrlDto"
            },
            "type": "array"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "type": "string"
          },
          "session_retries": {
            "description": "Number of times the run was retried after recoverable errors, such as service unavailable. Null if it was never retried.",
            "nullable": true,
            "type": "number"
          },
          "status": {
            "description": "Execution status of the run: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped. Only execution.success, execution.failed and execution.stopped are final; a run that will be retried reports execution.requeued, never execution.failed.",
            "example": "execution.success",
            "type": "string"
          },
          "test_mode": {
            "description": "Test mode the run executed in, if any. Present only when `details_expired` is true.",
            "nullable": true,
            "type": "string"
          },
          "vault_entries": {
            "additionalProperties": {
              "$ref": "#/components/schemas/RunVaultEntryDto"
            },
            "description": "Vault credentials used in the run, keyed by the credential alias defined in the workflow's vault_schema. Identifies each credential; never contains its username or password.",
            "nullable": true,
            "type": "object"
          },
          "video_urls": {
            "description": "Screen recordings of the run, one per attempt.",
            "items": {
              "$ref": "#/components/schemas/RunVideoUrlDto"
            },
            "type": "array"
          },
          "was_recovered": {
            "description": "Whether the Maintenance Agent recovered at least one error in this run.",
            "type": "boolean"
          },
          "workflow_id": {
            "description": "Identifier of the workflow that ran.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "nullable": true,
            "type": "string"
          },
          "workflow_version_id": {
            "description": "Identifier of the exact workflow version the run executed. Missing when `details_expired` is true.",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "Workspace the run belonged to. Present only when `details_expired` is true.",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "status",
          "workflow_id",
          "data",
          "input_variables",
          "vault_entries",
          "encrypted_variables",
          "session_retries",
          "cumulative_duration",
          "errors",
          "video_urls",
          "maintenance_video_urls",
          "file_urls",
          "screenshot_urls",
          "was_recovered",
          "recovered_error_ids"
        ],
        "type": "object"
      },
      "RunScreenshotUrlDto": {
        "properties": {
          "error_screenshot": {
            "description": "Whether the screenshot was taken during an error.",
            "example": false,
            "type": "boolean"
          },
          "full_length_screenshot": {
            "description": "Whether the screenshot captures the full page length.",
            "type": "boolean"
          },
          "metadata": {
            "additionalProperties": true,
            "description": "Additional metadata about the screenshot.",
            "type": "object"
          },
          "node_display_name": {
            "description": "Name of the workflow node where the screenshot was taken.",
            "example": "Button",
            "type": "string"
          },
          "node_id": {
            "description": "ID of the workflow node where the screenshot was taken.",
            "type": "string"
          },
          "retry_index": {
            "description": "Index of the run attempt that took the screenshot.",
            "type": "number"
          },
          "signed_screenshot_url": {
            "description": "Temporary URL of the screenshot.",
            "example": "https://www.example.com/screenshot.png",
            "type": "string"
          },
          "signed_screenshot_url_expires": {
            "description": "When the screenshot URL expires.",
            "example": "2024-01-01T00:00:00.000000+00:00",
            "type": "string"
          },
          "timestamp": {
            "description": "When the screenshot was captured.",
            "example": "2024-01-01T00:00:00.000000+00:00",
            "type": "string"
          }
        },
        "required": [
          "signed_screenshot_url",
          "node_display_name",
          "timestamp",
          "signed_screenshot_url_expires",
          "error_screenshot"
        ],
        "type": "object"
      },
      "RunVaultEntryDto": {
        "properties": {
          "DOMAIN": {
            "description": "Target domain of the credential.",
            "type": "string"
          },
          "USER_ALIAS": {
            "description": "Human-readable alias of the vault entry.",
            "nullable": true,
            "type": "string"
          },
          "USER_ID": {
            "description": "The permissioned_user_id of the vault entry.",
            "type": "string"
          }
        },
        "required": [
          "USER_ID",
          "USER_ALIAS",
          "DOMAIN"
        ],
        "type": "object"
      },
      "RunVideoUrlDto": {
        "properties": {
          "is_partial": {
            "description": "True for a partial clip recorded mid-run. Only appears in maintenance_video_urls.",
            "type": "boolean"
          },
          "recording_started_at": {
            "description": "When the recording started capturing, the true start of the video. Missing on older recordings.",
            "format": "date-time",
            "type": "string"
          },
          "session_id": {
            "description": "Unique identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "type": "string"
          },
          "signed_screen_recording_url": {
            "description": "Temporary URL of the screen recording.",
            "example": "https://www.example.com/screen-recording.mp4",
            "type": "string"
          },
          "signed_screen_recording_url_expires": {
            "description": "When the screen recording URL expires.",
            "example": "2024-01-08T00:00:00.000000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "timestamp": {
            "description": "When the screen recording was uploaded.",
            "example": "2024-01-01T00:00:00.000000+00:00",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "timestamp",
          "session_id",
          "signed_screen_recording_url",
          "signed_screen_recording_url_expires"
        ],
        "type": "object"
      },
      "RunWindowDateDto": {
        "properties": {
          "day": {
            "description": "Day of the month",
            "maximum": 31,
            "minimum": 1,
            "type": "number"
          },
          "month": {
            "description": "Month, 1 to 12",
            "maximum": 12,
            "minimum": 1,
            "type": "number"
          },
          "year": {
            "description": "Year",
            "example": 2026,
            "type": "number"
          }
        },
        "required": [
          "year",
          "month",
          "day"
        ],
        "type": "object"
      },
      "RunWindowDay": {
        "description": "Day the period starts",
        "enum": [
          "MONDAY",
          "TUESDAY",
          "WEDNESDAY",
          "THURSDAY",
          "FRIDAY",
          "SATURDAY",
          "SUNDAY"
        ],
        "type": "string"
      },
      "RunWindowDto": {
        "properties": {
          "regular_hours": {
            "description": "Weekly periods in which runs may start. A period belongs to the day it starts and may end on the next day.",
            "items": {
              "$ref": "#/components/schemas/RunWindowRegularPeriodDto"
            },
            "type": "array"
          },
          "special_hours": {
            "description": "Overrides of the weekly hours for particular dates. For any date, dated entries win over recurring ones, which win over `regular_hours`.",
            "items": {
              "$ref": "#/components/schemas/RunWindowSpecialHoursDto"
            },
            "type": "array"
          },
          "time_zone": {
            "description": "IANA time zone the hours are evaluated in",
            "example": "America/Chicago",
            "type": "string"
          }
        },
        "required": [
          "time_zone",
          "regular_hours"
        ],
        "type": "object"
      },
      "RunWindowIssueDto": {
        "properties": {
          "message": {
            "description": "What the problem is",
            "type": "string"
          },
          "path": {
            "description": "Location of the problem in the submitted window",
            "example": "special_hours[0].recurrence_start",
            "type": "string"
          }
        },
        "required": [
          "path",
          "message"
        ],
        "type": "object"
      },
      "RunWindowRegularPeriodDto": {
        "properties": {
          "active_end_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDay"
              }
            ],
            "description": "Day the period ends: the start day or the day after it"
          },
          "active_end_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowTimeDto"
              }
            ],
            "description": "Time the period ends, after the start"
          },
          "active_start_day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDay"
              }
            ],
            "description": "Day the period starts"
          },
          "active_start_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowTimeDto"
              }
            ],
            "description": "Time the period starts"
          }
        },
        "required": [
          "active_start_day",
          "active_start_time",
          "active_end_day",
          "active_end_time"
        ],
        "type": "object"
      },
      "RunWindowResponseDto": {
        "properties": {
          "run_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDto"
              }
            ],
            "description": "The workflow's run window, or null when it has none",
            "nullable": true,
            "type": "object"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowStateDto"
              }
            ],
            "description": "Whether the window is open now and when it next opens, or null when the workflow has no window",
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "run_window",
          "state"
        ],
        "type": "object"
      },
      "RunWindowSpecialHoursDto": {
        "properties": {
          "active": {
            "description": "`true` opens the given hours on matching dates; `false` closes the whole date",
            "type": "boolean"
          },
          "active_end_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowTimeDto"
              }
            ],
            "description": "Time the hours close, after the start. Required when `active` is true."
          },
          "active_start_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowTimeDto"
              }
            ],
            "description": "Time the hours open. Required when `active` is true."
          },
          "end_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDateDto"
              }
            ],
            "description": "Last day of a dated entry, not before `start_date`. Defaults to `start_date`."
          },
          "label": {
            "description": "Name shown for the entry",
            "example": "Thanksgiving",
            "type": "string"
          },
          "recurrence": {
            "description": "RFC 5545 recurrence rule for a recurring entry. Only DAILY, WEEKLY, MONTHLY and YEARLY frequencies are supported.",
            "example": "FREQ=MONTHLY;BYDAY=1SA",
            "type": "string"
          },
          "recurrence_start": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDateDto"
              }
            ],
            "description": "First date the recurrence counts from. Required with `recurrence`."
          },
          "start_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDateDto"
              }
            ],
            "description": "First day of a dated entry. Send either `start_date` or `recurrence`, not both."
          }
        },
        "required": [
          "active"
        ],
        "type": "object"
      },
      "RunWindowStateDto": {
        "properties": {
          "nextOpenAt": {
            "description": "When the window next opens. Null when it is open now, or when no opening falls within the next 400 days.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "open": {
            "description": "Whether runs may start right now",
            "type": "boolean"
          }
        },
        "required": [
          "open",
          "nextOpenAt"
        ],
        "type": "object"
      },
      "RunWindowTimeDto": {
        "properties": {
          "hours": {
            "description": "Hour, 0 to 23",
            "maximum": 23,
            "minimum": 0,
            "type": "number"
          },
          "minutes": {
            "description": "Minute, 0 to 59. Left out means 0.",
            "maximum": 59,
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "hours"
        ],
        "type": "object"
      },
      "RunWindowWriteResponseDto": {
        "properties": {
          "run_window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowDto"
              }
            ],
            "description": "The workflow's run window, or null when it has none",
            "nullable": true,
            "type": "object"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunWindowStateDto"
              }
            ],
            "description": "Whether the window is open now and when it next opens, or null when the workflow has no window",
            "nullable": true,
            "type": "object"
          },
          "warnings": {
            "description": "Problems that did not stop the save, such as a `recurrence_start` that does not match its rule",
            "items": {
              "$ref": "#/components/schemas/RunWindowIssueDto"
            },
            "type": "array"
          }
        },
        "required": [
          "run_window",
          "state",
          "warnings"
        ],
        "type": "object"
      },
      "SaveAgentWorkflowDto": {
        "properties": {
          "versionNote": {
            "default": "Saved from API",
            "description": "Note stored with the new workflow version",
            "maxLength": 2048,
            "type": "string"
          }
        },
        "type": "object"
      },
      "SaveWorkflowFromEditorDto": {
        "properties": {
          "versionNote": {
            "maxLength": 2048,
            "type": "string"
          }
        },
        "type": "object"
      },
      "SavedWorkflowDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "Branch this version was saved to. On update, the branch to save to; left out, the save goes to the workflow's default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "bump_type": {
            "description": "How `version` was derived from its parent, or null when it was chosen explicitly or has no parent",
            "enum": [
              "major",
              "minor",
              "patch"
            ],
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "component_imports": {
            "description": "Components this workflow imports",
            "items": {
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "nullable": true,
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "nullable": true,
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "nullable": true,
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "nullable": true,
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "extract_network_urls": {
            "description": "URL patterns to extract from network traffic during execution",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder the workflow is filed under, or null when it is at the top level",
            "nullable": true,
            "type": "string"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow. On create, the new workflow gets this id, or a generated one when it is left out; an id another workspace holds is rejected with `409 WORKFLOW_ID_TAKEN`. On update, send the saved id or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "local_components": {
            "description": "Components defined inside this workflow",
            "items": {
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "major": {
            "description": "Major part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "nullable": true,
            "type": "number"
          },
          "merge_parent_version_id": {
            "description": "For a merge, the head of the branch that was merged in",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor": {
            "description": "Minor part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "nullable": true,
            "type": "object"
          },
          "parent_version_id": {
            "description": "The version this one was saved on top of",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "patch": {
            "description": "Patch part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that should be automatically dismissed",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration setting: `country`, `static`, `custom`, `random` or `off`",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "nullable": true,
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "type": "string"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Schema defining vault credentials and their configuration",
            "nullable": true,
            "type": "object"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version",
            "example": "2.1.0",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this workflow version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_note": {
            "description": "Optional note describing what changed in this version",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to. On a write, send the caller's workspace or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "description",
          "output_schema",
          "vault_schema",
          "enable_incorrect_form_input_recovery",
          "enable_password_update_recovery",
          "proxy_setting",
          "extract_network_urls",
          "encrypted_keys",
          "popup_xpaths",
          "component_imports",
          "local_components",
          "version_note",
          "max_retries",
          "folder_path",
          "updated_at"
        ],
        "type": "object"
      },
      "SearchResultDto": {
        "properties": {
          "href": {
            "description": "Dashboard path of the record.",
            "example": "/workflows/d4e5f6a7-89ab-45cd-ef01-456789012abc/workflow",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the record: workflow, run session, vault entry, webhook, member, organization or builder conversation ID.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "type": "string"
          },
          "label": {
            "description": "Display name of the record.",
            "example": "Invoice download",
            "type": "string"
          },
          "matchedField": {
            "description": "For a run, whether the match was in its error, its result or its input.",
            "enum": [
              "error",
              "result",
              "input"
            ],
            "type": "string"
          },
          "snippet": {
            "description": "For a run, the matched text in context.",
            "example": "...could not find invoice 4411...",
            "type": "string"
          },
          "status": {
            "description": "For a run, its execution status.",
            "example": "execution.failed",
            "type": "string"
          },
          "sublabel": {
            "description": "Secondary text, such as a run's workflow name or a member's email.",
            "example": "Invoice download",
            "type": "string"
          },
          "timestamp": {
            "description": "For a run, when it was created.",
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "description": "What kind of record matched.",
            "enum": [
              "workflow",
              "session",
              "vault",
              "webhook",
              "member",
              "organization",
              "conversation"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "label",
          "href"
        ],
        "type": "object"
      },
      "SecretProviderCapabilitiesHintDto": {
        "properties": {
          "item_listing": {
            "description": "Whether the provider supports listing its items. Updated each time the connection is tested.",
            "type": "boolean"
          }
        },
        "required": [
          "item_listing"
        ],
        "type": "object"
      },
      "SecretProviderConfigHintDto": {
        "properties": {
          "account_id": {
            "description": "1Password only: the 1Password account, if one was set.",
            "type": "string"
          },
          "base_url": {
            "description": "Custom HTTP only: base URL CloudCruise calls.",
            "example": "https://secrets.example.com/cloudcruise",
            "type": "string"
          },
          "capabilities": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretProviderCapabilitiesHintDto"
              }
            ],
            "description": "Custom HTTP only: what the provider reported it supports."
          },
          "host": {
            "description": "Host of the provider: the 1Password Connect host if one was set, or the host of a custom HTTP provider's base URL.",
            "example": "secrets.example.com",
            "type": "string"
          },
          "signing_secrets": {
            "description": "Custom HTTP only: the signing secrets CloudCruise signs requests with, without their values.",
            "items": {
              "$ref": "#/components/schemas/SecretProviderSigningSecretHintDto"
            },
            "type": "array"
          },
          "token_last_four": {
            "description": "1Password only: last four characters of the service-account token.",
            "example": "x7Qa",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SecretProviderDto": {
        "properties": {
          "cache_ttl_seconds": {
            "description": "Default number of seconds resolved secrets are cached for vault entries bound to this connection.",
            "example": 300,
            "type": "number"
          },
          "config_hint": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretProviderConfigHintDto"
              }
            ],
            "description": "Non-sensitive hints about the connection. Never includes the connection's token or signing secrets.",
            "nullable": true,
            "type": "object"
          },
          "created_at": {
            "description": "When the connection was created.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Connection identifier. Use it as secret_provider_id on a vault entry.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Human-readable connection name, unique in the workspace.",
            "example": "Production 1Password",
            "type": "string"
          },
          "provider_type": {
            "description": "The external secret provider.",
            "enum": [
              "1password",
              "custom_http"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "When the connection was last updated.",
            "format": "date-time",
            "type": "string"
          },
          "workspace_id": {
            "description": "The workspace this connection belongs to.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspace_id",
          "provider_type",
          "name",
          "config_hint",
          "cache_ttl_seconds",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "SecretProviderItemDto": {
        "properties": {
          "id": {
            "description": "Provider-native item identifier.",
            "type": "string"
          },
          "ref": {
            "description": "Reference to use as secret_ref on a vault entry, such as op://<vaultId>/<itemId>.",
            "example": "op://abc123/def456",
            "type": "string"
          },
          "title": {
            "description": "Item display name.",
            "example": "Acme admin",
            "type": "string"
          },
          "vaultId": {
            "description": "Provider-native identifier of the vault holding the item.",
            "type": "string"
          },
          "vaultName": {
            "description": "Display name of the vault holding the item.",
            "example": "Automation",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "vaultId",
          "vaultName",
          "ref"
        ],
        "type": "object"
      },
      "SecretProviderItemNameDto": {
        "properties": {
          "name": {
            "description": "Display name of the referenced item, or null when the provider does not know the reference.",
            "example": "Acme admin",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "SecretProviderOkDto": {
        "properties": {
          "ok": {
            "description": "Always true; failures return an error status instead.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "ok"
        ],
        "type": "object"
      },
      "SecretProviderSigningSecretHintDto": {
        "properties": {
          "created_at": {
            "description": "When the signing secret was added.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the signing secret. Use it to remove the secret.",
            "type": "string"
          },
          "last_four": {
            "description": "Last four characters of the signing secret.",
            "example": "9f3c",
            "type": "string"
          }
        },
        "required": [
          "id",
          "last_four",
          "created_at"
        ],
        "type": "object"
      },
      "SendAgentMessageDto": {
        "properties": {
          "text": {
            "description": "Instruction or reply for the builder. While the builder waits for input, this text answers its question.",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "SentryConfigDto": {
        "properties": {
          "auth_token": {
            "description": "Sentry auth token with access to the project. CloudCruise stores it encrypted and never returns it.",
            "example": "sntrys_eyJpYXQiOjE3MDAwMDAwMDB9",
            "type": "string"
          },
          "event_filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SentryEventFiltersDto"
              }
            ],
            "description": "Which run outcomes to forward. When omitted, successful, failed and stopped runs are all forwarded."
          },
          "organization_slug": {
            "description": "Slug of the Sentry organization.",
            "example": "acme",
            "type": "string"
          },
          "project_slug": {
            "description": "Slug of the Sentry project that receives run events.",
            "example": "browser-agents",
            "type": "string"
          }
        },
        "required": [
          "auth_token",
          "organization_slug",
          "project_slug"
        ],
        "type": "object"
      },
      "SentryConnectionTestResultDto": {
        "properties": {
          "error": {
            "description": "Sentry's error message when the test failed.",
            "example": "Invalid token",
            "type": "string"
          },
          "project_name": {
            "description": "Name of the Sentry project when the test succeeded.",
            "example": "browser-agents",
            "type": "string"
          },
          "success": {
            "description": "Whether Sentry accepted the token for the project.",
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "SentryEventFiltersDto": {
        "properties": {
          "ingest_failed": {
            "description": "Forward failed runs to Sentry.",
            "type": "boolean"
          },
          "ingest_stopped": {
            "description": "Forward stopped runs to Sentry.",
            "type": "boolean"
          },
          "ingest_success": {
            "description": "Forward successful runs to Sentry.",
            "type": "boolean"
          }
        },
        "required": [
          "ingest_success",
          "ingest_failed",
          "ingest_stopped"
        ],
        "type": "object"
      },
      "SessionDto": {
        "properties": {
          "aal": {
            "description": "Authenticator assurance level: aal1 is a password or SSO sign-in, aal2 adds a verified MFA factor.",
            "enum": [
              "aal1",
              "aal2",
              "aal3"
            ],
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "description": "When the session signed in.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Identifier of the login session.",
            "format": "uuid",
            "type": "string"
          },
          "is_expired": {
            "description": "True when the session is past its expiry time.",
            "type": "boolean"
          },
          "is_stale": {
            "description": "True when the session has not refreshed in 30 days.",
            "type": "boolean"
          },
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SessionLocationDto"
              }
            ],
            "description": "Approximate location of the session's IP address. Null when the IP is unknown, private or cannot be resolved.",
            "nullable": true,
            "type": "object"
          },
          "refreshed_at": {
            "description": "When the session last refreshed its token.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "user_agent": {
            "description": "User agent of the browser or client that signed in.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_agent",
          "created_at",
          "refreshed_at",
          "aal",
          "is_expired",
          "is_stale",
          "location"
        ],
        "type": "object"
      },
      "SessionLocationDto": {
        "properties": {
          "city": {
            "description": "City the session's IP address resolves to.",
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code the session's IP address resolves to.",
            "nullable": true,
            "type": "string"
          },
          "region": {
            "description": "Region or state the session's IP address resolves to.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "city",
          "region",
          "country"
        ],
        "type": "object"
      },
      "SessionTraceDto": {
        "properties": {
          "input": {
            "additionalProperties": true,
            "description": "What the step sent to the model, without system prompts. Chat calls carry `messages`. Images appear as `@@@langfuseMedia:type=<mime>|id=<mediaId>|source=<source>@@@` references; fetch one with the trace media operation.",
            "type": "object"
          },
          "latency": {
            "description": "How long the step took, in seconds, to one decimal place for recorded steps.",
            "example": 1.42,
            "type": "number"
          },
          "name": {
            "description": "Name of the traced operation.",
            "example": "node-select-fuzzy-match",
            "type": "string"
          },
          "nodeId": {
            "description": "Identifier of the workflow node the step belongs to.",
            "example": "0b1c2d3e-4f50-4617-8899-aabbccddeeff",
            "type": "string"
          },
          "nodeName": {
            "description": "Name of the workflow node.",
            "example": "Click login",
            "type": "string"
          },
          "output": {
            "additionalProperties": true,
            "description": "What the model answered, as recorded. Usually an object; null when the step recorded no output.",
            "nullable": true,
            "type": "object"
          },
          "timestamp": {
            "description": "When the step started.",
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "description": "The node's type, such as `CLICK` or `INPUT_TEXT`.",
            "enum": [
              "API_FLOW",
              "APP_ACTION",
              "BOOL_CONDITION",
              "CAPTCHA",
              "CLICK",
              "COMPONENT_CALL",
              "DELAY",
              "END",
              "EXTRACT_DATAMODEL",
              "EXTRACT_NETWORK",
              "FILE_DOWNLOAD",
              "FILE_UPLOAD",
              "INPUT_SELECT",
              "INPUT_TEXT",
              "LOOP",
              "NAVIGATE",
              "SCREENSHOT",
              "SCROLL",
              "START",
              "TAB_MANAGEMENT",
              "TFA",
              "TRANSFORM",
              "USER_INTERACTION",
              "WINDOW_MANAGEMENT"
            ],
            "example": "CLICK",
            "type": "string"
          }
        },
        "required": [
          "input",
          "output",
          "latency",
          "nodeId",
          "nodeName",
          "type",
          "timestamp"
        ],
        "type": "object"
      },
      "SetConversationWorkspaceShareDto": {
        "properties": {
          "sharedWithWorkspace": {
            "description": "True shares the conversation with every member of its workspace; false stops sharing it",
            "type": "boolean"
          }
        },
        "required": [
          "sharedWithWorkspace"
        ],
        "type": "object"
      },
      "SlackChannelDto": {
        "properties": {
          "id": {
            "description": "Slack channel identifier.",
            "example": "C01ABCDEF",
            "type": "string"
          },
          "is_member": {
            "description": "Whether the CloudCruise Slack app is a member of the channel. It must be a member of a private channel to post there.",
            "type": "boolean"
          },
          "is_private": {
            "description": "Whether the channel is private.",
            "type": "boolean"
          },
          "name": {
            "description": "Channel name, without the leading #.",
            "example": "alerts",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "SlackConnectStartedDto": {
        "properties": {
          "redirectUrl": {
            "description": "Slack authorization page. A workspace member must open it in a browser and approve the CloudCruise app; Slack then returns them to the dashboard's integration settings. The link expires after a few minutes.",
            "example": "https://slack.com/oauth/v2/authorize?client_id=123.456&scope=channels%3Aread&redirect_uri=https%3A%2F%2Fapi.cloudcruise.com%2Fintegrations%2Fslack%2Foauth%2Fcallback&state=3f9a",
            "type": "string"
          }
        },
        "required": [
          "redirectUrl"
        ],
        "type": "object"
      },
      "SlackDestinationConfigDto": {
        "properties": {
          "mentions": {
            "description": "Slack members and user groups to mention in this channel's notifications. At most 50.",
            "items": {
              "$ref": "#/components/schemas/SlackMentionRefDto"
            },
            "maxItems": 50,
            "type": "array"
          }
        },
        "type": "object"
      },
      "SlackMentionRefDto": {
        "properties": {
          "id": {
            "description": "Slack member or user group ID, from the Slack member or user group listings. Give it or `name`.",
            "example": "U01ABCDEF",
            "type": "string"
          },
          "name": {
            "description": "Member display name or group handle. Without `id`, the server looks it up in the connected Slack workspace.",
            "example": "Jane Doe",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
          },
          "type": {
            "default": "user",
            "description": "Whether to mention a Slack member or a user group.",
            "enum": [
              "user",
              "group"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "SlackUserDto": {
        "properties": {
          "avatar": {
            "description": "URL of the member's avatar image.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Slack member identifier, used to mention the member.",
            "example": "U01ABCDEF",
            "type": "string"
          },
          "name": {
            "description": "The member's display name.",
            "example": "Jane Doe",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "SlackUserGroupDto": {
        "properties": {
          "handle": {
            "description": "The group's @-handle, without the @.",
            "example": "oncall",
            "type": "string"
          },
          "id": {
            "description": "Slack user group identifier, used to mention the group.",
            "example": "S01ABCDEF",
            "type": "string"
          },
          "name": {
            "description": "The group's display name.",
            "example": "On-call engineers",
            "type": "string"
          }
        },
        "required": [
          "id",
          "handle",
          "name"
        ],
        "type": "object"
      },
      "SsoConfigurationDto": {
        "properties": {
          "attribute_mapping": {
            "additionalProperties": true,
            "description": "Supabase Auth SAML attribute mapping from IdP attributes to user fields. Null uses the defaults.",
            "nullable": true,
            "type": "object"
          },
          "created_at": {
            "description": "Time the configuration was created.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the configuration.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "enforced": {
            "description": "Whether SSO is required for the domain: password sign-in and sign-up are blocked for its users.",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier of the SSO configuration.",
            "format": "uuid",
            "type": "string"
          },
          "idp_certificate": {
            "description": "The identity provider's public x509 signing certificate, PEM-encoded.",
            "type": "string"
          },
          "idp_entity_id": {
            "description": "SAML entity ID (issuer) of the identity provider.",
            "type": "string"
          },
          "idp_sso_url": {
            "description": "HTTPS sign-on URL of the identity provider.",
            "format": "uri",
            "type": "string"
          },
          "organization_id": {
            "description": "ID of the organization.",
            "format": "uuid",
            "type": "string"
          },
          "supabase_sso_provider_id": {
            "description": "ID of the SAML provider registered in Supabase Auth for this configuration.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "Time the configuration was last updated.",
            "format": "date-time",
            "type": "string"
          },
          "verified_domain_id": {
            "description": "ID of the verified domain whose users sign in through this configuration.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "verified_domain_id",
          "enforced",
          "idp_entity_id",
          "idp_sso_url",
          "idp_certificate",
          "attribute_mapping",
          "supabase_sso_provider_id",
          "created_at",
          "updated_at",
          "created_by"
        ],
        "type": "object"
      },
      "SsoConfigurationListDto": {
        "properties": {
          "count": {
            "description": "Total number of the organization's SSO configurations.",
            "type": "integer"
          },
          "data": {
            "description": "The organization's SSO configurations, newest first, at most 50.",
            "items": {
              "$ref": "#/components/schemas/SsoConfigurationDto"
            },
            "type": "array"
          }
        },
        "required": [
          "data",
          "count"
        ],
        "type": "object"
      },
      "StartAgentSessionDto": {
        "properties": {
          "authUrl": {
            "description": "The domain of the vault entry named by `permissionedUserId`, as the vault lists it",
            "format": "uri",
            "type": "string"
          },
          "description": {
            "description": "What the workflow should do. Defaults to empty.",
            "type": "string"
          },
          "enableNetworkListener": {
            "description": "Capture the browser's network traffic during the session",
            "type": "boolean"
          },
          "inputSchema": {
            "description": "JSON schema of the workflow's input variables",
            "type": "object"
          },
          "jsonExample": {
            "additionalProperties": true,
            "description": "Example input values the builder uses while it builds and test-runs the workflow",
            "type": "object"
          },
          "name": {
            "description": "Name of the new workflow",
            "type": "string"
          },
          "permissionedUserId": {
            "description": "The `permissioned_user_id` of a vault entry the builder logs in with. Send with `authUrl`.",
            "type": "string"
          },
          "proxySetting": {
            "description": "Proxy for the builder's browser. Defaults to `country` with `proxyValue` US.",
            "enum": [
              "country",
              "static",
              "random",
              "off"
            ],
            "type": "string"
          },
          "proxyValue": {
            "description": "Country code for the `country` setting, or an IP address for `static`",
            "type": "string"
          },
          "startUrl": {
            "description": "URL the builder's browser opens first",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "name",
          "startUrl"
        ],
        "type": "object"
      },
      "StartAgentSessionFromFailedRunDto": {
        "properties": {
          "errorId": {
            "description": "ID of the run error to repair: an `error_id` from the run's `errors`",
            "type": "string"
          },
          "inputVariables": {
            "additionalProperties": true,
            "description": "Input variables for the repair run. Defaults to the failed run's own inputs and credentials.",
            "type": "object"
          },
          "instructions": {
            "description": "First message to the builder. Defaults to `defaultInstructions` from the repair eligibility check.",
            "type": "string"
          },
          "sessionId": {
            "description": "ID of the failed run (its session ID)",
            "type": "string"
          },
          "targetNodeId": {
            "deprecated": true,
            "description": "Ignored. The builder opens at the failing node on its own.",
            "type": "string"
          },
          "useLastBrowserState": {
            "description": "Start the builder's browser with the browser state saved from the last run",
            "type": "boolean"
          }
        },
        "required": [
          "sessionId",
          "errorId"
        ],
        "type": "object"
      },
      "StartAgentSessionFromWorkflowDto": {
        "properties": {
          "authUrl": {
            "description": "The domain of the vault entry named by `permissionedUserId`, as the vault lists it",
            "format": "uri",
            "type": "string"
          },
          "branchId": {
            "description": "Edit this branch's latest version; saves go to this branch. Defaults to the default branch. With versionId, the version must be on this branch.",
            "format": "uuid",
            "type": "string"
          },
          "fromConversationId": {
            "description": "ID of an ended builder conversation to resume from its saved copy of the workflow. Cannot be combined with `branchId` or `versionId`.",
            "type": "string"
          },
          "inputVariables": {
            "additionalProperties": true,
            "description": "Input values for the builder's test runs",
            "type": "object"
          },
          "permissionedUserId": {
            "description": "The `permissioned_user_id` of a vault entry the builder logs in with. Send with `authUrl`.",
            "type": "string"
          },
          "targetNodeId": {
            "description": "Node to start from. The builder runs the workflow up to this node before it takes messages.",
            "type": "string"
          },
          "useExampleInputs": {
            "description": "Fill input values from the examples in the workflow's input and vault schemas",
            "type": "boolean"
          },
          "useLastBrowserState": {
            "description": "Continue from the browser state of the previous session instead of a fresh browser",
            "type": "boolean"
          },
          "versionId": {
            "description": "Start from this exact workflow version",
            "format": "uuid",
            "type": "string"
          },
          "workflowId": {
            "description": "ID of the workflow to edit. Required unless `fromConversationId` is given.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "StartBuilderFromExistingWorkflowDto": {
        "properties": {
          "branchId": {
            "format": "uuid",
            "type": "string"
          },
          "dryRun": {
            "type": "boolean"
          },
          "fromConversationId": {
            "type": "string"
          },
          "inputVariables": {
            "additionalProperties": true,
            "type": "object"
          },
          "proxySetting": {
            "enum": [
              "country",
              "static",
              "random",
              "off"
            ],
            "type": "string"
          },
          "proxyValue": {
            "type": "string"
          },
          "sourceErrorId": {
            "format": "uuid",
            "type": "string"
          },
          "sourceSessionId": {
            "format": "uuid",
            "type": "string"
          },
          "targetNodeId": {
            "type": "string"
          },
          "useLastBrowserState": {
            "type": "boolean"
          },
          "versionId": {
            "format": "uuid",
            "type": "string"
          },
          "workerId": {
            "type": "string"
          },
          "workflowId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StartNewWorkflowBuilderSessionDto": {
        "properties": {
          "authUrl": {
            "format": "uri",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "enableNetworkListener": {
            "type": "boolean"
          },
          "forceNewSession": {
            "type": "boolean"
          },
          "gpuSpoofing": {
            "type": "boolean"
          },
          "inputSchema": {
            "type": "object"
          },
          "isRestart": {
            "type": "boolean"
          },
          "jsonExample": {
            "additionalProperties": true,
            "type": "object"
          },
          "manualCaptchaSolve": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "permissionedUserId": {
            "type": "string"
          },
          "proxySetting": {
            "enum": [
              "country",
              "static",
              "random",
              "off"
            ],
            "type": "string"
          },
          "proxyValue": {
            "type": "string"
          },
          "startUrl": {
            "format": "uri",
            "type": "string"
          },
          "workerId": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "startUrl"
        ],
        "type": "object"
      },
      "StartRunResponseDto": {
        "properties": {
          "session_id": {
            "description": "Unique identifier of the new run session. Use it to fetch the run's status and results.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ],
        "type": "object"
      },
      "SubscriptionChangeResultDto": {
        "properties": {
          "message": {
            "description": "What happened: an immediate prorated upgrade or a downgrade scheduled for the end of the period.",
            "type": "string"
          },
          "scheduleId": {
            "description": "ID of the Stripe subscription schedule that applies a downgrade at the end of the period. Present only for downgrades.",
            "type": "string"
          },
          "status": {
            "description": "Stripe subscription status after the change, for example `active` or `past_due`. Null when Stripe has no status on record.",
            "nullable": true,
            "type": "string"
          },
          "subscriptionId": {
            "description": "ID of the Stripe subscription that changed.",
            "type": "string"
          }
        },
        "required": [
          "subscriptionId",
          "status",
          "message"
        ],
        "type": "object"
      },
      "SuccessResponseDto": {
        "properties": {
          "success": {
            "description": "Always true; failures return an error status instead",
            "enum": [
              true
            ],
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "TraceMediaDto": {
        "properties": {
          "contentType": {
            "description": "MIME type of the image.",
            "example": "image/png",
            "type": "string"
          },
          "url": {
            "description": "Short-lived signed link to the image. Open or download it before it expires.",
            "example": "https://media.langfuse.com/abc123?X-Amz-Signature=...",
            "type": "string"
          }
        },
        "required": [
          "url",
          "contentType"
        ],
        "type": "object"
      },
      "TurnStateDto": {
        "properties": {
          "conversationId": {
            "description": "ID of the builder conversation",
            "type": "string"
          },
          "humanInput": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HumanInputRequestDto"
              }
            ],
            "description": "The open question. Only when `phase` is `awaiting-human-input`."
          },
          "interrupted": {
            "description": "`true` when the last turn was interrupted, for example by interrupt or the dashboard's Stop button. Only with `phase` `idle`, and gone once the next turn starts.",
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "phase": {
            "description": "`processing`: the turn is still running, poll again. `completed`: the turn finished. `awaiting-human-input`: the builder asks a question, see `humanInput`. `agent-errored`: the turn failed. `idle`: no turn is running, either because none has run yet or because the last one was interrupted (see `interrupted`). `ended`: the session is closed.",
            "enum": [
              "completed",
              "awaiting-human-input",
              "agent-errored",
              "processing",
              "idle",
              "ended"
            ],
            "type": "string"
          },
          "report": {
            "description": "The builder's last reply. Only when `phase` is `completed`, and may be missing even then.",
            "type": "string"
          },
          "turnId": {
            "description": "ID of the message that opened the current turn: the `messageId` that send_message returned. It stays the same while that turn waits for and gets answers, so a `phase` read with an older `turnId` belongs to an earlier turn. `null` until a message opens a turn, for example right after the session starts.",
            "nullable": true,
            "type": "string"
          },
          "workflowId": {
            "description": "ID of the workflow being built. Missing until the builder has created it, and when the session has ended.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversationId",
          "phase",
          "turnId"
        ],
        "type": "object"
      },
      "UnpauseRequestDto": {
        "properties": {
          "pause_resource": {
            "default": "workflow",
            "description": "What kind of hold to lift. `workflow` and `credential` lift a manual pause, including one set by an error code. `run_window` is Run now for a closed run window: it starts the workflow's held runs until the window next opens, and never lifts a manual pause.",
            "enum": [
              "workflow",
              "credential",
              "run_window"
            ],
            "type": "string"
          },
          "resource_ids": {
            "default": [],
            "description": "Resources to unpause. Workflow IDs (UUIDs) for `workflow` and `run_window`; credential IDs of the form `<workspace_id>:<permissioned_user_id>:<domain>` for `credential`. A leading `http://` or `https://` on the domain is ignored.",
            "example": [
              "11223344-5566-7788-9900-112233445566"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "UnpauseRunsResponseDto": {
        "properties": {
          "errors": {
            "description": "When unpausing everything, one entry per pause that could not be lifted, as `workflow:<workflow_id>: <message>` or `credential:<credential_id>: <message>`. Always empty when unpausing listed resources.",
            "example": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "resumedRuns": {
            "description": "Number of held runs moved back to the queue.",
            "example": 3,
            "type": "number"
          },
          "skippedResourceGroups": {
            "description": "Worker groups that were busy and could not be processed. Their runs stay held; unpause the same resources again by ID to release them. After unpausing everything, a periodic sweep also releases them within about 10 minutes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "success": {
            "description": "False when unpausing everything could not lift one or more pauses; `errors` lists them and the rest were lifted. Unpausing listed resources returns an error instead, so it is always true there.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "resumedRuns",
          "skippedResourceGroups",
          "errors"
        ],
        "type": "object"
      },
      "UpdateAgentEndpointDto": {
        "properties": {
          "agentEndpointUrl": {
            "description": "HTTPS URL of your agent endpoint. Runs call it when they need data the workflow can't find, such as a missing input or an Okta Verify approval. Omit or send null to clear it. Private and non-HTTPS addresses are rejected.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateBranchRulesetDto": {
        "properties": {
          "branchPatterns": {
            "description": "Glob patterns (`*` matches any characters) matched against branch names and IDs. Used only when `branchTarget` is `pattern`. Omit to keep the current value",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branchTarget": {
            "description": "Which branches it protects: `default_branch` (each workflow's default branch), `all_branches`, or `pattern` (branches matching `branchPatterns`). Omit to keep the current value",
            "enum": [
              "default_branch",
              "all_branches",
              "pattern"
            ],
            "type": "string"
          },
          "bypassRoles": {
            "description": "Workspace roles that may skip the ruleset: edit matched branches directly, or merge with `force` without approvals. Omit to keep the current value",
            "items": {
              "enum": [
                "owner",
                "member"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "description": "Whether the ruleset applies. A disabled ruleset protects nothing. Omit to keep the current value",
            "type": "boolean"
          },
          "minApprovals": {
            "description": "Approvals a pull request needs when `requireReview` is true. Omit to keep the current value",
            "maximum": 32,
            "minimum": 0,
            "type": "number"
          },
          "name": {
            "description": "Name of the ruleset. Omit to keep the current value",
            "maxLength": 256,
            "type": "string"
          },
          "protected": {
            "description": "Block direct edits to matched branches, so changes must arrive through a merged pull request. Omit to keep the current value",
            "type": "boolean"
          },
          "requireReview": {
            "description": "Require approvals before a pull request can merge into a matched branch. Omit to keep the current value",
            "type": "boolean"
          },
          "workflowPatterns": {
            "description": "Glob patterns (`*` matches any characters) matched against workflow IDs and folder paths. Used only when `workflowScope` is `matching`. Omit to keep the current value",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "workflowScope": {
            "description": "Which workflows it covers: `all` workflows in the workspace, or `matching` (workflows matching `workflowPatterns`). Omit to keep the current value",
            "enum": [
              "all",
              "matching"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateCredentialPauseSettingsDto": {
        "properties": {
          "pause_on_account_locked": {
            "nullable": true,
            "type": "boolean"
          },
          "pause_on_invalid_credentials": {
            "description": "Pause the vault credential a run used when the site rejects its username or password, so queued runs stop retrying it. Null inherits: a workflow inherits the workspace value, and an unset workspace value means off. Omit to keep the current value.",
            "nullable": true,
            "type": "boolean"
          },
          "pause_on_password_update": {
            "description": "Pause the vault credential a run used when the site demands a password change that can't be dismissed. Null inherits as above. Cannot be on while Password Update Recovery is on. Omit to keep the current value.",
            "nullable": true,
            "type": "boolean"
          },
          "pause_on_service_retired": {
            "nullable": true,
            "type": "boolean"
          },
          "workflow_id": {
            "description": "Workflow whose override to set. Omit to set the workspace default.",
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateDataRetentionSettingsDto": {
        "properties": {
          "data_retention_days": {
            "description": "How many days to keep run data. Changing it needs the Scale plan.",
            "enum": [
              1,
              7,
              30,
              90,
              180,
              365
            ],
            "type": "number"
          },
          "file_url_expiration_seconds": {
            "description": "How long signed file and media URLs stay valid, in seconds (at most 30 days).",
            "maximum": 2592000,
            "minimum": 1,
            "type": "number"
          }
        },
        "required": [
          "data_retention_days",
          "file_url_expiration_seconds"
        ],
        "type": "object"
      },
      "UpdateErrorCodeDto": {
        "properties": {
          "description": {
            "description": "Short description of the error, shown on failed runs.",
            "type": "string"
          },
          "enriched_description": {
            "description": "Longer description used to classify errors against this code.",
            "type": "string"
          },
          "error_action": {
            "description": "What CloudCruise does when a run fails with this code. `alert` fails the run and notifies. `retry` requeues the run up to `retries` times (once when `retries` is unset), waiting `retry_after` seconds (at least 10), within the workflow's requeue limits (`allow_requeue`, `max_retries`). `pause_workflow` ends the run as `execution.stopped` and pauses its workflow, so its queued runs stay held (`execution.paused`) until you unpause runs with `pause_resource` set to `workflow`. `pause_credential` ends the run as `execution.stopped` and pauses the vault credential the run used, so only queued runs that use it stay held, until you unpause runs with `pause_resource` set to `credential`. Runs that fail with a code that has no action are handled as `alert`.",
            "enum": [
              "alert",
              "pause_workflow",
              "pause_credential",
              "retry"
            ],
            "type": "string"
          },
          "error_code": {
            "description": "New name. Name of the error code, e.g. `CLAIM_NOT_FOUND`. Must not be blank or match another code in the workspace (case- and whitespace-insensitive).",
            "maxLength": 100,
            "pattern": "\\S",
            "type": "string"
          },
          "retries": {
            "description": "Number of retries when `error_action` is `retry`.",
            "minimum": 0,
            "type": "integer"
          },
          "retry_after": {
            "description": "Seconds to wait between retries when `error_action` is `retry`.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "UpdateErrorHandlingSettingsDto": {
        "properties": {
          "enable_action_timing_recovery": {
            "description": "Retry actions that ran before the page finished loading, with a delay.",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "When the recovery agent reaches a choice it shouldn't make alone, ask a person instead of guessing or failing the run, then carry on from their answer. Defaults to false. False turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Generate and assign error codes to errors that runs hit.",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect.",
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Generate node descriptions from screenshots of successful runs, which improves error classification.",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "When a site forces a password change mid-run, generate a new password, update the vault credential, log in again and resume. Cannot be on while pausing credentials on a required password update is on.",
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Detect unexpected popups during runs and close them with AI, adding their close buttons to the workflow's popup list.",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Retry runs with exponential backoff when an external service is unavailable.",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect.",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Repair broken XPath selectors with AI when an element can't be found.",
            "type": "boolean"
          },
          "input_required_timeout_seconds": {
            "deprecated": true,
            "description": "Retired: accepted and ignored.",
            "type": "number"
          }
        },
        "type": "object"
      },
      "UpdateOrganizationDto": {
        "properties": {
          "image_url": {
            "description": "URL of the organization's logo. Null removes it; left out, it stays the same.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "New name of the organization. Left out, it stays the same.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateOrganizationMemberRoleDto": {
        "properties": {
          "role": {
            "description": "Role in the organization: OWNER manages members, billing, security settings and workspaces; MEMBER uses the workspaces they belong to. The organization's last owner cannot be demoted.",
            "enum": [
              "MEMBER",
              "OWNER"
            ],
            "type": "string"
          },
          "userId": {
            "description": "User whose role to set. If the user is not yet a member, they are added with this role, within the plan's seat limit.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "userId",
          "role"
        ],
        "type": "object"
      },
      "UpdateRequireMfaDto": {
        "properties": {
          "require_mfa": {
            "description": "True to require every member to sign in with multi-factor authentication. Setting it to false needs an MFA-verified session.",
            "type": "boolean"
          }
        },
        "required": [
          "require_mfa"
        ],
        "type": "object"
      },
      "UpdateSecretProviderDto": {
        "properties": {
          "account_id": {
            "type": "string"
          },
          "cache_ttl_seconds": {
            "maximum": 86400,
            "minimum": 0,
            "type": "number"
          },
          "config": {
            "additionalProperties": true,
            "type": "object"
          },
          "host": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateSentryEventFiltersDto": {
        "properties": {
          "event_filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SentryEventFiltersDto"
              }
            ],
            "description": "Which run outcomes to forward to Sentry. Replaces the current filters."
          }
        },
        "required": [
          "event_filters"
        ],
        "type": "object"
      },
      "UpdateSsoConfigurationDto": {
        "properties": {
          "attribute_mapping": {
            "additionalProperties": true,
            "description": "Supabase Auth SAML attribute mapping from IdP attributes to user fields. Left out, it stays the same.",
            "type": "object"
          },
          "enforced": {
            "description": "True to require SSO for the domain, blocking password sign-in and sign-up for its users. Needs an owner who has signed in through SSO once. Left out, it stays the same.",
            "type": "boolean"
          },
          "idp_certificate": {
            "description": "New PEM-encoded x509 signing certificate of the identity provider. Left out, it stays the same.",
            "type": "string"
          },
          "idp_entity_id": {
            "description": "New SAML entity ID (issuer) of the identity provider. Left out, it stays the same.",
            "example": "https://idp.acme.com/metadata",
            "type": "string"
          },
          "idp_sso_url": {
            "description": "New HTTPS sign-on URL of the identity provider. Left out, it stays the same.",
            "format": "uri",
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateSubscriptionDto": {
        "properties": {
          "isUpgrade": {
            "description": "True to switch now and invoice the prorated difference; false to schedule the change for the end of the current billing period.",
            "type": "boolean"
          },
          "plan_type": {
            "description": "Plan to move the organization's subscription to.",
            "enum": [
              "free",
              "scale"
            ],
            "type": "string"
          }
        },
        "required": [
          "plan_type",
          "isUpgrade"
        ],
        "type": "object"
      },
      "UpdateUsageCapDto": {
        "properties": {
          "usage_cap_hours": {
            "description": "Monthly cap on browser hours for the organization. Null removes the cap.",
            "example": 500,
            "maximum": 100000,
            "minimum": 1,
            "nullable": true,
            "type": "integer"
          }
        },
        "required": [
          "usage_cap_hours"
        ],
        "type": "object"
      },
      "UpdateWebhookDto": {
        "properties": {
          "eventTypesSubscribed": {
            "items": {
              "enum": [
                "agent.error_analysis",
                "execution.failed",
                "execution.paused",
                "execution.queued",
                "execution.requeued",
                "execution.start",
                "execution.step",
                "execution.stopped",
                "execution.success",
                "file.uploaded",
                "interaction.failed",
                "interaction.finished",
                "interaction.waiting",
                "screenshot.uploaded",
                "video.uploaded",
                "execution.password_recovery",
                "execution.password_updated",
                "agent.tfa_setup_recovery",
                "agent.recovery",
                "agent.decision_requested",
                "agent.decision_answered",
                "agent.decision_applied"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "excludeInputVariables": {
            "type": "boolean"
          },
          "nrRetries": {
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "secret": {
            "pattern": "^[0-9a-fA-F]{64}$",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "type": "string"
          },
          "validity": {
            "maximum": 2592000,
            "minimum": 0,
            "type": "number"
          },
          "workflowId": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "secret",
          "validity",
          "url",
          "eventTypesSubscribed",
          "nrRetries"
        ],
        "type": "object"
      },
      "UpdateWorkflowComponentDto": {
        "properties": {
          "componentData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowComponentDataDto"
              }
            ],
            "description": "The component's nodes, edges and vault schema, in the shape the workflow visualizer uses. Saved as the component's new version."
          },
          "propagate": {
            "default": true,
            "description": "If true, updates every workflow in the workspace that embeds this component to the new structure, replacing local edits to those instances. Set to false to save the new version without touching any workflow.",
            "type": "boolean"
          },
          "skipInstanceIds": {
            "description": "Instance IDs (`source_component_instance_id`) that propagation leaves unchanged, e.g. instances with local edits to keep. Find them with the propagation preview.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "sourceWorkflowId": {
            "description": "ID of the workflow the update was edited in; propagation skips that whole workflow, including any other instance of this component in it. Pass it only when that workflow holds exactly one instance, or every instance in it already matches `componentData`. Otherwise omit it.",
            "format": "uuid",
            "type": "string"
          },
          "versionNote": {
            "description": "Note describing what changed in this version. Defaults to `Version <n>`.",
            "example": "Fixed login XPath",
            "maxLength": 500,
            "type": "string"
          }
        },
        "required": [
          "componentData"
        ],
        "type": "object"
      },
      "UpdateWorkflowDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "base_version_id": {
            "description": "The `version_id` your edit is based on. If a newer version exists on the target branch, the save is rejected with `409 WORKFLOW_VERSION_CONFLICT`. Leave it out to save on top of the branch's latest version.",
            "format": "uuid",
            "type": "string"
          },
          "branch_id": {
            "description": "Branch this version was saved to. On update, the branch to save to; left out, the save goes to the workflow's default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "bump_type": {
            "description": "How `version` was derived from its parent, or null when it was chosen explicitly or has no parent",
            "enum": [
              "major",
              "minor",
              "patch"
            ],
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "bypass_protection": {
            "description": "Save to a branch protected by a workspace rule. Only allowed for roles the rule lets bypass it.",
            "type": "boolean"
          },
          "component_imports": {
            "description": "Workspace components this workflow calls, as `{ id, version }`. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "conversation_id": {
            "description": "Builder conversation that produced this version, if any",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_via": {
            "description": "Which CloudCruise client saved this version. Set by CloudCruise's own clients; leave it out.",
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_error_handling": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_extract_datamodel_recovery": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "error_codes": {
            "description": "Error codes the workflow's nodes reference. On create and import, each is matched to a workspace error code by name and description, and created when none matches. On update, send the saved codes unchanged or leave the field out; a difference is rejected with `409 READ_ONLY_FIELD_CONFLICT`.",
            "items": {
              "$ref": "#/components/schemas/ErrorCodeDto"
            },
            "type": "array"
          },
          "extract_network_urls": {
            "description": "URL patterns to capture from network traffic during a run",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder to file the workflow under, as a `/`-separated path of up to 5 segments, or null for the top level",
            "example": "billing/claims",
            "nullable": true,
            "type": "string"
          },
          "generation": {
            "description": "Depth of this version in the workflow's version history",
            "readOnly": true,
            "type": "number"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow. On create, the new workflow gets this id, or a generated one when it is left out; an id another workspace holds is rejected with `409 WORKFLOW_ID_TAKEN`. On update, send the saved id or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "local_components": {
            "description": "Components defined inside this workflow, available to its Component Call nodes. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "major": {
            "description": "Major part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "type": "number"
          },
          "merge_parent_version_id": {
            "description": "For a merge, the head of the branch that was merged in",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor": {
            "description": "Minor part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "type": "object"
          },
          "parent_version_id": {
            "description": "The version this one was saved on top of",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "patch": {
            "description": "Patch part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that are dismissed automatically",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration: `country`, `static`, `custom`, `random` or `off`. Changing it clears `proxy_value` unless a new one is sent.",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "release_version": {
            "description": "Tag the new version with this exact `major.minor.patch` instead of the computed one. Must be higher than the version the save is based on and not already used by this workflow.",
            "example": "2.0.0",
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "skip_udp_proxying": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "use_native_actions": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Vault credentials the workflow needs, keyed by alias. Each value is `{ \"type\": \"credential\", \"domain\": <site>, \"example\"?: <credential id> }`. A run passes a credential id for each alias in its input.",
            "type": "object"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version",
            "example": "2.1.0",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this workflow version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version",
            "type": "string"
          },
          "version_number": {
            "deprecated": true,
            "description": "Legacy version counter, ignored",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "video_record_session": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "workflow_id": {
            "description": "Same as `id`, accepted so a read can be sent back unchanged. Must equal `id` when both are sent.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to. On a write, send the caller's workspace or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "output_schema",
          "max_retries"
        ],
        "type": "object"
      },
      "UpdateWorkspaceDto": {
        "properties": {
          "description": {
            "description": "New description of the workspace.",
            "type": "string"
          },
          "name": {
            "description": "New name of the workspace.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "description"
        ],
        "type": "object"
      },
      "UpdateWorkspaceMemberRoleDto": {
        "properties": {
          "role": {
            "description": "Role in the workspace: OWNER manages members and settings, MEMBER builds and runs workflows, VIEWER has read-only access (Enterprise plan). The workspace's last owner cannot be demoted.",
            "enum": [
              "MEMBER",
              "OWNER",
              "VIEWER"
            ],
            "type": "string"
          }
        },
        "required": [
          "role"
        ],
        "type": "object"
      },
      "UsageCapResultDto": {
        "properties": {
          "message": {
            "description": "Confirmation of the new cap.",
            "example": "Usage cap set to 500 hours",
            "type": "string"
          },
          "success": {
            "description": "True when the cap was saved.",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message"
        ],
        "type": "object"
      },
      "UserInteractionResponseDto": {
        "properties": {
          "session_id": {
            "description": "Unique identifier of the run session that received the data.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "format": "uuid",
            "type": "string"
          },
          "success": {
            "description": "Always true; data that does not match a waiting node returns an error.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "session_id",
          "success"
        ],
        "type": "object"
      },
      "ValidateFileUrlRequestDto": {
        "properties": {
          "url": {
            "description": "Public URL of the file. Private and local addresses and URLs with credentials are rejected.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "ValidateFileUrlResultDto": {
        "properties": {
          "accessible": {
            "description": "True when the file could be fetched",
            "type": "boolean"
          },
          "contentLength": {
            "description": "File size in bytes; 0 when unknown",
            "type": "number"
          },
          "contentType": {
            "description": "Content type the server reported; empty when unknown",
            "type": "string"
          },
          "error": {
            "description": "Why the file could not be fetched",
            "type": "string"
          },
          "fileName": {
            "description": "File name from the response or the URL; empty when not accessible",
            "type": "string"
          }
        },
        "required": [
          "accessible",
          "fileName",
          "contentType",
          "contentLength"
        ],
        "type": "object"
      },
      "ValidateWorkflowInputDto": {
        "properties": {
          "run_input_variables": {
            "additionalProperties": true,
            "description": "Input variables to check, as they would be sent to start a run. A leading `$` on a key is ignored.",
            "type": "object"
          }
        },
        "required": [
          "run_input_variables"
        ],
        "type": "object"
      },
      "VaultAdditionalFieldDto": {
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "enum": [
              "Totp",
              "Email",
              "Url",
              "Text",
              "Phone",
              "Date",
              "MonthYear",
              "Address",
              "Concealed"
            ],
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "value"
        ],
        "type": "object"
      },
      "VaultAdditionalFieldWarningDto": {
        "properties": {
          "name": {
            "description": "Name of the skipped field.",
            "type": "string"
          },
          "reason": {
            "description": "Why the field was skipped. With duplicate_name, every field of that name is skipped.",
            "enum": [
              "duplicate_name",
              "too_many_fields",
              "value_too_large",
              "name_too_long",
              "invalid_value",
              "unsupported_type",
              "reserved_name"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "reason"
        ],
        "type": "object"
      },
      "VaultClearBrowserStateRequest": {
        "properties": {
          "domain": {
            "description": "Domain of the vault entry, as stored on the entry.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the vault entry's user, unique together with domain.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "VaultClearSecretCacheRequest": {
        "properties": {
          "domain": {
            "description": "Domain of the vault entry, as stored on the entry.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the vault entry's user, unique together with domain.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "VaultCookieDto": {
        "properties": {
          "domain": {
            "description": "Domain scope of the cookie.",
            "type": "string"
          },
          "expirationDate": {
            "description": "Unix timestamp in seconds when the cookie expires.",
            "nullable": true,
            "type": "number"
          },
          "hostOnly": {
            "description": "Limits the cookie to exact hostname matches.",
            "type": "boolean"
          },
          "httpOnly": {
            "description": "Restricts the cookie to HTTP(S) requests.",
            "type": "boolean"
          },
          "name": {
            "description": "Cookie name.",
            "type": "string"
          },
          "path": {
            "description": "URL path scope of the cookie.",
            "type": "string"
          },
          "sameSite": {
            "description": "Cross-site request policy.",
            "type": "string"
          },
          "secure": {
            "description": "Requires HTTPS to send the cookie.",
            "type": "boolean"
          },
          "session": {
            "description": "Whether this is a session cookie, cleared on browser close.",
            "type": "boolean"
          },
          "storeId": {
            "description": "Browser cookie store identifier.",
            "type": "string"
          },
          "value": {
            "description": "Cookie value, in plaintext.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "type": "object"
      },
      "VaultCopyResultDto": {
        "properties": {
          "domain": {
            "description": "Domain of the copied entry.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the entry in the target workspace.",
            "format": "uuid",
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the copied entry's user. Differs from the source when the target workspace belongs to another organization.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          }
        },
        "required": [
          "id",
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "VaultCopyToWorkspaceRequest": {
        "properties": {
          "domain": {
            "description": "Domain of the source vault entry.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "existing_entry_id": {
            "description": "Identifier of the target workspace's entry to replace. Required when overwrite_existing is true.",
            "format": "uuid",
            "type": "string"
          },
          "overwrite_existing": {
            "default": false,
            "description": "Replace an existing entry in the target workspace instead of creating a new one. Requires existing_entry_id.",
            "type": "boolean"
          },
          "permissioned_user_id": {
            "description": "Identifier of the source vault entry's user, unique together with domain. A copy into another organization gets a new identifier.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          },
          "target_workspace_id": {
            "description": "Workspace to copy the entry into. The caller needs access to it, and it must differ from the current workspace.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "permissioned_user_id",
          "domain",
          "target_workspace_id"
        ],
        "type": "object"
      },
      "VaultCredentialSummaryDto": {
        "properties": {
          "domain": {
            "description": "Domain the entry logs in to.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the vault entry.",
            "format": "uuid",
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the entry's user, unique together with domain. Use it with domain to reference the entry in runs and other vault operations.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          },
          "updated_at": {
            "description": "When the entry was last updated.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "user_alias": {
            "description": "Display name of the entry, if one was set.",
            "example": "Acme production admin",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "permissioned_user_id",
          "domain",
          "user_alias",
          "updated_at"
        ],
        "type": "object"
      },
      "VaultDeleteRequest": {
        "properties": {
          "domain": {
            "type": "string"
          },
          "permissioned_user_id": {
            "type": "string"
          }
        },
        "required": [
          "domain",
          "permissioned_user_id"
        ],
        "type": "object"
      },
      "VaultEntryAdditionalFieldDto": {
        "properties": {
          "name": {
            "description": "Field name. Unique within the entry.",
            "type": "string"
          },
          "type": {
            "description": "Value type. A Totp value resolves to the current 6-digit code in workflows.",
            "enum": [
              "Text",
              "Email",
              "Url",
              "Phone",
              "Date",
              "MonthYear",
              "Address",
              "Concealed",
              "Totp"
            ],
            "type": "string"
          },
          "value": {
            "description": "The value, encrypted with the workspace's AES key like password. An Address value is an encrypted JSON object.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "value"
        ],
        "type": "object"
      },
      "VaultEntryDto": {
        "properties": {
          "additional_field_warnings": {
            "description": "Fields of the bound secret provider item that were skipped. Single-entry reads of provider-bound entries only.",
            "items": {
              "$ref": "#/components/schemas/VaultAdditionalFieldWarningDto"
            },
            "type": "array"
          },
          "additional_fields": {
            "description": "Additional fields of the entry, each value encrypted with the workspace's AES key. Read-only for an entry bound to a secret provider.",
            "items": {
              "$ref": "#/components/schemas/VaultEntryAdditionalFieldDto"
            },
            "type": "array"
          },
          "allow_multiple_sessions": {
            "description": "Whether the entry may run several sessions at once.",
            "type": "boolean"
          },
          "browser_state_expired": {
            "description": "Whether the saved session data has expired. List reads with an API key only.",
            "type": "boolean"
          },
          "cookie_domain_to_store": {
            "description": "Domain to store cookies under, if it differs from domain.",
            "nullable": true,
            "type": "string"
          },
          "cookies": {
            "description": "Saved session cookies, in plaintext. Empty once the session data has expired. Returned on single-entry reads and on list reads with an API key.",
            "items": {
              "$ref": "#/components/schemas/VaultCookieDto"
            },
            "nullable": true,
            "type": "array"
          },
          "created_at": {
            "description": "When the entry was created.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "domain": {
            "description": "Domain the entry logs in to.",
            "example": "https://app.example.com",
            "type": "string"
          },
          "effective_expires_at": {
            "description": "When the session data expires, computed from the expiry settings.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "expiry_time_from_last_use": {
            "description": "Session expiry interval from last use, for example \"01:30:00\". Null for no expiry from last use.",
            "nullable": true,
            "type": "string"
          },
          "expiry_time_from_session_data_set": {
            "description": "Session expiry interval from when the session data was set, for example \"7 days\". Null for no such expiry.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the vault entry.",
            "format": "uuid",
            "type": "string"
          },
          "ip_address": {
            "description": "Legacy target IP address. Use proxy_setting and proxy_value.",
            "nullable": true,
            "type": "string"
          },
          "local_storage": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Saved local storage, in plaintext. Empty once the session data has expired. Returned on single-entry reads and on list reads with an API key.",
            "nullable": true,
            "type": "object"
          },
          "location": {
            "description": "Geographic location of the entry.",
            "nullable": true,
            "type": "string"
          },
          "max_concurrency": {
            "description": "Maximum concurrent sessions. Null for unlimited.",
            "nullable": true,
            "type": "number"
          },
          "organization_id": {
            "description": "Organization the entry's workspace belongs to.",
            "format": "uuid",
            "type": "string"
          },
          "passkey_cose_alg": {
            "description": "COSE algorithm of the passkey. Single-entry reads and list reads with an API key only.",
            "nullable": true,
            "type": "number"
          },
          "passkey_created_at": {
            "description": "When the passkey was enrolled.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "passkey_credential_id": {
            "description": "Identifier of the entry's passkey, if one is enrolled.",
            "nullable": true,
            "type": "string"
          },
          "passkey_public_key": {
            "description": "Public key of the passkey. Single-entry reads and list reads with an API key only.",
            "nullable": true,
            "type": "string"
          },
          "passkey_rp_id": {
            "description": "Relying party id of the passkey. Single-entry reads and list reads with an API key only.",
            "nullable": true,
            "type": "string"
          },
          "passkey_user_handle": {
            "description": "User handle of the passkey. Single-entry reads and list reads with an API key only.",
            "nullable": true,
            "type": "string"
          },
          "password": {
            "description": "Password, encrypted client-side with the workspace's AES key. Null when the entry is bound to a secret provider.",
            "nullable": true,
            "type": "string"
          },
          "permissioned_user_id": {
            "description": "Identifier of the entry's user, unique together with domain. Use it with domain to reference the entry in runs and other vault operations.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "type": "string"
          },
          "persist_cookies": {
            "description": "Whether cookies are kept across sessions.",
            "type": "boolean"
          },
          "persist_local_storage": {
            "description": "Whether local storage is kept across sessions.",
            "type": "boolean"
          },
          "persist_session_storage": {
            "description": "Whether session storage is kept across sessions.",
            "type": "boolean"
          },
          "prevent_concurrency_during_login": {
            "description": "Whether other sessions wait while a login on this entry is in progress.",
            "nullable": true,
            "type": "boolean"
          },
          "proxy_setting": {
            "description": "Proxy mode. random, static and country use CloudCruise's proxy pool; custom uses the proxy URL in proxy_value.",
            "enum": [
              "country",
              "static",
              "random",
              "custom"
            ],
            "nullable": true,
            "type": "string"
          },
          "proxy_string": {
            "description": "Assigned proxy as ip:port, for example \"91.124.2.237:61234\".",
            "nullable": true,
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy selector for proxy_setting: the target IP for static, the country code for country, or the custom proxy URL encrypted with the workspace's AES key for custom.",
            "nullable": true,
            "type": "string"
          },
          "secret_cache_ttl_seconds": {
            "description": "How long resolved provider secrets are cached, in seconds. Null to use the connection default.",
            "nullable": true,
            "type": "number"
          },
          "secret_provider_id": {
            "description": "Secret provider connection the entry is bound to, or null for a directly stored credential.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "secret_ref": {
            "description": "Reference to the bound item in the secret provider, for example op://<vaultId>/<itemId>. Null unless secret_provider_id is set.",
            "nullable": true,
            "type": "string"
          },
          "security_question_warnings": {
            "description": "Security questions of the bound secret provider item that were skipped. Single-entry reads of provider-bound entries only.",
            "items": {
              "$ref": "#/components/schemas/VaultSecurityQuestionWarningDto"
            },
            "type": "array"
          },
          "security_questions": {
            "description": "Security questions of the entry in order, each question and answer encrypted with the workspace's AES key.",
            "items": {
              "$ref": "#/components/schemas/VaultEntrySecurityQuestionDto"
            },
            "type": "array"
          },
          "session_data_set_at": {
            "description": "When the session data was last set.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "session_storage": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Saved session storage, in plaintext. Empty once the session data has expired. Returned on single-entry reads and on list reads with an API key.",
            "nullable": true,
            "type": "object"
          },
          "site_identifier": {
            "description": "Site identifier derived from domain.",
            "nullable": true,
            "type": "string"
          },
          "skip_csrf_cookies": {
            "description": "Whether CSRF cookies such as XSRF-TOKEN are skipped on session restore so the site issues fresh ones.",
            "type": "boolean"
          },
          "tfa_email": {
            "description": "Address that receives the entry's 2FA emails when tfa_methods includes EMAIL. Computed; read-only.",
            "nullable": true,
            "type": "string"
          },
          "tfa_method": {
            "deprecated": true,
            "description": "Deprecated. The first entry of tfa_methods, or null. Use tfa_methods.",
            "enum": [
              "AUTHENTICATOR",
              "EMAIL",
              "MAGIC_LINK",
              "SMS"
            ],
            "nullable": true,
            "type": "string"
          },
          "tfa_methods": {
            "description": "Two-factor authentication methods of the entry. Empty when the entry has none.",
            "items": {
              "enum": [
                "AUTHENTICATOR",
                "EMAIL",
                "MAGIC_LINK",
                "SMS"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "tfa_phone_number": {
            "description": "Phone number that receives the entry's 2FA texts when tfa_methods includes SMS. Computed; read-only.",
            "nullable": true,
            "type": "string"
          },
          "tfa_secret": {
            "description": "Built-in authenticator (TOTP) seed, encrypted client-side with the workspace's AES key.",
            "nullable": true,
            "type": "string"
          },
          "tfa_secret_unavailable_reason": {
            "description": "Why tfa_secret is null for an entry bound to a secret provider. Single-entry reads only.",
            "type": "string"
          },
          "updated_at": {
            "description": "When the entry was last updated.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "user_alias": {
            "description": "Display name of the entry, if one was set.",
            "nullable": true,
            "type": "string"
          },
          "user_id": {
            "description": "User who created the entry.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "user_name": {
            "description": "Username, encrypted client-side with the workspace's AES key. Null when the entry is bound to a secret provider.",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "Workspace the entry belongs to.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspace_id",
          "organization_id",
          "permissioned_user_id",
          "domain",
          "site_identifier",
          "user_alias",
          "user_name",
          "password",
          "tfa_secret",
          "tfa_methods",
          "tfa_method",
          "tfa_email",
          "tfa_phone_number",
          "additional_fields",
          "security_questions",
          "persist_local_storage",
          "persist_cookies",
          "persist_session_storage",
          "skip_csrf_cookies",
          "cookie_domain_to_store",
          "expiry_time_from_last_use",
          "expiry_time_from_session_data_set",
          "session_data_set_at",
          "effective_expires_at",
          "allow_multiple_sessions",
          "max_concurrency",
          "prevent_concurrency_during_login",
          "proxy_setting",
          "proxy_value",
          "proxy_string",
          "ip_address",
          "location",
          "secret_provider_id",
          "secret_ref",
          "secret_cache_ttl_seconds",
          "passkey_credential_id",
          "passkey_created_at",
          "user_id",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "VaultEntrySecurityQuestionDto": {
        "properties": {
          "answer": {
            "description": "The answer, encrypted with the workspace's AES key like password.",
            "type": "string"
          },
          "question": {
            "description": "The question, encrypted with the workspace's AES key like password.",
            "type": "string"
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "type": "object"
      },
      "VaultPostPutHeadersInBody": {
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "type": "object"
      },
      "VaultPostPutRequest": {
        "properties": {
          "additional_fields": {
            "items": {
              "$ref": "#/components/schemas/VaultAdditionalFieldDto"
            },
            "type": "array"
          },
          "allow_multiple_sessions": {
            "type": "boolean"
          },
          "cookie_domain_to_store": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "cookies": {
            "items": {
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "created_at": {
            "nullable": true,
            "type": "string"
          },
          "domain": {
            "format": "uri",
            "type": "string"
          },
          "expiry_time_from_last_use": {
            "nullable": true,
            "type": "string"
          },
          "expiry_time_from_session_data_set": {
            "nullable": true,
            "type": "string"
          },
          "headers": {
            "items": {
              "$ref": "#/components/schemas/VaultPostPutHeadersInBody"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "ip_address": {
            "nullable": true,
            "type": "string"
          },
          "local_storage": {
            "nullable": true,
            "type": "object"
          },
          "location": {
            "type": "string"
          },
          "max_concurrency": {
            "minimum": 1,
            "nullable": true,
            "type": "number"
          },
          "organization_id": {
            "format": "uuid",
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "permissioned_user_id": {
            "type": "string"
          },
          "persist_cookies": {
            "type": "boolean"
          },
          "persist_local_storage": {
            "type": "boolean"
          },
          "persist_session_storage": {
            "type": "boolean"
          },
          "prevent_concurrency_during_login": {
            "nullable": true,
            "type": "boolean"
          },
          "proxy": {
            "$ref": "#/components/schemas/ProxyConfig"
          },
          "proxy_setting": {
            "enum": [
              "country",
              "custom",
              "static",
              "random"
            ],
            "nullable": true,
            "type": "string"
          },
          "proxy_string": {
            "nullable": true,
            "type": "string"
          },
          "proxy_value": {
            "nullable": true,
            "type": "string"
          },
          "secret_cache_ttl_seconds": {
            "maximum": 86400,
            "minimum": 0,
            "nullable": true,
            "type": "number"
          },
          "secret_provider_id": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "secret_ref": {
            "nullable": true,
            "type": "string"
          },
          "security_questions": {
            "items": {
              "$ref": "#/components/schemas/VaultSecurityQuestionDto"
            },
            "type": "array"
          },
          "session_data_version": {
            "type": "number"
          },
          "session_id": {
            "type": "string"
          },
          "session_storage": {
            "nullable": true,
            "type": "object"
          },
          "site_identifier": {
            "nullable": true,
            "type": "string"
          },
          "skip_csrf_cookies": {
            "type": "boolean"
          },
          "tfa_email": {
            "nullable": true,
            "type": "string"
          },
          "tfa_method": {
            "enum": [
              "",
              "AUTHENTICATOR",
              "SMS",
              "EMAIL",
              "MAGIC_LINK"
            ],
            "nullable": true,
            "type": "string"
          },
          "tfa_methods": {
            "items": {
              "enum": [
                "AUTHENTICATOR",
                "SMS",
                "EMAIL",
                "MAGIC_LINK"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          },
          "tfa_phone_number": {
            "nullable": true,
            "type": "string"
          },
          "tfa_secret": {
            "type": "string"
          },
          "user_agent": {
            "type": "string"
          },
          "user_alias": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          },
          "user_name": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          }
        },
        "required": [
          "domain",
          "permissioned_user_id"
        ],
        "type": "object"
      },
      "VaultSecurityQuestionDto": {
        "properties": {
          "answer": {
            "type": "string"
          },
          "question": {
            "type": "string"
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "type": "object"
      },
      "VaultSecurityQuestionWarningDto": {
        "properties": {
          "question": {
            "description": "Text of the skipped question.",
            "type": "string"
          },
          "reason": {
            "description": "Why the question was skipped. With duplicate_question, every copy of that question is skipped.",
            "enum": [
              "duplicate_question",
              "too_many_questions",
              "question_too_long",
              "answer_too_large",
              "invalid_value"
            ],
            "type": "string"
          }
        },
        "required": [
          "question",
          "reason"
        ],
        "type": "object"
      },
      "VaultStoreBrowserStateRequest": {
        "properties": {
          "cookies": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "domain": {
            "type": "string"
          },
          "local_storage": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "permissioned_user_id": {
            "type": "string"
          },
          "session_storage": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "workspace_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "workspace_id",
          "permissioned_user_id",
          "domain"
        ],
        "type": "object"
      },
      "VaultSuccessDto": {
        "properties": {
          "success": {
            "description": "Always true; failures return an error status instead.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "VaultTfaCodeDto": {
        "properties": {
          "code": {
            "description": "The one-time code, in plaintext.",
            "example": "123456",
            "type": "string"
          },
          "expires_in_seconds": {
            "description": "Seconds until the authenticator code rotates. Present for authenticator codes only.",
            "example": 23,
            "type": "number"
          },
          "received_at": {
            "description": "When the email code was received. Present for email codes only.",
            "format": "date-time",
            "type": "string"
          },
          "type": {
            "description": "The 2FA method this code was produced for.",
            "enum": [
              "authenticator",
              "email"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "code"
        ],
        "type": "object"
      },
      "VerifiedDomainDto": {
        "properties": {
          "created_at": {
            "description": "Time the domain was claimed.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who claimed the domain.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "domain": {
            "description": "The claimed email domain.",
            "example": "acme.com",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the domain claim.",
            "format": "uuid",
            "type": "string"
          },
          "organization_id": {
            "description": "ID of the organization claiming the domain.",
            "format": "uuid",
            "type": "string"
          },
          "updated_at": {
            "description": "Time the claim was last updated.",
            "format": "date-time",
            "type": "string"
          },
          "verification_token": {
            "description": "Token to publish in DNS: a TXT record `cc-sso-verify=<token>` at `_cloudcruise-sso-verification.<domain>`. It proves ownership and is meant to be public.",
            "type": "string"
          },
          "verified_at": {
            "description": "Time DNS verification succeeded. Null while the claim is pending.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "organization_id",
          "domain",
          "verification_token",
          "verified_at",
          "created_at",
          "updated_at",
          "created_by"
        ],
        "type": "object"
      },
      "VerifiedDomainListDto": {
        "properties": {
          "count": {
            "description": "Total number of the organization's domain claims.",
            "type": "integer"
          },
          "data": {
            "description": "The organization's domain claims, newest first, at most 50.",
            "items": {
              "$ref": "#/components/schemas/VerifiedDomainDto"
            },
            "type": "array"
          }
        },
        "required": [
          "data",
          "count"
        ],
        "type": "object"
      },
      "VerifyDomainResultDto": {
        "properties": {
          "domain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VerifiedDomainDto"
              }
            ],
            "description": "The domain claim. Present when the domain is verified."
          },
          "reason": {
            "description": "Why verification failed, or `Already verified`. Names what DNS returned and the record to add.",
            "type": "string"
          },
          "verified": {
            "description": "Whether the domain is now verified.",
            "type": "boolean"
          }
        },
        "required": [
          "verified"
        ],
        "type": "object"
      },
      "VisualCacheDeleteEntriesResultDto": {
        "properties": {
          "deleted": {
            "description": "Nodes whose cached element was deleted or did not exist.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "failed": {
            "description": "Nodes whose cached element could not be deleted. Retry them.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "deleted",
          "failed"
        ],
        "type": "object"
      },
      "VisualCacheDeleteEntryResultDto": {
        "properties": {
          "alreadyAbsent": {
            "description": "True when the node had no cached element to delete.",
            "type": "boolean"
          },
          "removed": {
            "description": "Stored files that were deleted.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "removed",
          "alreadyAbsent"
        ],
        "type": "object"
      },
      "VisualCacheEntryDto": {
        "properties": {
          "anchorImageUrl": {
            "description": "Signed link to the cached image of the anchor element used to locate the target, valid for 5 minutes. Present only for an anchored entry.",
            "nullable": true,
            "type": "string"
          },
          "enabled": {
            "description": "Whether the visual cache is on for the workflow. When false, the other fields are null.",
            "type": "boolean"
          },
          "imageUrl": {
            "description": "Signed link to the cached image of the target element, valid for 5 minutes. Null for a dynamic entry or when there is no entry.",
            "nullable": true,
            "type": "string"
          },
          "meta": {
            "additionalProperties": true,
            "description": "The cached element's metadata as recorded when it was built, or null when the node has no cached element. Common keys: `kind` (`direct`, `anchored` or `dynamic`), `click_point` ([x, y] in screen pixels), `target_text`, `is_dynamic`, `session_id` (the run that built it) and `built_at`.",
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "enabled",
          "meta",
          "imageUrl",
          "anchorImageUrl"
        ],
        "type": "object"
      },
      "VisualCachePresenceDto": {
        "properties": {
          "eligibleNodeIds": {
            "description": "Nodes in the workflow's current version that can use the visual cache.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "description": "Whether the visual cache is on for the workflow. When false, both lists are empty.",
            "type": "boolean"
          },
          "storedNodeIds": {
            "description": "Eligible nodes that have a cached element stored.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "enabled",
          "storedNodeIds",
          "eligibleNodeIds"
        ],
        "type": "object"
      },
      "VisualCacheStatusDto": {
        "properties": {
          "enabled": {
            "description": "Whether the visual cache is on for the workflow.",
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "WebhookDeletedDto": {
        "properties": {
          "success": {
            "description": "Always true.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "WebhookDeliveriesDto": {
        "properties": {
          "webhook_events": {
            "description": "The run's webhook deliveries, oldest first.",
            "items": {
              "$ref": "#/components/schemas/WebhookDeliveryDto"
            },
            "type": "array"
          }
        },
        "required": [
          "webhook_events"
        ],
        "type": "object"
      },
      "WebhookDeliveryDto": {
        "properties": {
          "created_at": {
            "description": "When the delivery was attempted.",
            "example": "2026-02-15T10:00:05Z",
            "format": "date-time",
            "type": "string"
          },
          "delivered": {
            "description": "Whether the receiver answered with a success status, after any retries.",
            "nullable": true,
            "type": "boolean"
          },
          "delivery_attempt_type": {
            "description": "`initial` for an original delivery, `manual_replay` for a recorded replay. Null on older deliveries, which are originals.",
            "enum": [
              "initial",
              "manual_replay"
            ],
            "nullable": true,
            "type": "string"
          },
          "delivery_errors": {
            "description": "Errors from each failed attempt, oldest first.",
            "example": [
              "Request failed with status code 500"
            ],
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "duration": {
            "description": "How long the delivery took, in milliseconds.",
            "example": 182,
            "nullable": true,
            "type": "number"
          },
          "message": {
            "additionalProperties": true,
            "description": "The delivered message: the `event` name, its `payload` (the run data sent to the receiver) and `metadata`.",
            "nullable": true,
            "type": "object"
          },
          "replayed_from_event_id": {
            "description": "For a recorded replay, the delivery it replayed; null for an original delivery.",
            "nullable": true,
            "type": "string"
          },
          "retries": {
            "description": "Number of retries after the first attempt.",
            "example": 0,
            "nullable": true,
            "type": "number"
          },
          "session_id": {
            "description": "Identifier of the run session.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "format": "uuid",
            "type": "string"
          },
          "url": {
            "description": "URL the event was delivered to.",
            "example": "https://example.com/hooks/cloudcruise",
            "type": "string"
          },
          "workflow_id": {
            "description": "Identifier of the workflow the run belongs to.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "workflow_id",
          "url",
          "session_id",
          "delivered",
          "delivery_errors",
          "message",
          "duration",
          "retries",
          "replayed_from_event_id",
          "delivery_attempt_type"
        ],
        "type": "object"
      },
      "WebhookReplayAttemptDto": {
        "properties": {
          "deliveryErrors": {
            "description": "Errors from each failed attempt, oldest first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error": {
            "description": "Error message when the delivery failed.",
            "example": "Request failed with status code 500",
            "type": "string"
          },
          "response": {
            "description": "The receiver's response as a JSON string with `status`, `statusText`, `data` and `headers`.",
            "example": "{\"status\":200,\"statusText\":\"OK\",\"data\":\"ok\",\"headers\":{}}",
            "type": "string"
          },
          "retriesAttempted": {
            "description": "Number of retries after the first attempt.",
            "example": 0,
            "type": "number"
          },
          "success": {
            "description": "Whether the receiver answered with a success status.",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "deliveryErrors",
          "retriesAttempted"
        ],
        "type": "object"
      },
      "WebhookReplayResultDto": {
        "properties": {
          "info": {
            "description": "What the replay did, in words.",
            "example": "Replayed webhook events",
            "type": "string"
          },
          "nr_failed": {
            "description": "Number of deliveries that failed.",
            "example": 0,
            "type": "number"
          },
          "nr_skipped": {
            "description": "Number of deliveries skipped because the destination already received a successful replay.",
            "example": 0,
            "type": "number"
          },
          "nr_success": {
            "description": "Number of deliveries the receivers accepted.",
            "example": 2,
            "type": "number"
          },
          "status": {
            "description": "Always `Success`; a failed lookup returns an error status instead.",
            "example": "Success",
            "type": "string"
          },
          "webhook_events": {
            "description": "One entry per delivery attempted, in order.",
            "items": {
              "$ref": "#/components/schemas/WebhookReplayAttemptDto"
            },
            "type": "array"
          }
        },
        "required": [
          "status",
          "info",
          "nr_success",
          "nr_failed",
          "nr_skipped",
          "webhook_events"
        ],
        "type": "object"
      },
      "WorkflowBranchDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the branch was created",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the branch",
            "format": "uuid",
            "type": "string"
          },
          "head_version_id": {
            "description": "UUID of the workflow version at the branch's tip. It identifies that snapshot; to run or read the branch, pass the branch's `id` as `workflow_branch_id` or `branch_id` instead",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "UUID of the branch",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Branch name, unique per workflow",
            "example": "main",
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the branch last changed",
            "format": "date-time",
            "type": "string"
          },
          "workflow_id": {
            "description": "ID of the workflow the branch belongs to",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the workflow belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_id",
          "workspace_id",
          "name",
          "head_version_id",
          "created_by",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "WorkflowBranchRulesetDto": {
        "properties": {
          "branch_patterns": {
            "description": "Glob patterns (`*` matches any characters) matched against branch names and IDs when `branch_target` is `pattern`",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branch_target": {
            "description": "Which branches it protects: `default_branch` (each workflow's default branch), `all_branches`, or `pattern` (branches matching `branch_patterns`)",
            "enum": [
              "default_branch",
              "all_branches",
              "pattern"
            ],
            "type": "string"
          },
          "bypass_roles": {
            "description": "Workspace roles that may skip the ruleset: edit matched branches directly, or merge with `force` without approvals",
            "items": {
              "enum": [
                "owner",
                "member"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "description": "Timestamp when the ruleset was created",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the ruleset",
            "format": "uuid",
            "type": "string"
          },
          "enabled": {
            "description": "Whether the ruleset applies. A disabled ruleset protects nothing",
            "type": "boolean"
          },
          "id": {
            "description": "UUID of the ruleset",
            "format": "uuid",
            "type": "string"
          },
          "min_approvals": {
            "description": "Approvals a pull request needs when `require_review` is true",
            "maximum": 32,
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "Name of the ruleset",
            "type": "string"
          },
          "protected": {
            "description": "Whether direct edits to matched branches are blocked, so changes must arrive through a merged pull request",
            "type": "boolean"
          },
          "require_review": {
            "description": "Whether a pull request into a matched branch needs approvals to merge",
            "type": "boolean"
          },
          "updated_at": {
            "description": "Timestamp when the ruleset last changed",
            "format": "date-time",
            "type": "string"
          },
          "workflow_patterns": {
            "description": "Glob patterns (`*` matches any characters) matched against workflow IDs and folder paths when `workflow_scope` is `matching`",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "workflow_scope": {
            "description": "Which workflows it covers: `all` workflows in the workspace, or `matching` (workflows matching `workflow_patterns`)",
            "enum": [
              "all",
              "matching"
            ],
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the ruleset belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspace_id",
          "name",
          "enabled",
          "branch_target",
          "branch_patterns",
          "workflow_scope",
          "workflow_patterns",
          "protected",
          "require_review",
          "min_approvals",
          "bypass_roles",
          "created_by",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "WorkflowBranchWithProtectionDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the branch was created",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the branch",
            "format": "uuid",
            "type": "string"
          },
          "effectiveProtection": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EffectiveBranchProtectionDto"
              }
            ],
            "description": "Protection the workspace's branch rulesets give this branch"
          },
          "head_version_id": {
            "description": "UUID of the workflow version at the branch's tip. It identifies that snapshot; to run or read the branch, pass the branch's `id` as `workflow_branch_id` or `branch_id` instead",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "UUID of the branch",
            "format": "uuid",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the workflow's default branch, the one runs use when they don't pin a version or branch",
            "type": "boolean"
          },
          "name": {
            "description": "Branch name, unique per workflow",
            "example": "main",
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the branch last changed",
            "format": "date-time",
            "type": "string"
          },
          "workflow_id": {
            "description": "ID of the workflow the branch belongs to",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the workflow belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_id",
          "workspace_id",
          "name",
          "head_version_id",
          "created_by",
          "created_at",
          "updated_at",
          "is_default",
          "effectiveProtection"
        ],
        "type": "object"
      },
      "WorkflowComponentDataDto": {
        "properties": {
          "nodes": {
            "description": "The component's nodes, each wrapping a workflow node plus its canvas position.",
            "items": {
              "$ref": "#/components/schemas/ComponentNodeDto"
            },
            "type": "array"
          },
          "reactFlowEdges": {
            "description": "Edge metadata the visualizer uses to draw connections.",
            "items": {
              "$ref": "#/components/schemas/ReactFlowEdgeDto"
            },
            "type": "array"
          },
          "vault_schema": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ComponentVaultCredentialDto"
            },
            "description": "Vault credentials referenced by the component's nodes, keyed by credential alias. Merged into a target workflow's `vault_schema` during propagation; the target's entries take precedence.",
            "type": "object"
          },
          "workflowEdges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges between component nodes. Keys are source node IDs; values define outgoing connections, with the same shape as workflow edges.",
            "type": "object"
          }
        },
        "required": [
          "nodes",
          "workflowEdges",
          "reactFlowEdges"
        ],
        "type": "object"
      },
      "WorkflowComponentDto": {
        "properties": {
          "component_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowComponentDataDto"
              }
            ],
            "description": "The latest version's nodes, edges and vault schema."
          },
          "created_at": {
            "description": "Timestamp when the component was created.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the component.",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for the component.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the component (max 100 chars).",
            "type": "string"
          },
          "source_metadata": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComponentSourceMetadataDto"
              }
            ],
            "description": "Where the component came from and what it does.",
            "nullable": true,
            "type": "object"
          },
          "updated_at": {
            "description": "Timestamp when the component was last updated.",
            "format": "date-time",
            "type": "string"
          },
          "version_note": {
            "description": "Note describing the latest version's changes.",
            "nullable": true,
            "type": "string"
          },
          "version_number": {
            "description": "The latest version number of this component.",
            "minimum": 1,
            "type": "number"
          },
          "workspace_id": {
            "description": "ID of the workspace this component belongs to.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "created_by",
          "created_at",
          "updated_at",
          "workspace_id",
          "component_data",
          "version_number",
          "version_note",
          "source_metadata"
        ],
        "type": "object"
      },
      "WorkflowComponentSummaryDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the component was created.",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the component.",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for the component.",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Display name of the component (max 100 chars).",
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the component was last updated.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "created_by",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "WorkflowDetailDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "Branch this version was saved to. On update, the branch to save to; left out, the save goes to the workflow's default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "bump_type": {
            "description": "How `version` was derived from its parent, or null when it was chosen explicitly or has no parent",
            "enum": [
              "major",
              "minor",
              "patch"
            ],
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "component_imports": {
            "description": "Components this workflow imports",
            "items": {
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "nullable": true,
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "nullable": true,
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "nullable": true,
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "nullable": true,
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "extract_network_urls": {
            "description": "URL patterns to extract from network traffic during execution",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow. On create, the new workflow gets this id, or a generated one when it is left out; an id another workspace holds is rejected with `409 WORKFLOW_ID_TAKEN`. On update, send the saved id or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "local_components": {
            "description": "Components defined inside this workflow",
            "items": {
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          },
          "major": {
            "description": "Major part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "nullable": true,
            "type": "number"
          },
          "merge_parent_version_id": {
            "description": "For a merge, the head of the branch that was merged in",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor": {
            "description": "Minor part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "nullable": true,
            "type": "object"
          },
          "parent_version_id": {
            "description": "The version this one was saved on top of",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "patch": {
            "description": "Patch part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that should be automatically dismissed",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration setting: `country`, `static`, `custom`, `random` or `off`",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "nullable": true,
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Schema defining vault credentials and their configuration",
            "nullable": true,
            "type": "object"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version",
            "example": "2.1.0",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this workflow version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_note": {
            "description": "Optional note describing what changed in this version",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to. On a write, send the caller's workspace or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "description",
          "output_schema",
          "vault_schema",
          "enable_incorrect_form_input_recovery",
          "enable_password_update_recovery",
          "proxy_setting",
          "extract_network_urls",
          "encrypted_keys",
          "popup_xpaths",
          "component_imports",
          "local_components",
          "version_note",
          "max_retries"
        ],
        "type": "object"
      },
      "WorkflowDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "base_version_id": {
            "description": "The `version_id` your edit is based on. If a newer version exists on the target branch, the save is rejected with `409 WORKFLOW_VERSION_CONFLICT`. Leave it out to save on top of the branch's latest version.",
            "format": "uuid",
            "type": "string"
          },
          "branch_id": {
            "description": "Branch this version was saved to. On update, the branch to save to; left out, the save goes to the workflow's default branch.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "bump_type": {
            "description": "How `version` was derived from its parent, or null when it was chosen explicitly or has no parent",
            "enum": [
              "major",
              "minor",
              "patch"
            ],
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "bypass_protection": {
            "description": "Save to a branch protected by a workspace rule. Only allowed for roles the rule lets bypass it.",
            "type": "boolean"
          },
          "component_imports": {
            "description": "Workspace components this workflow calls, as `{ id, version }`. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "conversation_id": {
            "description": "Builder conversation that produced this version, if any",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "created_via": {
            "description": "Which CloudCruise client saved this version. Set by CloudCruise's own clients; leave it out.",
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_error_handling": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_extract_datamodel_recovery": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "error_codes": {
            "description": "Error codes the workflow's nodes reference. On create and import, each is matched to a workspace error code by name and description, and created when none matches. On update, send the saved codes unchanged or leave the field out; a difference is rejected with `409 READ_ONLY_FIELD_CONFLICT`.",
            "items": {
              "$ref": "#/components/schemas/ErrorCodeDto"
            },
            "type": "array"
          },
          "extract_network_urls": {
            "description": "URL patterns to capture from network traffic during a run",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder to file the workflow under, as a `/`-separated path of up to 5 segments, or null for the top level",
            "example": "billing/claims",
            "nullable": true,
            "type": "string"
          },
          "from_conversation_id": {
            "description": "Builder conversation to link the saved version to. Must belong to the caller.",
            "format": "uuid",
            "type": "string"
          },
          "generation": {
            "description": "Depth of this version in the workflow's version history",
            "readOnly": true,
            "type": "number"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow. On create, the new workflow gets this id, or a generated one when it is left out; an id another workspace holds is rejected with `409 WORKFLOW_ID_TAKEN`. On update, send the saved id or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "local_components": {
            "description": "Components defined inside this workflow, available to its Component Call nodes. Saved with the workflow version. Send the full list to change it; omit it on update to keep the current list.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "major": {
            "description": "Major part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "type": "number"
          },
          "merge_parent_version_id": {
            "description": "For a merge, the head of the branch that was merged in",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "minor": {
            "description": "Minor part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "type": "object"
          },
          "parent_version_id": {
            "description": "The version this one was saved on top of",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "patch": {
            "description": "Patch part of `version`",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that are dismissed automatically",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration: `country`, `static`, `custom`, `random` or `off`. Changing it clears `proxy_value` unless a new one is sent.",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "release_version": {
            "description": "Tag the new version with this exact `major.minor.patch` instead of the computed one. Must be higher than the version the save is based on and not already used by this workflow.",
            "example": "2.0.0",
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "skip_udp_proxying": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "use_native_actions": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Vault credentials the workflow needs, keyed by alias. Each value is `{ \"type\": \"credential\", \"domain\": <site>, \"example\"?: <credential id> }`. A run passes a credential id for each alias in its input.",
            "type": "object"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version",
            "example": "2.1.0",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this workflow version",
            "format": "uuid",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version",
            "type": "string"
          },
          "version_number": {
            "deprecated": true,
            "description": "Legacy version counter, ignored",
            "nullable": true,
            "readOnly": true,
            "type": "number"
          },
          "video_record_session": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "number"
              },
              {
                "nullable": true,
                "type": "boolean"
              },
              {
                "nullable": true,
                "type": "object"
              },
              {
                "items": {},
                "nullable": true,
                "type": "array"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, ignored"
          },
          "workflow_id": {
            "description": "Same as `id`, accepted so a read can be sent back unchanged. Must equal `id` when both are sent.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to. On a write, send the caller's workspace or leave it out.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "output_schema",
          "max_retries"
        ],
        "type": "object"
      },
      "WorkflowErrorActionsDto": {
        "properties": {
          "invalid_credentials": {
            "description": "What a run does when the site rejects the username or password: `pause` pauses the vault credential so queued runs stop retrying a login that cannot work, `fail` fails the run. null uses the workspace setting",
            "enum": [
              "pause",
              "fail"
            ],
            "nullable": true,
            "type": "string"
          },
          "password_update": {
            "description": "What a run does when the site demands a password change that cannot be skipped: `update_password` lets Password Update Recovery change it, `pause` pauses the vault credential so queued runs stop using it, `fail` fails the run. null uses the workspace setting. Sets `enable_password_update_recovery` to match, and wins over it when both are sent",
            "enum": [
              "update_password",
              "pause",
              "fail"
            ],
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "WorkflowErrorDto": {
        "properties": {
          "created_at": {
            "description": "When the error occurred.",
            "example": "2025-10-29T10:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "error_category": {
            "description": "AI-generated category of the error. When the recovery agent reclassified the error, its category. See the Maintenance Agent documentation for all values.",
            "example": "AUTHENTICATION_ERROR",
            "nullable": true,
            "type": "string"
          },
          "error_code": {
            "description": "Error code of the error, or UNKNOWN when it has none. The same value as the group key.",
            "example": "ELEMENT_NOT_FOUND",
            "type": "string"
          },
          "error_details": {
            "description": "AI-generated description of what went wrong. Null when the category is IGNORE_ERROR.",
            "example": "The selector did not match any elements on the page",
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Short error message.",
            "example": "Element not found on page",
            "type": "string"
          },
          "session_id": {
            "description": "Unique identifier of the run session where the error occurred.",
            "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "created_at",
          "error_code",
          "message"
        ],
        "type": "object"
      },
      "WorkflowErrorGroupDto": {
        "properties": {
          "count": {
            "description": "Number of errors with this error code.",
            "example": 8,
            "type": "number"
          },
          "errors": {
            "description": "The errors with this error code, newest first.",
            "items": {
              "$ref": "#/components/schemas/WorkflowErrorDto"
            },
            "type": "array"
          }
        },
        "required": [
          "count",
          "errors"
        ],
        "type": "object"
      },
      "WorkflowErrorTimeframeDto": {
        "properties": {
          "end": {
            "description": "End of the time range, as requested.",
            "example": "2025-10-29T23:59:59Z",
            "format": "date-time",
            "type": "string"
          },
          "start": {
            "description": "Start of the time range, as requested.",
            "example": "2025-10-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "start",
          "end"
        ],
        "type": "object"
      },
      "WorkflowErrorsResponseDto": {
        "properties": {
          "error_groups": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkflowErrorGroupDto"
            },
            "description": "The errors grouped by error code, keyed by the code.",
            "type": "object"
          },
          "timeframe": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorTimeframeDto"
              }
            ],
            "description": "The time range the errors were read from."
          },
          "total_errors": {
            "description": "Number of errors returned across all groups. At most the requested limit.",
            "example": 15,
            "type": "number"
          },
          "workflow_id": {
            "description": "Unique identifier of the workflow.",
            "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "workflow_id",
          "timeframe",
          "total_errors",
          "error_groups"
        ],
        "type": "object"
      },
      "WorkflowExportDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "pattern": "^[UWS][A-Z0-9]{2,}$",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "maximum": 3600,
            "minimum": 30,
            "nullable": true,
            "type": "number"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "type": "string"
          },
          "edges": {
            "additionalProperties": {
              "$ref": "#/components/schemas/EdgeDto"
            },
            "description": "Map of edges connecting workflow nodes. Keys are source node IDs; each value names the node or nodes that follow.",
            "type": "object"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_network_listener": {
            "description": "Whether network listener capture is enabled for this workflow version",
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "encrypted_keys": {
            "description": "Input variable keys whose values are encrypted with the workspace AES key",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error_actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowErrorActionsDto"
              }
            ],
            "description": "What a run does for each credential error, per error. Omit a key, or the whole object, to keep its current action",
            "nullable": true,
            "type": "object"
          },
          "error_codes": {
            "description": "Error codes the workflow's nodes reference. On create and import, each is matched to a workspace error code by name and description, and created when none matches. On update, send the saved codes unchanged or leave the field out; a difference is rejected with `409 READ_ONLY_FIELD_CONFLICT`.",
            "items": {
              "$ref": "#/components/schemas/ErrorCodeDto"
            },
            "type": "array"
          },
          "extract_network_urls": {
            "description": "URL patterns to capture from network traffic during a run",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder to file the workflow under, as a `/`-separated path of up to 5 segments, or null for the top level",
            "example": "billing/claims",
            "nullable": true,
            "type": "string"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "input_schema": {
            "description": "JSON schema defining the workflow's input variables",
            "type": "object"
          },
          "manual_captcha_solve": {
            "description": "When true, captchas are solved only at CAPTCHA nodes. When false, the automatic solver also runs before each step that acts on the page. A new workflow created without this field gets true. Existing workflows keep their stored value.",
            "type": "boolean"
          },
          "max_retries": {
            "description": "Maximum number of retry attempts for failed workflow steps",
            "type": "number"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "nodes": {
            "description": "Array of workflow step nodes",
            "items": {
              "$ref": "#/components/schemas/NodeDto"
            },
            "type": "array"
          },
          "output_schema": {
            "description": "Selects which fields the run returns in its result and webhook payload. Only the fields named under `properties` are returned; an empty object `{}` returns the whole run context instead, excluding the run's inputs.",
            "type": "object"
          },
          "popup_xpaths": {
            "description": "XPath selectors for popups that are dismissed automatically",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "proxy_setting": {
            "description": "Proxy configuration: `country`, `static`, `custom`, `random` or `off`. Changing it clears `proxy_value` unless a new one is sent.",
            "enum": [
              "country",
              "static",
              "random",
              "off",
              "custom"
            ],
            "type": "string"
          },
          "proxy_value": {
            "description": "Proxy value for `proxy_setting`: a country code for `country`, an IP address for `static`, a proxy URL for `custom`, null otherwise",
            "nullable": true,
            "type": "string"
          },
          "run_window": {
            "description": "Run window for the workflow. Leave it out on save to keep the current one, send `null` to remove it. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Vault credentials the workflow needs, keyed by alias. Each value is `{ \"type\": \"credential\", \"domain\": <site>, \"example\"?: <credential id> }`. A run passes a credential id for each alias in its input.",
            "type": "object"
          }
        },
        "required": [
          "nodes",
          "edges",
          "name",
          "input_schema",
          "output_schema",
          "max_retries"
        ],
        "type": "object"
      },
      "WorkflowFolderDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the folder was created",
            "format": "date-time",
            "type": "string"
          },
          "created_by_user_id": {
            "description": "ID of the user who created the folder",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "folder_path": {
            "description": "Full path of the folder",
            "example": "billing/claims",
            "type": "string"
          },
          "id": {
            "description": "ID of the folder",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the folder belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspace_id",
          "folder_path",
          "created_by_user_id",
          "created_at"
        ],
        "type": "object"
      },
      "WorkflowFolderEntryDto": {
        "properties": {
          "name": {
            "description": "Last segment of the path",
            "example": "claims",
            "type": "string"
          },
          "path": {
            "description": "Full path of the folder",
            "example": "billing/claims",
            "type": "string"
          },
          "workflow_count": {
            "description": "Number of workflows in the folder and all its subfolders",
            "type": "number"
          }
        },
        "required": [
          "name",
          "path",
          "workflow_count"
        ],
        "type": "object"
      },
      "WorkflowFolderListDto": {
        "properties": {
          "allFolderPaths": {
            "description": "Every folder path in the workspace, sorted, including each parent of a nested path. Empty when `search` is set.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "folderPath": {
            "description": "The listed folder's path, or an empty string for the top level",
            "example": "billing",
            "type": "string"
          },
          "folders": {
            "description": "Direct subfolders of the listed folder, sorted by name. Empty when `search` is set.",
            "items": {
              "$ref": "#/components/schemas/WorkflowFolderEntryDto"
            },
            "type": "array"
          },
          "page": {
            "description": "Zero-based page returned",
            "type": "number"
          },
          "pageSize": {
            "description": "Number of workflows per page",
            "type": "number"
          },
          "workflowTotal": {
            "description": "Total number of workflows across all pages",
            "type": "number"
          },
          "workflows": {
            "description": "One page of workflows filed directly in the listed folder, newest first. With `search`, matching workflows at any depth under it.",
            "items": {
              "$ref": "#/components/schemas/WorkflowSummaryDto"
            },
            "type": "array"
          }
        },
        "required": [
          "folderPath",
          "folders",
          "allFolderPaths",
          "workflows",
          "workflowTotal",
          "page",
          "pageSize"
        ],
        "type": "object"
      },
      "WorkflowInputErrorDto": {
        "properties": {
          "expected": {
            "additionalProperties": true,
            "description": "Parameters of the failed keyword, such as `{ \"type\": \"string\" }` or `{ \"missingProperty\": \"dob\" }`",
            "type": "object"
          },
          "field": {
            "description": "JSON pointer to the input that failed, or the schema path when the failure is not tied to one input",
            "example": "/patient_name",
            "type": "string"
          },
          "keyword": {
            "description": "JSON schema keyword that failed, such as `required` or `type`",
            "example": "type",
            "type": "string"
          },
          "message": {
            "description": "What is wrong with the input",
            "example": "must be string",
            "type": "string"
          }
        },
        "required": [
          "field",
          "message",
          "keyword",
          "expected"
        ],
        "type": "object"
      },
      "WorkflowInputSchemaDto": {
        "properties": {
          "branch_id": {
            "description": "Branch the described version was saved to",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "input_schema": {
            "additionalProperties": true,
            "description": "JSON schema that a run's `run_input_variables` must satisfy: the workflow's input schema plus one required property per vault alias, which takes a credential id or a list of them",
            "type": "object"
          },
          "vault_schema": {
            "additionalProperties": true,
            "description": "Vault credentials the workflow needs, keyed by alias. Each value is `{ \"type\": \"credential\", \"domain\": <site>, \"example\"?: <credential id> }`. Empty when the workflow needs none.",
            "type": "object"
          },
          "version": {
            "description": "Semantic version these schemas belong to",
            "example": "2.1.0",
            "nullable": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of the version these schemas belong to",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the workflow belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "input_schema",
          "vault_schema",
          "workspace_id",
          "version_id",
          "version",
          "branch_id"
        ],
        "type": "object"
      },
      "WorkflowInputValidationDto": {
        "properties": {
          "errors": {
            "description": "One entry per failed check when the input is invalid; null when it is valid or the schema does not compile",
            "items": {
              "$ref": "#/components/schemas/WorkflowInputErrorDto"
            },
            "nullable": true,
            "type": "array"
          },
          "schema_error": {
            "description": "Set when the workflow's own input schema does not compile, in which case no input can be checked; null otherwise",
            "nullable": true,
            "type": "string"
          },
          "valid": {
            "description": "Whether the input satisfies the workflow's input schema",
            "type": "boolean"
          }
        },
        "required": [
          "valid",
          "schema_error",
          "errors"
        ],
        "type": "object"
      },
      "WorkflowListSummaryDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the workflow was created",
            "format": "date-time",
            "type": "string"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the workflow",
            "nullable": true,
            "type": "string"
          },
          "folder_path": {
            "description": "Folder the workflow is filed under in the dashboard, or null when it is at the top level",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for the workflow",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "created_at",
          "updated_at",
          "default_branch_id",
          "folder_path"
        ],
        "type": "object"
      },
      "WorkflowOperationResultDto": {
        "properties": {
          "success": {
            "description": "Always true; a failure returns an error status instead",
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "WorkflowPrApprovalDto": {
        "properties": {
          "approved_at": {
            "description": "Timestamp of the approval",
            "format": "date-time",
            "type": "string"
          },
          "approver_user_id": {
            "description": "ID of the user who approved",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "UUID of the approval",
            "format": "uuid",
            "type": "string"
          },
          "pull_request_id": {
            "description": "ID of the approved pull request",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the pull request belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "pull_request_id",
          "workspace_id",
          "approver_user_id",
          "approved_at"
        ],
        "type": "object"
      },
      "WorkflowPullRequestDto": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the pull request was opened",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who opened the pull request",
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "description": "UUID of the pull request",
            "format": "uuid",
            "type": "string"
          },
          "merged_at": {
            "description": "Timestamp of the merge; null unless `status` is `merged`",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "merged_version_id": {
            "description": "ID of the workflow version the merge created on the target branch; null unless `status` is `merged`",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "merged_via": {
            "description": "How it merged: `review` after the required approvals, `forced` past them with `force`. Null unless `status` is `merged`",
            "enum": [
              "review",
              "forced",
              null
            ],
            "nullable": true,
            "type": "string"
          },
          "number": {
            "description": "Pull request number, counting up from 1 within the workflow (shown as #12). Unique per workflow, not across workflows",
            "example": 12,
            "minimum": 1,
            "type": "number"
          },
          "source_branch_id": {
            "description": "ID of the branch whose changes the pull request merges. Null once that branch is deleted",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "source_branch_name": {
            "description": "Name of the source branch, kept after the branch is deleted",
            "type": "string"
          },
          "source_head_version_id": {
            "description": "Source branch head the pull request compared when it was merged or closed; null while `status` is `open`",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "`open` until it is merged (`merged`) or closed without merging (`closed`)",
            "enum": [
              "open",
              "merged",
              "closed"
            ],
            "type": "string"
          },
          "target_branch_id": {
            "description": "ID of the branch the pull request merges into. Null once that branch is deleted",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "target_branch_name": {
            "description": "Name of the target branch, kept after the branch is deleted",
            "type": "string"
          },
          "target_head_version_id": {
            "description": "Target branch head the pull request compared when it was merged or closed (before the merge for a merged one); null while `status` is `open`",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "title": {
            "description": "Title of the pull request",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the pull request last changed",
            "format": "date-time",
            "type": "string"
          },
          "workflow_id": {
            "description": "ID of the workflow the pull request belongs to",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace the workflow belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_id",
          "workspace_id",
          "number",
          "source_branch_id",
          "target_branch_id",
          "source_branch_name",
          "target_branch_name",
          "title",
          "status",
          "created_by",
          "created_at",
          "updated_at",
          "merged_at",
          "merged_version_id",
          "merged_via",
          "source_head_version_id",
          "target_head_version_id"
        ],
        "type": "object"
      },
      "WorkflowSummaryDto": {
        "properties": {
          "allow_requeue": {
            "description": "Whether automatic retries are enabled for this workflow. When false, the workflow will not be automatically retried on transient failures regardless of other recovery settings.",
            "type": "boolean"
          },
          "created_at": {
            "description": "Timestamp when the workflow was created",
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created the workflow",
            "format": "uuid",
            "type": "string"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. A workspace-level value takes precedence.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionOperatingHoursDto"
              }
            ],
            "description": "Legacy. Stored and copied with the workflow but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request before it times out, or null for the default",
            "nullable": true,
            "type": "number"
          },
          "default_branch_id": {
            "description": "The workflow's default branch, used by runs and reads that name no branch",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "deny_requeue_past_dry_run_marker": {
            "description": "When the workflow has a dry-run marker (end_here_on_dry_run), restricts automatic retries to failures that occur before the marker. Only effective when allow_requeue is true. Defaults to true.",
            "type": "boolean"
          },
          "description": {
            "description": "Description of the workflow",
            "nullable": true,
            "type": "string"
          },
          "enable_action_timing_recovery": {
            "description": "Whether action timing recovery is enabled",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "Whether decision-required recovery is enabled for this workflow. Defaults to false. False on the workspace turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Whether error code generation is enabled for this workflow",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect",
            "nullable": true,
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Whether node descriptions are auto-enriched for reliability improvements",
            "nullable": true,
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "Whether password update recovery is enabled. When a site forces a password change, the Maintenance Agent classifies the error and sends a notification.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Whether popup handling is enabled for this workflow",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Whether service unavailable recovery is enabled for this workflow",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Whether XPath recovery is enabled for this workflow",
            "type": "boolean"
          },
          "fingerprint_profile": {
            "description": "`stable` gives each identity a fixed browser fingerprint profile; `off` leaves the fingerprint unchanged",
            "enum": [
              "off",
              "stable"
            ],
            "type": "string"
          },
          "folder_path": {
            "description": "Folder the workflow is filed under in the dashboard, or null when it is at the top level",
            "nullable": true,
            "type": "string"
          },
          "gpu_spoofing": {
            "description": "Whether the browser reports a spoofed GPU to visited sites",
            "type": "boolean"
          },
          "id": {
            "description": "Unique identifier for the workflow",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Name of the workflow",
            "type": "string"
          },
          "run_window": {
            "additionalProperties": true,
            "description": "Run window for the workflow, or null when it has none. See [Run Window](/concepts/run-window).",
            "nullable": true,
            "type": "object"
          },
          "type": {
            "description": "Where the workflow runs: `browser` for a browser workflow, `desktop` for one that drives the desktop",
            "enum": [
              "browser",
              "desktop",
              "api"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Timestamp when the workflow was last updated",
            "format": "date-time",
            "type": "string"
          },
          "workspace_id": {
            "description": "ID of the workspace this workflow belongs to",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "created_at",
          "updated_at",
          "workspace_id",
          "created_by",
          "default_branch_id",
          "type",
          "folder_path",
          "enable_popup_handling",
          "enable_xpath_recovery",
          "enable_node_description_enrichment",
          "run_window",
          "enable_error_code_generation",
          "enable_service_unavailable_recovery",
          "enable_incorrect_form_input_recovery",
          "enable_password_update_recovery",
          "enable_tfa_setup_recovery",
          "allow_requeue",
          "deny_requeue_past_dry_run_marker",
          "enable_decision_required_recovery",
          "enable_action_timing_recovery",
          "gpu_spoofing",
          "fingerprint_profile"
        ],
        "type": "object"
      },
      "WorkflowVersionSummaryDto": {
        "properties": {
          "branch_id": {
            "description": "Branch this version was saved to",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "description": "Timestamp when this version was created",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "created_by": {
            "description": "ID of the user who created this version",
            "format": "uuid",
            "type": "string"
          },
          "version": {
            "description": "Semantic version (`major.minor.patch`) of this version. Pass it to the workflow version operation to read the version.",
            "example": "2.1.0",
            "nullable": true,
            "type": "string"
          },
          "version_id": {
            "description": "ID of this version",
            "format": "uuid",
            "type": "string"
          },
          "version_note": {
            "description": "Note describing what changed in this version",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "version_id",
          "version",
          "branch_id",
          "version_note",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "WorkspaceDto": {
        "properties": {
          "2fa_forwarding_email": {
            "description": "Email address that received 2FA codes are forwarded to.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "2fa_phone_id": {
            "description": "Identifier of the SMS inbox that receives this workspace's 2FA codes.",
            "nullable": true,
            "type": "string"
          },
          "agent_endpoint_url": {
            "description": "Agent endpoint runs call for missing data and Okta Verify approvals. Null when none is set.",
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "archived_at": {
            "description": "When the workspace was archived. Null if it is active.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "description": "When the workspace was created.",
            "format": "date-time",
            "type": "string"
          },
          "creator_user_id": {
            "description": "User who created the workspace.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "data_retention_days": {
            "description": "How many days run data (results, screenshots, recordings, files) is kept.",
            "type": "number"
          },
          "decision_mention_slack_ids": {
            "description": "Slack user or group IDs to mention on a decision-required request. Takes precedence over a workflow's own list.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "decision_operating_hours": {
            "additionalProperties": true,
            "description": "Legacy. Stored but no longer read: decision requests follow the schedule on each decision rule.",
            "nullable": true,
            "type": "object"
          },
          "decision_timeout_seconds": {
            "description": "Seconds a human has to answer a decision-required request from this workspace's runs before it times out, or null for the default.",
            "nullable": true,
            "type": "number"
          },
          "description": {
            "description": "Description of the workspace.",
            "nullable": true,
            "type": "string"
          },
          "enable_action_timing_recovery": {
            "description": "Retry actions that ran before the page finished loading, with a delay.",
            "type": "boolean"
          },
          "enable_decision_required_recovery": {
            "description": "When the recovery agent reaches a choice it shouldn't make alone, ask a person instead of guessing or failing the run, then carry on from their answer. Defaults to false. False turns it off for every workflow in the workspace.",
            "type": "boolean"
          },
          "enable_error_code_generation": {
            "description": "Generate and assign error codes to errors that runs hit.",
            "type": "boolean"
          },
          "enable_incorrect_form_input_recovery": {
            "description": "Deprecated, no effect.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_node_description_enrichment": {
            "description": "Generate node descriptions from screenshots of successful runs, which improves error classification.",
            "type": "boolean"
          },
          "enable_password_update_recovery": {
            "description": "When a site forces a password change mid-run, generate a new password, update the vault credential, log in again and resume. Cannot be on while pausing credentials on a required password update is on.",
            "nullable": true,
            "type": "boolean"
          },
          "enable_popup_handling": {
            "description": "Detect unexpected popups during runs and close them with AI, adding their close buttons to the workflow's popup list.",
            "type": "boolean"
          },
          "enable_proxy_list": {
            "description": "Whether the workspace can list CloudCruise's full proxy pool rather than only the closest proxy.",
            "type": "boolean"
          },
          "enable_service_unavailable_recovery": {
            "description": "Retry runs with exponential backoff when an external service is unavailable.",
            "type": "boolean"
          },
          "enable_tfa_setup_recovery": {
            "description": "Deprecated, no effect.",
            "type": "boolean"
          },
          "enable_xpath_recovery": {
            "description": "Repair broken XPath selectors with AI when an element can't be found.",
            "type": "boolean"
          },
          "file_url_expiration_seconds": {
            "description": "How long signed file and media URLs stay valid, in seconds.",
            "nullable": true,
            "type": "number"
          },
          "id": {
            "description": "Identifier of the workspace.",
            "format": "uuid",
            "type": "string"
          },
          "members": {
            "description": "Members of the workspace. Present only when `load_members` is true.",
            "items": {
              "$ref": "#/components/schemas/WorkspaceMembershipDto"
            },
            "type": "array"
          },
          "name": {
            "description": "Name of the workspace.",
            "type": "string"
          },
          "organization_id": {
            "description": "Organization the workspace belongs to.",
            "format": "uuid",
            "type": "string"
          },
          "retention_sweep_cursor": {
            "description": "Set by CloudCruise: where the retention cleanup job resumes. Opaque; never written by clients.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "When the workspace was last updated.",
            "format": "date-time",
            "type": "string"
          },
          "window_management_config": {
            "additionalProperties": true,
            "description": "Desktop window management settings: whether it is enabled and which apps runs may control.",
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "organization_id",
          "creator_user_id",
          "created_at",
          "updated_at",
          "archived_at",
          "agent_endpoint_url",
          "data_retention_days",
          "file_url_expiration_seconds",
          "2fa_phone_id",
          "2fa_forwarding_email",
          "enable_popup_handling",
          "enable_xpath_recovery",
          "enable_node_description_enrichment",
          "enable_error_code_generation",
          "enable_service_unavailable_recovery",
          "enable_action_timing_recovery",
          "enable_password_update_recovery",
          "enable_incorrect_form_input_recovery",
          "enable_tfa_setup_recovery",
          "enable_decision_required_recovery",
          "enable_proxy_list",
          "window_management_config",
          "decision_timeout_seconds",
          "decision_operating_hours",
          "decision_mention_slack_ids",
          "retention_sweep_cursor"
        ],
        "type": "object"
      },
      "WorkspaceMemberDto": {
        "properties": {
          "created_at": {
            "description": "When the user joined the workspace.",
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "description": "Display name of the member.",
            "nullable": true,
            "type": "string"
          },
          "role": {
            "description": "Role in the workspace: OWNER manages members and settings, MEMBER builds and runs workflows, VIEWER has read-only access (Enterprise plan).",
            "enum": [
              "MEMBER",
              "OWNER",
              "VIEWER"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "When the membership last changed.",
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "description": "Identifier of the member.",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "Identifier of the workspace.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "workspace_id",
          "role",
          "created_at",
          "updated_at",
          "name"
        ],
        "type": "object"
      },
      "WorkspaceMembershipDto": {
        "properties": {
          "created_at": {
            "description": "When the user joined the workspace.",
            "format": "date-time",
            "type": "string"
          },
          "role": {
            "description": "Role in the workspace: OWNER manages members and settings, MEMBER builds and runs workflows, VIEWER has read-only access (Enterprise plan).",
            "enum": [
              "MEMBER",
              "OWNER",
              "VIEWER"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "When the membership last changed.",
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "description": "Identifier of the member.",
            "format": "uuid",
            "type": "string"
          },
          "workspace_id": {
            "description": "Identifier of the workspace.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "workspace_id",
          "role",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "WorkspaceShareResultDto": {
        "properties": {
          "conversation_id": {
            "description": "ID of the builder conversation",
            "format": "uuid",
            "type": "string"
          },
          "shared_with_workspace": {
            "description": "True when every member of the workspace can read the conversation",
            "type": "boolean"
          },
          "workspace_id": {
            "description": "ID of the workspace",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "conversation_id",
          "workspace_id",
          "shared_with_workspace"
        ],
        "type": "object"
      }
    }
  },
  "info": {
    "contact": {},
    "description": "Backend API contract consumed by the CLI and SDKs (cloudcruise-cli, cloudcruise-python, cloudcruise-js)",
    "title": "CloudCruise API",
    "version": "1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/aes-keys": {
      "get": {
        "operationId": "AesKeysController_getEncryptionKey",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "AesKeys"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "operationId": "AesKeysController_rotateEncryptionKey",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "AesKeys"
        ],
        "x-strata-surfaces": []
      }
    },
    "/api-keys": {
      "post": {
        "operationId": "ApiKeysController_createApiKey",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "ApiKeys"
        ],
        "x-strata-surfaces": []
      }
    },
    "/api-keys/for-member/{userId}": {
      "get": {
        "description": "Lists the API keys a workspace member created in the current workspace, newest first, without the keys themselves. Only workspace owners can call it.\n\nReturns an array of key summaries.",
        "operationId": "ApiKeysController_listForMember",
        "parameters": [
          {
            "description": "Identifier of the member whose keys to list.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ApiKeySummaryDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a member's API keys in the workspace",
        "tags": [
          "ApiKeys"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "api_keys.list_for_member",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/api-keys/for-org-member/{organizationId}/{userId}": {
      "get": {
        "description": "Lists the API keys a member created in every workspace of an organization, newest first, without the keys themselves. Only organization owners can call it.\n\nReturns an array of key summaries with each key's workspace.",
        "operationId": "ApiKeysController_listForOrgMember",
        "parameters": [
          {
            "description": "Identifier of the organization.",
            "in": "path",
            "name": "organizationId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Identifier of the member whose keys to list.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrgMemberApiKeySummaryDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a member's API keys across the organization",
        "tags": [
          "ApiKeys"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "api_keys.list_for_org_member",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/api-keys/{id}": {
      "delete": {
        "description": "Deletes an API key of the current workspace. Requests made with the key fail from then on, including any integration that uses it. Only workspace owners can call it.\n\nReturns success: true.",
        "operationId": "ApiKeysController_deleteApiKey",
        "parameters": [
          {
            "description": "Identifier of the API key, from a key listing.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyDeletedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete an API key",
        "tags": [
          "ApiKeys"
        ],
        "x-strata-surfaces": []
      }
    },
    "/auth/change-password": {
      "post": {
        "description": "Changes the signed-in user's password after checking the current one. Both passwords travel as plain-text arguments, so the agent and its logs see them. If the user has MFA set up, the call needs an MFA-verified (aal2) session. It is rate limited.\n\nReturns `ok: true` when the password changed.",
        "operationId": "AuthController_changePassword",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangePasswordResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Change your password",
        "tags": [
          "Auth"
        ],
        "x-strata-surfaces": []
      }
    },
    "/auth/sessions": {
      "get": {
        "description": "Lists the signed-in user's login sessions across browsers and clients, including expired and stale ones, so you can spot one you don't recognise. If the user has MFA set up, the call needs an MFA-verified (aal2) session.\n\nReturns each session's id, user agent, sign-in and refresh times, assurance level, expiry flags and approximate location.",
        "operationId": "AuthController_sessions",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SessionDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List your login sessions",
        "tags": [
          "Auth"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "account.list_sessions",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/authentication": {
      "get": {
        "operationId": "AuthenticationController_getCredential",
        "parameters": [
          {
            "in": "query",
            "name": "permissioned_user_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "domain",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Authentication"
        ],
        "x-strata-surfaces": []
      },
      "post": {
        "operationId": "AuthenticationController_postCredential",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultPostPutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Authentication"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "operationId": "AuthenticationController_putCredential",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultPostPutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Authentication"
        ],
        "x-strata-surfaces": []
      }
    },
    "/dispatcher/queues": {
      "delete": {
        "description": "Cancels several queued runs before they start. Each cancelled run ends with the status `execution.stopped`, records a `Run was interrupted` error and sends an `execution.stopped` webhook. Runs held by a pause are not cancelled. Requires the Owner or Member workspace role.\n\nReturns the number of runs cancelled.",
        "operationId": "DispatcherController_clearAllQueues",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelQueuedRunsRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelQueuedRunsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Cancel queued runs",
        "tags": [
          "Dispatcher"
        ],
        "x-strata-surfaces": []
      },
      "get": {
        "description": "Lists the workspace's runs that are waiting in a queue for a worker or for their vault credentials, with the queue details listing runs does not give: priority, worker group, earliest start time, time spent paused and the credentials each run waits on. Runs held by a pause are not included; list paused resources to see those.\n\nReturns an array of queued runs in queue order within each worker group and priority.",
        "operationId": "DispatcherController_getQueues",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/QueuedRunDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List queued runs",
        "tags": [
          "Dispatcher"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.list_queued",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/dispatcher/queues/{sessionId}": {
      "delete": {
        "description": "Cancels one run before it starts, whether it waits in a queue or is held by a pause (`execution.paused`). The run ends with the status `execution.stopped`, records a `Run was interrupted` error and sends an `execution.stopped` webhook. Requires the Owner or Member workspace role.\n\nReturns success, or 404 when the run is not in any of the workspace's queues.",
        "operationId": "DispatcherController_clearQueuedRun",
        "parameters": [
          {
            "description": "Unique identifier of the queued run session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelQueuedRunResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Cancel a queued run",
        "tags": [
          "Dispatcher"
        ],
        "x-strata-surfaces": []
      }
    },
    "/error-codes": {
      "get": {
        "description": "Lists the error codes in the workspace. Pass `workflow_id` to return only the codes mapped to that workflow: the codes CloudCruise classifies that workflow's failures against. A code is mapped automatically when a node in the saved workflow references its `id`.\n\nReturns each code with its name, descriptions, action and retry settings.",
        "operationId": "ErrorsController_list",
        "parameters": [
          {
            "description": "Only return error codes mapped to this workflow.",
            "in": "query",
            "name": "workflow_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ErrorCodeResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List error codes",
        "tags": [
          "Errors"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "error_codes.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates an error code in the workspace, or returns the existing one with the same name. Names match case- and whitespace-insensitively, so ` claim_not_found ` returns an existing `CLAIM_NOT_FOUND`; the existing code's fields are not changed.\n\nTo use a code, set its `id` as the value of a node's `error_on_false_message` (BOOL_CONDITION), `selector_error_message` (selector-based nodes) or `error_message` (USER_INTERACTION) parameter, then save the workflow.\n\nReturns the code and `created`, which is false when an existing code was returned.",
        "operationId": "ErrorsController_create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateErrorCodeDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedErrorCodeDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create an error code",
        "tags": [
          "Errors"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "error_codes.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/error-codes/{id}": {
      "patch": {
        "description": "Updates the fields you send on an error code and leaves the rest unchanged. Renaming fails with 409 if another code in the workspace already has that name (case- and whitespace-insensitive).\n\nReturns the updated code.",
        "operationId": "ErrorsController_update",
        "parameters": [
          {
            "description": "The ID of the error code.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateErrorCodeDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCodeResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update an error code",
        "tags": [
          "Errors"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "error_codes.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/error-codes/{id}/approve": {
      "post": {
        "description": "Approves an error code the maintenance agent suggested after a failed run (`pending_approval` true). Until approved, the recovery agent does not offer the code when it asks for a decision, and the builder agent does not see it. Approving an already approved code changes nothing.\n\nReturns the code's ID and name.",
        "operationId": "ErrorCodeApprovalController_approve",
        "parameters": [
          {
            "description": "The ID of the error code.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovedErrorCodeDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Approve a suggested error code",
        "tags": [
          "ErrorCodeApproval"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "error_codes.approve",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/integrations": {
      "get": {
        "description": "Shows whether Slack and Sentry are connected to the workspace, which Slack workspace is connected, and which run outcomes are forwarded to Sentry. Tokens are never returned.\n\nReturns the connection status of both integrations.",
        "operationId": "IntegrationsController_getWorkspaceIntegrations",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationStatusDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the workspace's Slack and Sentry connections",
        "tags": [
          "Integrations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "integrations.get_status",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/integrations/sentry/connect": {
      "post": {
        "description": "Connects a Sentry project to the workspace so run outcomes are reported to it. The token is tested against Sentry first and the request fails with 400 if Sentry rejects it. Connecting again replaces the current Sentry connection.\n\nReturns `success`.",
        "operationId": "IntegrationsController_connectSentry",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SentryConfigDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationActionResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Connect Sentry",
        "tags": [
          "Integrations"
        ],
        "x-strata-surfaces": []
      }
    },
    "/integrations/sentry/disconnect": {
      "post": {
        "description": "Disconnects the workspace's Sentry project and deletes the stored token. Run outcomes stop being reported to Sentry.\n\nReturns `success`.",
        "operationId": "IntegrationsController_disconnectSentry",
        "parameters": [],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationActionResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Disconnect Sentry",
        "tags": [
          "Integrations"
        ],
        "x-strata-surfaces": []
      }
    },
    "/integrations/sentry/settings": {
      "patch": {
        "description": "Sets which run outcomes (successful, failed, stopped) are reported to the connected Sentry project. Fails with 404 when Sentry is not connected.\n\nReturns `success`.",
        "operationId": "IntegrationsController_updateSentrySettings",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSentryEventFiltersDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationActionResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update Sentry event filters",
        "tags": [
          "Integrations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "integrations.update_sentry_filters",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/integrations/sentry/test": {
      "post": {
        "description": "Checks that a Sentry token can read the given project, without saving anything.\n\nReturns whether the test succeeded, with the project name or Sentry's error message.",
        "operationId": "IntegrationsController_testSentryConnection",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SentryConfigDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentryConnectionTestResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Test a Sentry connection",
        "tags": [
          "Integrations"
        ],
        "x-strata-surfaces": []
      }
    },
    "/integrations/slack/channels": {
      "get": {
        "description": "Lists the channels in the connected Slack workspace that run notifications can be sent to. Use a channel's `id` as a Slack destination in a notification rule.\n\nReturns the channels, or null when Slack is not connected.",
        "operationId": "IntegrationsController_getSlackChannels",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SlackChannelDto"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "The Slack channels, or null when Slack is not connected."
          }
        },
        "summary": "List Slack channels",
        "tags": [
          "Integrations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "integrations.list_slack_channels",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/integrations/slack/disconnect": {
      "post": {
        "description": "Disconnects the workspace's Slack connection. Run notifications routed to Slack stop until Slack is connected again.\n\nReturns `success`.",
        "operationId": "IntegrationsController_disconnectSlackAccount",
        "parameters": [],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationActionResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Disconnect Slack",
        "tags": [
          "Integrations"
        ],
        "x-strata-surfaces": []
      }
    },
    "/integrations/slack/oauth/initiate": {
      "post": {
        "description": "Starts connecting a Slack workspace to the CloudCruise workspace. A person must open the returned link in a browser and approve the CloudCruise Slack app; the connection is made when they approve. Connecting again replaces the current Slack connection.\n\nReturns the Slack authorization link.",
        "operationId": "IntegrationsController_initiateSlackOauth",
        "parameters": [],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlackConnectStartedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start connecting Slack",
        "tags": [
          "Integrations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "integrations.start_slack_connect",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/integrations/slack/usergroups": {
      "get": {
        "description": "Lists the user groups of the connected Slack workspace, for mentioning a whole group in run notifications. Use a group's `id` as a mention of type `group` in a notification rule's Slack destination.\n\nReturns each group's ID, handle and name, or null when Slack is not connected.",
        "operationId": "IntegrationsController_getSlackUserGroups",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SlackUserGroupDto"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "The Slack user groups, or null when Slack is not connected."
          }
        },
        "summary": "List Slack user groups",
        "tags": [
          "Integrations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "integrations.list_slack_user_groups",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/integrations/slack/users": {
      "get": {
        "description": "Lists the members of the connected Slack workspace, for mentioning them in run notifications. Use a member's `id` as a mention in a notification rule's Slack destination.\n\nReturns each member's ID, display name and avatar URL, or null when Slack is not connected.",
        "operationId": "IntegrationsController_getSlackUsers",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SlackUserDto"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "The Slack members, or null when Slack is not connected."
          }
        },
        "summary": "List Slack members",
        "tags": [
          "Integrations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "integrations.list_slack_users",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/invites": {
      "post": {
        "description": "Invites an email address to join an organization as a member and emails them a link. The caller must be an owner of the organization, and the invite counts against the plan's seat limit. The invitee accepts from the link or from their pending invites.\n\nReturns the new invite, including its id, expiry and link token.",
        "operationId": "InvitesController_createInvite",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInviteDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Invite someone to an organization",
        "tags": [
          "Invites"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "invites.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/invites/me": {
      "get": {
        "description": "Lists unexpired, unused invites addressed to the signed-in user's email, newest expiry first.\n\nReturns each invite's id, organization id and name, and expiry.",
        "operationId": "InvitesController_listMyInvites",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PendingInviteDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List your pending invites",
        "tags": [
          "Invites"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "invites.list_mine",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/invites/validate/{token}": {
      "get": {
        "description": "Redeems the invite whose link token is given: when the token is valid and the signed-in user's email matches the invite, the user joins the organization as a member and the invite is used up. Despite the GET, this changes membership. To accept an invite by id instead, use the invite list.\n\nReturns the outcome as `status.status` (accepted, expired, email_mismatch and so on) and, when accepted, the organization.",
        "operationId": "InvitesController_validateInvite",
        "parameters": [
          {
            "description": "The token from the invite link (`/invite/{token}`).",
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteOutcomeResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Accept an invite from its link token",
        "tags": [
          "Invites"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "invites.accept_by_token",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/invites/{id}/accept": {
      "post": {
        "description": "Accepts a pending invite addressed to the signed-in user's verified email, so the user joins the organization as a member. Find invite ids with the pending-invite list.\n\nReturns the outcome as `status.status` (accepted, not_found, seat_limit and so on) and, when accepted, the organization.",
        "operationId": "InvitesController_acceptInviteById",
        "parameters": [
          {
            "description": "Identifier of the invite, from the pending-invite list.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteOutcomeResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Accept an invite",
        "tags": [
          "Invites"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "invites.accept",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/langfuse/sessions/{sessionId}/media/{mediaId}": {
      "get": {
        "description": "Resolves an image referenced in one of the run's traces, such as the screenshot a step sent to the model. Fails with 404 when the image is not part of this run.\n\nReturns a short-lived signed link to the image and its MIME type.",
        "operationId": "LangfuseController_getMediaForSession",
        "parameters": [
          {
            "description": "Unique identifier of the run session the trace belongs to.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "type": "string"
            }
          },
          {
            "description": "The `id` from a `@@@langfuseMedia:...@@@` reference in one of the run's traces.",
            "in": "path",
            "name": "mediaId",
            "required": true,
            "schema": {
              "example": "c8f2a1d4e5b6",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TraceMediaDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get an image from a run's traces",
        "tags": [
          "Langfuse"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "traces.get_media",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/langfuse/sessions/{sessionId}/media/{mediaId}/content": {
      "get": {
        "operationId": "LangfuseController_getMediaContentForSession",
        "parameters": [
          {
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "mediaId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "Langfuse"
        ],
        "x-strata-surfaces": []
      }
    },
    "/live/conversations/{conversationId}/connection": {
      "get": {
        "operationId": "HumanControlController_getConversationConnection",
        "parameters": [
          {
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "HumanControl"
        ],
        "x-strata-surfaces": []
      }
    },
    "/live/conversations/{conversationId}/permissions/{allow}": {
      "put": {
        "description": "Lets the person watching a builder conversation's live browser take over the mouse and keyboard, for example to solve a captcha or sign in, or takes control back so the builder agent can continue. Fails with 410 once the conversation has ended.\n\nReturns which browser sessions were changed and which failed.",
        "operationId": "HumanControlController_updateConversationPermissions",
        "parameters": [
          {
            "description": "Unique identifier of the builder conversation.",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "example": "c0ffee00-1234-4abc-8def-0123456789ab",
              "type": "string"
            }
          },
          {
            "description": "`allow` lets the person watching the live view use the mouse and keyboard; `disallow` takes control back. Any other value counts as `disallow`.",
            "in": "path",
            "name": "allow",
            "required": true,
            "schema": {
              "enum": [
                "allow",
                "disallow"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrowserControlResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Give or take back control of the builder browser",
        "tags": [
          "HumanControl"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.set_browser_control",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/live/sessions/{sessionId}/connection": {
      "get": {
        "description": "Mints a link to watch an active run's browser, like the live browser on the dashboard's run page. The token in the link works once; call again for a fresh one. Fails with 404 once the run has ended.\n\nReturns the viewer link, the DCV session ID and the single-use viewer token.",
        "operationId": "DcvController_getSession",
        "parameters": [
          {
            "description": "Unique identifier of the run session to watch.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiveViewConnectionDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a live view of a run",
        "tags": [
          "Dcv"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.get_live_view",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/me/workspaces": {
      "get": {
        "description": "Lists every workspace the signed-in user belongs to, across all of their organizations, sorted by organization name and then workspace name. Archived workspaces and workspaces of archived organizations are left out. Use a workspace's id to pick the workspace for workspace-scoped operations.\n\nReturns each workspace's id, name, organization and the caller's role in it.",
        "operationId": "MeController_getMyWorkspaces",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MyWorkspaceDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List your workspaces",
        "tags": [
          "Me"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workspaces.list_mine",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/network-traffic/body": {
      "get": {
        "operationId": "NetworkTrafficController_getBody",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "eventId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/builder/{conversationId}": {
      "get": {
        "operationId": "NetworkTrafficController_getBuilderTraffic",
        "parameters": [
          {
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/chunk": {
      "get": {
        "operationId": "NetworkTrafficController_getChunk",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "seq",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "includeNoise",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/event": {
      "get": {
        "operationId": "NetworkTrafficController_getEvent",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "eventId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/has-traffic": {
      "get": {
        "operationId": "NetworkTrafficController_hasTraffic",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/list": {
      "get": {
        "operationId": "NetworkTrafficController_listEvents",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "resultId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "includeNoise",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/live": {
      "get": {
        "operationId": "NetworkTrafficController_getLiveEvents",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "includeNoise",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/manifest": {
      "get": {
        "operationId": "NetworkTrafficController_getManifest",
        "parameters": [
          {
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/runs/list/{workflowId}": {
      "get": {
        "operationId": "NetworkTrafficController_listRuns",
        "parameters": [
          {
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/network-traffic/runs/traffic/{sessionId}": {
      "get": {
        "operationId": "NetworkTrafficController_getRunTraffic",
        "parameters": [
          {
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "NetworkTraffic"
        ],
        "x-strata-surfaces": []
      }
    },
    "/notifications/rules": {
      "get": {
        "description": "Lists the workspace's notification rules. A rule sends a Slack message to its channels when a run of one of its workflows hits one of its events, optionally only for some failure classes.\n\nReturns the rules with their workflows, events, failure classes and Slack destinations.",
        "operationId": "NotificationsController_listRules",
        "parameters": [
          {
            "description": "Workspace whose rules to list. Defaults to the workspace the request is addressed to, and must match it.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "schema": {
              "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RoutingRuleDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List notification rules",
        "tags": [
          "Notifications"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "notifications.list_rules",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/notifications/rules/{name}": {
      "delete": {
        "description": "Deletes the rule with this name. Its channels stop getting the notifications it sent.\n\nReturns the deleted rule, so it can be recreated with the create-or-replace operation.",
        "operationId": "NotificationsController_deleteRule",
        "parameters": [
          {
            "description": "The rule's name, unique in the workspace. Names starting with `cc-` are reserved.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "example": "login-failures",
              "type": "string"
            }
          },
          {
            "description": "Workspace the rule belongs to. Defaults to the workspace the request is addressed to, and must match it.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "schema": {
              "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoutingRuleDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a notification rule",
        "tags": [
          "Notifications"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "description": "Creates the rule with this name, or replaces it entirely if it exists. Slack channels and mentions may be given by name; the server resolves them to IDs in the connected Slack workspace and fails with 400 if one is not found.\n\nReturns the saved rule.",
        "operationId": "NotificationsController_upsertRule",
        "parameters": [
          {
            "description": "The rule's name, unique in the workspace. Names starting with `cc-` are reserved.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "example": "login-failures",
              "type": "string"
            }
          },
          {
            "description": "Workspace the rule belongs to. Defaults to the workspace the request is addressed to, and must match it.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "schema": {
              "example": "1a2b3c4d-5e6f-4789-a012-bcdef0123456",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoutingRuleBodyDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoutingRuleDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create or replace a notification rule",
        "tags": [
          "Notifications"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "notifications.upsert_rule",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/notifications/update": {
      "post": {
        "deprecated": true,
        "operationId": "NotificationsController_updateNotificationsSubscriptions",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Deprecated: use PUT /notifications/rules/:name. Removed after the sunset date.",
        "tags": [
          "Notifications"
        ],
        "x-strata-surfaces": [],
        "x-sunset": "2026-08-21"
      }
    },
    "/notifications/workspace": {
      "get": {
        "deprecated": true,
        "operationId": "NotificationsController_getNotificationsSubscriptionsForWorkspace",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Deprecated: use GET /notifications/rules. Removed after the sunset date.",
        "tags": [
          "Notifications"
        ],
        "x-strata-surfaces": [],
        "x-sunset": "2026-08-21"
      }
    },
    "/organization-members/{organization_id}": {
      "get": {
        "description": "Lists the members of an organization the caller belongs to.\n\nReturns each member's user id, email, name, organization role and join time.",
        "operationId": "OrganizationMembersController_getOrganizationMembers",
        "parameters": [
          {
            "description": "Identifier of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrganizationMemberDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List organization members",
        "tags": [
          "OrganizationMembers"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "organization_members.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organization-members/{organization_id}/auth-status": {
      "get": {
        "description": "Shows, for each member of an organization, whether they have MFA set up and when they last signed in. Only owners of the organization can call it. Use it to check who would be locked out before requiring MFA.\n\nReturns each member's user id, MFA flag and last sign-in time.",
        "operationId": "OrganizationMembersController_getOrganizationMembersAuthStatus",
        "parameters": [
          {
            "description": "Identifier of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrganizationMemberAuthStatusDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List members' MFA and sign-in status",
        "tags": [
          "OrganizationMembers"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "organization_members.list_auth_status",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organization-members/{organization_id}/members": {
      "post": {
        "description": "Same as setting a member's role with PUT on this path: adds the user if they are not a member yet. Only owners can call it.\n\nReturns the membership.",
        "operationId": "OrganizationMembersController_createOrganizationMember",
        "parameters": [
          {
            "description": "Identifier of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationMemberRoleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "summary": "Add or update an organization member",
        "tags": [
          "OrganizationMembers"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "description": "Sets a user's role in an organization. If the user is not a member yet, they are added with that role, within the plan's seat limit. Only owners can call it, and the last owner cannot be demoted.\n\nReturns the membership: user id, organization id, role and timestamps.",
        "operationId": "OrganizationMembersController_updateOrganizationMember",
        "parameters": [
          {
            "description": "Identifier of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationMemberRoleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationMembershipDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set an organization member's role",
        "tags": [
          "OrganizationMembers"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "organization_members.set_role",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organization-members/{organization_id}/members/{user_id}": {
      "delete": {
        "description": "Removes a user from an organization, and from each of its workspaces that the caller owns. The user stays in workspaces the caller doesn't own. API keys the user created keep working unless `revoke_api_keys` is true, which revokes them in the workspaces the user is removed from. Only owners can call it, and the last owner cannot be removed.\n\nReturns null.",
        "operationId": "OrganizationMembersController_deleteOrganizationMember",
        "parameters": [
          {
            "description": "Identifier of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Identifier of the member to remove.",
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Set to true to also revoke the API keys the member created. Defaults to false: keys belong to the workspace and keep working.",
            "in": "query",
            "name": "revoke_api_keys",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Always null.",
                  "enum": [
                    null
                  ],
                  "nullable": true
                }
              }
            },
            "description": "The member was removed."
          }
        },
        "summary": "Remove a member from an organization",
        "tags": [
          "OrganizationMembers"
        ],
        "x-strata-surfaces": []
      }
    },
    "/organizations": {
      "post": {
        "description": "Creates an organization with the caller as its owner, and its first workspace with the caller as the workspace owner.\n\nReturns the new organization.",
        "operationId": "OrganizationsController_createOrganization",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create an organization",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "organizations.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}": {
      "delete": {
        "description": "Deletes an organization: archives it, removes its logo and permanently deletes every API key of its workspaces. Only organization owners can call it, and it is refused while the organization has an active subscription; cancel that first.\n\nReturns whether the organization was deleted.",
        "operationId": "OrganizationsController_deleteOrganization",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSuccessDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete an organization",
        "tags": [
          "Organizations"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "description": "Renames an organization and sets or removes its logo. Fields left out keep their value, except the organization's description, which every update clears. Only organization owners can call it.\n\nReturns the updated organization.",
        "operationId": "OrganizationsController_updateOrganization",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update an organization",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "organizations.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/baa": {
      "get": {
        "description": "Reads the HIPAA Business Associate Addendum (BAA) state of an organization: the current BAA text and version, the agreement on file, whether it must be accepted again, and whether the caller may accept it. Any organization member can call it.\n\nReturns the BAA status with the full current text.",
        "operationId": "OrgBaaController_getStatus",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaaStatusDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get an organization's BAA status",
        "tags": [
          "OrgBaa"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "baa.get_status",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/baa/accept": {
      "post": {
        "description": "Accepts the current HIPAA Business Associate Addendum on behalf of an organization, as a legally binding electronic signature by the named signer. Pass the version and SHA-256 from the BAA status; a mismatch means the text changed and is refused. Only organization owners can call it. If the organization already accepted this version, the existing agreement is returned; a negotiated agreement can't be replaced here.\n\nReturns the agreement on file.",
        "operationId": "OrgBaaController_accept",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptBaaDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationAgreementDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Accept the BAA for an organization",
        "tags": [
          "OrgBaa"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "baa.accept",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/baa/pdf": {
      "get": {
        "operationId": "OrgBaaController_getPdf",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "OrgBaa"
        ],
        "x-strata-surfaces": []
      }
    },
    "/organizations/{organization_id}/billing/checkout": {
      "post": {
        "description": "Creates a Stripe checkout session that subscribes an organization to a plan. Nothing is charged until a person completes the checkout page, so hand the URL to the user to open. Only organization owners can call it.\n\nReturns the checkout page URL.",
        "operationId": "OrganizationsController_createCheckoutSession",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutSessionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSessionUrlDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start a Stripe checkout for a paid plan",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "billing.create_checkout_session",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/billing/history": {
      "get": {
        "description": "Lists an organization's ten most recent paid Stripe invoices, newest first. Only organization owners can call it.\n\nReturns the invoices with their totals and links, or an empty list when the organization has never been billed.",
        "operationId": "OrganizationsController_getBillingHistory",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BillingInvoiceDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List an organization's paid invoices",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "billing.list_invoices",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/billing/invoices/{invoice_id}/urls": {
      "get": {
        "description": "Gets fresh links to one of an organization's Stripe invoices. Only organization owners can call it.\n\nReturns the hosted invoice page URL and the PDF URL.",
        "operationId": "OrganizationsController_getInvoiceUrls",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of the Stripe invoice, as listed by the invoice history.",
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "example": "in_1PqrStUvWxYz",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceUrlsDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get links to one invoice",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "billing.get_invoice_urls",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/billing/plan": {
      "get": {
        "description": "Reads an organization's Stripe subscription: plan, status, current billing period, pending plan change, usage cap and pricing.\n\nReturns the plan, or an empty body when the organization has no subscription (the free plan).",
        "operationId": "OrganizationsController_getOrganizationPlan",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationPlanDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get an organization's billing plan",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "billing.get_plan",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/billing/portal": {
      "post": {
        "description": "Creates a Stripe customer-portal session where a person can update payment methods, see invoices and cancel the subscription. Whoever opens the URL gets into the portal without signing in to CloudCruise until it expires, so give it only to the user. Only organization owners can call it.\n\nReturns the portal URL.",
        "operationId": "OrganizationsController_createPortalSession",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSessionUrlDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Open the Stripe billing portal",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "billing.create_portal_session",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/billing/subscription": {
      "put": {
        "description": "Moves an organization's existing Stripe subscription to another plan. An upgrade applies now and invoices the prorated difference; a downgrade is scheduled for the end of the current billing period. Enterprise subscriptions can't be changed here. Only organization owners can call it.\n\nReturns the subscription's ID and status and what was done.",
        "operationId": "OrganizationsController_updateSubscription",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSubscriptionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionChangeResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Change an organization's paid plan",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "billing.change_plan",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/require-mfa": {
      "get": {
        "description": "Reads whether an organization requires every member to sign in with multi-factor authentication.\n\nReturns the MFA requirement.",
        "operationId": "OrganizationsController_getRequireMfa",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaRequirementDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get an organization's MFA requirement",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "organizations.get_mfa_requirement",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Requires, or stops requiring, every member of an organization to sign in with multi-factor authentication. Only organization owners can call it. Turning the requirement off needs a session verified with MFA.\n\nReturns the MFA requirement now in effect.",
        "operationId": "OrganizationsController_updateRequireMfa",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRequireMfaDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaRequirementResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Turn an organization's MFA requirement on or off",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "organizations.set_mfa_requirement",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/sso-configurations": {
      "get": {
        "description": "Lists the SAML single sign-on configurations of an organization: identity provider, verified domain and whether SSO is required. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns up to 50 configurations, newest first, and the total count.",
        "operationId": "OrgSsoController_list",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigurationListDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List an organization's SAML SSO configurations",
        "tags": [
          "OrgSso"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "sso_configurations.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Connects an identity provider to one of the organization's verified domains over SAML 2.0, so users with an email on that domain can sign in through it. The domain must be DNS-verified first. Setting `enforced` blocks password sign-in for the domain and needs an owner who has signed in through SSO once. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns the new configuration.",
        "operationId": "OrgSsoController_create",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgSsoConfigurationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigurationDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Add a SAML SSO configuration",
        "tags": [
          "OrgSso"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "sso_configurations.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/sso-configurations/{id}": {
      "delete": {
        "description": "Removes an SSO configuration and its identity provider registration. Users on the domain can no longer sign in through SSO and must use a password. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns whether the configuration was deleted.",
        "operationId": "OrgSsoController_remove",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of the SSO configuration.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSuccessDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a SAML SSO configuration",
        "tags": [
          "OrgSso"
        ],
        "x-strata-surfaces": []
      },
      "patch": {
        "description": "Changes the identity provider settings of an SSO configuration, or turns SSO enforcement on or off. Fields left out keep their value. Enforcing SSO blocks password sign-in for the domain and needs an owner who has signed in through SSO once. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns the updated configuration.",
        "operationId": "OrgSsoController_update",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of the SSO configuration.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSsoConfigurationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigurationDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update a SAML SSO configuration",
        "tags": [
          "OrgSso"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "sso_configurations.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/usage-cap": {
      "put": {
        "description": "Sets or removes the monthly cap on browser hours for an organization. Runs that would go past the cap are refused. Only organization owners can call it.\n\nReturns a confirmation of the new cap.",
        "operationId": "OrganizationsController_updateUsageCap",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUsageCapDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageCapResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set an organization's usage cap",
        "tags": [
          "Organizations"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "organizations.set_usage_cap",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/verified-domains": {
      "get": {
        "description": "Lists the email domains an organization has claimed for SAML SSO, with their DNS verification token and state. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns up to 50 domain claims, newest first, and the total count.",
        "operationId": "OrgVerifiedDomainsController_list",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifiedDomainListDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List an organization's verified domains",
        "tags": [
          "OrgVerifiedDomains"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "verified_domains.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Claims an email domain for the organization's SAML SSO. To prove ownership, publish a TXT record `cc-sso-verify=<verification_token>` at `_cloudcruise-sso-verification.<domain>`, then verify the domain. Claiming a domain the organization already claimed returns the existing claim. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns the domain claim with its verification token.",
        "operationId": "OrgVerifiedDomainsController_create",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimVerifiedDomainDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifiedDomainDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Claim an email domain",
        "tags": [
          "OrgVerifiedDomains"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "verified_domains.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/organizations/{organization_id}/verified-domains/{id}": {
      "delete": {
        "description": "Deletes an organization's claim on an email domain. It is refused while an SSO configuration uses the domain; delete that first. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns whether the claim was deleted.",
        "operationId": "OrgVerifiedDomainsController_remove",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of the domain claim.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationSuccessDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Remove a verified domain",
        "tags": [
          "OrgVerifiedDomains"
        ],
        "x-strata-surfaces": []
      }
    },
    "/organizations/{organization_id}/verified-domains/{id}/verify": {
      "post": {
        "description": "Looks up the domain's TXT record now and marks the domain verified when the token matches. Safe to repeat while DNS propagates; limited to 10 calls a minute. Only one organization can verify a domain. Only organization owners can call it, and only on a plan that includes SSO (Enterprise).\n\nReturns whether the domain is verified and, if not, what DNS returned and the record to add.",
        "operationId": "OrgVerifiedDomainsController_verify",
        "parameters": [
          {
            "description": "ID of the organization.",
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of the domain claim.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyDomainResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Check a domain's DNS verification",
        "tags": [
          "OrgVerifiedDomains"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "verified_domains.verify",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/proxies/closest": {
      "get": {
        "description": "CloudCruise routes a vault credential's runs through a managed proxy, chosen by country or by a specific proxy IP. Finds the managed proxy closest to a location, given as coordinates or as an IP address (the caller's IP by default). Fails with 400 for a private IP or when no proxy matches.\n\nReturns one proxy with its IP, port and location.",
        "operationId": "ProxiesController_getClosestProxy",
        "parameters": [
          {
            "description": "Public IP address to find the closest proxy to. Ignored when lat and lon are given. Defaults to the caller's IP.",
            "in": "query",
            "name": "target_ip",
            "required": false,
            "schema": {
              "example": "203.0.113.24",
              "type": "string"
            }
          },
          {
            "description": "Latitude to find the closest proxy to, from -90 to 90. Give it with lon.",
            "in": "query",
            "name": "lat",
            "required": false,
            "schema": {
              "example": "41.85",
              "type": "string"
            }
          },
          {
            "description": "Longitude to find the closest proxy to, from -180 to 180. Give it with lat.",
            "in": "query",
            "name": "lon",
            "required": false,
            "schema": {
              "example": "-87.65",
              "type": "string"
            }
          },
          {
            "description": "Any stable string, such as a credential ID. When several proxies share the closest city, the same seed always picks the same one and different seeds spread across them. Without it, the first is picked.",
            "in": "query",
            "name": "seed",
            "required": false,
            "schema": {
              "example": "8f14e45f-ceea-4e7a-9c4b-2f1d3a5b6c7d",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClosestProxyDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Find the closest proxy",
        "tags": [
          "Proxies"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "proxies.find_closest",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/proxies/countries": {
      "get": {
        "description": "CloudCruise routes a vault credential's runs through a managed proxy, chosen by country or by a specific proxy IP. Lists the countries a credential's proxy can be set to.\n\nReturns the country codes.",
        "operationId": "ProxiesController_getCountries",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyCountriesDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List proxy countries",
        "tags": [
          "Proxies"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "proxies.list_countries",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/proxies/coverage": {
      "get": {
        "description": "CloudCruise routes a vault credential's runs through a managed proxy, chosen by country or by a specific proxy IP. Lists the cities that have managed proxies, without their addresses. Pick a city, then find its proxy with the closest-proxy operation and its coordinates.\n\nReturns each city with its region, country and coordinates.",
        "operationId": "ProxiesController_getProxyCoverage",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyCoverageDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List proxy locations",
        "tags": [
          "Proxies"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "proxies.list_coverage",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/proxies/current-ip": {
      "get": {
        "description": "Returns the public IP address CloudCruise sees for this request. Pass it to find the closest proxy, or use it to recognize the caller's own network.\n\nReturns the IP address.",
        "operationId": "ProxiesController_getCurrentIp",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrentIpDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the caller's IP address",
        "tags": [
          "Proxies"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "proxies.get_current_ip",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/proxies/list": {
      "get": {
        "description": "CloudCruise routes a vault credential's runs through a managed proxy, chosen by country or by a specific proxy IP. Lists every managed proxy with its IP address and location. Only workspaces with proxy-list access can call it; others get 403.\n\nReturns the proxies.",
        "operationId": "ProxiesController_getProxyList",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyListDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List proxies",
        "tags": [
          "Proxies"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "proxies.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/run": {
      "post": {
        "description": "Starts a new browser agent run of a workflow. Use it to:\n- Start a run with input variables, including vault credential references\n- Pin the run to a workflow version or branch\n- Configure webhook notifications for run events\n- Perform a dry run to prevent writes in the target software\n\nThe run is queued and executes asynchronously; fetch the run by its session ID to follow its status and get its results.\n\nReturns the new run's session ID.",
        "operationId": "RunController_createRun",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRunPayloadDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartRunResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start a run",
        "tags": [
          "Run"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "runs.start",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/run/clients/{clientId}/events": {
      "get": {
        "operationId": "RunController_streamClientEvents",
        "parameters": [
          {
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Run"
        ],
        "x-strata-surfaces": []
      }
    },
    "/run/{sessionId}": {
      "get": {
        "description": "Retrieves the results and execution details of one browser agent run:\n- Current execution status and outcome\n- Output data shaped by the workflow's data model\n- Errors, screenshots, screen recordings and files\n- Input variables and the vault credentials used\n\nOnly execution.success, execution.failed and execution.stopped are final, so poll until the status is one of them. When the workspace's retention policy has deleted the run's details, `details_expired` is true and only summary fields remain.\n\nReturns the run's status, output data, errors, and screenshot, recording and file URLs.",
        "operationId": "RunController_getRun",
        "parameters": [
          {
            "description": "Unique identifier of the run session, as returned when the run was started.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunResultsDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a run's status and results",
        "tags": [
          "Run"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.get",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/run/{sessionId}/debug-snapshots/{nodeId}": {
      "get": {
        "description": "Retrieves what the page looked like when a run executed one workflow node: an HTML snapshot of the full DOM, including inlined iframe content, and the screenshots taken at that node. Page snapshots exist only for runs started with `debug: true`. Use it with a run's errors to see why a node failed.\n\nReturns a temporary URL to the page snapshot and the node's screenshot URLs.",
        "operationId": "RunController_getDebugSnapshots",
        "parameters": [
          {
            "description": "Unique identifier of the run session, as returned when the run was started.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Identifier of the workflow node, as given in the run's errors and screenshots.",
            "in": "path",
            "name": "nodeId",
            "required": true,
            "schema": {
              "example": "9f8e7d6c-5b4a-4321-9edc-ba9876543210",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DebugSnapshotsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a run's debug snapshots for a node",
        "tags": [
          "Run"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.get_debug_snapshots",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/run/{sessionId}/interrupt": {
      "post": {
        "description": "Stops a running run, or removes a queued run from the queue. Either way the run ends with the status `execution.stopped` and cannot be resumed. A run held by a pause (`execution.paused`) cannot be stopped this way; cancel it from the queue instead. Requires the Owner or Member workspace role.\n\nReturns whether a running run was told to stop or a queued run was cleared.",
        "operationId": "RunController_interruptRun",
        "parameters": [
          {
            "description": "Unique identifier of the run session, as returned when the run was started.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterruptRunResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Stop a run",
        "tags": [
          "Run"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "runs.interrupt",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/run/{sessionId}/network": {
      "get": {
        "description": "Retrieves the HTTP requests the browser made during a run, with their headers and bodies, so you can see which calls a page made and what they returned. By default, preflight requests, static assets, analytics calls and other noise are left out. Headers, URLs and bodies are redacted by pattern only: known auth headers, secret keys and token-shaped values are replaced, but a credential under an unfamiliar name or format comes back as captured. Responds with 503 when part of the stored traffic cannot be read; retry later.\n\nReturns the captured requests, oldest first, and whether the run has ended.",
        "operationId": "RunController_getRunNetwork",
        "parameters": [
          {
            "description": "Unique identifier of the run session, as returned when the run was started.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Set to true to return every captured request, including preflight requests, static assets and analytics calls. Defaults to false.",
            "in": "query",
            "name": "include_noise",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunNetworkResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a run's network traffic",
        "tags": [
          "Run"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.get_network",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/run/{sessionId}/user_interaction": {
      "post": {
        "description": "Sends data to a run that is waiting on a User Interaction node, such as a verification code the target site asked for. The run continues once the data is accepted.\n\nThe body's keys and value types must match the data model of the node the run waits on. Data that does not match returns 400 with the expected data models.\n\nReturns the run's session ID once the data is accepted.",
        "operationId": "RunController_addUserInteraction",
        "parameters": [
          {
            "description": "Unique identifier of the run session, as returned when the run was started.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "object"
                    },
                    {
                      "items": {},
                      "type": "array"
                    }
                  ],
                  "description": "A value for one field of the waiting node's data model, of the type that field declares.",
                  "nullable": true
                },
                "description": "The input the waiting node asks for, as key-value pairs matching its data model. String values are converted to the number or boolean type the data model declares.",
                "example": {
                  "verification_code": "123456"
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInteractionResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Answer a run waiting for user input",
        "tags": [
          "Run"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "runs.submit_user_interaction",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs": {
      "get": {
        "description": "Lists the workspace's browser agent runs, newest first. Filter by creation time, workflow, execution status, vault credential or a search keyword. Without start_time, only runs from the last 24 hours are returned. At most 10,000 runs are returned per request.\n\n**Pagination:** for more than 500 runs, set `limit` to 500 and fetch pages in turn, passing the `created_at` of the last row as `cursor` for the next request. A page with fewer rows than `limit` is the last one.\n\nReturns an array of run summaries (session ID, workflow, status, timestamps and credentials used) without output data; fetch a single run to get its results.",
        "operationId": "RunsController_getFilteredRuns",
        "parameters": [
          {
            "description": "ISO 8601 timestamp of the earliest run creation time to include. Cannot be older than 1 year or in the future. Defaults to 24 hours ago.",
            "in": "query",
            "name": "start_time",
            "required": false,
            "schema": {
              "example": "2026-02-14T00:00:00Z",
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 timestamp of the latest run creation time to include. Must not be before start_time or in the future.",
            "in": "query",
            "name": "end_time",
            "required": false,
            "schema": {
              "example": "2026-02-15T23:59:59Z",
              "type": "string"
            }
          },
          {
            "description": "Filter runs by workflow ID. Ignored when workflow_ids is given.",
            "in": "query",
            "name": "workflow_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter runs by execution status: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped. Ignored when statuses is given.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "example": "execution.success",
              "type": "string"
            }
          },
          {
            "description": "Filter runs by vault credential (permissioned_user_id). Ignored when credential_ids is given.",
            "in": "query",
            "name": "credential_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter runs by several workflow IDs.",
            "in": "query",
            "name": "workflow_ids",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter runs by several vault credential IDs (permissioned_user_id). Matches runs that used any of them.",
            "in": "query",
            "name": "credential_ids",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter runs by vault credential and, optionally, domain, as a JSON array of `{\"permissioned_user_id\": \"...\", \"domain\": \"...\"}` objects (at most 100). A run matches when it used any listed credential; with a domain, only on that domain. Runs that have not started yet match when the credential is one of the candidates they may use. Expired runs did not keep their domain, so they match only entries without one. Combined with credential_id and credential_ids: a run matches when it matches any of them.",
            "in": "query",
            "name": "credentials",
            "required": false,
            "schema": {
              "example": "[{\"permissioned_user_id\":\"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\"domain\":\"https://app.example.com\"}]",
              "maxItems": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter runs by several execution statuses: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped.",
            "in": "query",
            "name": "statuses",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Maximum number of runs to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "maximum": 10000,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "ISO 8601 timestamp for cursor-based pagination. Returns only runs created strictly before it. Pass the created_at of the last row of the previous page. When a page has fewer rows than limit, there are no more pages.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "example": "2026-02-15T10:00:00Z",
              "type": "string"
            }
          },
          {
            "description": "Search text. Matches runs whose input variables, output data or error messages contain the words (prefix match), or whose session ID, workflow ID or vault credential ID equals it exactly. Encrypted inputs are not searched.",
            "in": "query",
            "name": "keyword",
            "required": false,
            "schema": {
              "example": "invoice",
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Leave out runs started on a branch other than their workflow's default branch. Runs with no recorded branch are kept: those pinned to a workflow version, and those created before branches were recorded on runs.",
            "in": "query",
            "name": "default_branch_only",
            "required": false,
            "schema": {
              "example": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/FilteredRunDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List runs",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs/pause": {
      "post": {
        "description": "Pauses workflows or vault credentials so their queued runs are held and new runs wait with the status `execution.paused`. Requires the Owner or Member workspace role.\n\nQueued runs move to the paused queue and each sends an `execution.paused` webhook. Runs already executing are not stopped. A pause lasts until it is lifted; it does not expire.\n\nReturns the number of runs held, any worker groups that were busy and need a retry, and every paused resource after the call.",
        "operationId": "RunsController_pauseRuns",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PauseRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PauseRunsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Pause runs of workflows or credentials",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "runs.pause",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs/paused": {
      "get": {
        "description": "Lists the workflows and vault credentials paused in the workspace: manual pauses, pauses set by an error code's `pause_workflow` or `pause_credential` action, and workflows held by a closed run window. Runs of a paused resource wait with the status `execution.paused`.\n\nReturns the paused workflows and the paused credentials, each keyed by its pause key, with when and why it was paused and, for a run-window hold, when the window opens, plus `heldRuns`: how many runs each pause holds and their session IDs.",
        "operationId": "RunsController_getPausedResources",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PausedResourcesWithHeldRunsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List paused workflows and credentials",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.list_paused",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs/tombstones": {
      "get": {
        "description": "Lists the workspace's runs whose details the retention policy has deleted, newest first. These runs no longer appear in the list of runs. Takes the same filters and cursor pagination as listing runs, except `keyword`, which is ignored. Without start_time, only runs from the last 24 hours are returned. At most 10,000 runs are returned per request.\n\nReturns an array of run summaries (session ID, workflow, status, timestamps and credentials used), each with `details_expired` set to true.",
        "operationId": "RunsController_getFilteredTombstones",
        "parameters": [
          {
            "description": "ISO 8601 timestamp of the earliest run creation time to include. Cannot be older than 1 year or in the future. Defaults to 24 hours ago.",
            "in": "query",
            "name": "start_time",
            "required": false,
            "schema": {
              "example": "2026-02-14T00:00:00Z",
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 timestamp of the latest run creation time to include. Must not be before start_time or in the future.",
            "in": "query",
            "name": "end_time",
            "required": false,
            "schema": {
              "example": "2026-02-15T23:59:59Z",
              "type": "string"
            }
          },
          {
            "description": "Filter runs by workflow ID. Ignored when workflow_ids is given.",
            "in": "query",
            "name": "workflow_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter runs by execution status: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped. Ignored when statuses is given.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "example": "execution.success",
              "type": "string"
            }
          },
          {
            "description": "Filter runs by vault credential (permissioned_user_id). Ignored when credential_ids is given.",
            "in": "query",
            "name": "credential_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter runs by several workflow IDs.",
            "in": "query",
            "name": "workflow_ids",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter runs by several vault credential IDs (permissioned_user_id). Matches runs that used any of them.",
            "in": "query",
            "name": "credential_ids",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter runs by vault credential and, optionally, domain, as a JSON array of `{\"permissioned_user_id\": \"...\", \"domain\": \"...\"}` objects (at most 100). A run matches when it used any listed credential; with a domain, only on that domain. Runs that have not started yet match when the credential is one of the candidates they may use. Expired runs did not keep their domain, so they match only entries without one. Combined with credential_id and credential_ids: a run matches when it matches any of them.",
            "in": "query",
            "name": "credentials",
            "required": false,
            "schema": {
              "example": "[{\"permissioned_user_id\":\"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\"domain\":\"https://app.example.com\"}]",
              "maxItems": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter runs by several execution statuses: execution.queued, execution.start, execution.paused, execution.requeued, execution.success, execution.failed or execution.stopped.",
            "in": "query",
            "name": "statuses",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Maximum number of runs to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "maximum": 10000,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "ISO 8601 timestamp for cursor-based pagination. Returns only runs created strictly before it. Pass the created_at of the last row of the previous page. When a page has fewer rows than limit, there are no more pages.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "example": "2026-02-15T10:00:00Z",
              "type": "string"
            }
          },
          {
            "description": "Search text. Matches runs whose input variables, output data or error messages contain the words (prefix match), or whose session ID, workflow ID or vault credential ID equals it exactly. Encrypted inputs are not searched.",
            "in": "query",
            "name": "keyword",
            "required": false,
            "schema": {
              "example": "invoice",
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Leave out runs started on a branch other than their workflow's default branch. Runs with no recorded branch are kept: those pinned to a workflow version, and those created before branches were recorded on runs.",
            "in": "query",
            "name": "default_branch_only",
            "required": false,
            "schema": {
              "example": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ExpiredRunDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List expired runs",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.list_expired",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs/unpause": {
      "post": {
        "description": "Lifts a pause so held runs can start. Requires the Owner or Member workspace role.\n\nWith `workflow` or `credential`, it removes the pause on each listed resource, including one set by an error code, and moves its held runs back to the queue. With `run_window`, it is Run now for a closed run window: it starts each listed workflow's held runs, covers runs submitted while the lift is active, and lasts until the window next opens or is edited. Workflows whose window is open are skipped.\n\nReturns the number of runs moved back to the queue and any worker groups that were busy and need a retry.",
        "operationId": "RunsController_unpauseRuns",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnpauseRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnpauseRunsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Unpause runs of workflows or credentials",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "runs.unpause",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs/unpause-all": {
      "post": {
        "description": "Lifts every manual pause in the workspace, including pauses set by error codes, and moves the held runs back to the queue. Requires the Owner or Member workspace role. Holds from a closed run window are skipped; unpause those by workflow with `run_window`.\n\nA pause that cannot be lifted does not stop the others: the call still returns 200, with `success` false and the failure in `errors`.\n\nReturns the number of runs moved back to the queue, any worker groups that were busy, and any pauses that could not be lifted. The pauses are lifted even for busy groups, and a periodic sweep releases their runs within about 10 minutes.",
        "operationId": "RunsController_unpauseAllRuns",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnpauseRunsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Unpause every paused workflow and credential",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "runs.unpause_all",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/runs/workflow/{workflowId}/errors": {
      "get": {
        "description": "Lists the errors a workflow's runs hit within a time range, newest first, up to `limit`. Use it to see which errors a workflow fails with most and which runs hit them.\n\nReturns the errors grouped by error code, with a count per code and each error's run session ID, time, category, message and AI-generated description.",
        "operationId": "RunsController_getWorkflowErrors",
        "parameters": [
          {
            "description": "Unique identifier of the workflow.",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 timestamp of the start of the time range. Errors created at or after it are included.",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "example": "2025-10-01T00:00:00Z",
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 timestamp of the end of the time range. Errors created at or before it are included.",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "example": "2025-10-29T23:59:59Z",
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Maximum number of errors to return, newest first. Errors beyond it are left out of the groups and of total_errors.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "maximum": 5000,
              "minimum": 1,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowErrorsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a workflow's errors",
        "tags": [
          "Runs"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "runs.get_workflow_errors",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/search": {
      "get": {
        "description": "Searches the workspace's workflows, runs, vault entries, webhooks, members, organizations and builder conversations at once, like the dashboard's command palette. Each kind returns at most 6 matches.\n\nReturns the matches grouped by kind, each with its ID, label and dashboard path.",
        "operationId": "SearchController_globalSearch",
        "parameters": [
          {
            "description": "Text to search for, at most 200 characters. Matches names, run IDs and run inputs, results and errors, vault aliases and domains, webhook URLs, and member names and emails. Fewer than 2 characters returns empty lists.",
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "example": "invoice",
              "maxLength": 200,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalSearchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Search the workspace",
        "tags": [
          "Search"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "search.query",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/secret-providers": {
      "get": {
        "description": "Lists the workspace's connections to external secret providers (1Password or a custom HTTP provider). Use a connection's id as secret_provider_id when binding a vault entry to a provider item. Never includes a connection's token or signing secrets.\n\nReturns an array of connections.",
        "operationId": "SecretProvidersController_list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SecretProviderDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List secret provider connections",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "secret_providers.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "operationId": "SecretProvidersController_connect",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSecretProviderDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "SecretProviders"
        ],
        "x-strata-surfaces": []
      }
    },
    "/secret-providers/cache/clear": {
      "delete": {
        "description": "Drops the cached secrets of every vault entry in the workspace that is bound to a secret provider, so the next run fetches them from the provider again. Use it after changing a secret in the provider.\n\nReturns ok: true.",
        "operationId": "SecretProvidersController_clearCache",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretProviderOkDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Clear cached provider secrets",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "secret_providers.clear_cache",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/secret-providers/{id}": {
      "delete": {
        "description": "Deletes a secret provider connection and its stored credentials, and clears the workspace's cached provider secrets. A connection that vault entries are still bound to cannot be deleted: the call returns 409 with the bound entries' permissioned_user_id and domain.\n\nReturns ok: true.",
        "operationId": "SecretProvidersController_disconnect",
        "parameters": [
          {
            "description": "Connection identifier, from the list of secret providers.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretProviderOkDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a secret provider connection",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-surfaces": []
      },
      "patch": {
        "operationId": "SecretProvidersController_update",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecretProviderDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "SecretProviders"
        ],
        "x-strata-surfaces": []
      }
    },
    "/secret-providers/{id}/item-name": {
      "get": {
        "description": "Looks up the display name of one provider item by its reference, for example to show which item a vault entry is bound to.\n\nReturns the item's name, or null when the provider does not know the reference.",
        "operationId": "SecretProvidersController_resolveItemName",
        "parameters": [
          {
            "description": "Connection identifier, from the list of secret providers.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Item reference, as stored in a vault entry's secret_ref, such as op://<vaultId>/<itemId>.",
            "in": "query",
            "name": "ref",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretProviderItemNameDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a secret provider item's name",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": true
        },
        "x-strata-name": "secret_providers.get_item_name",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/secret-providers/{id}/items": {
      "get": {
        "description": "Lists the items a secret provider connection can see across its vaults, with names and references only, never secret values. Use an item's ref as secret_ref when binding a vault entry. When the provider holds more items than one listing returns, the response carries the header X-Items-Truncated: true. A custom HTTP provider that does not support listing returns 400.\n\nReturns an array of items.",
        "operationId": "SecretProvidersController_listItems",
        "parameters": [
          {
            "description": "Connection identifier, from the list of secret providers.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SecretProviderItemDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List secret provider items",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": true
        },
        "x-strata-name": "secret_providers.list_items",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/secret-providers/{id}/signing-secrets": {
      "post": {
        "operationId": "SecretProvidersController_addSigningSecret",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSigningSecretDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "SecretProviders"
        ],
        "x-strata-surfaces": []
      }
    },
    "/secret-providers/{id}/signing-secrets/{secretId}": {
      "delete": {
        "description": "Removes one signing secret from a custom HTTP provider connection. CloudCruise stops signing requests with it, so the provider must already accept another secret on the connection. The last signing secret cannot be removed (409).\n\nReturns the updated connection.",
        "operationId": "SecretProvidersController_removeSigningSecret",
        "parameters": [
          {
            "description": "Connection identifier, from the list of secret providers.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Identifier of the signing secret, from the connection's config_hint.signing_secrets.",
            "in": "path",
            "name": "secretId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretProviderDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Remove a signing secret",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-surfaces": []
      }
    },
    "/secret-providers/{id}/test": {
      "post": {
        "description": "Checks that CloudCruise can reach and authenticate to the provider with the connection's stored credentials. For a custom HTTP provider it also stores the capabilities the provider reports, such as item listing. A failed check returns an error status with the provider's message.\n\nReturns ok: true when the connection works.",
        "operationId": "SecretProvidersController_test",
        "parameters": [
          {
            "description": "Connection identifier, from the list of secret providers.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretProviderOkDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Test a secret provider connection",
        "tags": [
          "SecretProviders"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "secret_providers.test",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/session-traces/{sessionId}": {
      "get": {
        "description": "Lists the model calls and recorded steps of a run, node by node: what each step sent to the model and what came back. Use it to see why a vision or AI step chose what it did. Images in a trace are references; fetch them with the trace media operation.\n\nReturns the traces, newest first, with their node, input, output, timing and type.",
        "operationId": "SessionTraceController_getSessionTraces",
        "parameters": [
          {
            "description": "Unique identifier of the run session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SessionTraceDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a run's traces",
        "tags": [
          "SessionTrace"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "traces.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/users/me": {
      "get": {
        "description": "Identifies the caller: the signed-in user, or the API key and its owner. Use it to confirm which account and workspace later calls act on.\n\nReturns the user id, email, current workspace id and, for API keys, the key's alias and id.",
        "operationId": "UsersController_getMe",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallerIdentityDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Show who you are signed in as",
        "tags": [
          "Users"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "account.whoami",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault": {
      "delete": {
        "operationId": "VaultController_deleteCredential",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultDeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      },
      "get": {
        "description": "Gets one vault entry by permissioned_user_id and domain, or every entry in the workspace when both are omitted. Pass both or neither.\n\nuser_name, password, tfa_secret, proxy_value for custom proxies, additional field values and security questions are ciphertext encrypted client-side with the workspace's AES key, which this API does not expose to agents. The saved browser session (cookies, local_storage, session_storage) is plaintext: it is returned on single-entry reads and on list reads with an API key.\n\nReturns a single vault entry when both query parameters are given, otherwise an array of vault entries.",
        "operationId": "VaultController_getCredentials",
        "parameters": [
          {
            "description": "Identifier of the entry's user. Pass it with domain to get a single entry.",
            "in": "query",
            "name": "permissioned_user_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Domain of the entry. Pass it with permissioned_user_id to get a single entry.",
            "in": "query",
            "name": "domain",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/VaultEntryDto"
                    },
                    {
                      "items": {
                        "$ref": "#/components/schemas/VaultEntryDto"
                      },
                      "type": "array"
                    }
                  ]
                }
              }
            },
            "description": "A single vault entry, or an array of vault entries when no query parameters are given."
          }
        },
        "summary": "Get vault entries",
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      },
      "post": {
        "operationId": "VaultController_postCredential",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultPostPutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "operationId": "VaultController_putCredential",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultPostPutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/browser-state": {
      "put": {
        "operationId": "VaultController_storeBrowserState",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultStoreBrowserStateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/clear-browser-state": {
      "patch": {
        "description": "Clears the stored browser state (cookies, localStorage and sessionStorage) for a specific vault entry. The next run using this entry performs a fresh login instead of restoring the cached browser session.\n\nThis is useful when:\n- The stored browser state causes errors or unexpected behavior during runs\n- The entry's credentials changed and a fresh login is needed\n- A failing workflow is being debugged and stale browser state should be ruled out\n\nReturns success: true.",
        "operationId": "VaultController_clearBrowserState",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultClearBrowserStateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultSuccessDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Clear browser state",
        "tags": [
          "Vault"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "vault.clear_browser_state",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault/clear-secret-cache": {
      "patch": {
        "description": "Drops the cached copy of a secret-provider-backed vault entry's secrets (for example from 1Password), so the next run or read fetches them from the provider again. The entry's cache duration is unchanged.\n\nReturns success: true. Fails with 400 when the entry is not linked to a secret provider.",
        "operationId": "VaultController_clearProviderSecretCache",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultClearSecretCacheRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultSuccessDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Clear cached provider secret",
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/copy": {
      "post": {
        "description": "Copies a vault entry from the current workspace into another workspace the caller can access. Credentials are re-encrypted with the target workspace's key; a stored passkey is not copied. A copy into a workspace of another organization gets a new permissioned_user_id. With overwrite_existing, the copy replaces the target workspace's entry named by existing_entry_id.\n\nReturns the identifier, permissioned_user_id and domain of the entry in the target workspace.",
        "operationId": "VaultController_copyToWorkspace",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VaultCopyToWorkspaceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultCopyResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Copy a vault entry to another workspace",
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/okta-verify/enroll": {
      "post": {
        "operationId": "VaultController_enrollOktaVerify",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OktaVerifyEnrollRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/passkey/assertion": {
      "post": {
        "operationId": "VaultController_getPasskeyForAssertion",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyAssertionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/passkey/commit": {
      "post": {
        "operationId": "VaultController_commitPasskey",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyCommitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/passkey/enroll": {
      "post": {
        "description": "Starts an agent in a builder browser that signs in to the site with a vault entry's credentials and registers a new passkey on the site's account. The browser uses the entry's proxy, so the sign-in comes from the same location as runs. The new passkey is stored on the entry and used by later runs. One enrollment per entry and per user runs at a time; a second one returns 409. The agent runs after this call returns: follow it on the dashboard, and use cancel, take over or feedback with the returned identifier.\n\nReturns the enrollment session's identifier.",
        "operationId": "PasskeyEnrollmentController_enroll",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyEnrollRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyEnrollmentStartedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start a passkey enrollment",
        "tags": [
          "PasskeyEnrollment"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "passkey_enrollment.start",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault/passkey/enroll/cancel": {
      "post": {
        "description": "Stops a passkey enrollment started by the caller: stops its agent, releases the vault entry for a new enrollment and closes the builder browser. A passkey the site already registered stays on the site.\n\nReturns whether a running agent was stopped.",
        "operationId": "PasskeyEnrollmentController_cancelEnroll",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyEnrollmentConversationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyEnrollmentCancelledDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Cancel a passkey enrollment",
        "tags": [
          "PasskeyEnrollment"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "passkey_enrollment.cancel",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault/passkey/enroll/feedback": {
      "post": {
        "description": "Sends an instruction to the running agent of a passkey enrollment started by the caller, such as where the site's passkey settings are. The agent reads it at its next step.\n\nReturns ok: true.",
        "operationId": "PasskeyEnrollmentController_enrollFeedback",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyEnrollmentFeedbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyEnrollmentOkDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Send feedback to a passkey enrollment",
        "tags": [
          "PasskeyEnrollment"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "passkey_enrollment.send_feedback",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault/passkey/enroll/takeover": {
      "post": {
        "description": "Pauses the agent of a passkey enrollment started by the caller so a person can finish the steps in the live browser on the dashboard, for example a check the agent cannot pass. The enrollment keeps watching for the new passkey and stores it on the vault entry when the site registers it. The pause lasts up to 10 minutes.\n\nReturns ok: true.",
        "operationId": "PasskeyEnrollmentController_enrollTakeover",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyEnrollmentConversationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyEnrollmentOkDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Take over a passkey enrollment",
        "tags": [
          "PasskeyEnrollment"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "passkey_enrollment.take_over",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault/passkey/remove": {
      "post": {
        "description": "Removes the passkey stored on a vault entry. Runs using the entry can no longer sign in with that passkey; the passkey stays registered on the target site until it is removed there.\n\nReturns success: true.",
        "operationId": "VaultController_removePasskey",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyDeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultSuccessDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Remove a vault entry's passkey",
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/summaries": {
      "get": {
        "description": "Lists the workspace's vault entries without any credential fields: identifier, domain, display name and last update. Use permissioned_user_id and domain to reference an entry in runs and other vault operations.\n\nReturns an array of entry summaries.",
        "operationId": "VaultController_getCredentialSummaries",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/VaultCredentialSummaryDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List vault entry summaries",
        "tags": [
          "Vault"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "vault.list_summaries",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/vault/tfa-code": {
      "get": {
        "description": "Reveals a live one-time 2FA code in plaintext for one vault entry. Every call is rate limited and written to the 2FA access audit log.\n\nAn authenticator code is generated from the stored seed, or from the Totp additional field named by field. An email code is the most recent one received within the freshness window, otherwise 404. SMS and magic link return 409. Pass method when the entry has more than one 2FA method.\n\nReturns the code, its method, and expires_in_seconds for authenticator codes or received_at for email codes.",
        "operationId": "VaultController_getTfaCode",
        "parameters": [
          {
            "description": "Identifier of the entry's user.",
            "in": "query",
            "name": "permissioned_user_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Domain of the entry.",
            "in": "query",
            "name": "domain",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "TFA method to read. Required when the entry has more than one TFA method",
            "in": "query",
            "name": "method",
            "required": false,
            "schema": {
              "enum": [
                "AUTHENTICATOR",
                "EMAIL",
                "MAGIC_LINK",
                "SMS"
              ],
              "type": "string"
            }
          },
          {
            "description": "Name of a Totp additional field whose seed generates the code",
            "in": "query",
            "name": "field",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultTfaCodeDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the current 2FA code",
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/vault/tfa-setup/latest-message": {
      "get": {
        "operationId": "VaultController_getTfaSetupLatestMessage",
        "parameters": [
          {
            "in": "query",
            "name": "permissioned_user_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "domain",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "Vault"
        ],
        "x-strata-surfaces": []
      }
    },
    "/visual-cache/workflows/{workflowId}/enabled": {
      "get": {
        "description": "The visual cache stores an image of the element a vision-driven step clicked, so later runs can find and click it again without a model call. Checks whether it is turned on for this workflow.\n\nReturns `enabled`.",
        "operationId": "VisualCacheController_enabled",
        "parameters": [
          {
            "description": "Unique identifier of the workflow.",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisualCacheStatusDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Check whether the visual cache is on for a workflow",
        "tags": [
          "VisualCache"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "visual_cache.get_status",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/visual-cache/workflows/{workflowId}/entries/delete": {
      "post": {
        "description": "The visual cache stores an image of the element a vision-driven step clicked, so later runs can find and click it again without a model call. Deletes the cached elements of the given nodes, so their next run locates the element with the model again and rebuilds the cache.\n\nReturns the node IDs that were cleared and those that failed.",
        "operationId": "VisualCacheController_deleteEntries",
        "parameters": [
          {
            "description": "Unique identifier of the workflow.",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteEntriesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisualCacheDeleteEntriesResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete cached elements for several nodes",
        "tags": [
          "VisualCache"
        ],
        "x-strata-surfaces": []
      }
    },
    "/visual-cache/workflows/{workflowId}/nodes/{nodeId}": {
      "delete": {
        "description": "The visual cache stores an image of the element a vision-driven step clicked, so later runs can find and click it again without a model call. Deletes the cached element of one node, so its next run locates the element with the model again and rebuilds the cache.\n\nReturns the deleted files, or `alreadyAbsent: true` when there was nothing to delete.",
        "operationId": "VisualCacheController_deleteEntry",
        "parameters": [
          {
            "description": "Unique identifier of the workflow.",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
              "type": "string"
            }
          },
          {
            "description": "Unique identifier of the workflow node.",
            "in": "path",
            "name": "nodeId",
            "required": true,
            "schema": {
              "example": "0b1c2d3e-4f50-4617-8899-aabbccddeeff",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisualCacheDeleteEntryResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a node's cached element",
        "tags": [
          "VisualCache"
        ],
        "x-strata-surfaces": []
      },
      "get": {
        "description": "The visual cache stores an image of the element a vision-driven step clicked, so later runs can find and click it again without a model call. Retrieves the element cached for one node.\n\nReturns the entry's metadata and short-lived links to the cached target and anchor images, or null fields when the node has no entry.",
        "operationId": "VisualCacheController_entry",
        "parameters": [
          {
            "description": "Unique identifier of the workflow.",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
              "type": "string"
            }
          },
          {
            "description": "Unique identifier of the workflow node.",
            "in": "path",
            "name": "nodeId",
            "required": true,
            "schema": {
              "example": "0b1c2d3e-4f50-4617-8899-aabbccddeeff",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisualCacheEntryDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a node's cached element",
        "tags": [
          "VisualCache"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "visual_cache.get_entry",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/visual-cache/workflows/{workflowId}/stored": {
      "get": {
        "description": "The visual cache stores an image of the element a vision-driven step clicked, so later runs can find and click it again without a model call. Lists which nodes of the workflow can use it and which have an element stored.\n\nReturns whether the cache is on, the eligible node IDs and the node IDs with a stored element.",
        "operationId": "VisualCacheController_entryPresence",
        "parameters": [
          {
            "description": "Unique identifier of the workflow.",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "example": "d4e5f6a7-89ab-45cd-ef01-456789012abc",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisualCachePresenceDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a workflow's visually cached nodes",
        "tags": [
          "VisualCache"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "visual_cache.list_entries",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/webhooks": {
      "post": {
        "operationId": "WebhooksController_createWebhook",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Webhooks"
        ],
        "x-strata-surfaces": []
      }
    },
    "/webhooks/sessions/{sessionId}": {
      "get": {
        "description": "Retrieves every recorded webhook delivery for a run in chronological order, including recorded replays. Useful for inspecting payloads, delivery outcomes, retries and timing.\n\nReturns the deliveries with their URL, event message, outcome, errors, duration and retry count.",
        "operationId": "WebhooksController_getAllWebhookEvents",
        "parameters": [
          {
            "description": "Unique identifier of the run session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveriesDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get webhook events for a run",
        "tags": [
          "Webhooks"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "webhooks.list_deliveries",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/webhooks/{sessionId}/replay": {
      "post": {
        "description": "Sends a run's webhook events again, signed as before, to the URLs that received them. Filter which events to send with `onlyFailed` or `deliveryErrorContains`, choose recipients with `targetUrls`, and add extra receivers with `customTargets`. Each event is sent once per recipient, with a short pause between deliveries.\n\nReturns how many deliveries succeeded, failed and were skipped, and the result of each.",
        "operationId": "WebhooksController_replayWebhooks",
        "parameters": [
          {
            "description": "Unique identifier of the run session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "example": "e5f6a7b8-9abc-4def-0123-56789abcdef0",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayWebhooksDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookReplayResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Replay a run's webhooks",
        "tags": [
          "Webhooks"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "webhooks.replay",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/webhooks/{webhookId}": {
      "delete": {
        "description": "Deletes a webhook subscription. Its URL stops receiving run events; past deliveries stay in each run's delivery log.\n\nReturns `success: true`.",
        "operationId": "WebhooksController_deleteWebhook",
        "parameters": [
          {
            "description": "Numeric identifier of the webhook.",
            "in": "path",
            "name": "webhookId",
            "required": true,
            "schema": {
              "example": 42,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeletedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "operationId": "WebhooksController_updateWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhookId",
            "required": true,
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Webhooks"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder": {
      "post": {
        "operationId": "WorkflowBuilderController_startNewWorkflowBuilderSession",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartNewWorkflowBuilderSessionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/active": {
      "get": {
        "description": "Lists every builder session you have open, whether started in the dashboard or through the API, with when it was last active and whether the builder is working. list_sessions covers the same sessions with their turn phase. Returns whether any session is open and the sessions.",
        "operationId": "WorkflowBuilderController_hasSessionRunning",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveBuilderSessionsDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List my active builder sessions, including dashboard ones",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.list_active",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/session": {
      "post": {
        "description": "Starts the AI builder on a new workflow: opens a browser at `startUrl` and creates the workflow. Waits for the browser, which can take up to a minute. The builder then sits idle until you send it a message, so the next step is send_message, then poll get_turn_state. Returns 409 while another session is being created. Returns the conversation ID, the new workflow, the starting node and the live builder viewer.",
        "operationId": "WorkflowBuilderAgentController_startSession",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartAgentSessionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderSessionStartedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start a builder conversation",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.start",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/session/from-failed-run": {
      "post": {
        "description": "Starts the AI builder on the workflow of a failed run, opens a browser at the failing node and sends the builder a repair request at once, so poll get_turn_state instead of sending a message first. Check get_repair_eligibility first: it says whether the failure still applies and gives the default request. Returns 400 when the error's category can't be repaired. Without `inputVariables` the browser reuses the failed run's inputs and credentials. Returns the new conversation's ID.",
        "operationId": "WorkflowBuilderAgentController_startSessionFromFailedRun",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartAgentSessionFromFailedRunDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairStartedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start a builder conversation to repair a failed run",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.start_from_failed_run",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/session/from-workflow": {
      "post": {
        "description": "Starts the AI builder on an existing workflow so it can edit or debug it: opens a browser and loads the workflow at the chosen branch or version, or resumes an ended conversation's saved copy. Waits for the browser, which can take up to a minute. With `targetNodeId`, the builder first runs the workflow up to that node, so poll get_turn_state until `phase` is no longer `processing` before you send a message; otherwise it sits idle until send_message. Returns the conversation ID, the workflow, the starting node, the live builder viewer and whether a run to the target node started.",
        "operationId": "WorkflowBuilderAgentController_startSessionFromWorkflow",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartAgentSessionFromWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderSessionStartedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Start a builder conversation from an existing workflow",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.start_from_workflow",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/session/repair-eligibility": {
      "get": {
        "description": "Compares a failed run with the current workflow to tell whether a repair still makes sense: the failing node may have been changed or removed since. Use it before start_from_failed_run. Returns 400 when the error's category can't be repaired by the builder at all. Otherwise returns a tier (`SHOW`, `WARN` or `SUPPRESS`) with its reason and signals, the default repair request, and signed screenshot URLs of the failure and of a successful run at the same node.",
        "operationId": "WorkflowBuilderAgentController_getRepairEligibility",
        "parameters": [
          {
            "description": "ID of the failed run (its session ID)",
            "in": "query",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the run error: an `error_id` from the run's `errors`",
            "in": "query",
            "name": "errorId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairEligibilityDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Check whether a failed run is worth repairing",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_repair_eligibility",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/sessions": {
      "get": {
        "description": "Lists the builder sessions you have open, across all your workspaces, newest first. Use it to pick up a conversation, then poll get_turn_state for it. Returns each session's conversation ID, workflow, phase, start time and URL, and the clients that started and last used it.",
        "operationId": "WorkflowBuilderAgentController_listSessions",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderSessionListDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List my open builder conversations",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.list_sessions",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}": {
      "delete": {
        "description": "Ends the builder session and closes its browser. Edits not saved with save are kept only in the conversation snapshot, not as a workflow version. Returns the conversation ID and whether the snapshot was stored before the browser closed.",
        "operationId": "WorkflowBuilderAgentController_endSession",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderSessionEndedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "End a builder conversation",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.end",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/html": {
      "get": {
        "description": "Reads the HTML of the page open in the builder's browser now, as the browser holds it: hidden fields, tokens and typed values included, nothing redacted. Fails when the browser is not connected. Returns the page URL and its HTML.",
        "operationId": "WorkflowBuilderAgentController_getHtml",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderHtmlDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the HTML of the builder's page",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_html",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/interrupt": {
      "post": {
        "description": "Stops the turn the builder is working on, including a debug run it started. The session stays open, so you can send a new message. Calling it with no turn running does nothing. Returns the conversation ID and whether a turn was stopped.",
        "operationId": "WorkflowBuilderAgentController_interrupt",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterruptResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Stop the builder's current turn",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.interrupt",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/message": {
      "post": {
        "description": "Sends an instruction to the AI builder and starts its turn. Returns at once; the turn runs in the background, so poll get_turn_state until `phase` is no longer `processing`, then read `report` or answer `humanInput` with respond. If the builder is waiting for input, the text answers that request. Returns 409 with code SESSION_BUSY while a turn is running. Returns the conversation ID, the message ID, the turn's ID (the `turnId` get_turn_state reports) and `accepted: true`, plus `answeredInChat: true` when the text answered a pending request.",
        "operationId": "WorkflowBuilderAgentController_sendMessage",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendAgentMessageDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMessageAcceptedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Send a message to the builder",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.send_message",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/messages": {
      "get": {
        "description": "Lists the messages of a live builder session: what you sent, the builder's replies, its tool calls and its questions, without system messages. Screenshots, page HTML and tool output are removed; answers to `secret` questions read `[REDACTED]`. Pages from the newest message back unless `tail` is false. Returns the page of messages, oldest first, the total count, whether more remain and whether the builder is working on a turn.",
        "operationId": "WorkflowBuilderAgentController_getMessages",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of messages to return, up to 500. Returns every message when omitted.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Number of messages to skip: from the newest when `tail` is true, from the oldest otherwise. Default 0.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Page from the newest message back. Default true; any value other than `false` counts as true.",
            "in": "query",
            "name": "tail",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderMessagesPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a builder session's messages",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_messages",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/respond": {
      "post": {
        "description": "Answers the question the builder asked when get_turn_state returned `phase` `awaiting-human-input`. Send `humanInput.messageId` as `messageId`, and either `value` for the first field or `responses` keyed by field. Use it for structured answers such as selects, error codes and logins; free text can also go through send_message. Never send secret values (fields of type `secret`) here: ask the user to enter them in the CloudCruise dashboard. The builder resumes in the background, so poll get_turn_state again. Returns the conversation ID, the answered request's ID, the turn's ID and `responded: true`.",
        "operationId": "WorkflowBuilderAgentController_respondToHumanInput",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RespondToHumanInputDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespondAcceptedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Answer the builder's question",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.respond",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/save": {
      "post": {
        "description": "Saves the builder's working copy of the workflow as a new version on the branch the builder is editing. Each call creates a version. Save before end, or the edits stay only in the conversation snapshot. Returns the saved workflow and how many background analyses still run on it.",
        "operationId": "WorkflowBuilderAgentController_saveWorkflow",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveAgentWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderSaveResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Save the builder's workflow as a new version",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "builder.save",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/screenshot": {
      "get": {
        "description": "Takes a screenshot of the page open in the builder's browser now. Fails when the browser is not connected. Returns the page URL and the screenshot as a JPEG data URL.",
        "operationId": "WorkflowBuilderAgentController_getScreenshot",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderScreenshotDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Take a screenshot of the builder's browser",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_screenshot",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/status": {
      "get": {
        "description": "Reports the state of a builder session: the turn's phase, whether the session can still continue, whether its browser is connected, and the open question if there is one. Like get_turn_state, calling it keeps the session alive; unlike it, it carries no report. Returns the status, the browser connection, the workflow ID once created and any open question.",
        "operationId": "WorkflowBuilderAgentController_getStatus",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderStatusDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a builder session's status",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_status",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/turn-state": {
      "get": {
        "description": "Reports where the builder's current turn stands. send_message and respond set `phase` to `processing` before they return, so poll after either until `phase` is no longer `processing`: `completed` carries the builder's `report`, `awaiting-human-input` carries the question in `humanInput` to answer with respond, and `agent-errored` means the turn failed. Polling also keeps the session alive. Returns the conversation ID, the phase, the ID of the message that opened the turn, and the report or question when there is one.",
        "operationId": "WorkflowBuilderAgentController_getTurnState",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TurnStateDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the builder's turn state",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_turn_state",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/agent/{conversationId}/workflow": {
      "get": {
        "description": "Gets the builder's working copy of the workflow, including edits not saved yet. Use save to store it as a version. Returns the workflow, the node the builder is at and the node after it.",
        "operationId": "WorkflowBuilderAgentController_getWorkflow",
        "parameters": [
          {
            "description": "ID of the builder conversation, from the start operation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderWorkflowDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the workflow the builder is editing",
        "tags": [
          "WorkflowBuilderAgent"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_workflow",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/auto-generate-xpaths": {
      "post": {
        "description": "Uses a model to find each field of an extract node's data schema in the given page HTML and fills in its XPath. Changes nothing stored; put the result into the node's `extract_data_model` yourself. Returns the data schema with a `path` XPath on each field it found.",
        "operationId": "WorkflowBuilderController_autoGenerateXpaths",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateXpathsRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataModelSchemaDto"
                }
              }
            },
            "description": "The node's `extract_data_model` JSON schema with `path` XPaths filled in"
          }
        },
        "summary": "Generate XPaths for an extract-data-model node",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.generate_xpaths",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/conversations/search": {
      "get": {
        "description": "Searches the saved builder conversations in your workspace by workflow name or creator, with filters for workflow and start time. Page with `limit` and either `offset` or `before_start_time`. Returns the matching conversations, each with its workflow, times, end reason, counters and creator, and the number returned.",
        "operationId": "WorkflowBuilderController_searchConversations",
        "parameters": [
          {
            "description": "Text to match against the workflow name and the creator's name or email",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only conversations on this workflow",
            "in": "query",
            "name": "workflow_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Only conversations that started at or after this time",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Only conversations that started at or before this time",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Cursor for the next page: pass the `start_time` of the last conversation you got. Sorts by start time, newest first, and can't be combined with `offset`.",
            "in": "query",
            "name": "before_start_time",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Number of conversations to skip. Can't be combined with `before_start_time`.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "number"
            }
          },
          {
            "description": "Number of conversations to return",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Column to sort by. `user` and `creater_id` both sort by the creator's name. Ignored when `before_start_time` is set.",
            "in": "query",
            "name": "order_by",
            "required": false,
            "schema": {
              "default": "start_time",
              "enum": [
                "workflow_name",
                "creater_id",
                "user",
                "start_time",
                "nr_human_messages"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort ascending instead of descending",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderConversationSearchResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Search builder conversations",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder_conversations.search",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/conversations/{conversationId}": {
      "get": {
        "description": "Gets one builder conversation from your workspace with its saved chat and workflow snapshot. Use builder.get_messages for a live session's messages. Answers to `secret` questions in the chat read `[REDACTED]`. Use builder_conversations.get when you need only the record. Returns the conversation, its chat, the workflow snapshot, what you may do with it and any retention notice.",
        "operationId": "WorkflowBuilderController_getConversationChat",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Include the saved chat. Default true; only `false` leaves it out.",
            "in": "query",
            "name": "chat",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderConversationChatDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a builder conversation with its saved chat",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder_conversations.get_chat",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/conversations/{conversationId}/shares": {
      "get": {
        "description": "Lists the users a builder conversation is shared with, newest first. Sharing with the whole workspace is a separate flag, set with set_workspace_share. Returns each share's user, permission and creation time.",
        "operationId": "WorkflowBuilderController_listConversationShares",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ConversationShareDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List who a builder conversation is shared with",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder_conversations.list_shares",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Shares a builder conversation, including its chat, with another member of its workspace. Fails when the user is not a member or you may not share it. Returns the new share.",
        "operationId": "WorkflowBuilderController_shareConversation",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationShareDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationShareDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Share a builder conversation with a user",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "builder_conversations.share",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/conversations/{conversationId}/shares/{shareId}": {
      "delete": {
        "description": "Removes one share from a builder conversation, so that user can no longer read it. Returns `success: true`.",
        "operationId": "WorkflowBuilderController_revokeConversationShare",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the share, from list_shares",
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeShareResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Stop sharing a builder conversation with a user",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/conversations/{conversationId}/summary": {
      "get": {
        "description": "Gets one builder conversation's record from your workspace, without its chat. Returns the conversation (workflow, times, end reason, counters, origins), its creator and whether you can open its workflow.",
        "operationId": "WorkflowBuilderController_getConversationSummary",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderConversationSummaryDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a builder conversation",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder_conversations.get",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/conversations/{conversationId}/workspace-share": {
      "put": {
        "description": "Turns sharing of a builder conversation, including its chat, with every member of its workspace on or off. Returns the conversation's ID, workspace and new sharing flag.",
        "operationId": "WorkflowBuilderController_setConversationWorkspaceShare",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetConversationWorkspaceShareDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceShareResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Share a builder conversation with the whole workspace",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "builder_conversations.set_workspace_share",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/desktop-images/{desktopImageId}/machine": {
      "get": {
        "operationId": "WorkflowBuilderController_getDesktopImageMachineStatus",
        "parameters": [
          {
            "in": "path",
            "name": "desktopImageId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/from-workflow": {
      "post": {
        "operationId": "WorkflowBuilderController_startBuilderFromExistingWorkflow",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBuilderFromExistingWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/upload-file": {
      "post": {
        "operationId": "WorkflowBuilderController_uploadFile",
        "parameters": [],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/upload-file/presign": {
      "post": {
        "operationId": "WorkflowBuilderController_presignUploadFile",
        "parameters": [],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/validate-file-url": {
      "post": {
        "description": "Fetches the start of a file from a public URL to check the builder can use it, for example as a file input. Returns whether it is accessible, its file name, content type and size, or the error.",
        "operationId": "WorkflowBuilderController_validateFileUrl",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateFileUrlRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateFileUrlResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Check that a file URL can be downloaded",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.validate_file_url",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/{conversationId}/clear": {
      "post": {
        "description": "Ends the conversation and starts a new one on the same workflow and browser, with an empty chat. The old conversation's ID stops working; use the returned one for every later call. Returns the new conversation's ID.",
        "operationId": "WorkflowBuilderController_clearBuilderConversation",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearConversationResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Clear the builder's chat and continue",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/{conversationId}/end": {
      "delete": {
        "operationId": "WorkflowBuilderController_endBuilderSession",
        "parameters": [
          {
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-builder/{conversationId}/proxy": {
      "get": {
        "description": "Gets the public IP address the builder's browser goes out through, for allow-listing it on a site. Returns the IP, or null when the session has no proxy.",
        "operationId": "WorkflowBuilderController_getBuilderProxyIp",
        "parameters": [
          {
            "description": "ID of the builder conversation",
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuilderProxyIpDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the builder browser's proxy IP",
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "builder.get_proxy_ip",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-builder/{conversationId}/save": {
      "post": {
        "operationId": "WorkflowBuilderController_saveWorkflowFromEditor",
        "parameters": [
          {
            "in": "path",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveWorkflowFromEditorDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "tags": [
          "WorkflowBuilder"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-components": {
      "get": {
        "description": "Lists the workflow components in the workspace, newest first. Components are reusable groups of nodes that stay linked to every workflow they are pasted into.\n\nReturns a summary of each component (id, name, audit fields). Get a component by ID for its nodes and edges.",
        "operationId": "WorkflowComponentsController_list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowComponentSummaryDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List workflow components",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates a workflow component in the workspace from a group of nodes and their edges. The server generates its ID and saves the data as version 1. To change the data later, update the component, which creates a new version.\n\nReturns the new component with its `component_data`.",
        "operationId": "WorkflowComponentsController_create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowComponentDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowComponentDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create a workflow component",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "components.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-components/batch-usage": {
      "get": {
        "description": "Finds, for every component in the workspace, the workflows whose latest version embeds at least one instance of it. Components no workflow uses are absent from the map.\n\nReturns a map from component ID to the workflows (id and name) that use it.",
        "operationId": "WorkflowComponentsController_getBatchUsage",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "items": {
                      "$ref": "#/components/schemas/ComponentUsageWorkflowDto"
                    },
                    "type": "array"
                  },
                  "description": "Map from component ID to the workflows that embed that component.",
                  "type": "object"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List which workflows use each component",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.list_usage",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-components/{id}": {
      "delete": {
        "description": "Permanently deletes a workflow component and its full version history. Workflows that embed it keep the nodes, but the server removes their link to the component, so they no longer receive updates.\n\nReturns no content.",
        "operationId": "WorkflowComponentsController_delete",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        },
        "summary": "Delete a workflow component",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "components.delete",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "get": {
        "description": "Retrieves the latest version of a workflow component. To fetch an earlier version, get it by version number.\n\nReturns the component with its latest `component_data` (nodes, edges, vault schema), version number and source metadata.",
        "operationId": "WorkflowComponentsController_getById",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowComponentDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a workflow component",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.get",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "patch": {
        "description": "Changes only the component's display name. It does not create a new version and does not change any workflow. To change the nodes and edges, update the component.\n\nReturns the renamed component with its latest `component_data`.",
        "operationId": "WorkflowComponentsController_rename",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameWorkflowComponentDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowComponentDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Rename a workflow component",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "components.rename",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Saves new `componentData` (nodes, edges, vault schema) as a new version of the component.\n\nPropagation: by default every workflow in the workspace that embeds the component gets a new version with each instance rebuilt from the new data, which replaces local edits to those instances. External edges into and out of an instance are kept, and the component's vault schema entries are merged into each workflow without overwriting its own. Set `propagate: false` to save the version without changing any workflow, list instance IDs in `skipInstanceIds` to keep them as they are, or preview the update first to find instances with local edits. A workflow that fails to update is skipped.\n\nReturns the new version number.",
        "operationId": "WorkflowComponentsController_updateData",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowComponentDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComponentVersionCreatedDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update a workflow component and propagate it",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "components.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-components/{id}/enrich": {
      "post": {
        "description": "Generates one description and intent for a component from screenshots of recent runs of the workflows that use it (up to 8 screenshots from the last 30 days), using an LLM call that the workspace pays for. It stores both on the component's source metadata, gives the description to component nodes that have none, saves that as a new version and propagates it to every workflow that embeds the component, replacing local edits to those instances.\n\nRuns only when component enrichment is enabled on the server (`COMPONENT_ENRICHMENT_ENABLED`); otherwise it changes nothing and returns `reason: flag-disabled`.\n\nReturns whether the component was enriched, and the description and intent it stored or the reason it stopped.",
        "operationId": "WorkflowComponentsController_enrich",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComponentEnrichmentResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Generate a component's description from its runs",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflow-components/{id}/propagation-preview": {
      "post": {
        "description": "Compares every instance of the component in the workspace's workflows against the component's current version, without changing anything. Instances that match update cleanly; instances with local edits would lose them if you update with propagation.\n\nReturns the number of clean instances and, for each edited instance, its workflow, instance ID and current nodes and edges.",
        "operationId": "WorkflowComponentsController_previewPropagation",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewPropagationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropagationPreviewDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Preview which instances an update would overwrite",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.preview_update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-components/{id}/usage": {
      "get": {
        "description": "Finds the workflows in the workspace whose latest version embeds an instance of this component. Use it before an update (to see which workflows propagation will change) or a delete (to see which instances will be unlinked).\n\nReturns the workflows' IDs and names; an empty array if none use it.",
        "operationId": "WorkflowComponentsController_getUsage",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ComponentUsageWorkflowDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List the workflows that use a component",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.get_usage",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-components/{id}/versions": {
      "get": {
        "description": "Lists the version history of a workflow component, newest first. Get a version by its number for the data it held.\n\nReturns each version's number, note, author and creation time.",
        "operationId": "WorkflowComponentsController_listVersions",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ComponentVersionSummaryDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a component's versions",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.list_versions",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflow-components/{id}/versions/{versionNumber}": {
      "get": {
        "description": "Retrieves a workflow component as it was at one version. To roll back, update the component with this version's `component_data`.\n\nReturns the version's number, note, author, creation time and `component_data`.",
        "operationId": "WorkflowComponentsController_getVersion",
        "parameters": [
          {
            "description": "The ID of the workflow component.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "The version number to fetch, starting at 1.",
            "in": "path",
            "name": "versionNumber",
            "required": true,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComponentVersionDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a component version",
        "tags": [
          "WorkflowComponents"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "components.get_version",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows": {
      "get": {
        "description": "Lists the workflows in the workspace, without nodes or edges. Without `limit`, the list has every workflow. To page the list, set `limit` and pass the last workflow's `id` as `cursor`; a page shorter than `limit` ends the list. Without `view`, or with `view=full`, each workflow has every field (`WorkflowSummaryDto`). `view=summary` returns only id, name, description, folder_path, default_branch_id, created_at and updated_at (`WorkflowListSummaryDto`).",
        "operationId": "WorkflowsController_getWorkflows",
        "parameters": [
          {
            "description": "Most to return, newest first",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Last `id` of the previous page",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "enum": [
                "full",
                "summary"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "items": {
                        "$ref": "#/components/schemas/WorkflowSummaryDto"
                      },
                      "type": "array"
                    },
                    {
                      "items": {
                        "$ref": "#/components/schemas/WorkflowListSummaryDto"
                      },
                      "type": "array"
                    }
                  ]
                }
              }
            },
            "description": "Full workflows, or summary rows with `view=summary`."
          }
        },
        "summary": "List workflows",
        "tags": [
          "Workflows"
        ],
        "x-strata-defaults": {
          "limit": 50,
          "view": "summary"
        },
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates a workflow in the caller's workspace from a full definition: nodes, edges, input and output schemas, and settings. Error codes in `error_codes` are matched to the workspace's error codes by name and description, and created when none matches. Send `id` to choose the new workflow's id. Returns the saved workflow at its first version, including `id` and `version_id`.",
        "operationId": "WorkflowsController_createWorkflow",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedWorkflowDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/folders": {
      "delete": {
        "description": "Deletes a folder. With `delete_workflows: true`, it also permanently deletes every workflow in the folder and its subfolders, with all their versions, and this cannot be undone; otherwise those workflows move up to the parent folder. Requires the workspace owner role. Returns `{ success: true }`.",
        "operationId": "WorkflowsController_deleteWorkflowFolder",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteWorkflowFolderDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a workflow folder",
        "tags": [
          "Workflows"
        ],
        "x-strata-surfaces": []
      },
      "get": {
        "description": "Lists one folder of the workspace's workflow tree: its direct subfolders with workflow counts, one page of the workflows filed directly in it, and every folder path in the workspace. With `search`, returns the matching workflows at any depth under the folder and no subfolders. Returns the subfolders, all folder paths, a page of workflows and the total workflow count.",
        "operationId": "WorkflowsController_listWorkflowFolder",
        "parameters": [
          {
            "description": "Folder to list, as a `/`-separated path. Leave it out for the top level.",
            "in": "query",
            "name": "folder_path",
            "required": false,
            "schema": {
              "example": "billing/claims",
              "type": "string"
            }
          },
          {
            "description": "Return workflows under `folder_path`, at any depth, whose name or id contains this text. Folders are not returned when it is set.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Zero-based page of workflows to return",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "type": "number"
            }
          },
          {
            "description": "Number of workflows per page",
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowFolderListDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List workflow folders",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflow_folders.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates an empty folder at `folder_path`, so workflows can be filed under it. A path that already exists is rejected with `409`. Returns the created folder.",
        "operationId": "WorkflowsController_createWorkflowFolder",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowFolderDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowFolderDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create a workflow folder",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflow_folders.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/folders/move": {
      "put": {
        "description": "Moves a folder, with its subfolders and the workflows filed in them, to a new path. Returns `{ success: true }`.",
        "operationId": "WorkflowsController_moveWorkflowFolder",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveWorkflowFolderDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Move or rename a workflow folder",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflow_folders.move",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/import": {
      "post": {
        "description": "Creates a new workflow from a bundle returned by the workflow export operation, for example to copy a workflow to another workspace or environment. Error codes in the bundle are matched to the workspace's error codes by name and description, created when none matches, and renamed with a ` (n)` suffix on a name clash. Always creates a workflow; it never updates one. Returns the saved workflow at its first version.",
        "operationId": "WorkflowsController_importWorkflow",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedWorkflowDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Import a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.import",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/upsert": {
      "post": {
        "operationId": "WorkflowsController_upsertWorkflow",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedWorkflowDto"
                }
              }
            },
            "description": ""
          }
        },
        "tags": [
          "Workflows"
        ],
        "x-strata-surfaces": []
      }
    },
    "/workflows/{id}": {
      "delete": {
        "description": "Permanently deletes a workflow and all of its versions. This cannot be undone. Requires the workspace owner role. Returns `{ success: true }`.",
        "operationId": "WorkflowsController_deleteWorkflow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.delete",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "get": {
        "description": "Retrieves the full workflow definition including nodes, edges, and configuration, at the latest version of the workflow's default branch, or of `branch_id` when given. The workflow must belong to the caller's workspace. Returns the workflow's nodes, edges, input and output schemas, settings and version details.",
        "operationId": "WorkflowsController_getWorkflow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Read this branch's latest version instead of the default branch's",
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDetailDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.get",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Saves a new version of a workflow from its full definition. Read the workflow, change it and send it back: `nodes`, `edges`, `name`, `input_schema`, `output_schema` and `max_retries` are required, and other fields left out keep the latest version's value. The save goes to `branch_id`, or to the default branch. Send `base_version_id` to have the save rejected with `409 WORKFLOW_VERSION_CONFLICT` when someone else saved in between. Returns the saved workflow at its new version.",
        "operationId": "WorkflowsController_updateWorkflow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedWorkflowDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/export": {
      "get": {
        "description": "Returns a portable copy of the latest version on a workflow's default branch: nodes, edges, schemas, settings and error codes, without ids, version details or a custom proxy value. Pass the result to the workflow import operation to recreate the workflow in another workspace or environment.",
        "operationId": "WorkflowsController_exportWorkflow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowExportDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Export a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.export",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/folder": {
      "put": {
        "description": "Files a workflow under a folder, or at the top level when `folder_path` is null, empty or left out. Returns the updated workflow.",
        "operationId": "WorkflowsController_moveWorkflowToFolder",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveWorkflowToFolderDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSummaryDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Move a workflow to a folder",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.move_to_folder",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/fork": {
      "post": {
        "description": "Copies the latest version of a workflow into another workspace the caller belongs to, as a new workflow, or as a new version of `selectedExistingWorkflowId` when `overwriteExistingWorkflows` is true. Error codes are matched or created in the target workspace. The proxy settings, fingerprint profile and network listener setting are not copied. Returns the new version; its workflow-level fields, such as `name`, `folder_path` and `updated_at`, are the source workflow's, and `branch_id` may be null.",
        "operationId": "WorkflowsController_forkWorkflow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForkWorkflowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedWorkflowDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Copy a workflow to another workspace",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.fork",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/metadata": {
      "get": {
        "description": "Returns the JSON schema that a run's `run_input_variables` must satisfy, with one required property per vault credential alias, plus the workflow's vault schema and the version they belong to. Reads the latest version of the default branch unless `version` or `branch_id` is given. Use it to build the input for starting a run.",
        "operationId": "WorkflowsController_getWorkflowMetadata",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Describe the highest release matching this exact version or semver range instead of the default branch's head",
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Describe this branch's head instead of the default branch's head",
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowInputSchemaDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a workflow's input schema",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.get_input_schema",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/run-window": {
      "delete": {
        "description": "Removes the workflow's run window, so its runs may start at any time. Returns `run_window` and `state`, both null.",
        "operationId": "WorkflowsController_deleteRunWindow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunWindowResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Remove a workflow's run window",
        "tags": [
          "Workflows"
        ],
        "x-strata-surfaces": []
      },
      "get": {
        "description": "Retrieves the workflow's run window, the hours in which its runs may start, and whether it is open now. Returns `run_window` and `state`, both null when the workflow has no window. See [Run Window](/concepts/run-window).",
        "operationId": "WorkflowsController_getRunWindow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunWindowResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a workflow's run window",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.get_run_window",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Replaces the workflow's run window. Runs submitted while the window is closed wait until it opens. An invalid window is rejected with `400` and a list of `errors`. Returns the saved window, whether it is open now, and any `warnings`. See [Run Window](/concepts/run-window).",
        "operationId": "WorkflowsController_setRunWindow",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWindowDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunWindowWriteResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set a workflow's run window",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workflows.set_run_window",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/validate-input": {
      "post": {
        "description": "Checks input variables against the workflow's input schema, as starting a run does, without starting a run. Returns whether the input is valid and, when it is not, one error per failed check.",
        "operationId": "WorkflowsController_validateWorkflowInput",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowInputDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowInputValidationDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Check run input against a workflow",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.validate_input",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/versions": {
      "get": {
        "description": "Lists every saved version of a workflow across all its branches, newest first. Returns each version's id, semantic version, branch, note, author and creation time. Read one with the workflow version operation.",
        "operationId": "WorkflowsController_listWorkflowVersions",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowVersionSummaryDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a workflow's versions",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.list_versions",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{id}/versions/{version}": {
      "get": {
        "description": "Retrieves the full definition of one version of a workflow. When `version` is a range, it resolves to the highest matching release. Returns the same shape as reading the workflow: nodes, edges, input and output schemas, settings and version details.",
        "operationId": "WorkflowsController_getWorkflowVersion",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "An exact version (`1.2.3`), a semver range (`^1.2.0`, `~1.2.3`, `1.x`), or a bare integer `N` meaning the latest `N.x.x`",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "example": "1.2.3",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDetailDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a workflow version",
        "tags": [
          "Workflows"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workflows.get_version",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/branches": {
      "get": {
        "description": "Lists a workflow's branches, oldest first. `is_default` marks the branch runs use when they don't pin a version or branch, and `effectiveProtection` shows what the workspace's branch rulesets require of each one.\n\nPass a branch's `id` as `workflow_branch_id` when starting a run, or as `branch_id` when getting the workflow.\n\nReturns the branches with their latest version ID, default flag and protection.",
        "operationId": "WorkflowBranchesController_list",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowBranchWithProtectionDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a workflow's branches",
        "tags": [
          "WorkflowBranches"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "branches.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates a branch of a workflow, starting from the latest version of another branch (the default branch unless `fromBranchId` is given) or from a specific version (`fromVersionId`). Edits saved to the branch stay off the default branch until a pull request merges them. A name already used in the workflow is rejected with 409.\n\nReturns the new branch.",
        "operationId": "WorkflowBranchesController_create",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBranchDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowBranchDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create a branch",
        "tags": [
          "WorkflowBranches"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "branches.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/branches/{branchId}": {
      "delete": {
        "description": "Deletes a branch. Its versions stay in the workflow's history, and pull requests keep the branch's name. The default branch can't be deleted (409). A branch with open pull requests from or into it is not deleted (409) unless `closeOpenPullRequests` is `true`, which closes them first.\n\nReturns `success: true`.",
        "operationId": "WorkflowBranchesController_remove",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the branch",
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "\"true\" also closes the open pull requests from or into the branch; without it, a branch with open pull requests is not deleted",
            "in": "query",
            "name": "closeOpenPullRequests",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a branch",
        "tags": [
          "WorkflowBranches"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "branches.delete",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/branches/{branchId}/set-default": {
      "post": {
        "description": "Makes a branch the workflow's default branch. Every run that doesn't pin a version or branch then runs this branch's latest version, so this changes what production runs execute. Setting the current default again changes nothing.\n\nReturns `success: true`.",
        "operationId": "WorkflowBranchesController_setDefault",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the branch",
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set a workflow's default branch",
        "tags": [
          "WorkflowBranches"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "branches.set_default",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests": {
      "get": {
        "description": "Lists every pull request of a workflow, open, merged and closed, newest first.\n\nReturns the pull requests with their number, branches, title and status.",
        "operationId": "WorkflowPullRequestsController_list",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowPullRequestDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a workflow's pull requests",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "pull_requests.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Opens a pull request to merge one branch of a workflow into another. Both branches must belong to the workflow and differ, and a source branch with no changes the target lacks is rejected with 409. Preview the merge to see conflicts before merging.\n\nReturns the new pull request, including its number.",
        "operationId": "WorkflowPullRequestsController_create",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePullRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPullRequestDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Open a pull request",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "pull_requests.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/by-number/{number}": {
      "get": {
        "description": "Gets a pull request by its number within the workflow, the #12 a user sees, rather than its ID.\n\nReturns the pull request with its branches, title and status.",
        "operationId": "WorkflowPullRequestsController_getByNumber",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The pull request's number within the workflow",
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPullRequestDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a pull request by number",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "pull_requests.get_by_number",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/{pullRequestId}": {
      "get": {
        "description": "Gets one pull request by ID.\n\nReturns the pull request with its branches, title, status and, once merged, the merge version.",
        "operationId": "WorkflowPullRequestsController_get",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the pull request",
            "in": "path",
            "name": "pullRequestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPullRequestDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get a pull request",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "pull_requests.get",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/{pullRequestId}/approvals": {
      "get": {
        "description": "Lists who has approved a pull request. Compare the count with the target branch's `effectiveProtection.minApprovals` to see whether it can merge.\n\nReturns the approvals with the approver's user ID and time.",
        "operationId": "WorkflowPullRequestsController_listApprovals",
        "parameters": [
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the pull request",
            "in": "path",
            "name": "pullRequestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowPrApprovalDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List a pull request's approvals",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "pull_requests.list_approvals",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/{pullRequestId}/approve": {
      "post": {
        "description": "Records the caller's approval of an open pull request, counting toward the approvals the target branch's rulesets require. The pull request's author can't approve it (403), and each user approves a pull request once; a second approval from the same user is rejected.\n\nReturns the approval.",
        "operationId": "WorkflowPullRequestsController_approve",
        "parameters": [
          {
            "description": "The ID of the pull request",
            "in": "path",
            "name": "pullRequestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPrApprovalDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Approve a pull request",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "pull_requests.approve",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/{pullRequestId}/close": {
      "post": {
        "description": "Closes an open pull request without merging it. A closed pull request can't be reopened; open a new one instead. Both branches stay.\n\nReturns `success: true`.",
        "operationId": "WorkflowPullRequestsController_close",
        "parameters": [
          {
            "description": "The ID of the pull request",
            "in": "path",
            "name": "pullRequestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Close a pull request without merging",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "pull_requests.close",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/{pullRequestId}/merge": {
      "post": {
        "description": "Merges an open pull request: writes a merge version on the target branch and moves the branch to it. Merging into the default branch changes what runs without a pinned version execute.\n\nThe merge is blocked while any conflict lacks a resolution (409), while the target branch's rulesets require more approvals than the pull request has (403), and when either branch moved since the preview the resolutions came from (409). `force` skips the approval requirement only for roles in the target's `bypassRoles`.\n\nReturns the merged pull request, with `merged_version_id` and `merged_via`.",
        "operationId": "WorkflowPullRequestsController_merge",
        "parameters": [
          {
            "description": "The ID of the pull request",
            "in": "path",
            "name": "pullRequestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MergePullRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPullRequestDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Merge a pull request",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "pull_requests.merge",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workflows/{workflowId}/pull-requests/{pullRequestId}/preview": {
      "get": {
        "description": "Computes the merge of a pull request's source branch into its target without writing anything. Each conflict names the field and key, with the common ancestor's, the source's and the target's values. To merge with conflicts, send a resolution for each one, together with this preview's `sourceHeadVersionId` and `targetHeadVersionId`.\n\nReturns whether the branches merge cleanly, the merged workflow fields, the conflicts, and graph errors and warnings for a clean merge.",
        "operationId": "WorkflowPullRequestsController_preview",
        "parameters": [
          {
            "description": "The ID of the pull request",
            "in": "path",
            "name": "pullRequestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The ID of the workflow",
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PullRequestMergePreviewDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Preview merging a pull request",
        "tags": [
          "WorkflowPullRequests"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "pull_requests.preview_merge",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspace-members/members/{userId}": {
      "delete": {
        "description": "Removes a user from the workspace named in the `x-workspace-id` header. They stay in the organization. API keys they created keep working unless `revoke_api_keys` is true. Only workspace owners can call it, and the last owner cannot be removed.\n\nReturns null.",
        "operationId": "WorkspaceMembersController_deleteWorkspaceMember",
        "parameters": [
          {
            "description": "Identifier of the member.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Set to true to also revoke the API keys the member created. Defaults to false: keys belong to the workspace and keep working.",
            "in": "query",
            "name": "revoke_api_keys",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Always null.",
                  "enum": [
                    null
                  ],
                  "nullable": true
                }
              }
            },
            "description": "The member was removed."
          }
        },
        "summary": "Remove a member from a workspace",
        "tags": [
          "WorkspaceMembers"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "description": "Sets a user's role in the workspace. If the user is not in the workspace yet, they are added with that role. Only workspace owners can call it, the last owner cannot be demoted, and VIEWER needs the Enterprise plan.\n\nReturns the membership: user id, workspace id, role and timestamps.",
        "operationId": "WorkspaceMembersController_updateWorkspaceMember",
        "parameters": [
          {
            "description": "Identifier of the member.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkspaceMemberRoleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceMembershipDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set a workspace member's role",
        "tags": [
          "WorkspaceMembers"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspace_members.set_role",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspace-members/{workspace_id}": {
      "get": {
        "description": "Lists the members of a workspace the caller belongs to.\n\nReturns each member's user id, display name, workspace role and join time.",
        "operationId": "WorkspaceMembersController_getWorkspaceMembers",
        "parameters": [
          {
            "description": "Identifier of the workspace.",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceMemberDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List workspace members",
        "tags": [
          "WorkspaceMembers"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workspace_members.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces": {
      "delete": {
        "description": "Permanently deletes the workspace named in the `x-workspace-id` header with its workflows, runs, vault credentials, API keys and stored files. Only workspace owners can call it. This cannot be undone.\n\nReturns `success: true` and the deleted workspace.",
        "operationId": "WorkspacesController_deleteWorkspace",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteWorkspaceResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a workspace",
        "tags": [
          "Workspaces"
        ],
        "x-strata-surfaces": []
      },
      "get": {
        "description": "Lists the workspaces of one organization that the caller can see, optionally with their members. To list every workspace you belong to across organizations, use your own workspace list instead.\n\nReturns each workspace's id, name, description, settings and, with `load_members`, its members.",
        "operationId": "WorkspacesController_getWorkspaces",
        "parameters": [
          {
            "description": "Organization whose workspaces to list.",
            "in": "query",
            "name": "organization_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Include each workspace's members.",
            "in": "query",
            "name": "load_members",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List an organization's workspaces",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workspaces.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates a workspace in an organization the caller owns, with its own encryption key. The caller becomes its OWNER; optionally every other organization member joins as MEMBER.\n\nReturns the new workspace.",
        "operationId": "WorkspacesController_createWorkspace",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkspaceDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create a workspace",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspaces.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Sets the name and description of the workspace. Only workspace owners can call it.\n\nReturns the updated workspace.",
        "operationId": "WorkspacesController_updateWorkspace",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkspaceDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Rename a workspace",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspaces.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces/agent-endpoint": {
      "get": {
        "description": "Reads the agent endpoint of the workspace: the URL runs call when they need data the workflow can't find, such as a missing input or an Okta Verify approval.\n\nReturns the URL, or null when none is set.",
        "operationId": "WorkspacesController_getAgentEndpoint",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEndpointDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get the workspace's agent endpoint",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workspaces.get_agent_endpoint",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Sets or clears the agent endpoint of the workspace. Runs send it the context of the data they are missing, so only point it at a service you control. The URL must be public HTTPS.\n\nReturns the saved URL, or null when cleared.",
        "operationId": "WorkspacesController_updateAgentEndpoint",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentEndpointDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEndpointDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set the workspace's agent endpoint",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspaces.set_agent_endpoint",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces/branch-rulesets": {
      "get": {
        "description": "Lists the workspace's branch rulesets, oldest first. A ruleset protects matching branches across matching workflows: it can block direct edits and require approvals before a pull request merges. A branch's protection combines every enabled ruleset that matches it, as shown in its `effectiveProtection` when listing branches.\n\nReturns the rulesets with their targets, patterns and requirements.",
        "operationId": "WorkflowBranchRulesetsController_list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowBranchRulesetDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List branch rulesets",
        "tags": [
          "WorkflowBranchRulesets"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "branch_rulesets.list",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "post": {
        "description": "Creates a branch ruleset for the workspace. Only workspace owners can manage rulesets. Without targeting fields it protects nothing yet: it applies to every workflow's default branch but blocks no edits and requires no approvals until `protected` or `requireReview` is set.\n\nReturns the new ruleset.",
        "operationId": "WorkflowBranchRulesetsController_create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBranchRulesetDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowBranchRulesetDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Create a branch ruleset",
        "tags": [
          "WorkflowBranchRulesets"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "branch_rulesets.create",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces/branch-rulesets/{rulesetId}": {
      "delete": {
        "description": "Deletes a branch ruleset. Only workspace owners can manage rulesets. The branches it matched lose its protection at once; to pause it instead, update it with `enabled: false`.\n\nReturns `success: true`.",
        "operationId": "WorkflowBranchRulesetsController_remove",
        "parameters": [
          {
            "description": "The ID of the branch ruleset",
            "in": "path",
            "name": "rulesetId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Delete a branch ruleset",
        "tags": [
          "WorkflowBranchRulesets"
        ],
        "x-strata-surfaces": []
      },
      "put": {
        "description": "Changes the fields given and keeps the rest. Only workspace owners can manage rulesets. Changes apply at once to every branch the ruleset matches, including pull requests already open.\n\nReturns the updated ruleset.",
        "operationId": "WorkflowBranchRulesetsController_update",
        "parameters": [
          {
            "description": "The ID of the branch ruleset",
            "in": "path",
            "name": "rulesetId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBranchRulesetDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowBranchRulesetDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update a branch ruleset",
        "tags": [
          "WorkflowBranchRulesets"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "branch_rulesets.update",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces/credential-pause-settings": {
      "get": {
        "description": "Reads when the workspace pauses a vault credential after a login failure, and, with `workflow_id`, that workflow's override. A paused credential stops queued runs from retrying a login that can't work.\n\nReturns the workspace values and the workflow override (null without `workflow_id`).",
        "operationId": "WorkspacesController_getCredentialPauseSettings",
        "parameters": [
          {
            "description": "Workflow whose override to include.",
            "in": "query",
            "name": "workflow_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialPauseSettingsDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Get credential pause settings",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "x-strata-name": "workspaces.get_credential_pause_settings",
        "x-strata-surfaces": [
          "mcp"
        ]
      },
      "put": {
        "description": "Sets when vault credentials pause after a login failure, for the workspace or, with `workflow_id`, for one workflow. Omitted fields keep their value; null makes a workflow inherit the workspace value. Pausing on a required password update can't be on while Password Update Recovery is on.\n\nReturns the saved values.",
        "operationId": "WorkspacesController_updateCredentialPauseSettings",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCredentialPauseSettingsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialPauseValuesDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update credential pause settings",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspaces.update_credential_pause_settings",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces/data-retention-settings": {
      "put": {
        "description": "Sets how long run data is kept and how long signed file URLs stay valid, for the workspace. Changing the retention period needs the Scale plan. The change is recorded in the audit log.\n\nReturns the saved retention days and URL lifetime.",
        "operationId": "WorkspacesController_updateDataRetentionSettings",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDataRetentionSettingsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataRetentionSettingsDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Set data retention",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspaces.set_data_retention",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    },
    "/workspaces/error-handling-settings": {
      "put": {
        "description": "Turns the automatic recovery features on or off for the workspace. Omitted fields keep their value. A workflow can only use a feature the workspace has on.\n\nReturns the workspace's recovery flags after the change.",
        "operationId": "WorkspacesController_updateErrorHandlingSettings",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateErrorHandlingSettingsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorHandlingSettingsDto"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Update error handling settings",
        "tags": [
          "Workspaces"
        ],
        "x-strata-hints": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": false
        },
        "x-strata-name": "workspaces.update_error_handling_settings",
        "x-strata-surfaces": [
          "mcp"
        ]
      }
    }
  },
  "servers": [],
  "tags": []
}
