{
  "openapi": "3.0.4",
  "info": {
    "title": "Marathoon API",
    "version": "v1",
    "description": "Reference of the Marathoon REST API: the **251 operations** an integration can call, with what each one requires.\n\nEvery operation opens with an **Access** block: the permission it checks, the lowest role holding it, whether an API key is accepted, and any feature flag. It is generated from the server's authorization rules.\n\n## Authentication\n\n| Caller | Header |\n|---|---|\n| User (web app, scripts) | `Authorization: Bearer <jwt>`. The token comes from `POST /api/v1/auth/login` (30 min) and is renewed by `POST /api/v1/auth/refresh` with the `marathoon_refresh_token` cookie. |\n| Integration, agent, runner | `X-API-Key: mk_…` or `Authorization: ApiKey mk_…`. **`Authorization: Bearer mk_…` is refused (401).** Keys are created in Settings → API keys. |\n\nEvery endpoint requires an authenticated caller, except those whose Access block says \"public\".\n\n## Permissions, roles and API keys\n\nAuthorization is decided in three steps:\n\n1. **The current organization.** An organization's resource lives under `/api/v1/tenants/{tenantId}/…`. Without that segment, the organization comes from the `X-Tenant-Id` header, else from the API key. Membership is checked: `403 Tenant.NotMember`, or `403 Tenant.Mismatch` when the route and the header disagree.\n2. **The operation's permission**, in that organization. A member holds it through their built-in role, which is cumulative (`Viewer` < `Analyst` < `Maintainer` < `ProjectOwner` < `OrganizationAdmin`), or through a custom role that extends it. An **API key** only holds the permissions picked when it was created: a subset of its creator's, never a platform permission nor key management. It can also be scoped to one pipeline. The creator's role is never consulted for a key.\n3. **Access to the resource** (project, job, execution), then the plan's limits.\n\nA feature flag that is off answers `403 Feature.Disabled` before any of this.\n\n**Projects**\n\n- `ProjectRead`: View projects. Role: `Viewer` and above · API key: yes\n- `ProjectCreate`: Create new projects. Role: `ProjectOwner` and above · API key: yes\n- `ProjectUpdate`: Update project details. Role: `ProjectOwner` and above · API key: yes\n- `ProjectDelete`: Delete projects. Role: `OrganizationAdmin` · API key: yes\n- `ProjectArchive`: Archive/unarchive projects. Role: `ProjectOwner` and above · API key: yes\n- `ProjectMembersManage`: Manage project members. Role: `ProjectOwner` and above · API key: yes\n\n**Pipelines**\n\n- `PipelineRead`: View pipelines. Role: `Viewer` and above · API key: yes\n- `PipelineCreate`: Create new pipelines. Role: `Maintainer` and above · API key: yes\n- `PipelineUpdate`: Update pipeline definitions. Role: `Maintainer` and above · API key: yes\n- `PipelineDelete`: Delete pipelines. Role: `ProjectOwner` and above · API key: yes\n- `PipelinePublish`: Publish/unpublish pipelines. Role: `Maintainer` and above · API key: yes\n- `PipelineRun`: Run pipelines. Role: `Analyst` and above · API key: yes\n- `MarketplaceSell`: Sell pipelines on the public marketplace. Role: `ProjectOwner` and above · API key: yes\n\n**Jobs**\n\n- `JobRead`: View jobs. Role: `Viewer` and above · API key: yes\n- `JobSubmit`: Submit new jobs. Role: `Analyst` and above · API key: yes\n- `JobCancel`: Cancel running jobs. Role: `Maintainer` and above · API key: yes\n- `JobViewLogs`: View job logs. Role: `Viewer` and above · API key: yes\n- `JobDownloadArtifacts`: Download job artifacts. Role: `Analyst` and above · API key: yes\n- `JobRetry`: Retry failed jobs. Role: `Maintainer` and above · API key: yes\n\n**Execution**\n\n- `ExecutionRead`: View execution details. Role: `Viewer` and above · API key: yes\n- `ExecutionViewRealTime`: View real-time execution logs. Role: `Analyst` and above · API key: yes\n\n**Billing**\n\n- `BillingRead`: View billing information. Role: `ProjectOwner` and above · API key: yes\n- `BillingManage`: Manage billing settings. Role: `OrganizationAdmin` · API key: yes\n\n**Tenant**\n\n- `TenantRead`: View tenant information. Role: `Viewer` and above · API key: yes\n- `TenantMembersRead`: View tenant members. Role: `ProjectOwner` and above · API key: yes\n- `TenantMembersManage`: Manage tenant members. Role: `OrganizationAdmin` · API key: yes\n- `TenantRolesRead`: View tenant roles. Role: `OrganizationAdmin` · API key: yes\n- `TenantRolesManage`: Manage tenant roles. Role: `OrganizationAdmin` · API key: yes\n- `TenantSettingsRead`: View tenant settings. Role: `OrganizationAdmin` · API key: yes\n- `TenantSettingsManage`: Manage tenant settings. Role: `OrganizationAdmin` · API key: yes\n- `TenantProvidersRead`: View tenant runner/storage providers. Role: `ProjectOwner` and above · API key: yes\n- `TenantProvidersManage`: Manage tenant runner/storage providers and credentials. Role: `OrganizationAdmin` · API key: yes\n- `ResellerRead`: View child (reseller-managed) tenants. Role: custom role (reseller plan) · API key: yes\n- `ResellerManage`: Provision and manage child tenants. Role: custom role (reseller plan) · API key: yes\n\n**Users**\n\n- `UserInvite`: Invite new users. Role: `OrganizationAdmin` · API key: yes\n\n**API Keys**\n\n- `ApiKeysRead`: View API keys. Role: `OrganizationAdmin` · API key: yes\n- `ApiKeysCreate`: Create API keys. Role: `OrganizationAdmin` · API key: no\n- `ApiKeysManage`: Manage API keys. Role: `OrganizationAdmin` · API key: no\n- `ApiKeysRevoke`: Revoke API keys. Role: `OrganizationAdmin` · API key: no\n\n**Agents**\n\n- `AgentsRead`: View agent status and health. Role: `OrganizationAdmin` · API key: yes\n- `AgentsManage`: Manage agents. Role: `OrganizationAdmin` · API key: yes\n- `AgentsHeartbeat`: Send agent heartbeats. Role: machine key only · API key: yes\n- `RunnerExecute`: Claim and execute jobs as a connected runner. Role: machine key only · API key: yes\n\n**Notifications**\n\n- `NotificationsRead`: View in-app notifications. Role: `Viewer` and above · API key: yes\n\n**Webhooks**\n\n- `WebhooksRead`: View webhooks. Role: `OrganizationAdmin` · API key: yes\n- `WebhooksCreate`: Create webhooks. Role: `OrganizationAdmin` · API key: yes\n- `WebhooksManage`: Manage webhooks. Role: `OrganizationAdmin` · API key: yes\n- `WebhooksDelete`: Delete webhooks. Role: `OrganizationAdmin` · API key: yes\n\n### API key presets\n\nA key is created with a preset, or with `Custom` and the exact list of permissions. The presets grant:\n\n- `Agent`: `PipelineRead`, `PipelineRun`, `JobRead`, `JobSubmit`, `JobViewLogs`, `ExecutionRead`, `ExecutionViewRealTime`, `AgentsHeartbeat`, `RunnerExecute`\n- `ReadOnly`: `ProjectRead`, `PipelineRead`, `JobRead`, `JobViewLogs`, `ExecutionRead`, `TenantRead`\n- `JobSubmitter`: `PipelineRead`, `PipelineRun`, `JobRead`, `JobSubmit`, `JobViewLogs`, `JobDownloadArtifacts`, `ExecutionRead`, `ExecutionViewRealTime`\n- `FullAccess`: `ProjectRead`, `ProjectCreate`, `ProjectUpdate`, `PipelineRead`, `PipelineCreate`, `PipelineUpdate`, `PipelineRun`, `JobRead`, `JobSubmit`, `JobCancel`, `JobViewLogs`, `JobDownloadArtifacts`, `JobRetry`, `ExecutionRead`, `ExecutionViewRealTime`, `BillingRead`, `TenantRead`\n- `Runner`: `AgentsHeartbeat`, `RunnerExecute`\n\n`Runner` is the key a connected runner gets when it enrolls; `Agent` the one the desktop agent gets when it pairs.\n\n## Errors\n\n```json\n{ \"error\": \"Readable message\", \"code\": \"Job.NotFound\" }\n```\n\nA 400 can also be a `ValidationProblemDetails` (RFC 7807) when the body does not bind to the model. An unhandled exception returns `500` with `code: \"Internal.ServerError\"` and a `correlationId`. The `X-Correlation-Id` header comes back on every response: quote it to support.\n\n## Rate limiting\n\nFixed one-minute windows, no queueing. A refusal returns `429` with `Retry-After` and `{ error, code: \"General.RateLimited\", retryAfterSeconds }`.\n\n## Pagination\n\nThere is no single convention. Depending on the endpoint: `page`/`pageSize`, `skip`/`take` (response `{ items, totalCount, skip, take, hasMore }`) or `limit`."
  },
  "paths": {
    "/api/v1/agent/heartbeat": {
      "post": {
        "tags": [
          "Agents"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentHeartbeatRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentHeartbeatRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentHeartbeatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentHeartbeatResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentHeartbeatResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentHeartbeatResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "AgentsHeartbeat"
        ],
        "description": "Receives a heartbeat from an agent. Called by the agent service periodically.\nAuthenticated via API key (X-API-Key header); the handler additionally verifies the\ndeclared TenantId against the key's tenant, so a key can only report for its own tenant.\n\n**Permission**: `AgentsHeartbeat` (Send agent heartbeats).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above."
      }
    },
    "/api/v1/tenants/{tenantId}/agent/pairable-pipelines": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentPipelineDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentPipelineDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentPipelineDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "agents"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the pipelines a signed-in user can pair an agent with (JWT auth): only those the\ncaller is authorized to pair with, so the list matches what pairing will accept.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `agents`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/agent/pair/start": {
      "post": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartPairingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartPairingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartPairingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StartAgentPairingResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartAgentPairingResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartAgentPairingResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-feature-flags": [
          "agents"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "x-marathoon-permissions": [
          "ApiKeysCreate"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Starts agent pairing: a signed-in user picks a pipeline, and we mint a pipeline-scoped\nAgent API key and return a short-lived pairing code the desktop agent will claim.\n\n**Permission**: `ApiKeysCreate` (Create API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: refused, even one from the right organization.  \n**Feature flag**: `agents`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/agent/pair/claim": {
      "post": {
        "tags": [
          "Agents"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimPairingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimPairingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimPairingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimAgentPairingResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimAgentPairingResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimAgentPairingResult"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Claims a pairing code (called by the desktop agent). Returns the API key and pipeline\ndetails once; the code is then consumed.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/agent/pipelines": {
      "get": {
        "tags": [
          "Agents"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentPipelineDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentPipelineDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentPipelineDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Returns the pipelines (and their declared inputs) the agent's tenant can run.\nAuthenticated via API key; the tenant is resolved from the key by the auth middleware.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/agents": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/AgentConnectionStatus"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentStatusDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentStatusDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentStatusDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "AgentsRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Gets all agents for the current tenant.\n\n**Permission**: `AgentsRead` (View agent status and health).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/agents/{agentStatusId}": {
      "get": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agentStatusId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStatusDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "AgentsRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Gets a specific agent by its database ID.\n\n**Permission**: `AgentsRead` (View agent status and health).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "Agents"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agentStatusId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "AgentsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Deletes an agent record (soft delete).\n\n**Permission**: `AgentsManage` (Manage agents).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/api-keys": {
      "get": {
        "tags": [
          "ApiKeys"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ApiKeysRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Gets all API keys for the tenant.\n\n**Permission**: `ApiKeysRead` (View API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "post": {
        "tags": [
          "ApiKeys"
        ],
        "description": "Creates a new API key.\n\n**Permission**: `ApiKeysCreate` (Create API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: refused, even one from the right organization.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`.\n\nThe plain text key is only returned once in the response.\nMake sure to copy it immediately as it cannot be retrieved later.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApiKeyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApiKeyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApiKeyResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "x-marathoon-permissions": [
          "ApiKeysCreate"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin"
      }
    },
    "/api/v1/tenants/{tenantId}/api-keys/{apiKeyId}": {
      "get": {
        "tags": [
          "ApiKeys"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "apiKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ApiKeysRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Gets a specific API key by ID.\n\n**Permission**: `ApiKeysRead` (View API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "put": {
        "tags": [
          "ApiKeys"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "apiKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApiKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApiKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApiKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "x-marathoon-permissions": [
          "ApiKeysManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Updates an existing API key.\n\n**Permission**: `ApiKeysManage` (Manage API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: refused, even one from the right organization.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "delete": {
        "tags": [
          "ApiKeys"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "apiKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "x-marathoon-permissions": [
          "ApiKeysManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Permanently deletes an API key.\n\n**Permission**: `ApiKeysManage` (Manage API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: refused, even one from the right organization.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/api-keys/presets": {
      "get": {
        "tags": [
          "ApiKeys"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyPresetDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyPresetDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyPresetDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ApiKeysRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Gets available API key presets with their permissions.\n\n**Permission**: `ApiKeysRead` (View API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/api-keys/{apiKeyId}/revoke": {
      "post": {
        "tags": [
          "ApiKeys"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "apiKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-feature-flags": [
          "api_keys"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "x-marathoon-permissions": [
          "ApiKeysRevoke"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Revokes an API key (deactivates it without deleting).\n\n**Permission**: `ApiKeysRevoke` (Revoke API keys).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: refused, even one from the right organization.  \n**Feature flag**: `api_keys`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/Auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Signs in with e-mail and password and returns the tokens, the refresh token also set as an\nHttpOnly cookie. When the account has MFA, returns `requiresMfa` and an `mfaToken`\nto complete with `POST /auth/mfa/verify` instead.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/register": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Creates an account from either a registration code (new organization, onboarding follows) or\nan invitation token (joins the inviting organization), sends the welcome e-mail with a\nconfirmation link and returns the new session's tokens.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/validate-registration": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateRegistrationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateRegistrationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateRegistrationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Validate a registration code or invitation token before registration.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Exchanges a refresh token (cookie, or `refreshToken` in the body) for new tokens and\nrotates the refresh token. An invalid token answers 401 and clears the cookie.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Ends the session by revoking its refresh token (cookie or body) and clearing the cookie;\nlogging out of an impersonation ends that whole session. Always answers 200.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/me": {
      "get": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "The caller's profile: identity, roles, MFA and e-mail confirmation status, active\norganizations with their branding, and the current organization's plan and token balance\n(the first organization when none is selected).\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      },
      "put": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Updates the caller's first and last name.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      },
      "delete": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAccountRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAccountRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAccountRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "GDPR Art. 17 — delete (anonymize) the current user's account.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/me/export": {
      "get": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "GDPR Art. 15/20 — download a JSON export of all personal data held about the current user.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/me/preferences": {
      "get": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "The caller's notification, language and timezone preferences; defaults are created on first\nread.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      },
      "put": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreferencesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreferencesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreferencesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Replaces the caller's notification, language and timezone preferences; `language` and\n`timezone` are required.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/forgot-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "E-mails a password reset link, valid 60 minutes, if the address has an account. Always\nanswers 200, whether the account exists or not; requests are throttled per address.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/reset-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Sets a new password with the token from the reset e-mail, revokes every refresh token of the\naccount and sends a confirmation e-mail. An invalid or expired token answers 400.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/change-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Changes the caller's password after checking the current one, revokes every refresh token of\nthe account (this session included) and sends a confirmation e-mail. A wrong current\npassword counts towards the lockout.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/confirm-email": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmEmailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmEmailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmEmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Confirms the account's e-mail address with the `userId` and `token` from the\nconfirmation link.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/resend-confirmation": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendConfirmationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendConfirmationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResendConfirmationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "E-mails a new confirmation link if the address has an unconfirmed account. Always answers\n200, whether the account exists or not; requests are throttled per address.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/mfa/setup": {
      "post": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Starts MFA enrolment: generates a new authenticator key and returns it with its\n`otpauth://` QR code URI. MFA is on only once `POST /auth/mfa/enable` confirms a\ncode, which also issues the recovery codes; fails if MFA is already enabled.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/mfa/enable": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Turns MFA on after verifying a code from the authenticator app, and returns 10 new recovery\ncodes that replace any earlier ones.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/mfa/disable": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Turns MFA off after verifying a current authenticator code, and discards the authenticator\nkey. A wrong code counts towards the lockout; a locked account answers 423.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/mfa/verify": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyMfaRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyMfaRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyMfaRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Completes an MFA sign-in: checks the authenticator code (or a recovery code with\n`useRecoveryCode`) against the `mfaToken` from login, then returns the tokens and\nsets the refresh token cookie. Wrong codes count towards the lockout.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/Auth/mfa/recovery-codes": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MfaCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Returns 10 new MFA recovery codes after verifying a current authenticator code; the previous\nrecovery codes stop working.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/impersonation/end": {
      "post": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Ends the current impersonation session: revokes its refresh token and restores the\nadministrator's own session (new access token and refresh cookie).\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/Auth/m2m/token": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "ClientId": {
                    "type": "string"
                  },
                  "ClientSecret": {
                    "type": "string"
                  },
                  "GrantType": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "ClientId": {
                  "style": "form"
                },
                "ClientSecret": {
                  "style": "form"
                },
                "GrantType": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Generate a token for machine-to-machine authentication.\nUsed by the Orchestrator and other internal services.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/balance": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenBalanceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenBalanceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenBalanceDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get current token balance and budget cap for the tenant.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/usage/summary": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenUsageSummaryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenUsageSummaryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenUsageSummaryDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get token usage summary for a date range.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/usage/transactions": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionsResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionsResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionsResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get paginated token transactions for a date range.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/usage/daily": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyUsageDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyUsageDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyUsageDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get daily token usage breakdown for a date range.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/storage": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUsageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUsageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUsageDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get the tenant's current storage occupation (hosted + BYO) against its plan quota.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/monthly-breakdown": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyBillingBreakdownDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyBillingBreakdownDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyBillingBreakdownDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get one month of the bill split into subscription, included credits, purchased credits,\nstorage beyond the quota and extensions. Defaults to the current month.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/storage/history": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StorageUsageDayDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StorageUsageDayDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StorageUsageDayDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get the daily storage-occupation trend (hosted, BYO, egress) for a date range.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/usage/by-pipeline": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsageByPipelineDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsageByPipelineDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsageByPipelineDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get token usage aggregated by pipeline for a date range.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/forecast": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CostForecastDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CostForecastDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CostForecastDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Cost forecast for the current billing period (projected spend + per-pipeline).\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/showback": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "dimension",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ShowbackDimension"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ShowbackReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShowbackReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShowbackReportDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Showback / chargeback cost attribution grouped by pipeline, project, or user.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/showback/export": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "dimension",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ShowbackDimension"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Export the showback attribution as CSV.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/usage/export": {
      "get": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Export token usage as CSV for a date range.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/machines": {
      "get": {
        "tags": [
          "ConnectedMachines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectedMachineListDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectedMachineListDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectedMachineListDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "AgentsRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Lists the tenant's connected machines and the enrollment tokens still waiting for one.\n\n**Permission**: `AgentsRead` (View agent status and health).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/machines/{agentId}": {
      "delete": {
        "tags": [
          "ConnectedMachines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeMachineResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeMachineResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeMachineResult"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "AgentsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Revokes a machine: deactivates every API key bound to it, removes its runner\nprovider bindings and its heartbeat record. It is refused on its next call.\n\n**Permission**: `AgentsManage` (Manage agents).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/redeem": {
      "post": {
        "tags": [
          "CreditCodeRedemption"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RedeemCodeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedeemCodeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedeemCodeResponse"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Redeem a credit code\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/credits/packs": {
      "get": {
        "tags": [
          "Credits"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditPackDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditPackDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditPackDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "pricing_2026_09"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "List the credit packs on sale with their discounted prices.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `pricing_2026_09`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/credits/purchase": {
      "post": {
        "tags": [
          "Credits"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseCreditsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseCreditsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseCreditsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreditPackCheckoutResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditPackCheckoutResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditPackCheckoutResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "pricing_2026_09"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Start a Stripe checkout to buy a credit pack.\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `pricing_2026_09`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/credits/payment-method/setup": {
      "post": {
        "tags": [
          "Credits"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SetupIntentResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupIntentResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupIntentResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "pricing_2026_09"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Start saving a card for auto-recharge. Returns the client secret the browser confirms.\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `pricing_2026_09`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/credits/purchases": {
      "get": {
        "tags": [
          "Credits"
        ],
        "parameters": [
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditPurchaseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditPurchaseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreditPurchaseDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "The tenant's credit-pack purchase history.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Dashboard": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Home dashboard data: job counters, credit balance and use, plan, recent and active jobs,\nrecent projects and the busiest pipelines' pace over 30 days. Jobs and pipelines are limited\nto those the caller can see.\n\n**Permission**: `TenantRead` (View tenant information).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Dashboard/pipelines": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "publishedOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineSummaryDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the pipelines the caller can run: the organisation's own (of the caller's projects,\nunless organisation-wide) and granted marketplace pipelines. Filters: `projectId`,\n`publishedOnly` and `search` on the name.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Dashboard/jobs/{jobId}/pace": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobPaceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPaceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPaceDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "A job against its pipeline's pace (medians and record), for the job page's split times.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Dashboard/jobs-stats": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobsStatsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsStatsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsStatsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Organisation-wide job counters: running (including provisioning), queued, succeeded and\nfailed today, and the average duration of today's successful jobs (UTC day).\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/entitlements": {
      "get": {
        "tags": [
          "Entitlements"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MyEntitlementsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyEntitlementsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyEntitlementsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Effective entitlements + current usage for the caller's tenant.\n\n**Permission**: `TenantRead` (View tenant information).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Executions/{executionId}": {
      "get": {
        "tags": [
          "Executions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionDetailsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ExecutionRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Get execution details including real-time status and recent logs.\n\n**Permission**: `ExecutionRead` (View execution details).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Executions/job/{jobId}": {
      "get": {
        "tags": [
          "Executions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExecutionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExecutionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExecutionDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ExecutionRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Get all executions for a specific job.\n\n**Permission**: `ExecutionRead` (View execution details).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Executions/{executionId}/logs": {
      "get": {
        "tags": [
          "Executions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "minLevel",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/LogLevel"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionLogsResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionLogsResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionLogsResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ExecutionViewRealTime"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Get execution logs with pagination.\n\n**Permission**: `ExecutionViewRealTime` (View real-time execution logs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Executions/{executionId}/cancel": {
      "post": {
        "tags": [
          "Executions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelExecutionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelExecutionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelExecutionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobCancel"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Cancel a running or pending execution.\n\n**Permission**: `JobCancel` (Cancel running jobs).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Executions/{executionId}/retry": {
      "post": {
        "tags": [
          "Executions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRetry"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Retry the job of a failed, timed-out or cancelled execution (its latest one). The retry is\na new job, billed like any submission: the response is that job, queued; its execution\nstarts asynchronously.\n\n**Permission**: `JobRetry` (Retry failed jobs).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/experiments/{key}/variant": {
      "get": {
        "tags": [
          "Experiments"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentVariantResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentVariantResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentVariantResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "The variant of experiment `key` assigned to the caller, with its payload; the exposure\nis recorded on first assignment. An unknown or inactive experiment returns the control.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/experiments/{key}/track": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackConversionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackConversionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrackConversionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Records a conversion event (`eventName`, optional `value`) for the caller in\nexperiment `key`; a no-op when the caller is not in a running experiment. Answers 202.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/experiments/{key}/visitors/{visitorId}/track": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "visitorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackConversionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackConversionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrackConversionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Records a conversion for the anonymous visitor the caller was before signing up (visitor\nexperiments such as the pricing page). The caller's user and tenant are stored with it, which\nis what later attributes server-side conversions — the first payment — to that visitor.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/feature-flags": {
      "get": {
        "tags": [
          "FeatureFlags"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "boolean"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "boolean"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Every feature flag evaluated for the caller and their current organization, as a map of flag\nkey to on or off.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/feature-flags/{featureName}": {
      "get": {
        "tags": [
          "FeatureFlags"
        ],
        "parameters": [
          {
            "name": "featureName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureFlagResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureFlagResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureFlagResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "One feature flag evaluated for the caller and their current organization; an unknown key\nanswers `isEnabled: false`, never 404.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/invitations/preview": {
      "get": {
        "tags": [
          "Invitations"
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationPreviewDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationPreviewDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationPreviewDto"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Get invitation preview information (public endpoint used from email links).\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/invitations/accept": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInvitationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInvitationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptInvitationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptInvitationResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptInvitationResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptInvitationResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Accept an invitation (requires authentication).\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/invitations/decline": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclineInvitationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeclineInvitationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeclineInvitationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Decline an invitation via token (from email link).\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/tenants/{tenantId}/jobs/{jobId}/files": {
      "get": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobFilesResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobFilesResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobFilesResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Get files for a job.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UploadJobFilesResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadJobFilesResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadJobFilesResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Upload files to a job.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/files/{fileId}/download": {
      "get": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobDownloadArtifacts"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Download a file.\n\n**Permission**: `JobDownloadArtifacts` (Download job artifacts).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/files/{fileId}/download-url": {
      "get": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expiryMinutes",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlResponse"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobDownloadArtifacts"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Get a download URL (SAS URL) for a file.\n\n**Permission**: `JobDownloadArtifacts` (Download job artifacts).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/files/{fileId}": {
      "delete": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Delete a file.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/batches": {
      "get": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobBatchDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobBatchDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobBatchDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Get batches for the tenant.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobBatchDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobBatchDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobBatchDetailDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Create a new batch manually (empty or with initial jobs).\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/batches/{batchId}": {
      "get": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobBatchDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobBatchDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobBatchDetailDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Get a specific batch.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/jobs/batch-upload/{pipelineId}": {
      "post": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "BatchName": {
                    "type": "string"
                  },
                  "Description": {
                    "type": "string"
                  },
                  "MachineSize": {
                    "type": "string",
                    "description": "Folder upload only: machine size (e.g. \"large\") every job of the batch runs on. Rejected\nunless the plan includes it and the organization enabled it."
                  },
                  "Name": {
                    "type": "string"
                  },
                  "PipelineId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "InitialJobIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "metadata": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "BatchName": {
                  "style": "form"
                },
                "Description": {
                  "style": "form"
                },
                "MachineSize": {
                  "style": "form"
                },
                "Name": {
                  "style": "form"
                },
                "PipelineId": {
                  "style": "form"
                },
                "InitialJobIds": {
                  "style": "form"
                },
                "files": {
                  "style": "form"
                },
                "metadata": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBatchJobsResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBatchJobsResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBatchJobsResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Create a batch of jobs with files from folder upload. The optional `metadata` form\nfield is a JSON object of labels (e.g. `{\"customer\":\"acme\"}`) set on every job of\nthe batch, under the same rules as a single job's metadata.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/batches/{batchId}/metadata": {
      "patch": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBatchMetadataRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBatchMetadataRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBatchMetadataRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateBatchMetadataResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateBatchMetadataResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateBatchMetadataResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Labels every job of a batch: `set` keys are added or overwritten, `remove` keys\ndropped, each job's other keys kept. All jobs are updated or none.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/batches/{batchId}/jobs/{jobId}": {
      "post": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Add an existing job to a batch.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "JobFiles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Remove a job from a batch.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/JobStatus"
            }
          },
          {
            "name": "submittedBy",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "batchId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "metadata",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "createdAtUtc"
            }
          },
          {
            "name": "sortDescending",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobSummaryDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSummaryDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSummaryDtoPagedResult"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the jobs the caller can see, newest first by default, paged with\n`skip`/`take` (at most 200). Filters by pipeline, project, status, submitter,\nbatch, date range, `metadata` (`key=value` or `key`) and free-text\n`search`.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "One job in detail: status, inputs, artifacts, step statuses of its latest execution,\npipeline and project names, submitter name and the runner provider it ran on, if any.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobCancel"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Deletes a finished job (succeeded, failed, timed out or cancelled), which then no longer\nappears in the job list. Refused with 409 while it is queued, starting, running or being cancelled.\n\n**Permission**: `JobCancel` (Cancel running jobs).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/metadata": {
      "put": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Replaces a job's metadata (labels used to filter and search the job list). Keys left out\nare removed; `{}` clears them. Allowed on finished jobs too.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/metadata": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "key",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobMetadataFacet"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobMetadataFacet"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobMetadataFacet"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Metadata keys in use on the jobs the caller can see, most used first, with their job\ncount; with `key`, that key's values instead (filtered by `prefix`).\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/cost": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobCostDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobCostDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobCostDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Cost breakdown of a job: provider, region, billed duration, and credits split into compute,\nmarketplace markup and hosted storage.\n\n**Permission**: `JobRead` (View jobs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/compute-targets": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobComputeTargetsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobComputeTargetsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobComputeTargetsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Provider/region pairs the run form may offer, when the organisation lets submitters\nchoose (`allowUserProviderChoice`). `enabled = false` hides the picker.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/machine-sizes": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobMachineSizesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobMachineSizesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobMachineSizesDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Machine sizes the run form may offer, each flagged available or above the plan, the\norganisation's limits or what the routable providers take, with the providers that take\nit. `enabled = false` (kill switch, plan or organisation) hides the picker. Pass the\n`pipelineId` about to run so its routing (own runner, marketplace) is accounted for.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/run/{pipelineId}": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitJobRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitJobRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitJobRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Runs one job of a published pipeline with the given inputs (optionally a machine size,\nprovider/region, parameter overrides and metadata). The estimated credits are debited and\nthe job is queued; 402 when the balance is too low.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/run/{pipelineId}/with-files": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string"
                  },
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "request": {
                  "style": "form"
                },
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Runs one job with input files (multipart): `request` is a JSON\nMarathoon.Api.Controllers.SubmitJobRequest (inputs, provider/region, machine size…) and `files`\nthe files. The files are stored before the job is queued, then bound to the pipeline's\ninputs: an input given as `\"file:<name>\"` takes that file, a declared file\ninput takes the file named after it (or the only file left for the only file input left),\nand every other file is staged under `_fileN`. Same checks and billing as\n`run/{pipelineId}`.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/batch/{pipelineId}": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitBatchJobsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitBatchJobsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitBatchJobsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BatchJobsResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchJobsResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchJobsResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "batch_jobs"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobSubmit"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Runs a pipeline once per entry of `inputsList`, as one batch sharing parameters,\nmachine size and metadata. All jobs are created and debited together or not at all; returns\nthe batch id, job ids and total estimated cost.\n\n**Permission**: `JobSubmit` (Submit new jobs).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `batch_jobs`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/cancel": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobCancel"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Cancels a queued, provisioning or running job. A job with no execution yet is cancelled at\nonce and its credits refunded; otherwise it moves to cancelling until its execution stops.\n409 when it can no longer be cancelled.\n\n**Permission**: `JobCancel` (Cancel running jobs).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/retry": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobRetry"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Re-runs a failed, timed-out or cancelled job as a new job with the same inputs and\nparameters, debiting credits again. Returns 201 with the new job; 409 for a job in another\nstatus.\n\n**Permission**: `JobRetry` (Retry failed jobs).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/logs": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobLogsResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobLogsResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobLogsResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobViewLogs"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Log lines of the job's latest execution attempt, paged with `skip`/`take` (at most\n1000), with the total count and `hasMore`. Empty while the job has no execution.\n\n**Permission**: `JobViewLogs` (View job logs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/container-logs": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContainerLogsResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContainerLogsResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContainerLogsResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobViewLogs"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Get container logs (stdout/stderr) for a job execution.\n\n**Permission**: `JobViewLogs` (View job logs).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Jobs/{jobId}/artifacts/{artifactId}/download": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "artifactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "JobDownloadArtifacts"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Download an output artifact produced by a job.\n\n**Permission**: `JobDownloadArtifacts` (Download job artifacts).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/marketplace/listings": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalogPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalogPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalogPageDto"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Lists approved listings, paginated (`pageSize` up to 100) with the total count, filtered by\n`search` (title or summary) and an exact `tag`. `sort`: `rating`, `newest`,\n`price_asc`, `price_desc`, otherwise most purchased first.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/marketplace/tags": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CatalogTagDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CatalogTagDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CatalogTagDto"
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Tags used by approved listings, each with the number of listings carrying it, most used first.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/marketplace/creators/{id}": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorPublicProfileDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorPublicProfileDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorPublicProfileDto"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "A creator's public profile: bio, links, member-since date, and their approved listings with\npurchase total and average rating. Suspended creators are reported as not found.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/marketplace/listings/{id}/view": {
      "post": {
        "tags": [
          "Marketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Fire-and-forget detail-page view ping (feeds creator conversion analytics).\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/marketplace/listings/{id}/versions": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceListingVersionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceListingVersionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceListingVersionDto"
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Changelog of a listing's published content updates, newest version first. Only approved\nlistings are visible, except to their creator.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/marketplace/listings/{id}": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "A listing's details. Listings that are not approved are reported as not found, except to their\ncreator, who also sees the review notes.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/marketplace/listings/{id}/reviews": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceReviewDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceReviewDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceReviewDto"
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Reviews of an approved listing, newest first and paginated (`pageSize` up to 100), each with\nthe author's name, the creator's reply and whether the reviewer's organisation bought the listing.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/tenants/{tenantId}/notifications": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "unreadOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPagedResult"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "NotificationsRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "The caller's in-app notifications, newest first, paged with `page`/`pageSize` (at\nmost 200); `unreadOnly` keeps the unread ones. Includes the total and unread counts.\n\n**Permission**: `NotificationsRead` (View in-app notifications).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/notifications/unread-count": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadNotificationCountResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadNotificationCountResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadNotificationCountResponse"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "NotificationsRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Number of unread notifications for the caller, as `{ \"count\": n }`.\n\n**Permission**: `NotificationsRead` (View in-app notifications).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/notifications/{notificationId}/read": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "notificationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "NotificationsRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Marks one of the caller's notifications as read; 404 for a notification that is not theirs.\n\n**Permission**: `NotificationsRead` (View in-app notifications).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/notifications/read-all": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "NotificationsRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Marks all the caller's notifications in this organisation as read.\n\n**Permission**: `NotificationsRead` (View in-app notifications).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/onboarding/status": {
      "get": {
        "tags": [
          "Onboarding"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStatusDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Get current onboarding status.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/onboarding/welcome": {
      "post": {
        "tags": [
          "Onboarding"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Complete the welcome step.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/onboarding/organization": {
      "post": {
        "tags": [
          "Onboarding"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Create organization during onboarding.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/onboarding/team": {
      "post": {
        "tags": [
          "Onboarding"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteTeamRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteTeamRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InviteTeamRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "UserInvite"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Invite team members during onboarding.\n\n**Permission**: `UserInvite` (Invite new users).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/onboarding/project": {
      "post": {
        "tags": [
          "Onboarding"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectOnboardingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectOnboardingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectOnboardingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectCreate"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Create first project during onboarding.\n\n**Permission**: `ProjectCreate` (Create new projects).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/onboarding/complete": {
      "post": {
        "tags": [
          "Onboarding"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Skip remaining steps and complete onboarding.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/onboarding/skip/{step}": {
      "post": {
        "tags": [
          "Onboarding"
        ],
        "parameters": [
          {
            "name": "step",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/OnboardingStep"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Skip a specific step.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines": {
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "publishedOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineSummaryDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the project's pipelines, followed by the global (platform or marketplace) pipelines enabled\nfor the organisation. `publishedOnly=true` keeps published pipelines only.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePipelineRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePipelineRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePipelineRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "custom_pipelines"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineCreate"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Creates a pipeline in the project from a definition (image URI, unique input and output names,\nvalid workflow) and optional default parameters. Refused in an archived project, on a taken name\nor past the plan's pipeline limit.\n\n**Permission**: `PipelineCreate` (Create new pipelines).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `custom_pipelines`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}": {
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "A pipeline with its definition, default parameters and execution defaults. A global pipeline comes\nwithout its creator's environment and secrets, or with only its inputs and outputs when sold per run.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "put": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineUpdate"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Replaces the pipeline's name, description and definition. The previous state is kept as a version\n(with the optional `changeNote`) and the version number goes up; default parameters are unchanged.\n\n**Permission**: `PipelineUpdate` (Update pipeline definitions).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineDelete"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Deletes the pipeline.\n\n**Permission**: `PipelineDelete` (Delete pipelines).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/publish": {
      "post": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelinePublish"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Publishes the pipeline so jobs can be submitted for it. The workflow must be valid and declare at\nleast one input and one output.\n\n**Permission**: `PipelinePublish` (Publish/unpublish pipelines).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/unpublish": {
      "post": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelinePublish"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Unpublishes the pipeline: new jobs can no longer be submitted for it, test runs still can.\n\n**Permission**: `PipelinePublish` (Publish/unpublish pipelines).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/versions": {
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineVersionSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineVersionSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineVersionSummaryDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the pipeline's saved versions, newest first, with their change note and published state.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/versions/{versionNumber}": {
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineVersionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineVersionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineVersionDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "One saved version of the pipeline: its name, description, definition and parameters at that version.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/parameters": {
      "put": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineParametersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineParametersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineParametersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineUpdate"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Replaces the pipeline's default parameters (vCPU, memory, timeout, environment…) that its jobs and\ntest runs use. Clears the default machine size when it no longer matches the new vCPU / memory.\n\n**Permission**: `PipelineUpdate` (Update pipeline definitions).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/execution-options": {
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineExecutionOptionsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineExecutionOptionsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineExecutionOptionsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "What the pipeline's execution defaults may be set to: machine sizes (each available or\nnot, with the reason) and the providers/regions its jobs can be routed to.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/execution-defaults": {
      "put": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineExecutionDefaultsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineExecutionDefaultsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePipelineExecutionDefaultsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineUpdate"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Sets the pipeline's default machine size (replacing its default vCPU / memory) and the\nprovider/region its jobs should go to first. Null clears either.\n\n**Permission**: `PipelineUpdate` (Update pipeline definitions).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/versions/{versionNumber}/revert": {
      "post": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineUpdate"
        ],
        "x-marathoon-minimum-role": "Maintainer",
        "description": "Restores the pipeline's name, description, definition and default parameters from a saved version.\nThe current state is saved as a new version first, so the revert can itself be undone.\n\n**Permission**: `PipelineUpdate` (Update pipeline definitions).  \n**Lowest built-in role**: `Maintainer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/versions/{versionA}/diff/{versionB}": {
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionA",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "versionB",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineVersionDiffDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineVersionDiffDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineVersionDiffDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Differences between two saved versions of the pipeline: inputs, outputs, tasks, executable,\nconnections, resource parameters and metadata, each marked added, removed or modified.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/validate": {
      "post": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidatePipelineRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidatePipelineRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidatePipelineRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowValidationResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowValidationResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowValidationResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Checks a pipeline definition's workflow (cycles, connections, task settings) without saving it, and\nreturns `isValid` with the errors found.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/Pipelines/{pipelineId}/test-runs": {
      "post": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitTestRunRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitTestRunRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitTestRunRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRun"
        ],
        "x-marathoon-minimum-role": "Analyst",
        "description": "Starts a test run of the pipeline's current definition, published or not, with the given inputs.\nIt is queued and billed like any job, on the pipeline's default parameters; returns the job.\n\n**Permission**: `PipelineRun` (Run pipelines).  \n**Lowest built-in role**: `Analyst` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "get": {
        "tags": [
          "Pipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the pipeline's test runs, newest first, optionally for one `versionNumber`. Paginated with\n`skip` and `take` (default 20, at most 200).\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/platform/identity": {
      "get": {
        "tags": [
          "Platform"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformIdentityDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformIdentityDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformIdentityDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "The cloud identities of this Marathoon deployment to grant access to in your own cloud: the\nAWS principal ARN your role trusts, and the Azure principal and tenant ids to give a storage\nrole to. Each is `null` when not configured.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/tenants/{tenantId}/Projects": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectSummaryDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the projects the caller can see, newest first: every project of the organisation for its\nadministrators, otherwise those the caller is a member of. Archived projects only with `includeArchived=true`.\n\n**Permission**: `ProjectRead` (View projects).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectCreate"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Creates a project, with the caller as its owner. Refused if the name is already taken in the\norganisation or the plan's project limit is reached.\n\n**Permission**: `ProjectCreate` (Create new projects).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Projects/{projectId}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "A project with its members, their role and, for members of the organisation, their name and e-mail.\n\n**Permission**: `ProjectRead` (View projects).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "put": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectUpdate"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Renames the project and replaces its description. The name must stay unique in the organisation.\n\n**Permission**: `ProjectUpdate` (Update project details).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectDelete"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Deletes the project.\n\n**Permission**: `ProjectDelete` (Delete projects).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Projects/{projectId}/archive": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectArchive"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Archives the project: it is hidden from the project list by default and no pipeline can be created in it.\n\n**Permission**: `ProjectArchive` (Archive/unarchive projects).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Projects/{projectId}/unarchive": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectArchive"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Restores an archived project.\n\n**Permission**: `ProjectArchive` (Archive/unarchive projects).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Projects/{projectId}/members": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddMemberRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddMemberRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddMemberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMemberDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMemberDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMemberDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectMembersManage"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Adds a member of the organisation to the project with a role, no higher than the caller's own;\na former member gets their place back. Returns the membership.\n\n**Permission**: `ProjectMembersManage` (Manage project members).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/Projects/{projectId}/members/{userId}": {
      "put": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMemberRoleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMemberRoleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMemberRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectMembersManage"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Changes a project member's role. The project's only owner cannot demote themselves.\n\n**Permission**: `ProjectMembersManage` (Manage project members).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectMembersManage"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Removes a member from the project. The project's only owner cannot be removed.\n\n**Permission**: `ProjectMembersManage` (Manage project members).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/public/pricing/grid": {
      "get": {
        "tags": [
          "PublicPricing"
        ],
        "parameters": [
          {
            "name": "visitorId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPricingGridDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPricingGridDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPricingGridDto"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "The grid to show — `corrected` (current grid, corrected) or `target` (2026-09 grid).\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/tenants/{tenantId}/children": {
      "get": {
        "tags": [
          "Reseller"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "reseller"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ResellerRead"
        ],
        "description": "Lists the child tenants this reseller tenant manages.\n\n**Permission**: `ResellerRead` (View child (reseller-managed) tenants).  \n**Role**: no built-in role. A custom role can hold it (reseller plan required).  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `reseller`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "post": {
        "tags": [
          "Reseller"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChildTenantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChildTenantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChildTenantRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "reseller"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ResellerManage"
        ],
        "description": "Creates a child tenant on a resellable plan with its monthly credits, optionally inviting `ownerEmail` as organization admin (an e-mail is sent) and copying the reseller's SSO configuration. Returns 201.\n\n**Permission**: `ResellerManage` (Provision and manage child tenants).  \n**Role**: no built-in role. A custom role can hold it (reseller plan required).  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `reseller`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/children/billing": {
      "get": {
        "tags": [
          "Reseller"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResellerBillingSummaryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResellerBillingSummaryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResellerBillingSummaryDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "reseller"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ResellerRead"
        ],
        "description": "Previews the reseller's next wholesale invoice, in cents: each child with its public and wholesale monthly price, the reseller discount, the top-up to the minimum commitment and the monthly total.\n\n**Permission**: `ResellerRead` (View child (reseller-managed) tenants).  \n**Role**: no built-in role. A custom role can hold it (reseller plan required).  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `reseller`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/children/billing/invoice": {
      "post": {
        "tags": [
          "Reseller"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResellerInvoiceResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResellerInvoiceResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResellerInvoiceResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "reseller"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ResellerManage"
        ],
        "description": "Adds this month's wholesale invoice to the reseller's next Stripe invoice (one item per active child, plus any minimum-commitment top-up) and returns the items. Once per calendar month (UTC): a second call in the same month answers 409.\n\n**Permission**: `ResellerManage` (Provision and manage child tenants).  \n**Role**: no built-in role. A custom role can hold it (reseller plan required).  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `reseller`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/roles/permissions": {
      "get": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeSuperAdminOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AllPermissionsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AllPermissionsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AllPermissionsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Get all available permissions.\n\n**Permission**: `TenantRolesRead` (View tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/roles/permissions/me": {
      "get": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantUserPermissionsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantUserPermissionsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantUserPermissionsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Get the effective permissions of the current user for this tenant.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/tenants/{tenantId}/roles": {
      "get": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleSummaryDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Get all custom roles for the tenant.\n\n**Permission**: `TenantRolesRead` (View tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Create a new custom role.\n\n**Permission**: `TenantRolesManage` (Manage tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/roles/{roleId}": {
      "get": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Get a specific custom role.\n\n**Permission**: `TenantRolesRead` (View tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "put": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Update a custom role.\n\n**Permission**: `TenantRolesManage` (Manage tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Delete a custom role.\n\n**Permission**: `TenantRolesManage` (Manage tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/enrollments": {
      "post": {
        "tags": [
          "RunnerEnrollments"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunnerEnrollmentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunnerEnrollmentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunnerEnrollmentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollmentTokenCreatedDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollmentTokenCreatedDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollmentTokenCreatedDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Issues a single-use enrollment token (15 min). The token is returned once.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/enrollments/{enrollmentId}": {
      "get": {
        "tags": [
          "RunnerEnrollments"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "enrollmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollmentStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollmentStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollmentStatusDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Enrollment status plus the enrolled agent's live heartbeat (polled by the wizard).\n\n**Permission**: `TenantProvidersRead` (View tenant runner/storage providers).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "delete": {
        "tags": [
          "RunnerEnrollments"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "enrollmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Cancels a pending token.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/runners/enroll": {
      "post": {
        "tags": [
          "RunnerEnrollments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollRunnerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollRunnerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollRunnerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimRunnerEnrollmentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimRunnerEnrollmentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimRunnerEnrollmentResult"
                }
              }
            }
          }
        },
        "security": [],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Redeems an enrollment token (called by the agent, unauthenticated). Returns the API\nkey exactly once. Rate-limited per IP like the auth endpoints; every failure is the\nsame opaque 400 so the endpoint can't be used to probe tokens.\n\n**Access**: public, no credential.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/claim": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerClaimRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerClaimRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerClaimRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerJobDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerJobDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerJobDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Claims the next queued job routed to this connected runner and leases it for 5 minutes:\nreturns what to run (image, command, inputs, environment, timeout, registry credentials when\nconfigured). 204 when nothing is waiting.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/heartbeat": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerIdRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerHeartbeatResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerHeartbeatResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerHeartbeatResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Renews the runner's 5-minute lease on an execution. `cancelRequested = true` means the\nexecution has already ended (cancelled, timed out) and the runner should stop it.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/logs": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerLogRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerLogRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerLogRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Appends a progress line, at the given level, to the execution's log stream shown on the job\npage. Only the runner holding the lease may write.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/start": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerIdRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Marks a leased execution as running. Calling it again on a running execution changes\nnothing.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/complete": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerCompleteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerCompleteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerCompleteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Reports the end of a leased execution, success with its exit code or failure with an error\nmessage, and releases the lease. Idempotent: an execution already finished is acknowledged\nunchanged.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/inputs": {
      "get": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "runnerId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Streams one of the job's input files, named by its storage `path`, to the runner\nholding the lease. Only the job's own input files can be fetched.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/outputs": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "runnerId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Uploads one output file as the raw request body; it becomes a job artifact. `fileName`\nmay be a relative path under the outputs folder; per-file, per-job and storage quota limits\napply.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/inputs/url": {
      "get": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "runnerId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerTransferUrlDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerTransferUrlDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerTransferUrlDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Pre-authorized GET for one input blob (direct transfer; 409 when the provider did not opt in).\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/outputs/url": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerPrepareOutputRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerPrepareOutputRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerPrepareOutputRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerOutputUploadTargetDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerOutputUploadTargetDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerOutputUploadTargetDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Reserves an output blob and returns the pre-authorized PUT for it.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/runners/executions/{executionId}/outputs/commit": {
      "post": {
        "tags": [
          "Runners"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerCommitOutputRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerCommitOutputRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunnerCommitOutputRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "RunnerExecute"
        ],
        "description": "Registers a directly uploaded output as a job artifact.\n\n**Permission**: `RunnerExecute` (Claim and execute jobs as a connected runner).  \n**Role**: no human role. Reserved for machine API keys (runner, agent).  \n**API key**: required, with the permission above.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/scim/config": {
      "get": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScimConfigDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimConfigDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimConfigDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "The organization's SCIM provisioning settings (enabled, default role, whether a token\nexists, last use), or `null` when SCIM was never set up.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/scim/token": {
      "post": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateScimTokenResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateScimTokenResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateScimTokenResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Generates a new SCIM bearer token, replacing any previous one, and sets the role given to\nprovisioned users (`Analyst` by default). The plaintext token is returned only once; a\nfirst token also enables SCIM.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/scim/enabled": {
      "post": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetScimEnabledRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetScimEnabledRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetScimEnabledRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Turns SCIM provisioning on or off; while off, the SCIM token is refused. Answers 400 when no\ntoken was ever generated.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/scim/v2/Users": {
      "get": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startIndex",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "SCIM: lists the organization's members as SCIM User resources, oldest first, paged with\n`startIndex` (1-based) and `count` (at most 1000, the default). The only filter is\n`userName eq \"…\"`, an exact match on the e-mail; any other filter answers 400.\n\n**Access**: public, no credential."
      },
      "post": {
        "tags": [
          "Scim"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "SCIM: provisions a user from `userName` (the e-mail) and `name` or\n`displayName`, creating the account only in an e-mail domain the organization verified,\nand adds or reactivates its membership with the default role. Answers 201, or 409 for an\nexisting account that must be invited instead.\n\n**Access**: public, no credential."
      }
    },
    "/scim/v2/Users/{id}": {
      "get": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "SCIM: one member of the organization as a SCIM User resource, by user id; `active`\nreflects the membership.\n\n**Access**: public, no credential."
      },
      "patch": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "SCIM: activates or deactivates the member's access to the organization from the\n`active` attribute (PatchOp or plain body); other attributes are ignored. Returns the\nupdated SCIM User.\n\n**Access**: public, no credential."
      },
      "delete": {
        "tags": [
          "Scim"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "SCIM: de-provisions a member by deactivating their membership in the organization; the\naccount itself is not deleted. Answers 204.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/sso/config": {
      "get": {
        "tags": [
          "Sso"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "sso"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "The organization's OIDC single sign-on configuration, or `null` when none exists. The\nclient secret is never returned, only `hasClientSecret`.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `sso`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "put": {
        "tags": [
          "Sso"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSsoConfigCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSsoConfigCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSsoConfigCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoConfigDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "sso"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Creates or updates the organization's OIDC configuration and returns it. The authority must\nbe a public HTTPS URL; the client secret is required on creation and kept when omitted. A\nnew configuration starts disabled.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `sso`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/sso/config/enabled": {
      "post": {
        "tags": [
          "Sso"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetEnabledRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetEnabledRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetEnabledRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "sso"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Turns SSO sign-in on or off for the organization; answers 400 when no configuration exists\nyet.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `sso`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/auth/sso/{tenantSlug}/login": {
      "get": {
        "tags": [
          "Sso"
        ],
        "parameters": [
          {
            "name": "tenantSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "returnUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-feature-flags": [
          "sso"
        ],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Starts an SSO sign-in for the organization `tenantSlug` by redirecting the browser to\nits identity provider (authorization code flow with PKCE); `returnUrl` is the app page\nto land on afterwards. 404 when SSO is not enabled.\n\n**Access**: public, no credential.  \n**Feature flag**: `sso`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/auth/sso/callback": {
      "get": {
        "tags": [
          "Sso"
        ],
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-feature-flags": [
          "sso"
        ],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Redirect target of the identity provider: signs the user in, provisioning the account when\nallowed, then redirects to the web app with the access token in the URL fragment and the\nrefresh token in a cookie. Failures redirect to the login page with `ssoError`.\n\n**Access**: public, no credential.  \n**Feature flag**: `sso`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/webhooks/stripe": {
      "post": {
        "tags": [
          "StripeWebhook"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [],
        "x-marathoon-access": "anonymous",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Stripe webhook endpoint. Publicly accessible: the caller is authenticated by the\nStripe-Signature header, verified fail-closed in the command handler.\n\n**Access**: public, no credential."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/subscriptions/current": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get the current tenant's subscription.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/subscriptions/plans": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlanDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlanDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlanDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get available plans.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/subscriptions/checkout": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSessionResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Create a Stripe checkout session to subscribe to a plan.\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/subscriptions/portal": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePortalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PortalSessionResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalSessionResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalSessionResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Create a Stripe billing portal session to manage subscription/payment methods.\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/billing/subscriptions/cancel": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Cancel the current subscription.\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/support/contact": {
      "post": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitSupportRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitSupportRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitSupportRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportRequestResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Submit a support/contact request.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/domains": {
      "get": {
        "tags": [
          "TenantEmailDomains"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantEmailDomainDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantEmailDomainDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantEmailDomainDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Lists the organization's declared e-mail domains, sorted by name, with their verification\nstatus and the DNS TXT record each one needs.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "TenantEmailDomains"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddEmailDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddEmailDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddEmailDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantEmailDomainDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantEmailDomainDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantEmailDomainDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Declares an e-mail domain to prove and returns the DNS TXT record name and value to publish\nbefore calling verify. Answers 409 if already declared; at most 50 domains per organization.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/domains/{domainId}/verify": {
      "post": {
        "tags": [
          "TenantEmailDomains"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantEmailDomainDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantEmailDomainDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantEmailDomainDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Looks the TXT record up now. Rate-limited: each call queries the DNS.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/settings/domains/{domainId}": {
      "delete": {
        "tags": [
          "TenantEmailDomains"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Removes a declared domain: SSO and SCIM can no longer create accounts in it, while accounts\nalready provisioned in it stay.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/global-pipelines": {
      "get": {
        "tags": [
          "TenantGlobalPipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GlobalPipelineSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GlobalPipelineSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GlobalPipelineSummaryDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the published global pipelines (platform and marketplace) offered to every organisation.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/global-pipelines/purchased": {
      "get": {
        "tags": [
          "TenantGlobalPipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantPurchasedPipelineDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantPurchasedPipelineDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantPurchasedPipelineDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "PipelineRead"
        ],
        "x-marathoon-minimum-role": "Viewer",
        "description": "Lists the global pipelines the organisation has access to (purchased or granted), with whether each\nis enabled, its token cost and any custom cost.\n\n**Permission**: `PipelineRead` (View pipelines).  \n**Lowest built-in role**: `Viewer` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/global-pipelines/{pipelineId}/toggle": {
      "patch": {
        "tags": [
          "TenantGlobalPipelines"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pipelineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleAccessRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleAccessRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleAccessRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Enables or disables a global pipeline the organisation has access to. An access revoked by the\nplatform (refund, administrator) cannot be re-enabled here.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/purchases": {
      "get": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplacePurchaseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplacePurchaseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplacePurchaseDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "One-time listing purchases of the organisation, newest first, with each listing's title and\ncreator name.\n\n**Permission**: `BillingRead` (View billing information).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/listings/{id}/checkout": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseCheckoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseCheckoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseCheckoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCheckoutResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCheckoutResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCheckoutResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "BillingManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Starts a Stripe Checkout for a one-time listing purchase and returns its `checkoutUrl`;\nthe purchase completes when the payment is confirmed. Fails if already bought, not for sale, or your own listing.\n\n**Permission**: `BillingManage` (Manage billing settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/listings/{id}/reviews": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertReviewRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertReviewRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertReviewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceReviewDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceReviewDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceReviewDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "x-marathoon-access": "self-service",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": false,
        "description": "Creates or replaces the organisation's review of a listing (`rating` 1 to 5) and returns it.\nNeeds a completed purchase, or for per-run listings a successful run; the listing's average rating is recomputed.\n\n**Access**: user session (JWT). The caller acts on their own account; no permission is checked.  \n**API key**: refused."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator": {
      "get": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "The caller's creator account (profile, status, balances, payout setup), or an empty response if\nthey have none.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BecomeCreatorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BecomeCreatorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BecomeCreatorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Creates the caller's creator account, needed to sell on the marketplace. Fails if they already\nhave one.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "put": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCreatorProfileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCreatorProfileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCreatorProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Replaces the caller's public creator profile: display name, bio, avatar and website.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/listings": {
      "get": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceListingDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceListingDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceListingDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "The caller's listings in every status, newest first.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateListingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateListingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateListingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Creates a draft listing from one of the organisation's pipelines, copying its definition and default\nparameters into a new unpublished marketplace pipeline. Submit it for review to put it on the catalog.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/earnings": {
      "get": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreatorEarningDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreatorEarningDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreatorEarningDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "The caller's earnings entries (purchases and per-run markup), newest first and paginated\n(`pageSize` up to 100).\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/onboarding": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorOnboardingResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorOnboardingResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorOnboardingResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Returns a Stripe Connect onboarding link for setting up payouts, creating the connected account\non first call. `refreshUrl` and `returnUrl` must be on the app's own origins.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/payouts": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Transfers the caller's payable balance (earnings past their hold period) to their Stripe connected\naccount and returns the payout. Fails below the minimum amount or when payouts are not set up; a failed transfer is not debited.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "get": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreatorPayoutDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreatorPayoutDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CreatorPayoutDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "The caller's payouts with their amount and status, newest first.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/listings/{id}": {
      "put": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateListingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateListingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateListingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Updates a listing's details and pricing. Raising the price or changing the pricing model of an\napproved listing sends it back to review; a price cut applies at once.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/listings/{id}/submit": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Submits a draft or rejected listing for review; administrators are notified.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/listings/{id}/delist": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Takes the caller's approved listing off the catalog: it is no longer sold, while buyers who have access keep running it, per-run markup included.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/listings/{id}/publish-update": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishUpdateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishUpdateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublishUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingVersionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingVersionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingVersionDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Republishes a listing's content from its source pipeline's current definition and default\nparameters, live at once, and returns the new version with its required `changelog`.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/reviews/{reviewId}/respond": {
      "post": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "reviewId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewResponseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewResponseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewResponseRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceReviewDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceReviewDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceReviewDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Posts or replaces the creator's public reply to a review of one of their listings and returns\nthe review.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/marketplace/creator/analytics": {
      "get": {
        "tags": [
          "TenantMarketplace"
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorAnalyticsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorAnalyticsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorAnalyticsDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "marketplace_selling"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "MarketplaceSell"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "The caller's sales over the last `days` days (1 to 365, default 30): net earnings from\npurchases and markup, balances, views, purchases, a daily series and per-listing figures.\n\n**Permission**: `MarketplaceSell` (Sell pipelines on the public marketplace).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `marketplace_selling`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/members": {
      "get": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantUserDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantUserDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantUserDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantMembersRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get all members of a tenant.\n\n**Permission**: `TenantMembersRead` (View tenant members).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/{userId}/role": {
      "put": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantMemberRoleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantMemberRoleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantMemberRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantMembersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Update a member's role.\n\n**Permission**: `TenantMembersManage` (Manage tenant members).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/{userId}/roles/{roleId}": {
      "post": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Give a member a custom role, in addition to their built-in tenant role.\n\n**Permission**: `TenantRolesManage` (Manage tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "delete": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantRolesManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Take a custom role away from a member.\n\n**Permission**: `TenantRolesManage` (Manage tenant roles).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/{userId}": {
      "delete": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantMembersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Remove a member from the tenant.\n\n**Permission**: `TenantMembersManage` (Manage tenant members).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/roles": {
      "get": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {}
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {}
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {}
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantMembersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "The tenant roles the caller may assign, never above their own.\n\n**Permission**: `TenantMembersManage` (Manage tenant members).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/invitations": {
      "get": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pendingOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantInvitationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantInvitationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantInvitationDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantMembersRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Get all invitations for a tenant.\n\n**Permission**: `TenantMembersRead` (View tenant members).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "post": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InviteUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantInvitationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantInvitationDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "UserInvite"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Invite a user to the tenant.\n\n**Permission**: `UserInvite` (Invite new users).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/invitations/{invitationId}/resend": {
      "post": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invitationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantInvitationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantInvitationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantInvitationDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "UserInvite"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Resend an invitation.\n\n**Permission**: `UserInvite` (Invite new users).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/members/invitations/{invitationId}": {
      "delete": {
        "tags": [
          "TenantMembers"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invitationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "UserInvite"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Revoke an invitation.\n\n**Permission**: `UserInvite` (Invite new users).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/providers": {
      "get": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantProviderDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantProviderDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantProviderDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersRead"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Lists the organisation's runner and storage providers, optionally filtered by\n`category` (`Runner` or `Storage`), with the agent ids bound to each\nConnected Runner. Credentials are never returned.\n\n**Permission**: `TenantProvidersRead` (View tenant runner/storage providers).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "post": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTenantProviderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTenantProviderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTenantProviderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Creates a runner or storage provider. Credentials go to the secret store, never in the\nconfig, and the config's endpoints are validated; `isDefault` makes it its category's\ndefault in place of the current one.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/providers/{providerId}": {
      "put": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantProviderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantProviderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantProviderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Replaces a provider's name and config, and optionally rotates its credentials, enables or\ndisables it, or replaces the agent ids bound to a Connected Runner. Credentials left out are\nkept.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "delete": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Deletes a provider and its stored credentials. Projects that used it fall back to the\norganisation's default provider.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/providers/{providerId}/default": {
      "post": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Makes this enabled provider the default of its category, in place of the previous default,\nand returns it.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/providers/{providerId}/test": {
      "post": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderTestResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderTestResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderTestResultDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Checks that the provider is reachable: a storage probe, a Connected Runner readiness check\nor a Remote Docker connection. Returns `success` and a message; other runner types have\nno live test.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/providers/{providerId}/smoke-test": {
      "post": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunSmokeTestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunSmokeTestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunSmokeTestRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerSmokeTestStartedDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerSmokeTestStartedDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerSmokeTestStartedDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantProvidersManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Submits a tiny validation job (public alpine image) routed to this Connected Runner\nso the customer can watch their machine execute something end-to-end.\n\n**Permission**: `TenantProvidersManage` (Manage tenant runner/storage providers and credentials).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/projects/{projectId}/providers": {
      "put": {
        "tags": [
          "TenantProviders"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignProjectProvidersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignProjectProvidersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignProjectProvidersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "self_hosted_compute"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "ProjectUpdate"
        ],
        "x-marathoon-minimum-role": "ProjectOwner",
        "description": "Sets the runner and storage providers a project runs and stores on; `null` leaves it on\nthe organisation's default. Each provider must be enabled and of the matching category.\n\n**Permission**: `ProjectUpdate` (Update project details).  \n**Lowest built-in role**: `ProjectOwner` and above, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `self_hosted_compute`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/provider-settings": {
      "get": {
        "tags": [
          "TenantProviderSettings"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderSettingsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderSettingsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantProviderSettingsDto"
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Get tenant provider settings.\n\n**Permission**: `TenantSettingsRead` (View tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      },
      "put": {
        "tags": [
          "TenantProviderSettings"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantProviderSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantProviderSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTenantProviderSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Update tenant provider settings.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/provider-settings/residency": {
      "put": {
        "tags": [
          "TenantProviderSettings"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResidencyPolicyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResidencyPolicyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResidencyPolicyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Sets the tenant's data-residency policy: the zones its jobs may run in, its preferred\nregion, and the providers it allows. Requires the data-residency-control plan feature;\na global admin may set it on any tenant's behalf.\n\n**Permission**: `TenantSettingsManage` (Manage tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/provider-settings/available-providers": {
      "get": {
        "tags": [
          "TenantProviderSettings"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableProviderDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableProviderDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableProviderDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "TenantSettingsRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Get available providers for this tenant.\n\n**Permission**: `TenantSettingsRead` (View tenant settings).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookDto"
                  }
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Lists the organisation's webhooks with their URL, subscribed events, status and consecutive\nfailures. The signing secret is not included.\n\n**Permission**: `WebhooksRead` (View webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateWebhookResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateWebhookResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateWebhookResult"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksCreate"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Creates a webhook. The response carries the signing secret — the only time it is ever\nreturned (rotate it to get a new one).\n\n**Permission**: `WebhooksCreate` (Create webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks/{webhookId}": {
      "put": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Replaces a webhook's name, URL and subscribed events. The URL is validated again; the\nsigning secret is unchanged.\n\n**Permission**: `WebhooksManage` (Manage webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksDelete"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Deletes a webhook.\n\n**Permission**: `WebhooksDelete` (Delete webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks/{webhookId}/toggle": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleWebhookRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleWebhookRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Pauses (`isActive = false`) or resumes a webhook. Resuming also resets its consecutive\nfailure count.\n\n**Permission**: `WebhooksManage` (Manage webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks/{webhookId}/rotate-secret": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecretDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecretDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecretDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Replaces the signing secret and returns the new one (shown once). Effective immediately,\nincluding for pending retries.\n\n**Permission**: `WebhooksManage` (Manage webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks/{webhookId}/test": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Sends a signed `webhook.ping` to this webhook through the normal delivery path. The\ndelivery is queued (202) and appears in the delivery log within seconds.\n\n**Permission**: `WebhooksManage` (Manage webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks/{webhookId}/deliveries/{deliveryId}/replay": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogDto"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksManage"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "Re-sends a past delivery (same event id and body, signed with the current secret). The new\ndelivery is queued and sent by the orchestrator within seconds.\n\n**Permission**: `WebhooksManage` (Manage webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    },
    "/api/v1/tenants/{tenantId}/webhooks/{webhookId}/deliveries": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryLogsResult"
                }
              }
            }
          }
        },
        "x-marathoon-feature-flags": [
          "webhooks"
        ],
        "x-marathoon-access": "permission",
        "x-marathoon-audience": "public",
        "x-marathoon-api-key": true,
        "x-marathoon-permissions": [
          "WebhooksRead"
        ],
        "x-marathoon-minimum-role": "OrganizationAdmin",
        "description": "The webhook's delivery log, newest first, paged with `page`/`pageSize` (at most\n200), with the total count.\n\n**Permission**: `WebhooksRead` (View webhooks).  \n**Lowest built-in role**: `OrganizationAdmin`, or a custom role that holds the permission.  \n**API key**: accepted if it holds the permission.  \n**Feature flag**: `webhooks`. When off, the endpoint answers `403 Feature.Disabled`."
      }
    }
  },
  "components": {
    "schemas": {
      "AcceptInvitationRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AcceptInvitationResultDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "tenantSlug": {
            "type": "string",
            "nullable": true
          },
          "sessionsRevoked": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActiveJobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "pipelineId": {
            "type": "string",
            "nullable": true
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "queuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "pipelineMedianSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddEmailDomainRequest": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddMemberRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "$ref": "#/components/schemas/ProjectRole"
          }
        },
        "additionalProperties": false
      },
      "AdjustTokensRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "integer",
            "format": "int32"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminDashboardDto": {
        "type": "object",
        "properties": {
          "totalTenants": {
            "type": "integer",
            "format": "int32"
          },
          "activeTenants": {
            "type": "integer",
            "format": "int32"
          },
          "totalUsers": {
            "type": "integer",
            "format": "int32"
          },
          "totalProjects": {
            "type": "integer",
            "format": "int32"
          },
          "totalJobs": {
            "type": "integer",
            "format": "int32"
          },
          "newTenantsLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "newUsersLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "jobsLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "recentTenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminTenantSummaryDto"
            },
            "nullable": true
          },
          "recentAuditLogs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditLogSummaryDto"
            },
            "nullable": true
          },
          "userGrowth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesDataPointDto"
            },
            "nullable": true
          },
          "tenantGrowth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesDataPointDto"
            },
            "nullable": true
          },
          "jobActivity": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesDataPointDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminPlanDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "monthlyTokens": {
            "type": "integer",
            "format": "int32"
          },
          "pricePerMonth": {
            "type": "number",
            "format": "double"
          },
          "overageTokenPrice": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "stripePriceId": {
            "type": "string",
            "nullable": true
          },
          "stripeProductId": {
            "type": "string",
            "nullable": true
          },
          "resellerDiscountBasisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "isResellable": {
            "type": "boolean"
          },
          "retentionDays": {
            "type": "integer",
            "format": "int32"
          },
          "includedStorageGb": {
            "type": "integer",
            "format": "int32"
          },
          "annualPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "academicPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "limits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "tenantCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminProviderStatsDto": {
        "type": "object",
        "properties": {
          "generatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "overall": {
            "$ref": "#/components/schemas/OverallStatsDto"
          },
          "byProvider": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderDetailDto"
            },
            "nullable": true
          },
          "hourlyTrend": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HourlyStatsDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminTenantSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AgentConnectionStatus": {
        "enum": [
          "Online",
          "Degraded",
          "Dead"
        ],
        "type": "string"
      },
      "AgentHeartbeatRequest": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "activeWatcherCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalFilesProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "type": "string",
            "nullable": true
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "isRunner": {
            "type": "boolean"
          },
          "dockerAvailable": {
            "type": "boolean",
            "nullable": true
          },
          "dockerVersion": {
            "type": "string",
            "nullable": true
          },
          "isShuttingDown": {
            "type": "boolean"
          },
          "runnerBackend": {
            "type": "string",
            "nullable": true
          },
          "instanceId": {
            "type": "string",
            "nullable": true
          },
          "runnerConcurrencyMode": {
            "type": "string",
            "nullable": true
          },
          "runnerSlots": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runnerRunningJobs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runnerCapacityBasis": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AgentHeartbeatResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "connectionStatus": {
            "type": "string",
            "nullable": true
          },
          "lastSeenAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AgentInstanceDto": {
        "type": "object",
        "properties": {
          "instanceId": {
            "type": "string",
            "nullable": true
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "dockerAvailable": {
            "type": "boolean",
            "nullable": true
          },
          "dockerVersion": {
            "type": "string",
            "nullable": true
          },
          "concurrencyMode": {
            "type": "string",
            "nullable": true
          },
          "slots": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runningJobs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "capacityBasis": {
            "type": "string",
            "nullable": true
          },
          "lastSeenAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "isLive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AgentPipelineDto": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentPipelineInputDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AgentPipelineInputDto": {
        "required": [
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AgentStatusDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "connectionStatus": {
            "type": "string",
            "nullable": true
          },
          "lastSeenAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "firstSeenAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "activeWatcherCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalFilesProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "type": "string",
            "nullable": true
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "secondsSinceLastHeartbeat": {
            "type": "number",
            "format": "double"
          },
          "isRunner": {
            "type": "boolean"
          },
          "dockerAvailable": {
            "type": "boolean",
            "nullable": true
          },
          "dockerVersion": {
            "type": "string",
            "nullable": true
          },
          "runnerBackend": {
            "type": "string",
            "nullable": true
          },
          "capacity": {
            "$ref": "#/components/schemas/RunnerCapacityDto"
          },
          "instances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentInstanceDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AllPermissionsDto": {
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionDto"
            },
            "nullable": true
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiKeyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "keyPrefix": {
            "type": "string",
            "nullable": true
          },
          "preset": {
            "$ref": "#/components/schemas/ApiKeyPermissionPreset"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isExpired": {
            "type": "boolean"
          },
          "lastUsedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastUsedFromIp": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "ApiKeyPermissionPreset": {
        "enum": [
          "Agent",
          "ReadOnly",
          "JobSubmitter",
          "FullAccess",
          "Runner",
          "Custom"
        ],
        "type": "string"
      },
      "ApiKeyPresetDto": {
        "type": "object",
        "properties": {
          "preset": {
            "$ref": "#/components/schemas/ApiKeyPermissionPreset"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiKeyStatsDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "active": {
            "type": "integer",
            "format": "int32"
          },
          "stale": {
            "type": "integer",
            "format": "int32"
          },
          "neverUsed": {
            "type": "integer",
            "format": "int32"
          },
          "expired": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AppendLogRequest": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "level": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicationReportDto": {
        "type": "object",
        "properties": {
          "period": {
            "$ref": "#/components/schemas/ReportPeriod"
          },
          "jobsSubmitted": {
            "type": "integer",
            "format": "int64"
          },
          "jobsSucceeded": {
            "type": "integer",
            "format": "int64"
          },
          "jobsFailed": {
            "type": "integer",
            "format": "int64"
          },
          "jobsCancelled": {
            "type": "integer",
            "format": "int64"
          },
          "successRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "submittedSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "succeededSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "failedSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "durationP50Seconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "durationP95Seconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "queueLatencyP50Seconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "queueLatencyP95Seconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDurationSampled": {
            "type": "boolean"
          },
          "durationSampleSize": {
            "type": "integer",
            "format": "int32"
          },
          "failuresByErrorCode": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedCountDto"
            },
            "nullable": true
          },
          "jobsByProvider": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderJobStatsDto"
            },
            "nullable": true
          },
          "topTenantsByJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantValueDto"
            },
            "nullable": true
          },
          "topTenantsByTokens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantValueDto"
            },
            "nullable": true
          },
          "dailyActiveUsers": {
            "type": "integer",
            "format": "int32"
          },
          "weeklyActiveUsers": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyActiveUsers": {
            "type": "integer",
            "format": "int32"
          },
          "activeUsersSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "timeToFirstValueMedianHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tenantsReachedFirstValue": {
            "type": "integer",
            "format": "int32"
          },
          "newTenantsSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "newUsersSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ArtifactType": {
        "enum": [
          "Output",
          "Log",
          "Report"
        ],
        "type": "string"
      },
      "AssignProjectProvidersRequest": {
        "type": "object",
        "properties": {
          "runnerProviderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "storageProviderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AuditLogDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "resourceType": {
            "type": "string",
            "nullable": true
          },
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "impersonatedBy": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "detailsJson": {
            "type": "string",
            "nullable": true
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AuditLogDtoPaginatedResultDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditLogDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "AuditLogSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "resourceType": {
            "type": "string",
            "nullable": true
          },
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AvailableProvider": {
        "required": [
          "isHealthy",
          "provider",
          "regions",
          "services"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/CloudProvider"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExecutionService"
            },
            "nullable": true
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isHealthy": {
            "type": "boolean"
          },
          "currentLoad": {
            "type": "integer",
            "format": "int32"
          },
          "queuedJobs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AvailableProviderDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isAllowed": {
            "type": "boolean"
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailableRegionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AvailableRegionDto": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "dataResidency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchJobsResultDto": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "format": "uuid"
          },
          "totalJobs": {
            "type": "integer",
            "format": "int32"
          },
          "totalEstimatedCost": {
            "type": "integer",
            "format": "int32"
          },
          "jobIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BecomeCreatorRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "bio": {
            "type": "string",
            "nullable": true
          },
          "websiteUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingExtensionLineDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "BroadcastNotificationRequest": {
        "required": [
          "method"
        ],
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "nullable": true
          },
          "payload": {}
        },
        "additionalProperties": false
      },
      "BulkSetTenantAccessRequest": {
        "type": "object",
        "properties": {
          "tenantIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CancelExecutionRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CancelSubscriptionRequest": {
        "type": "object",
        "properties": {
          "atPeriodEnd": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CatalogTagDto": {
        "type": "object",
        "properties": {
          "tag": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ChangePasswordRequest": {
        "type": "object",
        "properties": {
          "currentPassword": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CheckoutSessionResultDto": {
        "type": "object",
        "properties": {
          "checkoutUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClaimAgentPairingResult": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClaimPairingRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "currentApiKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClaimRunnerEnrollmentResult": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          },
          "providerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloudCostRecordDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "vendor": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CloudCostScope": {
        "enum": [
          "Execution",
          "Infrastructure"
        ],
        "type": "string"
      },
      "CloudCostSource": {
        "enum": [
          "Manual",
          "AzureCostManagement",
          "OvhCloudUsage",
          "GcpBillingExport"
        ],
        "type": "string"
      },
      "CloudCostSourceStatusDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "nullable": true
          },
          "isConfigured": {
            "type": "boolean"
          },
          "lastAttemptAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSuccessAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "lastRecordCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CloudCostSyncOutcome": {
        "type": "object",
        "properties": {
          "source": {
            "$ref": "#/components/schemas/CloudCostSource"
          },
          "isConfigured": {
            "type": "boolean"
          },
          "succeeded": {
            "type": "boolean"
          },
          "recordCount": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloudProvider": {
        "enum": [
          "Local",
          "Aws",
          "Azure",
          "Gcp",
          "SelfHosted",
          "ConnectedRunner",
          "Ovh"
        ],
        "type": "string"
      },
      "CompleteExperimentRequest": {
        "type": "object",
        "properties": {
          "winnerVariantKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfirmEmailRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConnectedMachineDto": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "agent": {
            "$ref": "#/components/schemas/AgentStatusDto"
          },
          "isRunner": {
            "type": "boolean"
          },
          "isWatcher": {
            "type": "boolean"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MachineProviderRefDto"
            },
            "nullable": true
          },
          "apiKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MachineApiKeyDto"
            },
            "nullable": true
          },
          "ready": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ConnectedMachineListDto": {
        "type": "object",
        "properties": {
          "machines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectedMachineDto"
            },
            "nullable": true
          },
          "pendingEnrollments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendingEnrollmentDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConnectionDiffDto": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "nullable": true
          },
          "changeType": {
            "type": "string",
            "nullable": true
          },
          "sourceNodeId": {
            "type": "string",
            "nullable": true
          },
          "targetNodeId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContainerLogsResultDto": {
        "type": "object",
        "properties": {
          "logContent": {
            "type": "string",
            "nullable": true
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "hasLogs": {
            "type": "boolean"
          },
          "downloadUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CostForecastDto": {
        "type": "object",
        "properties": {
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "daysElapsed": {
            "type": "integer",
            "format": "int32"
          },
          "daysInPeriod": {
            "type": "integer",
            "format": "int32"
          },
          "consumedToDate": {
            "type": "integer",
            "format": "int64"
          },
          "projectedTotal": {
            "type": "integer",
            "format": "int64"
          },
          "monthlyQuota": {
            "type": "integer",
            "format": "int32"
          },
          "projectedOverage": {
            "type": "integer",
            "format": "int64"
          },
          "byPipeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineForecastDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateApiKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "preset": {
            "$ref": "#/components/schemas/ApiKeyPermissionPreset"
          },
          "customPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateApiKeyResponse": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string",
            "format": "uuid"
          },
          "plainTextKey": {
            "type": "string",
            "nullable": true
          },
          "keyPrefix": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateBatchJobsResultDto": {
        "required": [
          "batchName"
        ],
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "format": "uuid"
          },
          "batchName": {
            "type": "string",
            "nullable": true
          },
          "totalJobs": {
            "type": "integer",
            "format": "int32"
          },
          "totalFiles": {
            "type": "integer",
            "format": "int32"
          },
          "totalSizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "estimatedTotalTokens": {
            "type": "integer",
            "format": "int32"
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatedBatchJobDto"
            },
            "nullable": true
          },
          "failedJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FailedBatchJobDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateBatchRequest": {
        "type": "object",
        "properties": {
          "batchName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "machineSize": {
            "type": "string",
            "description": "Folder upload only: machine size (e.g. \"large\") every job of the batch runs on. Rejected\nunless the plan includes it and the organization enabled it.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "initialJobIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCheckoutRequest": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "successUrl": {
            "type": "string",
            "nullable": true
          },
          "cancelUrl": {
            "type": "string",
            "nullable": true
          },
          "annual": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateChildTenantRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "ownerEmail": {
            "type": "string",
            "nullable": true
          },
          "inheritParentSso": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateGlobalPipelineRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "tokenCost": {
            "type": "integer",
            "format": "int32"
          },
          "definition": {
            "$ref": "#/components/schemas/GlobalPipelineDefinitionDto"
          },
          "defaultParameters": {
            "$ref": "#/components/schemas/GlobalPipelineParametersDto"
          }
        },
        "additionalProperties": false
      },
      "CreateListingRequest": {
        "type": "object",
        "properties": {
          "sourcePipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "coverImageUrl": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "string",
            "nullable": true
          },
          "pricingModel": {
            "$ref": "#/components/schemas/PricingModel"
          },
          "oneTimePriceCents": {
            "type": "integer",
            "format": "int64"
          },
          "perExecutionMarkupTokens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreateManualCloudCostRequest": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/CloudCostScope"
          },
          "provider": {
            "$ref": "#/components/schemas/CloudProvider"
          },
          "vendor": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrganizationRequest": {
        "type": "object",
        "properties": {
          "organizationName": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "teamSize": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePipelineRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "definition": {
            "$ref": "#/components/schemas/PipelineDefinitionDto"
          },
          "defaultParameters": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          }
        },
        "additionalProperties": false
      },
      "CreatePlanCommand": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "monthlyTokens": {
            "type": "integer",
            "format": "int32"
          },
          "pricePerMonth": {
            "type": "number",
            "format": "double"
          },
          "overageTokenPrice": {
            "type": "number",
            "format": "double"
          },
          "stripePriceId": {
            "type": "string",
            "nullable": true
          },
          "stripeProductId": {
            "type": "string",
            "nullable": true
          },
          "resellerDiscountBasisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "retentionDays": {
            "type": "integer",
            "format": "int32"
          },
          "includedStorageGb": {
            "type": "integer",
            "format": "int32"
          },
          "annualPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "academicPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "limits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePortalRequest": {
        "type": "object",
        "properties": {
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateProjectOnboardingRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateProjectRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateRoleRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Permission"
            },
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateRunnerEnrollmentRequest": {
        "type": "object",
        "properties": {
          "providerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateTenantProviderRequest": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "configJson": {
            "type": "string",
            "nullable": true
          },
          "credentialSecretRef": {
            "type": "string",
            "nullable": true
          },
          "credentials": {
            "$ref": "#/components/schemas/ProviderCredentialsInput"
          },
          "isDefault": {
            "type": "boolean"
          },
          "runnerAgentIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Connected Runner only: agent ids to bind (empty = any agent).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateTenantRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CreateWebhookRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateWebhookResult": {
        "type": "object",
        "properties": {
          "webhook": {
            "$ref": "#/components/schemas/WebhookDto"
          },
          "secret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatedBatchJobDto": {
        "required": [
          "folderName"
        ],
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string",
            "nullable": true
          },
          "fileCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalSizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "estimatedTokens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreatorAdminDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "payoutEnabled": {
            "type": "boolean"
          },
          "lifetimeEarningsCents": {
            "type": "integer",
            "format": "int64"
          },
          "availableBalanceCents": {
            "type": "integer",
            "format": "int64"
          },
          "listingCount": {
            "type": "integer",
            "format": "int32"
          },
          "feeBasisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreatorAdminPageDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatorAdminDto"
            },
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreatorAnalyticsDto": {
        "type": "object",
        "properties": {
          "totalNetCents": {
            "type": "integer",
            "format": "int64"
          },
          "purchaseNetCents": {
            "type": "integer",
            "format": "int64"
          },
          "markupNetCents": {
            "type": "integer",
            "format": "int64"
          },
          "availableBalanceCents": {
            "type": "integer",
            "format": "int64"
          },
          "lifetimeEarningsCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalViews": {
            "type": "integer",
            "format": "int32"
          },
          "totalPurchases": {
            "type": "integer",
            "format": "int32"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatorDailyEarningPointDto"
            },
            "nullable": true
          },
          "listings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatorListingAnalyticsDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatorDailyEarningPointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "purchaseNetCents": {
            "type": "integer",
            "format": "int64"
          },
          "markupNetCents": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "CreatorDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "bio": {
            "type": "string",
            "nullable": true
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "websiteUrl": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "payoutEnabled": {
            "type": "boolean"
          },
          "lifetimeEarningsCents": {
            "type": "integer",
            "format": "int64"
          },
          "availableBalanceCents": {
            "type": "integer",
            "format": "int64"
          },
          "feeBasisPoints": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreatorEarningDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "listingId": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreatorListingAnalyticsDto": {
        "type": "object",
        "properties": {
          "listingId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "purchaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "conversionRate": {
            "type": "number",
            "format": "double"
          },
          "netRevenueCents": {
            "type": "integer",
            "format": "int64"
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "ratingCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreatorOnboardingResultDto": {
        "type": "object",
        "properties": {
          "onboardingUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatorPayoutDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "paidAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreatorPublicProfileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "bio": {
            "type": "string",
            "nullable": true
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "websiteUrl": {
            "type": "string",
            "nullable": true
          },
          "memberSinceUtc": {
            "type": "string",
            "format": "date-time"
          },
          "listingCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPurchases": {
            "type": "integer",
            "format": "int32"
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "listings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceListingDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreditCodeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "codeType": {
            "type": "string",
            "nullable": true
          },
          "tokenAmount": {
            "type": "integer",
            "format": "int32"
          },
          "globalPipelineId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "globalPipelineName": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maxRedemptions": {
            "type": "integer",
            "format": "int32"
          },
          "currentRedemptions": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "batchId": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "redemptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditCodeRedemptionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreditCodeRedemptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "tokensAwarded": {
            "type": "integer",
            "format": "int32"
          },
          "globalPipelineId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "globalPipelineName": {
            "type": "string",
            "nullable": true
          },
          "redeemedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreditCodeSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "codeType": {
            "type": "string",
            "nullable": true
          },
          "tokenAmount": {
            "type": "integer",
            "format": "int32"
          },
          "globalPipelineId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "globalPipelineName": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maxRedemptions": {
            "type": "integer",
            "format": "int32"
          },
          "currentRedemptions": {
            "type": "integer",
            "format": "int32"
          },
          "batchId": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreditCodeType": {
        "enum": [
          "PipelineTokens"
        ],
        "type": "string"
      },
      "CreditPackCheckoutResultDto": {
        "type": "object",
        "properties": {
          "checkoutUrl": {
            "type": "string",
            "nullable": true
          },
          "purchaseId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CreditPackDto": {
        "type": "object",
        "properties": {
          "credits": {
            "type": "integer",
            "format": "int32"
          },
          "priceCents": {
            "type": "integer",
            "format": "int64"
          },
          "discountPercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CreditPurchaseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "credits": {
            "type": "integer",
            "format": "int32"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "isAutoRecharge": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomRoleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isSystemRole": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionDto"
            },
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CustomRoleSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isSystemRole": {
            "type": "boolean"
          },
          "permissionCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DailyUsageDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true
          },
          "consumed": {
            "type": "integer",
            "format": "int64"
          },
          "estimated": {
            "type": "integer",
            "format": "int64"
          },
          "jobs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DashboardDto": {
        "type": "object",
        "properties": {
          "stats": {
            "$ref": "#/components/schemas/DashboardStatsDto"
          },
          "recentJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecentJobDto"
            },
            "nullable": true
          },
          "recentProjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecentProjectDto"
            },
            "nullable": true
          },
          "activeJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActiveJobDto"
            },
            "nullable": true
          },
          "pipelinePace": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelinePaceDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DashboardStatsDto": {
        "type": "object",
        "properties": {
          "runningJobs": {
            "type": "integer",
            "format": "int32"
          },
          "queuedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "completedToday": {
            "type": "integer",
            "format": "int32"
          },
          "failedToday": {
            "type": "integer",
            "format": "int32"
          },
          "totalPipelines": {
            "type": "integer",
            "format": "int32"
          },
          "totalProjects": {
            "type": "integer",
            "format": "int32"
          },
          "tokenBalance": {
            "type": "integer",
            "format": "int32"
          },
          "plan": {
            "type": "string",
            "nullable": true
          },
          "avgDurationSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "creditsConsumedLast7Days": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyCredits": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DataResidencyDto": {
        "type": "object",
        "properties": {
          "zone": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DataResidencyZone": {
        "enum": [
          "Unspecified",
          "Eu",
          "Us",
          "Other"
        ],
        "type": "string"
      },
      "DeadLetterActionRequest": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeadLetterDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "messageId": {
            "type": "string",
            "nullable": true
          },
          "correlationId": {
            "type": "string",
            "nullable": true
          },
          "messageType": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "type": "string",
            "nullable": true
          },
          "deadLetterReason": {
            "type": "string",
            "nullable": true
          },
          "deadLetterErrorDescription": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "deliveryCount": {
            "type": "integer",
            "format": "int32"
          },
          "enqueuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "deadLetteredAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "processedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "processedByUserId": {
            "type": "string",
            "nullable": true
          },
          "processingNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeclaredPlanDto": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "tenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "withStripeSubscription": {
            "type": "integer",
            "format": "int32"
          },
          "withoutStripeSubscription": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DeclineInvitationRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteAccountRequest": {
        "type": "object",
        "properties": {
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DownloadUrlResponse": {
        "required": [
          "fileName",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "expiresInMinutes": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "EnrollRunnerRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "type": "string",
            "nullable": true
          },
          "dockerAvailable": {
            "type": "boolean",
            "nullable": true
          },
          "dockerVersion": {
            "type": "string",
            "nullable": true
          },
          "agentVersion": {
            "type": "string",
            "nullable": true
          },
          "runnerBackend": {
            "type": "string",
            "nullable": true
          },
          "currentApiKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntitlementCatalogDto": {
        "type": "object",
        "properties": {
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntitlementDefinitionDto"
            },
            "nullable": true
          },
          "limits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EntitlementDefinitionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntitlementDefinitionDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExecutionDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "attemptNumber": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "externalJobId": {
            "type": "string",
            "nullable": true
          },
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "queuedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          },
          "exitCode": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "resources": {
            "$ref": "#/components/schemas/ExecutionResourcesDto"
          },
          "capacityType": {
            "type": "string",
            "nullable": true
          },
          "infrastructureRetryCount": {
            "type": "integer",
            "format": "int32"
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "projectName": {
            "type": "string",
            "nullable": true
          },
          "realTimeStatus": {
            "$ref": "#/components/schemas/ExecutionRealTimeStatusDto"
          },
          "recentLogs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobLogDto"
            },
            "nullable": true
          },
          "metrics": {
            "$ref": "#/components/schemas/ExecutionMetricsDto"
          }
        },
        "additionalProperties": false
      },
      "ExecutionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "attemptNumber": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "externalJobId": {
            "type": "string",
            "nullable": true
          },
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "queuedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          },
          "exitCode": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "resources": {
            "$ref": "#/components/schemas/ExecutionResourcesDto"
          },
          "capacityType": {
            "type": "string",
            "nullable": true
          },
          "infrastructureRetryCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ExecutionLogsResultDto": {
        "type": "object",
        "properties": {
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobLogDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ExecutionMetricsDto": {
        "type": "object",
        "properties": {
          "maxCpuPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "avgCpuPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maxMemoryBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "avgMemoryBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "networkBytesIn": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "networkBytesOut": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskReadBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskWriteBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExecutionRealTimeStatusDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "elapsedTime": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "estimatedRemainingTime": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "resourceUsage": {
            "$ref": "#/components/schemas/ExecutionResourceUsageDto"
          }
        },
        "additionalProperties": false
      },
      "ExecutionResourceUsageDto": {
        "type": "object",
        "properties": {
          "cpuPercent": {
            "type": "number",
            "format": "double"
          },
          "memoryBytes": {
            "type": "integer",
            "format": "int64"
          },
          "memoryLimitBytes": {
            "type": "integer",
            "format": "int64"
          },
          "memoryPercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ExecutionResourcesDto": {
        "type": "object",
        "properties": {
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          },
          "gpuUnits": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "gpuType": {
            "type": "string",
            "nullable": true
          },
          "storageGb": {
            "type": "integer",
            "format": "int32"
          },
          "timeoutSeconds": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ExecutionService": {
        "enum": [
          "DockerLocal",
          "AwsBatch",
          "AwsFargate",
          "AwsEcs",
          "AzureContainerInstances",
          "AzureBatch",
          "AzureKubernetes",
          "AzureContainerApps",
          "GcpCloudRun",
          "GcpGke",
          "GcpBatch",
          "SelfHostedDocker",
          "ConnectedRunner",
          "OvhKubernetes"
        ],
        "type": "string"
      },
      "ExecutionStatsDto": {
        "type": "object",
        "properties": {
          "runningCount": {
            "type": "integer",
            "format": "int32"
          },
          "completedLast24h": {
            "type": "integer",
            "format": "int32"
          },
          "failedLast24h": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "avgDurationSeconds": {
            "type": "number",
            "format": "double"
          },
          "totalTokensConsumed": {
            "type": "integer",
            "format": "int64"
          },
          "providerStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderStatsDto"
            },
            "nullable": true
          },
          "hourlyTrend": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HourlyTrendDto"
            },
            "nullable": true
          },
          "statusDistribution": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusDistributionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExecutionSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "attemptNumber": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "capacityType": {
            "type": "string",
            "nullable": true
          },
          "infrastructureRetryCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ExperimentAssignmentUnit": {
        "enum": [
          "User",
          "Tenant",
          "Visitor"
        ],
        "type": "string"
      },
      "ExperimentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "hypothesis": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ExperimentStatus"
          },
          "assignmentUnit": {
            "$ref": "#/components/schemas/ExperimentAssignmentUnit"
          },
          "trafficPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentVariantDto"
            },
            "nullable": true
          },
          "targetingFeatureFlagKey": {
            "type": "string",
            "nullable": true
          },
          "winnerVariantKey": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isEditable": {
            "type": "boolean"
          },
          "canStart": {
            "type": "boolean"
          },
          "canPause": {
            "type": "boolean"
          },
          "canComplete": {
            "type": "boolean"
          },
          "canDelete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ExperimentResultsDto": {
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "experimentKey": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ExperimentStatus"
          },
          "totalExposures": {
            "type": "integer",
            "format": "int64"
          },
          "eventNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariantResultDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExperimentStatus": {
        "enum": [
          "Draft",
          "Running",
          "Paused",
          "Completed"
        ],
        "type": "string"
      },
      "ExperimentSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ExperimentStatus"
          },
          "assignmentUnit": {
            "$ref": "#/components/schemas/ExperimentAssignmentUnit"
          },
          "trafficPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "variantCount": {
            "type": "integer",
            "format": "int32"
          },
          "winnerVariantKey": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExperimentVariantDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "integer",
            "format": "int32"
          },
          "isControl": {
            "type": "boolean"
          },
          "payloadJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExperimentVariantInput": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "integer",
            "format": "int32"
          },
          "isControl": {
            "type": "boolean"
          },
          "payloadJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExperimentVariantResult": {
        "type": "object",
        "properties": {
          "experimentKey": {
            "type": "string",
            "nullable": true
          },
          "variantKey": {
            "type": "string",
            "nullable": true
          },
          "isControl": {
            "type": "boolean"
          },
          "payloadJson": {
            "type": "string",
            "nullable": true
          },
          "isInExperiment": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "FailedBatchJobDto": {
        "required": [
          "error",
          "folderName"
        ],
        "type": "object",
        "properties": {
          "folderName": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FailedJobFileDto": {
        "required": [
          "error",
          "fileName"
        ],
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeatureFlagAdminDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "rolloutPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "isSystem": {
            "type": "boolean"
          },
          "isEntitlementKey": {
            "type": "boolean"
          },
          "enabledForPlans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedReferenceDto"
            },
            "nullable": true
          },
          "enabledForTenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedReferenceDto"
            },
            "nullable": true
          },
          "disabledForTenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedReferenceDto"
            },
            "nullable": true
          },
          "updatedByUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeatureFlagEvaluationDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "rule": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeatureFlagResponse": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "FinancialReportDto": {
        "type": "object",
        "properties": {
          "period": {
            "$ref": "#/components/schemas/ReportPeriod"
          },
          "mrr": {
            "type": "number",
            "format": "double"
          },
          "activeSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "trialingSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "mrrSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "subscriptionsByStatus": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedCountDto"
            },
            "nullable": true
          },
          "subscriptionsByPlan": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubscriptionsByPlanDto"
            },
            "nullable": true
          },
          "newSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "cancelledSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "churnRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "declaredPlanDistribution": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeclaredPlanDto"
            },
            "nullable": true
          },
          "tokensDebited": {
            "type": "integer",
            "format": "int64"
          },
          "tokensDebitedSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "topTenantsByTokensDebited": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantValueDto"
            },
            "nullable": true
          },
          "creditCodeRedemptions": {
            "type": "integer",
            "format": "int64"
          },
          "tokensIssuedViaCodes": {
            "type": "integer",
            "format": "int64"
          },
          "marketplace": {
            "$ref": "#/components/schemas/MarketplaceRevenueDto"
          },
          "marketplacePlatformCentsSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "payouts": {
            "$ref": "#/components/schemas/PayoutStatsDto"
          },
          "hostedCompute": {
            "$ref": "#/components/schemas/HostedComputeDto"
          },
          "realCosts": {
            "$ref": "#/components/schemas/RealCostsDto"
          }
        },
        "additionalProperties": false
      },
      "ForceStopRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ForgotPasswordRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateCreditCodesRequest": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "tokenAmount": {
            "type": "integer",
            "format": "int32"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maxRedemptions": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateInvitationCodesRequest": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateScimTokenResultDto": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateTokenRequest": {
        "type": "object",
        "properties": {
          "defaultRole": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GeneratedCodesResultDto": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "tokenAmount": {
            "type": "integer",
            "format": "int32"
          },
          "globalPipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "globalPipelineName": {
            "type": "string",
            "nullable": true
          },
          "codeType": {
            "$ref": "#/components/schemas/CreditCodeType"
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GeneratedInvitationCodesResultDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetAllWorkersResult": {
        "type": "object",
        "properties": {
          "workers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkerInfo"
            },
            "nullable": true
          },
          "sourceAvailable": {
            "type": "boolean"
          },
          "lastSnapshotUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDeadLettersResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeadLetterDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetWorkerLogsResult": {
        "type": "object",
        "properties": {
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkerLogDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetWorkerOptionsResult": {
        "type": "object",
        "properties": {
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkerOptionDefinitionDto"
            },
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkerOptionValueDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlobalAdminDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "lastLoginAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "twoFactorEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GlobalPipelineDefinitionDto": {
        "type": "object",
        "properties": {
          "imageUri": {
            "type": "string",
            "nullable": true
          },
          "imageTag": {
            "type": "string",
            "nullable": true
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlobalPipelineInputDto"
            },
            "nullable": true
          },
          "outputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlobalPipelineOutputDto"
            },
            "nullable": true
          },
          "entryPoint": {
            "type": "string",
            "nullable": true
          },
          "command": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "documentationUrl": {
            "type": "string",
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineTaskDto"
            },
            "nullable": true
          },
          "connections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineConnectionDto"
            },
            "nullable": true
          },
          "nodePositions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/NodePositionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlobalPipelineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "tokenCost": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "definition": {
            "$ref": "#/components/schemas/GlobalPipelineDefinitionDto"
          },
          "defaultParameters": {
            "$ref": "#/components/schemas/GlobalPipelineParametersDto"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlobalPipelineInputDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "defaultValue": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlobalPipelineOutputDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlobalPipelineParametersDto": {
        "type": "object",
        "properties": {
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          },
          "timeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "environmentVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "secretRefs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlobalPipelineSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "tokenCost": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "GlobalRoleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isSystemRole": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "HealthStatus": {
        "enum": [
          "Unknown",
          "Healthy",
          "Degraded",
          "Unhealthy",
          "NotApplicable"
        ],
        "type": "string"
      },
      "HostedComputeDto": {
        "type": "object",
        "properties": {
          "byProviderRegion": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostedComputeRowDto"
            },
            "nullable": true
          },
          "totals": {
            "$ref": "#/components/schemas/HostedComputeRowDto"
          },
          "ovhAwsHoursShare": {
            "type": "number",
            "format": "double"
          },
          "refundedFailedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "refundedFailedJobsCostCents": {
            "type": "number",
            "format": "double"
          },
          "unmeasuredExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "unconvertedCostCurrencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "HostedComputeRowDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          },
          "billedHours": {
            "type": "number",
            "format": "double"
          },
          "hasRates": {
            "type": "boolean"
          },
          "catalogCostCents": {
            "type": "number",
            "format": "double"
          },
          "loadedCostCents": {
            "type": "number",
            "format": "double"
          },
          "creditsCharged": {
            "type": "integer",
            "format": "int64"
          },
          "revenueCents": {
            "type": "number",
            "format": "double"
          },
          "grossMarginPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hoursShare": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "HourlyStatsDto": {
        "type": "object",
        "properties": {
          "hour": {
            "type": "string",
            "format": "date-time"
          },
          "started": {
            "type": "integer",
            "format": "int32"
          },
          "completed": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "HourlyTrendDto": {
        "type": "object",
        "properties": {
          "hour": {
            "type": "string",
            "nullable": true
          },
          "completed": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "running": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ImpersonateRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "ImpersonationResultDto": {
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string",
            "nullable": true
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "refreshToken": {
            "type": "string",
            "nullable": true
          },
          "refreshTokenExpiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "targetUser": {
            "$ref": "#/components/schemas/UserSummaryDto"
          }
        },
        "additionalProperties": false
      },
      "ImpersonationSessionDto": {
        "type": "object",
        "properties": {
          "adminUserId": {
            "type": "string",
            "format": "uuid"
          },
          "adminEmail": {
            "type": "string",
            "nullable": true
          },
          "targetUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "targetEmail": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InternalExecutionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "externalJobId": {
            "type": "string",
            "nullable": true
          },
          "attemptNumber": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InternalJobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "$ref": "#/components/schemas/JobParametersDto"
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobInputDto"
            },
            "nullable": true
          },
          "currentExecutionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvitationCodeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maxUses": {
            "type": "integer",
            "format": "int32"
          },
          "currentUses": {
            "type": "integer",
            "format": "int32"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "usedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "usedByUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvitationCodeSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maxUses": {
            "type": "integer",
            "format": "int32"
          },
          "currentUses": {
            "type": "integer",
            "format": "int32"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "usedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "usedByUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvitationPreviewDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "tenantSlug": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/InvitationStatus"
          },
          "isExpired": {
            "type": "boolean"
          },
          "hasUserAccount": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "InvitationStatus": {
        "enum": [
          "Pending",
          "Accepted",
          "Revoked",
          "Expired"
        ],
        "type": "string"
      },
      "InviteTeamRequest": {
        "type": "object",
        "properties": {
          "invites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamInviteRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InviteUserRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/TenantRole"
          }
        },
        "additionalProperties": false
      },
      "JobArtifactDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "uri": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/ArtifactType"
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobBatchDetailDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "totalJobs": {
            "type": "integer",
            "format": "int32"
          },
          "completedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "failedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "cancelledJobs": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercent": {
            "type": "number",
            "format": "double"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalEstimatedTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalActualTokens": {
            "type": "integer",
            "format": "int32"
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobBatchJobDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobBatchDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "totalJobs": {
            "type": "integer",
            "format": "int32"
          },
          "completedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "failedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "cancelledJobs": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercent": {
            "type": "number",
            "format": "double"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalEstimatedTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalActualTokens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "JobBatchJobDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "fileCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobComputeTargetProviderDto": {
        "required": [
          "displayName",
          "provider",
          "regions"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobComputeTargetRegionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobComputeTargetRegionDto": {
        "required": [
          "dataResidency",
          "displayName",
          "regionCode"
        ],
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "dataResidency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobComputeTargetsDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobComputeTargetProviderDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobCostDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "ranOnSelfHostedInfra": {
            "type": "boolean"
          },
          "runnerProviderName": {
            "type": "string",
            "nullable": true
          },
          "billedDurationSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "billedCpu": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "billedMemoryMb": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isSettled": {
            "type": "boolean"
          },
          "computeCredits": {
            "type": "integer",
            "format": "int32"
          },
          "marketplaceMarkupCredits": {
            "type": "integer",
            "format": "int32"
          },
          "totalCredits": {
            "type": "integer",
            "format": "int32"
          },
          "pricedWithLegacyScale": {
            "type": "boolean"
          },
          "hostedStorageBytes": {
            "type": "integer",
            "format": "int64"
          },
          "ownStorageBytes": {
            "type": "integer",
            "format": "int64"
          },
          "storageOverageCreditsPerGbMonth": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "JobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "submittedBy": {
            "type": "string",
            "format": "uuid"
          },
          "submittedByName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "queuedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "parameters": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          },
          "machineSize": {
            "type": "string",
            "nullable": true
          },
          "inputs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "currentExecutionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "runnerProviderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "runnerProviderName": {
            "type": "string",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "$ref": "#/components/schemas/HealthStatus"
          },
          "estimatedCostTokens": {
            "type": "integer",
            "format": "int32"
          },
          "actualCostTokens": {
            "type": "integer",
            "format": "int32"
          },
          "computeTokensReserved": {
            "type": "integer",
            "format": "int32"
          },
          "totalBilledTokens": {
            "type": "integer",
            "format": "int32"
          },
          "marketplaceMarkupTokens": {
            "type": "integer",
            "format": "int32"
          },
          "ranOnSelfHostedInfra": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "exitCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "batchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "projectName": {
            "type": "string",
            "nullable": true
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "queueDuration": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "artifacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobArtifactDto"
            },
            "nullable": true
          },
          "nodeStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NodeExecutionStatusDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobFileDto": {
        "required": [
          "fileName",
          "storagePath"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "storagePath": {
            "type": "string",
            "nullable": true
          },
          "blobUri": {
            "type": "string",
            "nullable": true
          },
          "fileType": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "checksum": {
            "type": "string",
            "nullable": true
          },
          "uploadedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobFilesResultDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobFileDto"
            },
            "nullable": true
          },
          "totalSizeBytes": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "JobInputDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobLogDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          },
          "level": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "sequenceNumber": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "JobLogsResultDto": {
        "type": "object",
        "properties": {
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobLogDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "JobMachineSizeDto": {
        "required": [
          "available",
          "cpuUnits",
          "creditsPerHour",
          "key",
          "memoryMb",
          "providers"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          },
          "creditsPerHour": {
            "type": "integer",
            "format": "int32"
          },
          "available": {
            "type": "boolean"
          },
          "unavailableReason": {
            "type": "string",
            "nullable": true
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobMachineSizesDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "disabledReason": {
            "type": "string",
            "nullable": true
          },
          "sizes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobMachineSizeDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobMetadataFacet": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "JobNotificationRequest": {
        "required": [
          "jobId",
          "method"
        ],
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "payload": {}
        },
        "additionalProperties": false
      },
      "JobPaceDto": {
        "type": "object",
        "properties": {
          "sampleSize": {
            "type": "integer",
            "format": "int32"
          },
          "medianRunSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "medianQueueSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bestRunSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isPipelineRecord": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "JobParametersDto": {
        "type": "object",
        "properties": {
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          },
          "timeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "environmentVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobStatus": {
        "enum": [
          "Queued",
          "Provisioning",
          "Running",
          "Succeeded",
          "Failed",
          "Cancelling",
          "Cancelled",
          "TimedOut"
        ],
        "type": "string"
      },
      "JobSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "projectName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "estimatedCostTokens": {
            "type": "integer",
            "format": "int32"
          },
          "actualCostTokens": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "$ref": "#/components/schemas/HealthStatus"
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "folderName": {
            "type": "string",
            "nullable": true
          },
          "fileCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JobSummaryDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobSummaryDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "skip": {
            "type": "integer",
            "format": "int32"
          },
          "take": {
            "type": "integer",
            "format": "int32"
          },
          "hasMore": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "JobsStatsDto": {
        "type": "object",
        "properties": {
          "running": {
            "type": "integer",
            "format": "int32"
          },
          "queued": {
            "type": "integer",
            "format": "int32"
          },
          "completedToday": {
            "type": "integer",
            "format": "int32"
          },
          "failedToday": {
            "type": "integer",
            "format": "int32"
          },
          "avgDurationSeconds": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LockedOutUserDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "lockoutEndUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "LogLevel": {
        "enum": [
          "Trace",
          "Debug",
          "Info",
          "Warning",
          "Error",
          "Fatal"
        ],
        "type": "string"
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LogoutRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MachineApiKeyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "keyPrefix": {
            "type": "string",
            "nullable": true
          },
          "preset": {
            "type": "string",
            "nullable": true
          },
          "lastUsedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "MachineProviderRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "hasRegistryCredentials": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceAdminOverviewDto": {
        "type": "object",
        "properties": {
          "gmvCents": {
            "type": "integer",
            "format": "int64"
          },
          "platformFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "creatorNetCents": {
            "type": "integer",
            "format": "int64"
          },
          "oneTimeGrossCents": {
            "type": "integer",
            "format": "int64"
          },
          "markupGrossCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalPurchases": {
            "type": "integer",
            "format": "int32"
          },
          "activeListings": {
            "type": "integer",
            "format": "int32"
          },
          "totalCreators": {
            "type": "integer",
            "format": "int32"
          },
          "totalReviews": {
            "type": "integer",
            "format": "int32"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceDailyRevenuePointDto"
            },
            "nullable": true
          },
          "topListings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceTopListingDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketplaceCatalogPageDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceListingDto"
            },
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceCheckoutResultDto": {
        "type": "object",
        "properties": {
          "checkoutUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MarketplaceDailyRevenuePointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "purchaseGrossCents": {
            "type": "integer",
            "format": "int64"
          },
          "markupNetCents": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceListingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid"
          },
          "creatorDisplayName": {
            "type": "string",
            "nullable": true
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "coverImageUrl": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "string",
            "nullable": true
          },
          "pricingModel": {
            "type": "string",
            "nullable": true
          },
          "oneTimePriceCents": {
            "type": "integer",
            "format": "int64"
          },
          "perExecutionMarkupTokens": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "reviewNotes": {
            "type": "string",
            "nullable": true
          },
          "publishedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "ratingCount": {
            "type": "integer",
            "format": "int32"
          },
          "purchaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "sourcePipelineId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "currentVersion": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceListingVersionDto": {
        "type": "object",
        "properties": {
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "changelogNote": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "MarketplacePurchaseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "listingId": {
            "type": "string",
            "format": "uuid"
          },
          "listingTitle": {
            "type": "string",
            "nullable": true
          },
          "creatorDisplayName": {
            "type": "string",
            "nullable": true
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceRevenueDto": {
        "type": "object",
        "properties": {
          "grossCents": {
            "type": "integer",
            "format": "int64"
          },
          "platformCents": {
            "type": "integer",
            "format": "int64"
          },
          "creatorCents": {
            "type": "integer",
            "format": "int64"
          },
          "entries": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceReviewDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "listingId": {
            "type": "string",
            "format": "uuid"
          },
          "authorDisplayName": {
            "type": "string",
            "nullable": true
          },
          "isVerifiedPurchase": {
            "type": "boolean"
          },
          "rating": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "creatorResponse": {
            "type": "string",
            "nullable": true
          },
          "creatorResponseAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "MarketplaceTopListingDto": {
        "type": "object",
        "properties": {
          "listingId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "creatorDisplayName": {
            "type": "string",
            "nullable": true
          },
          "purchaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "revenueGrossCents": {
            "type": "integer",
            "format": "int64"
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "ratingCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MfaCodeRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ModerationReasonRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MonthlyBillingBreakdownDto": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string",
            "format": "date"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "subscriptionStatus": {
            "type": "string",
            "nullable": true
          },
          "annualBilling": {
            "type": "boolean"
          },
          "subscriptionCents": {
            "type": "integer",
            "format": "int64"
          },
          "includedCredits": {
            "type": "integer",
            "format": "int32"
          },
          "includedCreditsUsed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purchasedCredits": {
            "type": "integer",
            "format": "int32"
          },
          "purchasedCreditsCents": {
            "type": "integer",
            "format": "int64"
          },
          "purchaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "storageOverageCredits": {
            "type": "integer",
            "format": "int32"
          },
          "storageOverageCents": {
            "type": "integer",
            "format": "int64"
          },
          "averageHostedStorageGb": {
            "type": "number",
            "format": "double"
          },
          "extensions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillingExtensionLineDto"
            },
            "nullable": true
          },
          "extensionsCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "MyEntitlementsDto": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "limits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "usage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NamedCountDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "NamedReferenceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NodeDiffDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "nullable": true
          },
          "nodeType": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "changeType": {
            "type": "string",
            "nullable": true
          },
          "propertyChanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyChangeDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NodeExecutionLogEntryDto": {
        "type": "object",
        "properties": {
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          },
          "level": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NodeExecutionStatsDto": {
        "type": "object",
        "properties": {
          "cpuPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "memoryBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "networkBytesIn": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "networkBytesOut": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "recordsProcessed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "recordsFiltered": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bytesProcessed": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bytesProduced": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "httpStatusCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NodeExecutionStatusDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "outputData": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          },
          "stats": {
            "$ref": "#/components/schemas/NodeExecutionStatsDto"
          },
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NodeExecutionLogEntryDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NodePositionDto": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number",
            "format": "double"
          },
          "y": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "NotificationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "isRead": {
            "type": "boolean"
          },
          "readAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "linkedResourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "linkedResourceType": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "NotificationPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "unreadCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "OnboardingRequest": {
        "type": "object",
        "properties": {
          "refreshUrl": {
            "type": "string",
            "nullable": true
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OnboardingResultDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "nextStep": {
            "$ref": "#/components/schemas/OnboardingStep"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {}
        },
        "additionalProperties": false
      },
      "OnboardingStatusDto": {
        "type": "object",
        "properties": {
          "isComplete": {
            "type": "boolean"
          },
          "currentStep": {
            "$ref": "#/components/schemas/OnboardingStep"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OnboardingStepStatus"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OnboardingStep": {
        "enum": [
          "Welcome",
          "CreateOrganization",
          "InviteTeam",
          "CreateFirstProject",
          "CreateFirstPipeline",
          "Complete"
        ],
        "type": "string"
      },
      "OnboardingStepStatus": {
        "type": "object",
        "properties": {
          "step": {
            "$ref": "#/components/schemas/OnboardingStep"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isComplete": {
            "type": "boolean"
          },
          "isCurrent": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OverallStatsDto": {
        "type": "object",
        "properties": {
          "totalExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "runningExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "queuedJobs": {
            "type": "integer",
            "format": "int32"
          },
          "successfulExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "failedExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "avgExecutionTime": {
            "type": "string",
            "format": "date-span"
          },
          "activeTenants": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PayoutResultDto": {
        "type": "object",
        "properties": {
          "payoutId": {
            "type": "string",
            "format": "uuid"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayoutStatsDto": {
        "type": "object",
        "properties": {
          "pendingCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingCents": {
            "type": "integer",
            "format": "int64"
          },
          "paidCount": {
            "type": "integer",
            "format": "int32"
          },
          "paidCents": {
            "type": "integer",
            "format": "int64"
          },
          "failedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PendingEnrollmentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "tokenPrefix": {
            "type": "string",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          },
          "providerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "claimedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "claimedByAgentId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PeriodRevenueDto": {
        "type": "object",
        "properties": {
          "subscriptionsCents": {
            "type": "number",
            "format": "double"
          },
          "creditPacksCents": {
            "type": "number",
            "format": "double"
          },
          "marketplaceCommissionCents": {
            "type": "number",
            "format": "double"
          },
          "markupCreatorShareCents": {
            "type": "number",
            "format": "double"
          },
          "netCents": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Permission": {
        "enum": [
          "ProjectRead",
          "ProjectCreate",
          "ProjectUpdate",
          "ProjectDelete",
          "ProjectArchive",
          "ProjectMembersManage",
          "PipelineRead",
          "PipelineCreate",
          "PipelineUpdate",
          "PipelineDelete",
          "PipelinePublish",
          "PipelineRun",
          "MarketplaceSell",
          "JobRead",
          "JobSubmit",
          "JobCancel",
          "JobViewLogs",
          "JobDownloadArtifacts",
          "JobRetry",
          "ExecutionRead",
          "ExecutionViewRealTime",
          "BillingRead",
          "BillingManage",
          "TenantRead",
          "TenantMembersRead",
          "TenantMembersManage",
          "TenantRolesRead",
          "TenantRolesManage",
          "TenantSettingsRead",
          "TenantSettingsManage",
          "TenantProvidersRead",
          "TenantProvidersManage",
          "ResellerRead",
          "ResellerManage",
          "UserInvite",
          "ApiKeysRead",
          "ApiKeysCreate",
          "ApiKeysManage",
          "ApiKeysRevoke",
          "AgentsRead",
          "AgentsManage",
          "AgentsHeartbeat",
          "RunnerExecute",
          "NotificationsRead",
          "WebhooksRead",
          "WebhooksCreate",
          "WebhooksManage",
          "WebhooksDelete",
          "SuperAdminAccess",
          "GlobalTenantsRead",
          "GlobalTenantsManage",
          "GlobalUsersRead",
          "GlobalUsersManage",
          "GlobalRolesRead",
          "GlobalSettingsRead",
          "GlobalSettingsManage",
          "GlobalFeatureFlagsRead",
          "GlobalFeatureFlagsManage",
          "ImpersonateUser",
          "GlobalAuditLogsRead",
          "GlobalDashboardRead",
          "ProvidersRead",
          "ProvidersManage",
          "ProviderCredentialsManage",
          "ExecutionMonitor",
          "ExecutionForceStopAny",
          "GlobalPipelinesRead",
          "GlobalPipelinesManage",
          "GlobalPipelinesPublish",
          "TenantPipelineAccessManage",
          "CreditCodesRead",
          "CreditCodesManage",
          "CreditCodesGenerate",
          "InvitationCodesRead",
          "InvitationCodesManage",
          "TenantTokensRead",
          "TenantTokensManage",
          "GlobalReportsRead",
          "ExperimentsRead",
          "ExperimentsManage",
          "GlobalMarketplaceRead",
          "GlobalMarketplaceManage"
        ],
        "type": "string"
      },
      "PermissionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "isSuperAdminOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PermissionInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineConnectionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "sourceNodeId": {
            "type": "string",
            "nullable": true
          },
          "sourceHandle": {
            "type": "string",
            "nullable": true
          },
          "targetNodeId": {
            "type": "string",
            "nullable": true
          },
          "targetHandle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineDefinitionDto": {
        "type": "object",
        "properties": {
          "imageUri": {
            "type": "string",
            "nullable": true
          },
          "imageTag": {
            "type": "string",
            "nullable": true
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineInputDto"
            },
            "nullable": true
          },
          "outputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineOutputDto"
            },
            "nullable": true
          },
          "entryPoint": {
            "type": "string",
            "nullable": true
          },
          "command": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineTaskDto"
            },
            "nullable": true
          },
          "connections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineConnectionDto"
            },
            "nullable": true
          },
          "nodePositions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/NodePositionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "definition": {
            "$ref": "#/components/schemas/PipelineDefinitionDto"
          },
          "defaultParameters": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          },
          "defaultMachineSize": {
            "type": "string",
            "nullable": true
          },
          "preferredProvider": {
            "type": "string",
            "nullable": true
          },
          "preferredRegion": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "isPublished": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineExecutionOptionsDto": {
        "type": "object",
        "properties": {
          "sizes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineMachineSizeOptionDto"
            },
            "nullable": true
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineProviderOptionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineForecastDto": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "consumedToDate": {
            "type": "integer",
            "format": "int64"
          },
          "projectedTotal": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "PipelineInputDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "defaultValue": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineMachineSizeOptionDto": {
        "required": [
          "available",
          "cpuUnits",
          "creditsPerHour",
          "key",
          "memoryMb"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          },
          "creditsPerHour": {
            "type": "integer",
            "format": "int32"
          },
          "available": {
            "type": "boolean"
          },
          "unavailableReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineOutputDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelinePaceDto": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string",
            "nullable": true
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "runsLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "succeededLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "failedLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "recentDurationsSeconds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "medianSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineParametersDto": {
        "type": "object",
        "properties": {
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          },
          "timeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "environmentVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "secretRefs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineProviderOptionDto": {
        "required": [
          "displayName",
          "provider",
          "regions"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineRegionOptionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineRegionOptionDto": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "dataResidency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PipelineSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "imageUri": {
            "type": "string",
            "nullable": true
          },
          "imageTag": {
            "type": "string",
            "nullable": true
          },
          "isPublished": {
            "type": "boolean"
          },
          "isGlobal": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "totalRuns": {
            "type": "integer",
            "format": "int32"
          },
          "successCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedCount": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "avgDurationSeconds": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PipelineTaskDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "config": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          },
          "position": {
            "$ref": "#/components/schemas/NodePositionDto"
          }
        },
        "additionalProperties": false
      },
      "PipelineVersionDiffDto": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "versionA": {
            "type": "integer",
            "format": "int32"
          },
          "versionB": {
            "type": "integer",
            "format": "int32"
          },
          "nodeDiffs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NodeDiffDto"
            },
            "nullable": true
          },
          "connectionDiffs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectionDiffDto"
            },
            "nullable": true
          },
          "parameterChanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyChangeDto"
            },
            "nullable": true
          },
          "metadataChanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyChangeDto"
            },
            "nullable": true
          },
          "totalChanges": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PipelineVersionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "definition": {
            "$ref": "#/components/schemas/PipelineDefinitionDto"
          },
          "parameters": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "changeNote": {
            "type": "string",
            "nullable": true
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PipelineVersionSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "changeNote": {
            "type": "string",
            "nullable": true
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PlanDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "monthlyTokens": {
            "type": "integer",
            "format": "int32"
          },
          "pricePerMonth": {
            "type": "number",
            "format": "double"
          },
          "overageTokenPrice": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "annualPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "trialPeriodDays": {
            "type": "integer",
            "format": "int32"
          },
          "retentionDays": {
            "type": "integer",
            "format": "int32"
          },
          "includedStorageGb": {
            "type": "integer",
            "format": "int32"
          },
          "annualBillingAvailable": {
            "type": "boolean"
          },
          "isResellable": {
            "type": "boolean"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "limits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformIdentityDto": {
        "type": "object",
        "properties": {
          "awsPrincipalArn": {
            "type": "string",
            "nullable": true
          },
          "azurePrincipalId": {
            "type": "string",
            "nullable": true
          },
          "azureTenantId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformOverviewDto": {
        "type": "object",
        "properties": {
          "totalTenants": {
            "type": "integer",
            "format": "int32"
          },
          "activeTenants": {
            "type": "integer",
            "format": "int32"
          },
          "totalUsers": {
            "type": "integer",
            "format": "int32"
          },
          "dailyActiveUsers": {
            "type": "integer",
            "format": "int32"
          },
          "jobsLast24h": {
            "type": "integer",
            "format": "int64"
          },
          "successRateLast24h": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "runningJobs": {
            "type": "integer",
            "format": "int64"
          },
          "mrr": {
            "type": "number",
            "format": "double"
          },
          "activeSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "trialingSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "failedLoginsLast24h": {
            "type": "integer",
            "format": "int64"
          },
          "rateLimitedLast24h": {
            "type": "integer",
            "format": "int64"
          },
          "lockedOutUsers": {
            "type": "integer",
            "format": "int32"
          },
          "pendingDeadLetters": {
            "type": "integer",
            "format": "int32"
          },
          "generatedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PlatformRevenueEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "listingId": {
            "type": "string",
            "format": "uuid"
          },
          "listingTitle": {
            "type": "string",
            "nullable": true
          },
          "creatorId": {
            "type": "string",
            "format": "uuid"
          },
          "creatorName": {
            "type": "string",
            "nullable": true
          },
          "buyerTenantId": {
            "type": "string",
            "format": "uuid"
          },
          "relatedJobId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "relatedPurchaseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "grossCents": {
            "type": "integer",
            "format": "int64"
          },
          "creatorCents": {
            "type": "integer",
            "format": "int64"
          },
          "platformCents": {
            "type": "integer",
            "format": "int64"
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PlatformRevenueReportDto": {
        "type": "object",
        "properties": {
          "totalGrossCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCreatorCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalPlatformCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformRevenueEntryDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PortalSessionResultDto": {
        "type": "object",
        "properties": {
          "portalUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PricingIndicatorDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "unit": {
            "$ref": "#/components/schemas/PricingIndicatorUnit"
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "numerator": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "denominator": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetKind": {
            "$ref": "#/components/schemas/PricingTargetKind"
          },
          "targetMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "onTarget": {
            "type": "boolean",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PricingIndicatorUnit": {
        "enum": [
          "Ratio",
          "Cents"
        ],
        "type": "string"
      },
      "PricingMigrationRequest": {
        "type": "object",
        "properties": {
          "cohort": {
            "$ref": "#/components/schemas/PricingRolloutCohort"
          },
          "newTenantsSinceUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sendAnnouncement": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PricingModel": {
        "enum": [
          "OneTimePurchase",
          "PerExecutionMarkup",
          "Both"
        ],
        "type": "string"
      },
      "PricingReportDto": {
        "type": "object",
        "properties": {
          "period": {
            "$ref": "#/components/schemas/ReportPeriod"
          },
          "indicators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PricingIndicatorDto"
            },
            "nullable": true
          },
          "hostedCompute": {
            "$ref": "#/components/schemas/HostedComputeDto"
          },
          "pricingGridEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PricingRollbackRequest": {
        "type": "object",
        "properties": {
          "tenantIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Restrict the rollback to these tenants; null or empty = every migrated tenant.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PricingRolloutCohort": {
        "enum": [
          "Internal",
          "NewTenants",
          "All"
        ],
        "type": "string"
      },
      "PricingTargetKind": {
        "enum": [
          "AtLeast",
          "AtMost",
          "Between",
          "Track"
        ],
        "type": "string"
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "ProjectDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "isArchived": {
            "type": "boolean"
          },
          "runnerProviderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "storageProviderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectMemberDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "$ref": "#/components/schemas/ProjectRole"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ProjectNotificationRequest": {
        "required": [
          "method",
          "projectId"
        ],
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uuid"
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "payload": {}
        },
        "additionalProperties": false
      },
      "ProjectRole": {
        "enum": [
          "Viewer",
          "Analyst",
          "Maintainer",
          "Owner"
        ],
        "type": "string"
      },
      "ProjectSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean"
          },
          "memberCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PropertyChangeDto": {
        "type": "object",
        "properties": {
          "property": {
            "type": "string",
            "nullable": true
          },
          "oldValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderCatalogDto": {
        "type": "object",
        "properties": {
          "generatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "referenceVcpu": {
            "type": "number",
            "format": "double"
          },
          "referenceMemoryGb": {
            "type": "number",
            "format": "double"
          },
          "creditsPerVcpuHour": {
            "type": "integer",
            "format": "int32"
          },
          "creditsPerMemoryGbHour": {
            "type": "integer",
            "format": "int32"
          },
          "creditValueCents": {
            "type": "number",
            "format": "double"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderCatalogEntryDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderCatalogEntryDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "providerDisplayName": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "hasExecutionBackend": {
            "type": "boolean"
          },
          "hasCredential": {
            "type": "boolean"
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          },
          "lastHealthCheckUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastHealthMessage": {
            "type": "string",
            "nullable": true
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderRegionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderConfigurationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "providerDisplayName": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderRegionDto"
            },
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/ProviderLimitsDto"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "hasExecutionBackend": {
            "type": "boolean"
          },
          "isExecutorImplemented": {
            "type": "boolean"
          },
          "enableBlockedCode": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          },
          "lastHealthCheckUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastHealthMessage": {
            "type": "string",
            "nullable": true
          },
          "health": {
            "$ref": "#/components/schemas/ProviderHealthDto"
          },
          "creditMultiplier": {
            "type": "number",
            "format": "double"
          },
          "credentialsAuthType": {
            "type": "string",
            "nullable": true
          },
          "hasCredential": {
            "type": "boolean"
          },
          "credentialStore": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderConnectionTestDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "checkedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "compute": {
            "$ref": "#/components/schemas/ProviderProbeDto"
          },
          "storage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderStorageProbeDto"
            },
            "nullable": true
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderCostSummaryDto": {
        "type": "object",
        "properties": {
          "fromUtc": {
            "type": "string",
            "format": "date-time"
          },
          "toUtc": {
            "type": "string",
            "format": "date-time"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderCostSummaryRowDto"
            },
            "nullable": true
          },
          "totals": {
            "$ref": "#/components/schemas/ProviderCostSummaryRowDto"
          }
        },
        "additionalProperties": false
      },
      "ProviderCostSummaryRowDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          },
          "vcpuHours": {
            "type": "number",
            "format": "double"
          },
          "memoryGbHours": {
            "type": "number",
            "format": "double"
          },
          "hasRates": {
            "type": "boolean"
          },
          "catalogCostCents": {
            "type": "number",
            "format": "double"
          },
          "loadedCostCents": {
            "type": "number",
            "format": "double"
          },
          "creditsCharged": {
            "type": "integer",
            "format": "int64"
          },
          "revenueCents": {
            "type": "number",
            "format": "double"
          },
          "grossMarginPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderCredentialsInput": {
        "type": "object",
        "properties": {
          "accessKey": {
            "type": "string",
            "nullable": true
          },
          "secretKey": {
            "type": "string",
            "nullable": true
          },
          "connectionString": {
            "type": "string",
            "nullable": true
          },
          "ca": {
            "type": "string",
            "nullable": true
          },
          "cert": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "registryServer": {
            "type": "string",
            "nullable": true
          },
          "registryUsername": {
            "type": "string",
            "nullable": true
          },
          "registryPassword": {
            "type": "string",
            "nullable": true
          },
          "hasAnyValue": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ProviderDetailDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "isHealthy": {
            "type": "boolean"
          },
          "totalExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "runningExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "successfulExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "failedExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "avgExecutionTime": {
            "type": "string",
            "format": "date-span"
          },
          "currentLoad": {
            "type": "number",
            "format": "double"
          },
          "availableRegions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderHealthCheckDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "checkedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderHealthProbeDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderHealthDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "isHealthy": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "checkedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderHealthProbeDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "latencyMs": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderJobStatsDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ProviderLimitsDto": {
        "type": "object",
        "properties": {
          "maxConcurrentJobs": {
            "type": "integer",
            "format": "int32"
          },
          "maxCpuUnitsPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxMemoryMbPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxTimeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "maxStorageGb": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ProviderProbeDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "latencyMs": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderRatesCatalogDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderRatesCatalogProviderDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderRatesCatalogProviderDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderRatesCatalogRegionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderRatesCatalogRegionDto": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "dataResidency": {
            "$ref": "#/components/schemas/DataResidencyDto"
          },
          "capabilities": {
            "$ref": "#/components/schemas/RegionCapabilitiesDto"
          },
          "storagePairing": {
            "$ref": "#/components/schemas/StoragePairingDto"
          },
          "creditMultiplier": {
            "type": "number",
            "format": "double"
          },
          "rates": {
            "$ref": "#/components/schemas/ProviderRatesDto"
          },
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderRatesDto": {
        "type": "object",
        "properties": {
          "vcpuHourCents": {
            "type": "number",
            "format": "double"
          },
          "memoryGbHourCents": {
            "type": "number",
            "format": "double"
          },
          "storageGbMonthCents": {
            "type": "number",
            "format": "double"
          },
          "egressGbCents": {
            "type": "number",
            "format": "double"
          },
          "loadFactor": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderRatesImportResultDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "providersCreated": {
            "type": "integer",
            "format": "int32"
          },
          "regionsCreated": {
            "type": "integer",
            "format": "int32"
          },
          "regionsUpdated": {
            "type": "integer",
            "format": "int32"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderRegionDto": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "isResidencyDefault": {
            "type": "boolean"
          },
          "dataResidency": {
            "$ref": "#/components/schemas/DataResidencyDto"
          },
          "costRates": {
            "$ref": "#/components/schemas/ProviderRatesDto"
          },
          "hasRates": {
            "type": "boolean"
          },
          "creditMultiplier": {
            "type": "number",
            "format": "double"
          },
          "capabilities": {
            "$ref": "#/components/schemas/RegionCapabilitiesDto"
          },
          "storagePairing": {
            "$ref": "#/components/schemas/StoragePairingDto"
          },
          "maxConcurrentJobs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isPreferredForStorage": {
            "type": "boolean"
          },
          "referenceHourlyCostCents": {
            "type": "number",
            "format": "double"
          },
          "loadedHourlyCostCents": {
            "type": "number",
            "format": "double"
          },
          "publicPriceCredits": {
            "type": "number",
            "format": "double"
          },
          "grossMarginPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderSelectionMode": {
        "enum": [
          "Auto",
          "AutoWithPreference",
          "Manual"
        ],
        "type": "string"
      },
      "ProviderStatsDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int32"
          },
          "successCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedCount": {
            "type": "integer",
            "format": "int32"
          },
          "avgDurationSeconds": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ProviderStorageProbeDto": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "latencyMs": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderTestResultDto": {
        "required": [
          "message",
          "success"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PublicPricingGridDto": {
        "type": "object",
        "properties": {
          "grid": {
            "type": "string",
            "nullable": true
          },
          "pricingGridEnabled": {
            "type": "boolean"
          },
          "isInExperiment": {
            "type": "boolean"
          },
          "experimentKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PublishUpdateRequest": {
        "type": "object",
        "properties": {
          "changelog": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PurchaseCheckoutRequest": {
        "type": "object",
        "properties": {
          "successUrl": {
            "type": "string",
            "nullable": true
          },
          "cancelUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PurchaseCreditsRequest": {
        "type": "object",
        "properties": {
          "credits": {
            "type": "integer",
            "format": "int32"
          },
          "successUrl": {
            "type": "string",
            "nullable": true
          },
          "cancelUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RateLimitedIpDto": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "RealCostLineDto": {
        "type": "object",
        "properties": {
          "vendor": {
            "type": "string",
            "nullable": true
          },
          "service": {
            "type": "string",
            "nullable": true
          },
          "amountCents": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "RealCostProviderRowDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "realCostCents": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "estimatedLoadedCostCents": {
            "type": "number",
            "format": "double"
          },
          "revenueCents": {
            "type": "number",
            "format": "double"
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          },
          "realMarginPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "estimateGapPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RealCostsDto": {
        "type": "object",
        "properties": {
          "hasData": {
            "type": "boolean"
          },
          "totalCents": {
            "type": "number",
            "format": "double"
          },
          "executionCents": {
            "type": "number",
            "format": "double"
          },
          "infrastructureCents": {
            "type": "number",
            "format": "double"
          },
          "hostedRevenueCents": {
            "type": "number",
            "format": "double"
          },
          "executionMarginPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "$ref": "#/components/schemas/PeriodRevenueDto"
          },
          "operatingResultCents": {
            "type": "number",
            "format": "double"
          },
          "realMarginPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "byProvider": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RealCostProviderRowDto"
            },
            "nullable": true
          },
          "infrastructure": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RealCostLineDto"
            },
            "nullable": true
          },
          "executionSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "infrastructureSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloudCostSourceStatusDto"
            },
            "nullable": true
          },
          "unconvertedRecords": {
            "type": "integer",
            "format": "int32"
          },
          "unconvertedCurrencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "monthlyBudgetEur": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthToDateCents": {
            "type": "number",
            "format": "double"
          },
          "monthForecastCents": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "RecentJobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "pipelineId": {
            "type": "string",
            "nullable": true
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "projectId": {
            "type": "string",
            "nullable": true
          },
          "projectName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "exitCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pipelineMedianSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isPipelineRecord": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RecentProjectDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RedeemCodeRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RedeemCodeResponse": {
        "type": "object",
        "properties": {
          "tokensAwarded": {
            "type": "integer",
            "format": "int32"
          },
          "globalPipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "globalPipelineName": {
            "type": "string",
            "nullable": true
          },
          "newBalance": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "RefreshRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefusedPathDto": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "RegionCapabilitiesDto": {
        "type": "object",
        "properties": {
          "gpu": {
            "type": "boolean"
          },
          "arm": {
            "type": "boolean"
          },
          "spot": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RegisterRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "registrationCode": {
            "type": "string",
            "description": "Registration code for creating a new account with a new tenant.\nEither RegistrationCode or InvitationToken must be provided.",
            "nullable": true
          },
          "invitationToken": {
            "type": "string",
            "description": "Invitation token for joining an existing tenant.\nEither RegistrationCode or InvitationToken must be provided.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReportGranularity": {
        "enum": [
          "Day",
          "Week",
          "Month"
        ],
        "type": "string"
      },
      "ReportPeriod": {
        "type": "object",
        "properties": {
          "fromUtc": {
            "type": "string",
            "format": "date-time"
          },
          "toUtc": {
            "type": "string",
            "format": "date-time"
          },
          "granularity": {
            "$ref": "#/components/schemas/ReportGranularity"
          },
          "length": {
            "type": "string",
            "format": "date-span",
            "readOnly": true
          },
          "days": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ResellerBillingSummaryDto": {
        "required": [
          "billableChildren",
          "children",
          "commitmentTopUpCents",
          "discountBasisPoints",
          "minimumCommitmentCents",
          "subtotalCents",
          "totalChildren",
          "totalMonthlyCents"
        ],
        "type": "object",
        "properties": {
          "totalChildren": {
            "type": "integer",
            "format": "int32"
          },
          "billableChildren": {
            "type": "integer",
            "format": "int32"
          },
          "discountBasisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "subtotalCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumCommitmentCents": {
            "type": "integer",
            "format": "int64"
          },
          "commitmentTopUpCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalMonthlyCents": {
            "type": "integer",
            "format": "int64"
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResellerChildSeatDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResellerChildSeatDto": {
        "required": [
          "isActive",
          "name",
          "planId",
          "publicPriceCents",
          "tenantId",
          "wholesalePriceCents"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "publicPriceCents": {
            "type": "integer",
            "format": "int64"
          },
          "wholesalePriceCents": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "ResellerInvoiceItemDto": {
        "required": [
          "amountCents",
          "description",
          "invoiceItemId"
        ],
        "type": "object",
        "properties": {
          "invoiceItemId": {
            "type": "string",
            "nullable": true
          },
          "childTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "ResellerInvoiceResultDto": {
        "required": [
          "amountCents",
          "billableChildren",
          "commitmentTopUpCents",
          "items",
          "subtotalCents"
        ],
        "type": "object",
        "properties": {
          "billableChildren": {
            "type": "integer",
            "format": "int32"
          },
          "subtotalCents": {
            "type": "integer",
            "format": "int64"
          },
          "commitmentTopUpCents": {
            "type": "integer",
            "format": "int64"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResellerInvoiceItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResendConfirmationRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResetPasswordRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceLimitsRequest": {
        "type": "object",
        "properties": {
          "maxConcurrentJobs": {
            "type": "integer",
            "format": "int32"
          },
          "maxCpuUnitsPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxMemoryMbPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxTimeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "maxStorageGbPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyJobLimit": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ReviewListingRequest": {
        "type": "object",
        "properties": {
          "approve": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReviewResponseRequest": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RevokeMachineResult": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "keysRevoked": {
            "type": "integer",
            "format": "int32"
          },
          "bindingsRemoved": {
            "type": "integer",
            "format": "int32"
          },
          "agentRemoved": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RunSmokeTestRequest": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "RunnerCapacityDto": {
        "type": "object",
        "properties": {
          "slots": {
            "type": "integer",
            "format": "int32"
          },
          "runningJobs": {
            "type": "integer",
            "format": "int32"
          },
          "liveInstances": {
            "type": "integer",
            "format": "int32"
          },
          "concurrencyMode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerClaimRequest": {
        "type": "object",
        "properties": {
          "runnerId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerCommitOutputRequest": {
        "type": "object",
        "properties": {
          "runnerId": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "blobPath": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerCompleteRequest": {
        "type": "object",
        "properties": {
          "runnerId": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "exitCode": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerEnrollmentStatusDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "tokenPrefix": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "claimedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "agentId": {
            "type": "string",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          },
          "providerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "agent": {
            "$ref": "#/components/schemas/AgentStatusDto"
          },
          "runnerReady": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RunnerEnrollmentTokenCreatedDto": {
        "type": "object",
        "properties": {
          "enrollmentId": {
            "type": "string",
            "format": "uuid"
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "providerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerHeartbeatResponse": {
        "type": "object",
        "properties": {
          "cancelRequested": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RunnerIdRequest": {
        "type": "object",
        "properties": {
          "runnerId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerJobDto": {
        "required": [
          "environmentVariables",
          "executionId",
          "imageUri",
          "inputs",
          "jobId",
          "timeoutSeconds"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "imageUri": {
            "type": "string",
            "nullable": true
          },
          "imageTag": {
            "type": "string",
            "nullable": true
          },
          "command": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "inputs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "environmentVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "storageProviderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "leaseExpiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "timeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "registryAuth": {
            "$ref": "#/components/schemas/RunnerRegistryAuthDto"
          },
          "directTransfer": {
            "type": "boolean"
          },
          "machineSize": {
            "type": "string",
            "nullable": true
          },
          "cpuUnits": {
            "type": "integer",
            "format": "int32"
          },
          "memoryMb": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "RunnerLogRequest": {
        "type": "object",
        "properties": {
          "runnerId": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "level": {
            "$ref": "#/components/schemas/LogLevel"
          }
        },
        "additionalProperties": false
      },
      "RunnerOutputUploadTargetDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "blobPath": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerPrepareOutputRequest": {
        "type": "object",
        "properties": {
          "runnerId": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "contentType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerRegistryAuthDto": {
        "type": "object",
        "properties": {
          "serverAddress": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerSmokeTestStartedDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunnerTransferUrlDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveExperimentRequest": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "hypothesis": {
            "type": "string",
            "nullable": true
          },
          "assignmentUnit": {
            "$ref": "#/components/schemas/ExperimentAssignmentUnit"
          },
          "trafficPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentVariantInput"
            },
            "nullable": true
          },
          "targetingFeatureFlagKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScimConfigDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "enabled": {
            "type": "boolean"
          },
          "hasToken": {
            "type": "boolean"
          },
          "defaultRole": {
            "type": "string",
            "nullable": true
          },
          "lastUsedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SecurityReportDto": {
        "type": "object",
        "properties": {
          "period": {
            "$ref": "#/components/schemas/ReportPeriod"
          },
          "loginSuccess": {
            "type": "integer",
            "format": "int64"
          },
          "loginFailed": {
            "type": "integer",
            "format": "int64"
          },
          "loginBlocked": {
            "type": "integer",
            "format": "int64"
          },
          "loginSuccessSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "loginFailedSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "loginBlockedSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "lockedOutUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LockedOutUserDto"
            },
            "nullable": true
          },
          "refusals": {
            "type": "integer",
            "format": "int64"
          },
          "refusalsSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "topRefusedPaths": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RefusedPathDto"
            },
            "nullable": true
          },
          "rateLimited": {
            "type": "integer",
            "format": "int64"
          },
          "rateLimitedSeries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPointDto"
            },
            "nullable": true
          },
          "topRateLimitedIps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RateLimitedIpDto"
            },
            "nullable": true
          },
          "impersonationSessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImpersonationSessionDto"
            },
            "nullable": true
          },
          "mfaAdoptionRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "activeUsers": {
            "type": "integer",
            "format": "int32"
          },
          "mfaEnabledUsers": {
            "type": "integer",
            "format": "int32"
          },
          "apiKeys": {
            "$ref": "#/components/schemas/ApiKeyStatsDto"
          },
          "globalAdmins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlobalAdminDto"
            },
            "nullable": true
          },
          "suspiciousLogins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuspiciousLoginDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetCloudCostBudgetRequest": {
        "type": "object",
        "properties": {
          "monthlyBudgetEur": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetEnabledRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SetProviderRatesRequest": {
        "type": "object",
        "properties": {
          "rates": {
            "$ref": "#/components/schemas/ProviderRatesDto"
          },
          "creditMultiplier": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SetScimEnabledRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SetTenantAccessRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "customTokenCost": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetupIntentResultDto": {
        "type": "object",
        "properties": {
          "clientSecret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ShowbackDimension": {
        "enum": [
          "Pipeline",
          "Project",
          "User"
        ],
        "type": "string"
      },
      "ShowbackReportDto": {
        "type": "object",
        "properties": {
          "dimension": {
            "type": "string",
            "nullable": true
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "totalConsumed": {
            "type": "integer",
            "format": "int64"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowbackRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ShowbackRowDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "tokensConsumed": {
            "type": "integer",
            "format": "int64"
          },
          "tokensEstimated": {
            "type": "integer",
            "format": "int64"
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          },
          "sharePercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SsoConfigDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "authority": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "hasClientSecret": {
            "type": "boolean"
          },
          "scopes": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "autoProvisionUsers": {
            "type": "boolean"
          },
          "defaultRole": {
            "type": "string",
            "nullable": true
          },
          "allowedEmailDomains": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StartAgentPairingResult": {
        "type": "object",
        "properties": {
          "pairingCode": {
            "type": "string",
            "nullable": true
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "StartPairingRequest": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "agentName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StartWorkerResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StatusDistributionDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "StopWorkerResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StoragePairingDto": {
        "type": "object",
        "properties": {
          "account": {
            "type": "string",
            "nullable": true
          },
          "bucket": {
            "type": "string",
            "nullable": true
          },
          "endpoint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StorageUsageDayDto": {
        "required": [
          "date"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true
          },
          "hostedGb": {
            "type": "number",
            "format": "double"
          },
          "byoGb": {
            "type": "number",
            "format": "double"
          },
          "egressGb": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "StorageUsageDto": {
        "required": [
          "planName"
        ],
        "type": "object",
        "properties": {
          "planName": {
            "type": "string",
            "nullable": true
          },
          "hostedGb": {
            "type": "number",
            "format": "double"
          },
          "byoGb": {
            "type": "number",
            "format": "double"
          },
          "quotaGb": {
            "type": "integer",
            "format": "int32"
          },
          "usedPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitBatchJobsRequest": {
        "type": "object",
        "properties": {
          "inputsList": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "nullable": true
          },
          "parameterOverrides": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          },
          "machineSize": {
            "type": "string",
            "description": "Optional machine size (e.g. \"large\") every job of the batch runs on. Rejected unless the\nplan includes it and the organization enabled it; cannot be combined with\nMarathoon.Api.Controllers.SubmitBatchJobsRequest.ParameterOverrides.",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional labels set on every job of the batch (same rules as a single job's).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitJobRequest": {
        "type": "object",
        "properties": {
          "inputs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "parameterOverrides": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          },
          "provider": {
            "type": "string",
            "description": "Optional compute target for this job (e.g. \"Ovh\"). Rejected unless the organization\nenabled per-job provider choice in its routing settings.",
            "nullable": true
          },
          "region": {
            "type": "string",
            "description": "Optional region within Marathoon.Api.Controllers.SubmitJobRequest.Provider (e.g. \"GRA\").",
            "nullable": true
          },
          "machineSize": {
            "type": "string",
            "description": "Optional machine size (e.g. \"large\") replacing the pipeline's default vCPU and memory.\nRejected unless the plan includes it and the organization enabled it; cannot be combined\nwith Marathoon.Api.Controllers.SubmitJobRequest.ParameterOverrides.",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional labels (e.g. `{\"customer\": \"acme\", \"env\": \"staging\"}`) to filter and search\nthe job list with. At most 20 keys of letters, digits and `. _ - /` (64 characters\nmax, not starting with `_`), values of 256 characters max. Never passed to the container.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitSupportRequestDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitTestRunRequest": {
        "type": "object",
        "properties": {
          "inputs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubscriptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "currentPeriodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "currentPeriodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "cancelAtPeriodEnd": {
            "type": "boolean"
          },
          "cancelledAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubscriptionsByPlanDto": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "mrr": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SupportRequestResultDto": {
        "type": "object",
        "properties": {
          "ticketId": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SuspiciousLoginDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "failedCount": {
            "type": "integer",
            "format": "int64"
          },
          "lastAttemptUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SystemHealthDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "databaseConnected": {
            "type": "boolean"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TeamInviteRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantBillingInfoDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "vatNumber": {
            "type": "string",
            "nullable": true
          },
          "billingEmail": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantBrandingDto": {
        "type": "object",
        "properties": {
          "primaryColor": {
            "type": "string",
            "nullable": true
          },
          "secondaryColor": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "faviconUrl": {
            "type": "string",
            "nullable": true
          },
          "appName": {
            "type": "string",
            "nullable": true
          },
          "accentColor": {
            "type": "string",
            "nullable": true
          },
          "loginBackgroundUrl": {
            "type": "string",
            "nullable": true
          },
          "themeConfig": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "isActive": {
            "type": "boolean"
          },
          "parentTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "branding": {
            "$ref": "#/components/schemas/TenantBrandingDto"
          },
          "billingInfo": {
            "$ref": "#/components/schemas/TenantBillingInfoDto"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "projectCount": {
            "type": "integer",
            "format": "int32"
          },
          "pipelineCount": {
            "type": "integer",
            "format": "int32"
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          },
          "tokenBalance": {
            "type": "integer",
            "format": "int64"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "canCreatePipelines": {
            "type": "boolean"
          },
          "maxCustomPipelines": {
            "type": "integer",
            "format": "int32"
          },
          "showGlobalPipelines": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TenantDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "isActive": {
            "type": "boolean"
          },
          "parentTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "branding": {
            "$ref": "#/components/schemas/TenantBrandingDto"
          },
          "billingInfo": {
            "$ref": "#/components/schemas/TenantBillingInfoDto"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantEmailDomainDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "isVerified": {
            "type": "boolean"
          },
          "verifiedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastCheckedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "txtRecordName": {
            "type": "string",
            "nullable": true
          },
          "txtRecordValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantEntitlementsAdminDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "planFeatures": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "planLimits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "featureOverrides": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            },
            "nullable": true
          },
          "limitOverrides": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "overridesExpireAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "grandfatheredFromPlan": {
            "type": "string",
            "nullable": true
          },
          "effectiveFeatures": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "effectiveLimits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantGlobalPipelineAccessDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "globalPipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "globalPipelineName": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "customTokenCost": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "effectiveTokenCost": {
            "type": "integer",
            "format": "int32"
          },
          "enabledAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "enabledBy": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "TenantInvitationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/TenantRole"
          },
          "roleName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "invitedByUserId": {
            "type": "string",
            "format": "uuid"
          },
          "invitedByName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/InvitationStatus"
          },
          "statusName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "isExpired": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "acceptedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "revokedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantNotificationRequest": {
        "required": [
          "method",
          "tenantId"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "payload": {}
        },
        "additionalProperties": false
      },
      "TenantProviderDto": {
        "required": [
          "category",
          "hasCredential",
          "id",
          "isDefault",
          "isEnabled",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "configJson": {
            "type": "string",
            "nullable": true
          },
          "hasCredential": {
            "type": "boolean"
          },
          "runnerAgentIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantProviderSettingsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "selectionMode": {
            "type": "string",
            "nullable": true
          },
          "preferredProvider": {
            "type": "string",
            "nullable": true
          },
          "preferredRegion": {
            "type": "string",
            "nullable": true
          },
          "allowedProviders": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "allowedDataResidencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "canEditResidency": {
            "type": "boolean"
          },
          "allowUserProviderChoice": {
            "type": "boolean"
          },
          "allowUserMachineSizeChoice": {
            "type": "boolean"
          },
          "resourceLimits": {
            "$ref": "#/components/schemas/TenantResourceLimitsDto"
          },
          "enableCostOptimization": {
            "type": "boolean"
          },
          "enableAutoRetry": {
            "type": "boolean"
          },
          "maxRetryAttempts": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TenantPurchasedPipelineDto": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "tokenCost": {
            "type": "integer",
            "format": "int32"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "customTokenCost": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "enabledAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TenantResourceLimitsDto": {
        "type": "object",
        "properties": {
          "maxConcurrentJobs": {
            "type": "integer",
            "format": "int32"
          },
          "maxCpuUnitsPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxMemoryMbPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxTimeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "maxStorageGbPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyJobLimit": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyTokenBudgetCap": {
            "type": "integer",
            "format": "int32"
          },
          "hardStopAtCap": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TenantRole": {
        "enum": [
          "Viewer",
          "Analyst",
          "Maintainer",
          "ProjectOwner",
          "OrganizationAdmin"
        ],
        "type": "string"
      },
      "TenantSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "projectCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "canCreatePipelines": {
            "type": "boolean"
          },
          "maxCustomPipelines": {
            "type": "integer",
            "format": "int32"
          },
          "showGlobalPipelines": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TenantSummaryDtoPaginatedResultDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantSummaryDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "TenantTokenBalanceDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "currentBalance": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyQuota": {
            "type": "integer",
            "format": "int32"
          },
          "usedThisMonth": {
            "type": "integer",
            "format": "int32"
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TenantUserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/TenantRole"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TenantUserPermissionsDto": {
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantValueDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "TimeSeriesDataPointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TimeSeriesPointDto": {
        "type": "object",
        "properties": {
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ToggleAccessRequest": {
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ToggleProviderRequest": {
        "type": "object",
        "properties": {
          "enable": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ToggleWebhookRequest": {
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TokenBalanceDto": {
        "type": "object",
        "properties": {
          "currentBalance": {
            "type": "integer",
            "format": "int32"
          },
          "purchasedCredits": {
            "type": "integer",
            "format": "int32"
          },
          "totalAvailable": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyQuota": {
            "type": "integer",
            "format": "int32"
          },
          "usedThisMonth": {
            "type": "integer",
            "format": "int32"
          },
          "periodStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "monthlyTokenBudgetCap": {
            "type": "integer",
            "format": "int32"
          },
          "hardStopAtCap": {
            "type": "boolean"
          },
          "budget80AlertSentForPeriod": {
            "type": "boolean"
          },
          "autoRechargeEnabled": {
            "type": "boolean"
          },
          "autoRechargeThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "autoRechargePackSize": {
            "type": "integer",
            "format": "int32"
          },
          "creditsConvertedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditsBalanceRescaled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TokenTransactionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "jobName": {
            "type": "string",
            "nullable": true
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "tokensConsumed": {
            "type": "integer",
            "format": "int32"
          },
          "tokensEstimated": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenUsageSummaryDto": {
        "type": "object",
        "properties": {
          "totalConsumed": {
            "type": "integer",
            "format": "int64"
          },
          "totalEstimated": {
            "type": "integer",
            "format": "int64"
          },
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "averagePerJob": {
            "type": "number",
            "format": "double"
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          },
          "successfulJobs": {
            "type": "integer",
            "format": "int32"
          },
          "failedJobs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TrackConversionRequest": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransactionsResultDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TokenTransactionDto"
            },
            "nullable": true
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UnreadNotificationCountResponse": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UpdateApiKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "newPreset": {
            "$ref": "#/components/schemas/ApiKeyPermissionPreset"
          },
          "customPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateBatchMetadataRequest": {
        "type": "object",
        "properties": {
          "set": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Keys to add or overwrite on every job of the batch.",
            "nullable": true
          },
          "remove": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keys to drop from every job of the batch.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateBatchMetadataResultDto": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "string",
            "format": "uuid"
          },
          "updatedJobs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UpdateCreatorProfileRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "bio": {
            "type": "string",
            "nullable": true
          },
          "avatarUrl": {
            "type": "string",
            "nullable": true
          },
          "websiteUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCreditCodeRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateExecutionStatusRequest": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "exitCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateGlobalPipelineRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "tokenCost": {
            "type": "integer",
            "format": "int32"
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "definition": {
            "$ref": "#/components/schemas/GlobalPipelineDefinitionDto"
          },
          "defaultParameters": {
            "$ref": "#/components/schemas/GlobalPipelineParametersDto"
          }
        },
        "additionalProperties": false
      },
      "UpdateInvitationCodeRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateJobStatusRequest": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "startedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "healthStatus": {
            "type": "string",
            "nullable": true
          },
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "exitCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateListingRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "coverImageUrl": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "string",
            "nullable": true
          },
          "pricingModel": {
            "$ref": "#/components/schemas/PricingModel"
          },
          "oneTimePriceCents": {
            "type": "integer",
            "format": "int64"
          },
          "perExecutionMarkupTokens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UpdateMemberRoleRequest": {
        "type": "object",
        "properties": {
          "role": {
            "$ref": "#/components/schemas/ProjectRole"
          }
        },
        "additionalProperties": false
      },
      "UpdatePipelineExecutionDefaultsRequest": {
        "type": "object",
        "properties": {
          "machineSize": {
            "type": "string",
            "description": "Machine size (e.g. \"large\") the pipeline's jobs run on by default; null = keep the current specs.",
            "nullable": true
          },
          "preferredProvider": {
            "type": "string",
            "description": "Provider the pipeline's jobs go to first (e.g. \"Ovh\"); null = the organization's routing.",
            "nullable": true
          },
          "preferredRegion": {
            "type": "string",
            "description": "Region within Marathoon.Api.Controllers.UpdatePipelineExecutionDefaultsRequest.PreferredProvider; null = any of its regions.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePipelineParametersRequest": {
        "type": "object",
        "properties": {
          "parameters": {
            "$ref": "#/components/schemas/PipelineParametersDto"
          }
        },
        "additionalProperties": false
      },
      "UpdatePipelineRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "definition": {
            "$ref": "#/components/schemas/PipelineDefinitionDto"
          },
          "changeNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePlanCommand": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "monthlyTokens": {
            "type": "integer",
            "format": "int32"
          },
          "pricePerMonth": {
            "type": "number",
            "format": "double"
          },
          "overageTokenPrice": {
            "type": "number",
            "format": "double"
          },
          "stripePriceId": {
            "type": "string",
            "nullable": true
          },
          "stripeProductId": {
            "type": "string",
            "nullable": true
          },
          "resellerDiscountBasisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "retentionDays": {
            "type": "integer",
            "format": "int32"
          },
          "includedStorageGb": {
            "type": "integer",
            "format": "int32"
          },
          "annualPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "academicPricePerMonth": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "limits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdatePreferencesRequest": {
        "type": "object",
        "properties": {
          "emailNotificationsEnabled": {
            "type": "boolean"
          },
          "jobAlertsEnabled": {
            "type": "boolean"
          },
          "weeklyDigestEnabled": {
            "type": "boolean"
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateProfileRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateProjectRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateResidencyPolicyRequest": {
        "type": "object",
        "properties": {
          "allowedDataResidencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataResidencyZone"
            },
            "description": "Zones the tenant accepts; empty or omitted means every zone.",
            "nullable": true
          },
          "preferredRegion": {
            "type": "string",
            "nullable": true
          },
          "allowedProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloudProvider"
            },
            "description": "Providers the tenant allows; empty or omitted means every enabled provider.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateRoleRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Permission"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantEntitlementOverridesCommand": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "featureOverrides": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            },
            "nullable": true
          },
          "limitOverrides": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantMemberRoleRequest": {
        "type": "object",
        "properties": {
          "role": {
            "$ref": "#/components/schemas/TenantRole"
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantPipelineSettingsRequest": {
        "type": "object",
        "properties": {
          "canCreatePipelines": {
            "type": "boolean"
          },
          "maxCustomPipelines": {
            "type": "integer",
            "format": "int32"
          },
          "showGlobalPipelines": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantProviderRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "configJson": {
            "type": "string",
            "nullable": true
          },
          "credentialSecretRef": {
            "type": "string",
            "nullable": true
          },
          "credentials": {
            "$ref": "#/components/schemas/ProviderCredentialsInput"
          },
          "isEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "runnerAgentIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Connected Runner only: full replacement set of bound agent ids (null = leave as-is).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantProviderSettingsRequest": {
        "type": "object",
        "properties": {
          "selectionMode": {
            "$ref": "#/components/schemas/ProviderSelectionMode"
          },
          "preferredProvider": {
            "$ref": "#/components/schemas/CloudProvider"
          },
          "preferredRegion": {
            "type": "string",
            "nullable": true
          },
          "allowedProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloudProvider"
            },
            "nullable": true
          },
          "allowUserProviderChoice": {
            "type": "boolean",
            "description": "Whether a submitter may name the provider for an individual job.",
            "nullable": true
          },
          "allowUserMachineSizeChoice": {
            "type": "boolean",
            "description": "Whether a submitter may pick the machine size (vCPU / memory) of an individual job.",
            "nullable": true
          },
          "resourceLimits": {
            "$ref": "#/components/schemas/ResourceLimitsRequest"
          },
          "enableCostOptimization": {
            "type": "boolean",
            "nullable": true
          },
          "enableAutoRetry": {
            "type": "boolean",
            "nullable": true
          },
          "maxRetryAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "branding": {
            "$ref": "#/components/schemas/TenantBrandingDto"
          },
          "billingInfo": {
            "$ref": "#/components/schemas/TenantBillingInfoDto"
          }
        },
        "additionalProperties": false
      },
      "UpdateUserRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWebhookRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWorkerOptionsResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UploadJobFilesResultDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "uploadedFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UploadedJobFileDto"
            },
            "nullable": true
          },
          "failedFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FailedJobFileDto"
            },
            "nullable": true
          },
          "totalUploaded": {
            "type": "integer",
            "format": "int32"
          },
          "totalFailed": {
            "type": "integer",
            "format": "int32"
          },
          "totalSizeBytes": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "UploadedJobFileDto": {
        "required": [
          "fileName",
          "storagePath"
        ],
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "storagePath": {
            "type": "string",
            "nullable": true
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "checksum": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpsertFeatureFlagRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "rolloutPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "enabledForPlanIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "enabledForTenantIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "disabledForTenantIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpsertProviderConfigurationRequest": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/CloudProvider"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "limits": {
            "$ref": "#/components/schemas/UpsertProviderLimitsDto"
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpsertProviderRegionDto"
            },
            "description": "Full replacement set of regions; omit (null) to keep the current ones.",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "credentialsAuthType": {
            "type": "string",
            "nullable": true
          },
          "credentialMaterial": {
            "type": "string",
            "description": "Credential material to store in the platform secret store (rotation). Never echoed back.",
            "nullable": true
          },
          "credentialSecretRef": {
            "type": "string",
            "description": "Reference to an existing secret (vault:name / db:name). Blank keeps the stored credentials.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpsertProviderLimitsDto": {
        "type": "object",
        "properties": {
          "maxConcurrentJobs": {
            "type": "integer",
            "format": "int32"
          },
          "maxCpuUnitsPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxMemoryMbPerJob": {
            "type": "integer",
            "format": "int32"
          },
          "maxTimeoutSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "maxStorageGb": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UpsertProviderRegionDto": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "isResidencyDefault": {
            "type": "boolean"
          },
          "dataResidency": {
            "$ref": "#/components/schemas/DataResidencyDto"
          },
          "costRates": {
            "$ref": "#/components/schemas/ProviderRatesDto"
          },
          "creditMultiplier": {
            "type": "number",
            "format": "double"
          },
          "capabilities": {
            "$ref": "#/components/schemas/RegionCapabilitiesDto"
          },
          "storagePairing": {
            "$ref": "#/components/schemas/StoragePairingDto"
          },
          "maxConcurrentJobs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isPreferredForStorage": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpsertReviewRequest": {
        "type": "object",
        "properties": {
          "rating": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpsertSsoConfigCommand": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "authority": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "scopes": {
            "type": "string",
            "nullable": true
          },
          "autoProvisionUsers": {
            "type": "boolean"
          },
          "defaultRole": {
            "type": "string",
            "nullable": true
          },
          "allowedEmailDomains": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UsageByPipelineDto": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string",
            "format": "uuid"
          },
          "pipelineName": {
            "type": "string",
            "nullable": true
          },
          "tokensConsumed": {
            "type": "integer",
            "format": "int64"
          },
          "jobCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UserDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isGlobalAdmin": {
            "type": "boolean"
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastLoginAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tenantMemberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserTenantMembershipDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isGlobalAdmin": {
            "type": "boolean"
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastLoginAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserDtoPaginatedResultDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "UserNotificationRequest": {
        "required": [
          "method",
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "payload": {}
        },
        "additionalProperties": false
      },
      "UserSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserTenantMembershipDto": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tenantName": {
            "type": "string",
            "nullable": true
          },
          "tenantSlug": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ValidatePipelineRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "$ref": "#/components/schemas/PipelineDefinitionDto"
          }
        },
        "additionalProperties": false
      },
      "ValidateRegistrationRequest": {
        "type": "object",
        "properties": {
          "registrationCode": {
            "type": "string",
            "nullable": true
          },
          "invitationToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VariantEventResultDto": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "conversions": {
            "type": "integer",
            "format": "int64"
          },
          "convertingUnits": {
            "type": "integer",
            "format": "int64"
          },
          "totalValue": {
            "type": "number",
            "format": "double"
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lift": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isSignificant95": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "VariantResultDto": {
        "type": "object",
        "properties": {
          "variantKey": {
            "type": "string",
            "nullable": true
          },
          "variantName": {
            "type": "string",
            "nullable": true
          },
          "isControl": {
            "type": "boolean"
          },
          "exposures": {
            "type": "integer",
            "format": "int64"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariantEventResultDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VerifyMfaRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "mfaToken": {
            "type": "string",
            "description": "The `mfaToken` returned by `POST /auth/login` when MFA is required.",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "useRecoveryCode": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WebhookDeliveryLogDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "webhookId": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "responseBody": {
            "type": "string",
            "nullable": true
          },
          "attemptCount": {
            "type": "integer",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "durationMs": {
            "type": "number",
            "format": "double"
          },
          "nextAttemptAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastAttemptAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "replayOfDeliveryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WebhookDeliveryLogsResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDeliveryLogDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "WebhookDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "lastTriggeredAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "consecutiveFailures": {
            "type": "integer",
            "format": "int32"
          },
          "createdBy": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WebhookSecretDto": {
        "type": "object",
        "properties": {
          "webhookId": {
            "type": "string",
            "format": "uuid"
          },
          "secret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerInfo": {
        "type": "object",
        "properties": {
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isRunning": {
            "type": "boolean"
          },
          "lastRunUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextRunUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int64"
          },
          "errorCount": {
            "type": "integer",
            "format": "int64"
          },
          "averageExecutionTime": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "lastExecutionTime": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "lastErrorUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerLogDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "level": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WorkerLogRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "level": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "timestampUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WorkerOptionDefinitionDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "defaultValue": {
            "type": "string",
            "nullable": true
          },
          "minValue": {
            "type": "string",
            "nullable": true
          },
          "maxValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerOptionValueDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerOptionValueInput": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerSnapshotRequest": {
        "type": "object",
        "properties": {
          "workers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkerStateDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerStateDto": {
        "type": "object",
        "properties": {
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isRunning": {
            "type": "boolean"
          },
          "lastRunUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextRunUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int64"
          },
          "errorCount": {
            "type": "integer",
            "format": "int64"
          },
          "averageExecutionTimeMs": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastExecutionTimeMs": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "lastErrorUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkerStatusUpdateRequest": {
        "type": "object",
        "properties": {
          "workerId": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isRunning": {
            "type": "boolean"
          },
          "lastRunUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextRunUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int64"
          },
          "errorCount": {
            "type": "integer",
            "format": "int64"
          },
          "averageExecutionTimeMs": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastExecutionTimeMs": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "lastErrorUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowValidationErrorDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "nodeId": {
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowValidationResultDto": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowValidationErrorDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Access token from POST /api/v1/auth/login.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "ApiKey": {
        "type": "apiKey",
        "description": "Tenant API key (`mk_...`). Also accepted as `Authorization: ApiKey mk_...`, never as `Bearer`.",
        "name": "X-API-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    },
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "Agents",
      "description": "Manages agent heartbeats and status monitoring.\n\n`POST /api/v1/agent/pair/claim` is anonymous: the desktop agent trades the pairing code for an API key scoped to one pipeline. The heartbeat requires an agent or runner key."
    },
    {
      "name": "ApiKeys",
      "description": "Manages API keys for programmatic access to the Marathoon API."
    },
    {
      "name": "Auth"
    },
    {
      "name": "Billing",
      "description": "Tenant-scoped billing and token usage endpoints.\nRoute matches the frontend billing API client (/billing/usage/*)."
    },
    {
      "name": "ConnectedMachines",
      "description": "Operator view of every machine running the Marathoon agent for a tenant — file\nwatchers and Connected Runners in one inventory — with pending enrollment tokens\nand one-shot revocation. For people, not agents: agent-inventory permissions."
    },
    {
      "name": "CreditCodeRedemption",
      "description": "User-facing endpoint for redeeming credit codes"
    },
    {
      "name": "Credits"
    },
    {
      "name": "Dashboard"
    },
    {
      "name": "Entitlements",
      "description": "Tenant-facing view of the effective plan entitlements (features, limits, usage).\nEvery member can read this; the frontend uses it to gate UI."
    },
    {
      "name": "Executions",
      "description": "API endpoints for job execution management.\nProvides real-time status, logs, and execution control."
    },
    {
      "name": "Experiments",
      "description": "Runtime side of A/B testing for the webapp: which variant the caller gets (recording the\nexposure) and conversion tracking. Both are safe to call for any key — an unknown or inactive\nexperiment yields the control and records nothing."
    },
    {
      "name": "FeatureFlags",
      "description": "Flags as seen by the caller: every flag evaluated for the current user and tenant. This is\nwhat the webapp reads to gate UI (`useFeatureFlag`); targeting details stay admin-only."
    },
    {
      "name": "Invitations",
      "description": "Invitation acceptance endpoints (for invited users). Accepting or declining always takes the\ntoken sent by email: it is the proof that the caller owns the invited mailbox. An account that\nmerely carries the address (e.g. one an organization provisioned through its own IdP) cannot act\non invitations by id (revue 2026-10, #18k)."
    },
    {
      "name": "JobFiles",
      "description": "Controller for job file operations (upload, download, list, delete)."
    },
    {
      "name": "Jobs"
    },
    {
      "name": "Marketplace",
      "description": "Marketplace endpoints: public catalog and global admin listing review. The buyer\n(purchases, reviews) and creator (listings, earnings, payouts) surfaces are tenant\nscoped: see Marathoon.Api.Controllers.TenantMarketplaceController."
    },
    {
      "name": "Notifications"
    },
    {
      "name": "Onboarding",
      "description": "Client onboarding flow endpoints."
    },
    {
      "name": "Pipelines"
    },
    {
      "name": "Platform",
      "description": "Facts about this Marathoon deployment a customer needs to grant it access without\nsharing a secret: the AWS principal that will assume their role, the Azure identity to\ngive a storage role to. Set by the operator in configuration (`Platform:Identity`);\nempty when the deployment has no cloud identity of its own."
    },
    {
      "name": "Projects"
    },
    {
      "name": "PublicPricing",
      "description": "What the public (signed-out) pricing page renders: the `pricing_2026_09` kill switch and\nthe visitor's variant of the `pricing_page_v2` experiment. Anonymous by design; the\nvisitor id is a random GUID the webapp keeps in the browser."
    },
    {
      "name": "Reseller",
      "description": "Reseller operations: a parent tenant provisions and lists the child tenants\nit manages."
    },
    {
      "name": "Roles",
      "description": "Custom role management for tenants."
    },
    {
      "name": "RunnerEnrollments",
      "description": "Connected Runner enrollment: a provider admin mints a short-lived token, pastes it\ninto the runner install command, and the machine redeems it anonymously for a\nleast-privilege API key. Tenant-scoped management routes live next to the runner\nprotocol (`/tenants/{id}/runners/*`); the redemption route is global.\n\n`POST /api/v1/runners/enroll` is anonymous at the ASP.NET level: the runner presents the enrollment token created in the organization and receives its API key."
    },
    {
      "name": "Runners",
      "description": "Pull-model runner API: a paired Agent claims queued ConnectedRunner jobs,\nheartbeats its lease, and reports start/completion.\n\nCalled by the connected runner with its API key (`RunnerExecute`). No human role holds this permission."
    },
    {
      "name": "Scim",
      "description": "SCIM 2.0 user provisioning. The protocol endpoints under /scim/v2 authenticate via a\nper-tenant bearer token (not the app JWT); the admin endpoints manage that token.\nSupports auto-provisioning and de-provisioning of users into a tenant.\n\nThe `/scim/v2/*` routes take neither a JWT nor an API key: the identity provider sends the organization's SCIM token as `Authorization: Bearer <SCIM token>`. The token is issued by `POST /api/v1/tenants/{tenantId}/settings/scim/token`."
    },
    {
      "name": "Sso",
      "description": "Per-tenant OIDC single sign-on: tenant-admin configuration plus the public\nauthorization-code login flow (redirect to IdP, callback, token issuance)."
    },
    {
      "name": "StripeWebhook",
      "description": "Called by Stripe only. The `Stripe-Signature` header is verified (fail-closed)."
    },
    {
      "name": "Subscriptions"
    },
    {
      "name": "Support"
    },
    {
      "name": "TenantEmailDomains",
      "description": "Email domains an organization proves it owns by DNS TXT (revue 2026-10, #18k). SSO\njust-in-time provisioning and SCIM create new platform accounts only in a proven domain.\nNot behind the SSO feature: SCIM depends on it too, and proving a domain grants nothing by itself."
    },
    {
      "name": "TenantGlobalPipelines"
    },
    {
      "name": "TenantMarketplace",
      "description": "Tenant-scoped marketplace surface: buying (BillingRead/BillingManage), reviewing a\npurchase (self-service), and selling (MarketplaceSell + the MarketplaceSelling flag)."
    },
    {
      "name": "TenantMembers",
      "description": "Tenant member and invitation management."
    },
    {
      "name": "TenantProviderSettings",
      "description": "API for managing tenant-level provider settings."
    },
    {
      "name": "TenantProviders",
      "description": "Manage a tenant's runner/storage providers (BYO infrastructure) and assign\nthem to projects. Credentials are written to the platform secret store and only\never referenced from the provider row; no endpoint returns them."
    },
    {
      "name": "Webhooks"
    }
  ],
  "x-marathoon-api-key-presets": [
    {
      "name": "Agent",
      "permissions": [
        "PipelineRead",
        "PipelineRun",
        "JobRead",
        "JobSubmit",
        "JobViewLogs",
        "ExecutionRead",
        "ExecutionViewRealTime",
        "AgentsHeartbeat",
        "RunnerExecute"
      ]
    },
    {
      "name": "ReadOnly",
      "permissions": [
        "ProjectRead",
        "PipelineRead",
        "JobRead",
        "JobViewLogs",
        "ExecutionRead",
        "TenantRead"
      ]
    },
    {
      "name": "JobSubmitter",
      "permissions": [
        "PipelineRead",
        "PipelineRun",
        "JobRead",
        "JobSubmit",
        "JobViewLogs",
        "JobDownloadArtifacts",
        "ExecutionRead",
        "ExecutionViewRealTime"
      ]
    },
    {
      "name": "FullAccess",
      "permissions": [
        "ProjectRead",
        "ProjectCreate",
        "ProjectUpdate",
        "PipelineRead",
        "PipelineCreate",
        "PipelineUpdate",
        "PipelineRun",
        "JobRead",
        "JobSubmit",
        "JobCancel",
        "JobViewLogs",
        "JobDownloadArtifacts",
        "JobRetry",
        "ExecutionRead",
        "ExecutionViewRealTime",
        "BillingRead",
        "TenantRead"
      ]
    },
    {
      "name": "Runner",
      "permissions": [
        "AgentsHeartbeat",
        "RunnerExecute"
      ]
    }
  ],
  "x-tagGroups": [
    {
      "name": "Account and public access",
      "tags": [
        "Auth",
        "Experiments",
        "FeatureFlags",
        "Invitations",
        "Marketplace",
        "Onboarding",
        "Platform",
        "PublicPricing",
        "StripeWebhook"
      ]
    },
    {
      "name": "Organization",
      "tags": [
        "Agents",
        "ApiKeys",
        "Billing",
        "ConnectedMachines",
        "CreditCodeRedemption",
        "Credits",
        "Dashboard",
        "Entitlements",
        "Executions",
        "JobFiles",
        "Jobs",
        "Notifications",
        "Pipelines",
        "Projects",
        "Reseller",
        "Roles",
        "RunnerEnrollments",
        "Runners",
        "Scim",
        "Sso",
        "Subscriptions",
        "Support",
        "TenantEmailDomains",
        "TenantGlobalPipelines",
        "TenantMarketplace",
        "TenantMembers",
        "TenantProviderSettings",
        "TenantProviders",
        "Webhooks"
      ]
    }
  ],
  "x-marathoon-permissions": [
    {
      "name": "ProjectRead",
      "category": "Projects",
      "description": "View projects",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ProjectCreate",
      "category": "Projects",
      "description": "Create new projects",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ProjectUpdate",
      "category": "Projects",
      "description": "Update project details",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ProjectDelete",
      "category": "Projects",
      "description": "Delete projects",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ProjectArchive",
      "category": "Projects",
      "description": "Archive/unarchive projects",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ProjectMembersManage",
      "category": "Projects",
      "description": "Manage project members",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "PipelineRead",
      "category": "Pipelines",
      "description": "View pipelines",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "PipelineCreate",
      "category": "Pipelines",
      "description": "Create new pipelines",
      "roles": [
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "PipelineUpdate",
      "category": "Pipelines",
      "description": "Update pipeline definitions",
      "roles": [
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "PipelineDelete",
      "category": "Pipelines",
      "description": "Delete pipelines",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "PipelinePublish",
      "category": "Pipelines",
      "description": "Publish/unpublish pipelines",
      "roles": [
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "PipelineRun",
      "category": "Pipelines",
      "description": "Run pipelines",
      "roles": [
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "MarketplaceSell",
      "category": "Pipelines",
      "description": "Sell pipelines on the public marketplace",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "JobRead",
      "category": "Jobs",
      "description": "View jobs",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "JobSubmit",
      "category": "Jobs",
      "description": "Submit new jobs",
      "roles": [
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "JobCancel",
      "category": "Jobs",
      "description": "Cancel running jobs",
      "roles": [
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "JobViewLogs",
      "category": "Jobs",
      "description": "View job logs",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "JobDownloadArtifacts",
      "category": "Jobs",
      "description": "Download job artifacts",
      "roles": [
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "JobRetry",
      "category": "Jobs",
      "description": "Retry failed jobs",
      "roles": [
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ExecutionRead",
      "category": "Execution",
      "description": "View execution details",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ExecutionViewRealTime",
      "category": "Execution",
      "description": "View real-time execution logs",
      "roles": [
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "BillingRead",
      "category": "Billing",
      "description": "View billing information",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "BillingManage",
      "category": "Billing",
      "description": "Manage billing settings",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantRead",
      "category": "Tenant",
      "description": "View tenant information",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantMembersRead",
      "category": "Tenant",
      "description": "View tenant members",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantMembersManage",
      "category": "Tenant",
      "description": "Manage tenant members",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantRolesRead",
      "category": "Tenant",
      "description": "View tenant roles",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantRolesManage",
      "category": "Tenant",
      "description": "Manage tenant roles",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantSettingsRead",
      "category": "Tenant",
      "description": "View tenant settings",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantSettingsManage",
      "category": "Tenant",
      "description": "Manage tenant settings",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantProvidersRead",
      "category": "Tenant",
      "description": "View tenant runner/storage providers",
      "roles": [
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "TenantProvidersManage",
      "category": "Tenant",
      "description": "Manage tenant runner/storage providers and credentials",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ResellerRead",
      "category": "Tenant",
      "description": "View child (reseller-managed) tenants",
      "roles": [],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ResellerManage",
      "category": "Tenant",
      "description": "Provision and manage child tenants",
      "roles": [],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "UserInvite",
      "category": "Users",
      "description": "Invite new users",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ApiKeysRead",
      "category": "API Keys",
      "description": "View API keys",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "ApiKeysCreate",
      "category": "API Keys",
      "description": "Create API keys",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": false,
      "apiKeyGrantable": false
    },
    {
      "name": "ApiKeysManage",
      "category": "API Keys",
      "description": "Manage API keys",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": false,
      "apiKeyGrantable": false
    },
    {
      "name": "ApiKeysRevoke",
      "category": "API Keys",
      "description": "Revoke API keys",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": false,
      "apiKeyGrantable": false
    },
    {
      "name": "AgentsRead",
      "category": "Agents",
      "description": "View agent status and health",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "AgentsManage",
      "category": "Agents",
      "description": "Manage agents",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "AgentsHeartbeat",
      "category": "Agents",
      "description": "Send agent heartbeats",
      "roles": [],
      "superAdminOnly": false,
      "machineOnly": true,
      "customRoleGrantable": false,
      "apiKeyGrantable": true
    },
    {
      "name": "RunnerExecute",
      "category": "Agents",
      "description": "Claim and execute jobs as a connected runner",
      "roles": [],
      "superAdminOnly": false,
      "machineOnly": true,
      "customRoleGrantable": false,
      "apiKeyGrantable": true
    },
    {
      "name": "NotificationsRead",
      "category": "Notifications",
      "description": "View in-app notifications",
      "roles": [
        "Viewer",
        "Analyst",
        "Maintainer",
        "ProjectOwner",
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "WebhooksRead",
      "category": "Webhooks",
      "description": "View webhooks",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "WebhooksCreate",
      "category": "Webhooks",
      "description": "Create webhooks",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "WebhooksManage",
      "category": "Webhooks",
      "description": "Manage webhooks",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    },
    {
      "name": "WebhooksDelete",
      "category": "Webhooks",
      "description": "Delete webhooks",
      "roles": [
        "OrganizationAdmin"
      ],
      "superAdminOnly": false,
      "machineOnly": false,
      "customRoleGrantable": true,
      "apiKeyGrantable": true
    }
  ]
}
