{
  "openapi": "3.1.0",
  "info": {
    "title": "Metorial API",
    "version": "2026-01-01",
    "summary": "Connect AI agents and employees to tools over MCP, with governance built in.",
    "description": "The Metorial REST API. Metorial connects AI agents and employees to tools over MCP, with managed credentials, access control and tracing.\n\n## Authentication\n\nSend an API key as a bearer token:\n\n```http\nAuthorization: Bearer metorial_sk_...\n```\n\nKeys are scoped to a single environment within a project, so a `development` key can never read `production` data. Two key types exist and they carry different privileges:\n\n- `metorial_pk_` — publishable. Reads public data only and is safe to ship in client-side code.\n- `metorial_sk_` — secret. Full access to the project. Never expose it in a browser or a public repository.\n\nPrefer a publishable key whenever the call only needs public data.\n\n## Versioning\n\nThe API is date-versioned. Each environment has a default version set in the dashboard, and any request may pin a version explicitly:\n\n```http\nMetorial-Version: 2025-01-01\n```\n\nPin a version in production so a new default cannot change responses under you. Breaking changes ship as a new dated version; the previous version keeps working. When an endpoint or field is scheduled for removal it is marked `deprecated` in this document before the removal takes effect.\n\n## Rate limits\n\nExceeding a limit returns `429 Too Many Requests` with a `Retry-After` header giving the seconds to wait. Documented limits:\n\n- 1000 requests per IP address every 10 seconds.\n- Development environments: 100 requests per API key every 10 minutes.\n- Production environments: 5000 requests per API key every 10 minutes.\n\nBack off using `Retry-After` rather than retrying immediately.\n\n## Errors\n\nFailures return a consistent JSON envelope with a machine-readable `code`, a human-readable `message`, and often a `hint`. Branch on `code`; treat `message` as display text. See the `Error` schema.\n\n## Pagination\n\nList endpoints return an `items` array plus a `pagination` object containing `has_more_after` and `has_more_before`. Page by passing the id of a record from the current page as the `after` or `before` query parameter.",
    "termsOfService": "https://metorial.com/legal/api-terms",
    "contact": {
      "name": "Metorial support",
      "email": "hey@metorial.com",
      "url": "https://metorial.com/support"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://metorial.com/legal/terms"
    }
  },
  "externalDocs": {
    "description": "Metorial API reference",
    "url": "https://metorial.com/api"
  },
  "servers": [
    {
      "url": "https://api.metorial.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "secretApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Callback Destinations",
      "description": "Manage callback webhook destinations."
    },
    {
      "name": "Callbacks",
      "description": "Manage webhook-style callbacks backed by subspace trigger receivers."
    },
    {
      "name": "Callback Events",
      "description": "Read callback trigger events."
    },
    {
      "name": "Callback Instances",
      "description": "Attach or detach callback instances for a deployment/config/auth-config combination."
    },
    {
      "name": "Custom Provider Deployments",
      "description": "Deployments track the build and deployment process of custom provider versions. View deployment status and logs."
    },
    {
      "name": "Custom Provider Versions",
      "description": "Versions represent different releases of a custom provider. Each version can be deployed to environments."
    },
    {
      "name": "Custom Providers",
      "description": "Custom providers allow you to deploy your own MCP servers. Create providers from container images, remote URLs, or serverless functions."
    },
    {
      "name": "Documents",
      "description": "Create and manage instance documents backed by Cargo."
    },
    {
      "name": "Document Participants",
      "description": "Inspect document participants and their linked Metorial resources."
    },
    {
      "name": "Document Versions",
      "description": "Inspect document version history for an instance document."
    },
    {
      "name": "Integration Instance Group Providers",
      "description": "Integration instance group providers define the effective routed provider set for an integration instance group."
    },
    {
      "name": "Integration Instance Groups",
      "description": "Integration instance groups combine instance providers into a grouped routed configuration."
    },
    {
      "name": "Integration Instance Providers",
      "description": "Integration instance providers resolve the effective per-instance provider materialization for an integration."
    },
    {
      "name": "Integration Instances",
      "description": "Integration instances materialize an integration for a specific actor, identity, or runtime configuration."
    },
    {
      "name": "Integration Providers",
      "description": "Integration providers define the shared provider-level contract for a given integration."
    },
    {
      "name": "Integration Setup Sessions",
      "description": "Integration setup sessions orchestrate configuring every provider required by an integration instance."
    },
    {
      "name": "Integrations",
      "description": "Integrations define reusable provider contracts that can then be materialized into integration instances."
    },
    {
      "name": "Portal",
      "description": "Use Portals to create custom branded MCP server marketplaces for your organization."
    },
    {
      "name": "Portal Access",
      "description": "Manage which consumer groups can access portal provider templates and MCP servers."
    },
    {
      "name": "Portal Access Requests",
      "description": "Review and resolve access requests for a portal."
    },
    {
      "name": "Portal Consumer Groups",
      "description": "Manage the consumer groups that drive portal visibility and access rules."
    },
    {
      "name": "Portal Consumer Invites",
      "description": "List and inspect consumer invites for a portal."
    },
    {
      "name": "Portal Consumer Profiles",
      "description": "Manage the consumers and effective group assignments for a portal."
    },
    {
      "name": "Portal Listings",
      "description": "Read the shared listings available on a portal surface."
    },
    {
      "name": "Provider Auth Exports",
      "description": "An auth export lets you extract OAuth tokens or credentials from Metorial to use in other systems, avoiding duplicate authentication flows."
    },
    {
      "name": "Provider Auth Imports",
      "description": "An auth import lets you bring in existing OAuth tokens or credentials from another system, so users don't need to re-authenticate to use Metorial."
    },
    {
      "name": "Provider Auth Configs",
      "description": "An auth config is a user's authenticated connection to a provider. Created when a user completes OAuth or manually enters an API token."
    },
    {
      "name": "Provider Auth Credentials",
      "description": "Auth credentials store your OAuth app registration (client ID, client secret, and scopes). These are the app-level credentials you get from a service like GitHub or Slack."
    },
    {
      "name": "Provider Auth Methods",
      "description": "An auth method defines one way to authenticate with a provider (OAuth, API token, or custom credentials). A provider version may support multiple auth methods."
    },
    {
      "name": "Provider Configs",
      "description": "A config holds settings for a deployment, like API endpoints or feature flags. Create configs with values directly, or from a saved config vault with pre-saved values."
    },
    {
      "name": "Provider Config Vaults",
      "description": "A config vault is a saved, reusable set of configuration values. Use vaults to store credentials once and apply them to multiple deployments without re-entering."
    },
    {
      "name": "Provider Deployments",
      "description": "A deployment is a running instance of a provider, pinned to a specific version. Deployments support custom configuration values and user authentication."
    },
    {
      "name": "Provider Runs",
      "description": "Provider runs track the execution of provider operations within a session. This read-only resource provides visibility into provider activity."
    },
    {
      "name": "Provider Setup Sessions",
      "description": "A setup session tracks an in-progress OAuth flow, storing state during the redirect. On success, it creates an auth config with the user's access token."
    },
    {
      "name": "Provider Specifications",
      "description": "A specification defines what a provider version can do: its tools, auth methods, and required configuration fields."
    },
    {
      "name": "Provider Tools",
      "description": "A tool is a single action a provider can perform like 'search_issues' or 'send_message'. Tools are what AI agents call via MCP. By default, tools from the latest provider version are returned. Use the optional version filter to get tools for a specific version."
    },
    {
      "name": "Provider Triggers",
      "description": "A provider trigger describes an event source a provider can emit for callbacks. Use triggers to discover which callback subscriptions a provider version supports."
    },
    {
      "name": "Provider Versions",
      "description": "A version is a specific release of a provider (e.g., v1.2.0). Each version has its own tools, auth methods, and config schema. Deployments are pinned to a version for security reasons."
    },
    {
      "name": "Providers",
      "description": "A provider is a read-only template for an MCP server integration (like GitHub or Slack). To use a provider, create a deployment from it."
    },
    {
      "name": "Session Connections",
      "description": "Session connections represent the MCP connections established within a session. This read-only resource provides visibility into the connection state and capabilities."
    },
    {
      "name": "Session Errors",
      "description": "Session errors track errors that occurred during a session. This read-only resource provides visibility into issues that happened during provider execution."
    },
    {
      "name": "Session Messages",
      "description": "Session messages represent the MCP protocol messages exchanged during a session. This read-only resource provides visibility into the communication between clients and providers."
    },
    {
      "name": "Session Participants",
      "description": "Session participants represent the clients and other entities that are connected to a session. This read-only resource tracks who is participating in a session."
    },
    {
      "name": "Session Providers",
      "description": "Session providers represent the providers that are actively connected to a session. Each session can have multiple providers, and providers can be added or removed during the session lifecycle."
    },
    {
      "name": "Session Template Providers",
      "description": "Session template providers define which providers should be included when a session is created from a template."
    },
    {
      "name": "Session Templates",
      "description": "Session templates define reusable configurations for sessions, including which providers to include. Templates can be used to quickly create new sessions with consistent settings."
    },
    {
      "name": "Sessions",
      "description": "Sessions are connections to providers that allow clients to interact with MCP servers. Each session can include one or more provider deployments."
    },
    {
      "name": "Skill Exports",
      "description": "Export skills, skill plugins, and skill marketplaces as zip files."
    },
    {
      "name": "Skill Groups",
      "description": "Skill groups organize skills into reusable collections."
    },
    {
      "name": "Skill Group Items",
      "description": "Skill group items link groups to skills."
    },
    {
      "name": "Skill Imports",
      "description": "Import skills from public repositories or uploaded files."
    },
    {
      "name": "Skill Marketplaces",
      "description": "Manage skill marketplaces for an instance."
    },
    {
      "name": "Skill Marketplace Plugins",
      "description": "Manage plugin links for skill marketplaces."
    },
    {
      "name": "Skill Plugins",
      "description": "Manage skill plugins for an instance."
    },
    {
      "name": "Skill Plugin Skills",
      "description": "Manage skill links for skill plugins."
    },
    {
      "name": "Skill Templates",
      "description": "Skill templates define reusable starting points for skills."
    },
    {
      "name": "Skill Template Items",
      "description": "Skill template items link template definitions to provider and integration items."
    },
    {
      "name": "Skills",
      "description": "Skills group provider and integration capabilities into reusable, owned compositions."
    },
    {
      "name": "Skill Agents",
      "description": "Manage sub-agents attached to a skill."
    },
    {
      "name": "Skill Items",
      "description": "Skill items attach integrations and providers to skills."
    },
    {
      "name": "Skill Participants",
      "description": "Inspect participants associated with an instance skill."
    },
    {
      "name": "Skill Versions",
      "description": "Inspect version history and snapshots for a skill."
    },
    {
      "name": "Skill Configurations",
      "description": "Manage configuration profiles for skill execution."
    },
    {
      "name": "Stores",
      "description": "Create and manage instance stores backed by Cargo."
    },
    {
      "name": "Store Items",
      "description": "Inspect items within an instance store."
    },
    {
      "name": "Store Participants",
      "description": "Inspect participants assigned to an instance store."
    },
    {
      "name": "Tool Calls",
      "description": "Tool calls represent individual tool invocations within a session. They track the input, output, and status of each tool execution."
    }
  ],
  "paths": {
    "/callback-destinations": {
      "get": {
        "operationId": "callbacks_destinations_list",
        "summary": "List callback destinations",
        "description": "Returns a paginated list of callback destinations.",
        "tags": [
          "Callback Destinations"
        ],
        "externalDocs": {
          "description": "Callback Destinations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "callback_id",
            "in": "query",
            "required": false,
            "description": "Only include destinations linked to the callback ID(s).",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter callback destination creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for callback destination creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for callback destination creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter callback destination last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for callback destination last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for callback destination last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDestinationList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "callbacks_destinations_create",
        "summary": "Create callback destination",
        "description": "Creates a new callback destination.",
        "tags": [
          "Callback Destinations"
        ],
        "externalDocs": {
          "description": "Callback Destinations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDestination"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest"
              }
            }
          }
        }
      }
    },
    "/callback-destinations/{callback_destination_id}": {
      "delete": {
        "operationId": "callbacks_destinations_delete",
        "summary": "Delete callback destination",
        "description": "Archives a callback destination.",
        "tags": [
          "Callback Destinations"
        ],
        "externalDocs": {
          "description": "Callback Destinations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_destination_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback destination.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDestination"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "callbacks_destinations_get",
        "summary": "Get callback destination",
        "description": "Retrieves a specific callback destination.",
        "tags": [
          "Callback Destinations"
        ],
        "externalDocs": {
          "description": "Callback Destinations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_destination_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback destination.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDestination"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "callbacks_destinations_update",
        "summary": "Update callback destination",
        "description": "Updates a callback destination.",
        "tags": [
          "Callback Destinations"
        ],
        "externalDocs": {
          "description": "Callback Destinations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_destination_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback destination.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDestination"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest2"
              }
            }
          }
        }
      }
    },
    "/callbacks": {
      "get": {
        "operationId": "callbacks_list",
        "summary": "List callbacks",
        "description": "Returns a paginated list of callbacks.",
        "tags": [
          "Callbacks"
        ],
        "externalDocs": {
          "description": "Callbacks reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by callback ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by callback lifecycle status",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter callback creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for callback creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for callback creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter callback last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for callback last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for callback last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "callbacks_create",
        "summary": "Create callback",
        "description": "Creates a new callback definition.",
        "tags": [
          "Callbacks"
        ],
        "externalDocs": {
          "description": "Callbacks reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Callback"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest3"
              }
            }
          }
        }
      }
    },
    "/callbacks/{callback_id}": {
      "delete": {
        "operationId": "callbacks_delete",
        "summary": "Delete callback",
        "description": "Archives a callback definition.",
        "tags": [
          "Callbacks"
        ],
        "externalDocs": {
          "description": "Callbacks reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Callback"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "callbacks_get",
        "summary": "Get callback",
        "description": "Retrieves a specific callback by ID.",
        "tags": [
          "Callbacks"
        ],
        "externalDocs": {
          "description": "Callbacks reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Callback"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "callbacks_update",
        "summary": "Update callback",
        "description": "Updates a callback definition.",
        "tags": [
          "Callbacks"
        ],
        "externalDocs": {
          "description": "Callbacks reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Callback"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest4"
              }
            }
          }
        }
      }
    },
    "/callbacks/{callback_id}/events": {
      "get": {
        "operationId": "callbacks_events_list",
        "summary": "List callback events",
        "description": "Returns a paginated list of callback events.",
        "tags": [
          "Callback Events"
        ],
        "externalDocs": {
          "description": "Callback Events reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by callback event ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by event type(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "source_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider source ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEventList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/callbacks/{callback_id}/events/{callback_event_id}": {
      "get": {
        "operationId": "callbacks_events_get",
        "summary": "Get callback event",
        "description": "Retrieves a specific callback event.",
        "tags": [
          "Callback Events"
        ],
        "externalDocs": {
          "description": "Callback Events reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "callback_event_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback event.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEvent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/callbacks/{callback_id}/instances": {
      "get": {
        "operationId": "callbacks_instances_list",
        "summary": "List callback instances",
        "description": "Returns a paginated list of callback instances.",
        "tags": [
          "Callback Instances"
        ],
        "externalDocs": {
          "description": "Callback Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by callback instance ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by callback instance status",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "attached",
                    "detached"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "attached",
                      "detached"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter callback instance creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for callback instance creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for callback instance creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter callback instance last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for callback instance last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for callback instance last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackInstanceList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "callbacks_instances_create",
        "summary": "Create callback instance",
        "description": "Attaches a callback to a config and optional auth config.",
        "tags": [
          "Callback Instances"
        ],
        "externalDocs": {
          "description": "Callback Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest5"
              }
            }
          }
        }
      }
    },
    "/callbacks/{callback_id}/instances/{callback_instance_id}": {
      "delete": {
        "operationId": "callbacks_instances_delete",
        "summary": "Delete callback instance",
        "description": "Detaches a callback instance.",
        "tags": [
          "Callback Instances"
        ],
        "externalDocs": {
          "description": "Callback Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "callback_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "callbacks_instances_get",
        "summary": "Get callback instance",
        "description": "Retrieves a specific callback instance by ID.",
        "tags": [
          "Callback Instances"
        ],
        "externalDocs": {
          "description": "Callback Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "callback_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "callback_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the callback instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-provider-deployments": {
      "get": {
        "operationId": "custom_providers_deployments_list",
        "summary": "List custom provider deployments",
        "description": "Returns a paginated list of deployments for a custom provider.",
        "tags": [
          "Custom Provider Deployments"
        ],
        "externalDocs": {
          "description": "Custom Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (queued, deploying, succeeded, failed)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "queued",
                    "deploying",
                    "succeeded",
                    "failed"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "queued",
                      "deploying",
                      "succeeded",
                      "failed"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by deployment IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "custom_provider_version_id",
            "in": "query",
            "required": false,
            "description": "Filter by version IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "custom_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by custom provider IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter custom provider deployment creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for custom provider deployment creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for custom provider deployment creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter custom provider deployment last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for custom provider deployment last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for custom provider deployment last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderDeploymentList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-provider-deployments/{custom_provider_deployment_id}": {
      "get": {
        "operationId": "custom_providers_deployments_get",
        "summary": "Get custom provider deployment",
        "description": "Retrieves a specific deployment.",
        "tags": [
          "Custom Provider Deployments"
        ],
        "externalDocs": {
          "description": "Custom Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_deployment_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider deployment.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderDeployment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-provider-deployments/{custom_provider_deployment_id}/logs": {
      "get": {
        "operationId": "custom_providers_deployments_get_logs",
        "summary": "Get deployment logs",
        "description": "Retrieves the build and deployment logs for a deployment.",
        "tags": [
          "Custom Provider Deployments"
        ],
        "externalDocs": {
          "description": "Custom Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_deployment_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider deployment.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderDeploymentLogs"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-provider-versions": {
      "get": {
        "operationId": "custom_providers_versions_list",
        "summary": "List custom provider versions",
        "description": "Returns a paginated list of versions for a custom provider.",
        "tags": [
          "Custom Provider Versions"
        ],
        "externalDocs": {
          "description": "Custom Provider Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by deployment status",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "queued",
                    "deploying",
                    "deployment_succeeded",
                    "deployment_failed"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "queued",
                      "deploying",
                      "deployment_succeeded",
                      "deployment_failed"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by version ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider IDs (matches providers connected to sessions)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider version IDs (matches providers connected to sessions)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "custom_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by custom provider IDs (matches providers connected to sessions)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "custom_provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by custom provider deployment IDs (matches providers connected to sessions)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "custom_provider_environment_id",
            "in": "query",
            "required": false,
            "description": "Filter by custom provider environment IDs (matches providers connected to sessions)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter custom provider version creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for custom provider version creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for custom provider version creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter custom provider version last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for custom provider version last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for custom provider version last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderVersionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "custom_providers_versions_create",
        "summary": "Create custom provider version",
        "description": "Creates a new version for a custom provider.",
        "tags": [
          "Custom Provider Versions"
        ],
        "externalDocs": {
          "description": "Custom Provider Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderVersion"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest6"
              }
            }
          }
        }
      }
    },
    "/custom-provider-versions/{custom_provider_version_id}": {
      "get": {
        "operationId": "custom_providers_versions_get",
        "summary": "Get custom provider version",
        "description": "Retrieves a specific version of a custom provider.",
        "tags": [
          "Custom Provider Versions"
        ],
        "externalDocs": {
          "description": "Custom Provider Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_version_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider version.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderVersion"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-provider-versions/{custom_provider_version_id}/env": {
      "get": {
        "operationId": "custom_providers_versions_get_env",
        "summary": "Get custom provider version environment",
        "description": "Retrieves the environment variables for a specific version of a custom provider.",
        "tags": [
          "Custom Provider Versions"
        ],
        "externalDocs": {
          "description": "Custom Provider Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_version_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider version.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderEnv"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-providers": {
      "get": {
        "operationId": "custom_providers_list",
        "summary": "List custom providers",
        "description": "Returns a paginated list of custom providers.",
        "tags": [
          "Custom Providers"
        ],
        "externalDocs": {
          "description": "Custom Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by type (container, function, remote)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "container",
                    "function",
                    "remote"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "container",
                      "function",
                      "remote"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by custom provider IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider IDs (matches providers connected to sessions)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter custom provider creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for custom provider creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for custom provider creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter custom provider last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for custom provider last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for custom provider last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "custom_providers_create",
        "summary": "Create custom provider",
        "description": "Creates a new custom provider.",
        "tags": [
          "Custom Providers"
        ],
        "externalDocs": {
          "description": "Custom Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest7"
              }
            }
          }
        }
      }
    },
    "/custom-providers/{custom_provider_id}": {
      "get": {
        "operationId": "custom_providers_get",
        "summary": "Get custom provider",
        "description": "Retrieves a specific custom provider by ID.",
        "tags": [
          "Custom Providers"
        ],
        "externalDocs": {
          "description": "Custom Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "custom_providers_update",
        "summary": "Update custom provider",
        "description": "Updates a specific custom provider.",
        "tags": [
          "Custom Providers"
        ],
        "externalDocs": {
          "description": "Custom Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest8"
              }
            }
          }
        }
      }
    },
    "/custom-providers/{custom_provider_id}/archive": {
      "post": {
        "operationId": "custom_providers_archive",
        "summary": "Archive custom provider",
        "description": "Archives a specific custom provider and disables new connections to it.",
        "tags": [
          "Custom Providers"
        ],
        "externalDocs": {
          "description": "Custom Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/custom-providers/{custom_provider_id}/env": {
      "get": {
        "operationId": "custom_providers_get_env",
        "summary": "Get custom provider environment",
        "description": "Retrieves the environment variables for a specific custom provider by ID.",
        "tags": [
          "Custom Providers"
        ],
        "externalDocs": {
          "description": "Custom Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "custom_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the custom provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomProviderEnv"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/documents": {
      "get": {
        "operationId": "documents_list",
        "summary": "List documents",
        "description": "Returns a paginated list of documents owned by the instance.",
        "tags": [
          "Documents"
        ],
        "externalDocs": {
          "description": "Documents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by document ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "file_id",
            "in": "query",
            "required": false,
            "description": "Filter by file ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "store_id",
            "in": "query",
            "required": false,
            "description": "Filter by store ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "parent_document_id",
            "in": "query",
            "required": false,
            "description": "Filter by parent document ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "documents_create",
        "summary": "Create document",
        "description": "Creates a new document for the instance.",
        "tags": [
          "Documents"
        ],
        "externalDocs": {
          "description": "Documents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest9"
              }
            }
          }
        }
      }
    },
    "/documents/{document_id}": {
      "delete": {
        "operationId": "documents_delete",
        "summary": "Delete document by ID",
        "description": "Deletes a specific document.",
        "tags": [
          "Documents"
        ],
        "externalDocs": {
          "description": "Documents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "documents_get",
        "summary": "Get document by ID",
        "description": "Retrieves a document by its ID.",
        "tags": [
          "Documents"
        ],
        "externalDocs": {
          "description": "Documents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "documents_update",
        "summary": "Update document by ID",
        "description": "Updates a specific document.",
        "tags": [
          "Documents"
        ],
        "externalDocs": {
          "description": "Documents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest10"
              }
            }
          }
        }
      }
    },
    "/documents/{document_id}/clone": {
      "post": {
        "operationId": "documents_clone",
        "summary": "Clone document by ID",
        "description": "Clones a specific document.",
        "tags": [
          "Documents"
        ],
        "externalDocs": {
          "description": "Documents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest11"
              }
            }
          }
        }
      }
    },
    "/documents/{document_id}/participants": {
      "get": {
        "operationId": "documents_participants_list",
        "summary": "List document participants",
        "description": "Returns a paginated list of participants for a specific document.",
        "tags": [
          "Document Participants"
        ],
        "externalDocs": {
          "description": "Document Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by document participant ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentParticipantList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/documents/{document_id}/participants/{document_participant_id}": {
      "get": {
        "operationId": "documents_participants_get",
        "summary": "Get document participant by ID",
        "description": "Retrieves a specific document participant by its ID.",
        "tags": [
          "Document Participants"
        ],
        "externalDocs": {
          "description": "Document Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "document_participant_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document participant.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentParticipant"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/documents/{document_id}/versions": {
      "get": {
        "operationId": "documents_versions_list",
        "summary": "List document versions",
        "description": "Returns a paginated list of versions for a specific document.",
        "tags": [
          "Document Versions"
        ],
        "externalDocs": {
          "description": "Document Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by document version ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by creation time"
                }
              }
            }
          },
          {
            "name": "last_edited_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by last edit time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by last edit time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by last edit time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentVersionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/documents/{document_id}/versions/{document_version_id}": {
      "get": {
        "operationId": "documents_versions_get",
        "summary": "Get document version by ID",
        "description": "Retrieves a specific document version by its ID.",
        "tags": [
          "Document Versions"
        ],
        "externalDocs": {
          "description": "Document Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "document_version_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the document version.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentVersion"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/integration-instance-group-providers": {
      "get": {
        "operationId": "integrations_instance_groups_providers_list",
        "summary": "List integration instance group providers",
        "description": "Returns a paginated list of integration instance group providers.",
        "tags": [
          "Integration Instance Group Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Group Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_group_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance group provider creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance group provider creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance group provider creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance group provider last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance group provider last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance group provider last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroupProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/integration-instance-group-providers/{integration_instance_group_provider_id}": {
      "delete": {
        "operationId": "integrations_instance_groups_providers_delete",
        "summary": "Delete integration instance group provider",
        "description": "Archives a specific integration instance group provider.",
        "tags": [
          "Integration Instance Group Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Group Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroupProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "integrations_instance_groups_providers_get",
        "summary": "Get integration instance group provider",
        "description": "Retrieves a specific integration instance group provider.",
        "tags": [
          "Integration Instance Group Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Group Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroupProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/integration-instance-groups": {
      "get": {
        "operationId": "integrations_instance_groups_list",
        "summary": "List integration instance groups",
        "description": "Returns a paginated list of integration instance groups.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "draft",
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "draft",
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance group creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance group creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance group creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance group last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance group last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance group last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroupList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "integrations_instance_groups_create",
        "summary": "Create integration instance group",
        "description": "Creates a new integration instance group.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest12"
              }
            }
          }
        }
      }
    },
    "/integration-instance-groups/{integration_instance_group_id}": {
      "delete": {
        "operationId": "integrations_instance_groups_delete",
        "summary": "Delete integration instance group",
        "description": "Archives a specific integration instance group.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "integrations_instance_groups_get",
        "summary": "Get integration instance group",
        "description": "Retrieves a specific integration instance group.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "integrations_instance_groups_update",
        "summary": "Update integration instance group",
        "description": "Updates a specific integration instance group.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest13"
              }
            }
          }
        }
      }
    },
    "/integration-instance-groups/{integration_instance_group_id}/providers/{integration_instance_provider_id}": {
      "put": {
        "operationId": "integrations_instance_groups_providers_set",
        "summary": "Set integration instance group provider",
        "description": "Creates or updates the effective integration instance group provider materialization.",
        "tags": [
          "Integration Instance Group Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Group Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "integration_instance_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceGroupProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest14"
              }
            }
          }
        }
      }
    },
    "/integration-instance-groups/{integration_instance_group_id}/session": {
      "post": {
        "operationId": "integrations_instance_groups_create_session",
        "summary": "Create integration instance group session",
        "description": "Creates a session from the shared session template of a specific integration instance group.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest15"
              }
            }
          }
        }
      }
    },
    "/integration-instance-groups/{integration_instance_group_id}/session-template": {
      "post": {
        "operationId": "integrations_instance_groups_create_session_template",
        "summary": "Create integration instance group session template",
        "description": "Creates or updates the shared session template for a specific integration instance group.",
        "tags": [
          "Integration Instance Groups"
        ],
        "externalDocs": {
          "description": "Integration Instance Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest15"
              }
            }
          }
        }
      }
    },
    "/integration-instance-providers": {
      "get": {
        "operationId": "integrations_instances_providers_list",
        "summary": "List integration instance providers",
        "description": "Returns a paginated list of integration instance providers.",
        "tags": [
          "Integration Instance Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance provider creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance provider creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance provider creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance provider last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance provider last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance provider last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/integration-instance-providers/{integration_instance_provider_id}": {
      "get": {
        "operationId": "integrations_instances_providers_get",
        "summary": "Get integration instance provider",
        "description": "Retrieves a specific integration instance provider.",
        "tags": [
          "Integration Instance Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/integration-instances": {
      "get": {
        "operationId": "integrations_instances_list",
        "summary": "List integration instances",
        "description": "Returns a paginated list of integration instances.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "draft",
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "draft",
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_credential_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_actor_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration instance last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration instance last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration instance last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "integrations_instances_create",
        "summary": "Create integration instance",
        "description": "Creates a new integration instance.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest16"
              }
            }
          }
        }
      }
    },
    "/integration-instances/{integration_instance_id}": {
      "delete": {
        "operationId": "integrations_instances_delete",
        "summary": "Delete integration instance",
        "description": "Archives a specific integration instance.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "integrations_instances_get",
        "summary": "Get integration instance",
        "description": "Retrieves a specific integration instance.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "integrations_instances_update",
        "summary": "Update integration instance",
        "description": "Updates a specific integration instance.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest17"
              }
            }
          }
        }
      }
    },
    "/integration-instances/{integration_instance_id}/providers/{provider_id}": {
      "put": {
        "operationId": "integrations_instances_providers_set",
        "summary": "Set integration instance provider",
        "description": "Creates or updates the effective integration instance provider materialization.",
        "tags": [
          "Integration Instance Providers"
        ],
        "externalDocs": {
          "description": "Integration Instance Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInstanceProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest18"
              }
            }
          }
        }
      }
    },
    "/integration-instances/{integration_instance_id}/session": {
      "post": {
        "operationId": "integrations_instances_create_session",
        "summary": "Create integration instance session",
        "description": "Creates a session from the shared session template of a specific integration instance.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest15"
              }
            }
          }
        }
      }
    },
    "/integration-instances/{integration_instance_id}/session-template": {
      "post": {
        "operationId": "integrations_instances_create_session_template",
        "summary": "Create integration instance session template",
        "description": "Creates or updates the shared session template for a specific integration instance.",
        "tags": [
          "Integration Instances"
        ],
        "externalDocs": {
          "description": "Integration Instances reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_instance_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration instance.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest15"
              }
            }
          }
        }
      }
    },
    "/integration-providers": {
      "get": {
        "operationId": "integrations_providers_list",
        "summary": "List integration providers",
        "description": "Returns a paginated list of integration providers.",
        "tags": [
          "Integration Providers"
        ],
        "externalDocs": {
          "description": "Integration Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_method_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_credentials_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration provider creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration provider creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration provider creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration provider last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration provider last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration provider last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "integrations_providers_create",
        "summary": "Create integration provider",
        "description": "Creates a new integration provider.",
        "tags": [
          "Integration Providers"
        ],
        "externalDocs": {
          "description": "Integration Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest19"
              }
            }
          }
        }
      }
    },
    "/integration-providers/{integration_provider_id}": {
      "delete": {
        "operationId": "integrations_providers_delete",
        "summary": "Delete integration provider",
        "description": "Archives a specific integration provider.",
        "tags": [
          "Integration Providers"
        ],
        "externalDocs": {
          "description": "Integration Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "integrations_providers_get",
        "summary": "Get integration provider",
        "description": "Retrieves a specific integration provider.",
        "tags": [
          "Integration Providers"
        ],
        "externalDocs": {
          "description": "Integration Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "integrations_providers_update",
        "summary": "Update integration provider",
        "description": "Updates a specific integration provider.",
        "tags": [
          "Integration Providers"
        ],
        "externalDocs": {
          "description": "Integration Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest20"
              }
            }
          }
        }
      }
    },
    "/integration-setup-sessions": {
      "get": {
        "operationId": "integrations_setup_sessions_list",
        "summary": "List integration setup sessions",
        "description": "Returns a paginated list of integration setup sessions.",
        "tags": [
          "Integration Setup Sessions"
        ],
        "externalDocs": {
          "description": "Integration Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "successful",
                    "expired",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "pending",
                      "successful",
                      "expired",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_instance_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration setup session creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration setup session creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration setup session creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration setup session last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration setup session last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration setup session last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationSetupSessionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "integrations_setup_sessions_create",
        "summary": "Create integration setup session",
        "description": "Creates a new integration setup session and draft integration instance.",
        "tags": [
          "Integration Setup Sessions"
        ],
        "externalDocs": {
          "description": "Integration Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationSetupSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest21"
              }
            }
          }
        }
      }
    },
    "/integration-setup-sessions/{integration_setup_session_id}": {
      "get": {
        "operationId": "integrations_setup_sessions_get",
        "summary": "Get integration setup session",
        "description": "Retrieves a specific integration setup session.",
        "tags": [
          "Integration Setup Sessions"
        ],
        "externalDocs": {
          "description": "Integration Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_setup_session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration setup session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationSetupSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/integrations": {
      "get": {
        "operationId": "integrations_list",
        "summary": "List integrations",
        "description": "Returns a paginated list of integrations.",
        "tags": [
          "Integrations"
        ],
        "externalDocs": {
          "description": "Integrations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter integration creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter integration last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for integration last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for integration last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "integrations_create",
        "summary": "Create integration",
        "description": "Creates a new integration.",
        "tags": [
          "Integrations"
        ],
        "externalDocs": {
          "description": "Integrations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest22"
              }
            }
          }
        }
      }
    },
    "/integrations/{integration_id}": {
      "delete": {
        "operationId": "integrations_delete",
        "summary": "Delete integration",
        "description": "Archives a specific integration.",
        "tags": [
          "Integrations"
        ],
        "externalDocs": {
          "description": "Integrations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "integrations_get",
        "summary": "Get integration",
        "description": "Retrieves a specific integration.",
        "tags": [
          "Integrations"
        ],
        "externalDocs": {
          "description": "Integrations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "integrations_update",
        "summary": "Update integration",
        "description": "Updates a specific integration.",
        "tags": [
          "Integrations"
        ],
        "externalDocs": {
          "description": "Integrations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the integration.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Integration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest23"
              }
            }
          }
        }
      }
    },
    "/portals": {
      "get": {
        "operationId": "portals_list",
        "summary": "List portals",
        "description": "Returns a paginated list of portals.",
        "tags": [
          "Portal"
        ],
        "externalDocs": {
          "description": "Portal reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "portals_create",
        "summary": "Create portal",
        "description": "Creates a new portal for the instance.",
        "tags": [
          "Portal"
        ],
        "externalDocs": {
          "description": "Portal reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Portal"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest24"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}": {
      "delete": {
        "operationId": "portals_delete",
        "summary": "Delete portal",
        "description": "Archives a portal.",
        "tags": [
          "Portal"
        ],
        "externalDocs": {
          "description": "Portal reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Portal"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "portals_get",
        "summary": "Get portal",
        "description": "Retrieves details for a specific portal.",
        "tags": [
          "Portal"
        ],
        "externalDocs": {
          "description": "Portal reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Portal"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "portals_update",
        "summary": "Update portal",
        "description": "Updates an existing portal for the instance.",
        "tags": [
          "Portal"
        ],
        "externalDocs": {
          "description": "Portal reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Portal"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest25"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/access": {
      "get": {
        "operationId": "portals_access_list",
        "summary": "List portal access",
        "description": "Returns a paginated list of consumer access rules for a portal.",
        "tags": [
          "Portal Access"
        ],
        "externalDocs": {
          "description": "Portal Access reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "consumer_group_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_template_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "magic_mcp_server_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_template_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_group_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_marketplace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_plugin_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_access_listing_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "provider_template",
                    "magic_mcp_server",
                    "skill",
                    "skill_template",
                    "skill_group",
                    "skill_marketplace",
                    "skill_plugin"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "provider_template",
                      "magic_mcp_server",
                      "skill",
                      "skill_template",
                      "skill_group",
                      "skill_marketplace",
                      "skill_plugin"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "portals_access_create",
        "summary": "Create portal access",
        "description": "Creates a new consumer access rule for the portal.",
        "tags": [
          "Portal Access"
        ],
        "externalDocs": {
          "description": "Portal Access reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccess"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest26"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/access-requests": {
      "get": {
        "operationId": "portals_access_requests_list",
        "summary": "List portal access requests",
        "description": "Returns a paginated list of access requests for a portal.",
        "tags": [
          "Portal Access Requests"
        ],
        "externalDocs": {
          "description": "Portal Access Requests reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "approved",
                    "rejected"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "pending",
                      "approved",
                      "rejected"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_profile_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessRequestList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/access-requests/{access_request_id}": {
      "get": {
        "operationId": "portals_access_requests_get",
        "summary": "Get portal access request",
        "description": "Retrieves a access request by ID.",
        "tags": [
          "Portal Access Requests"
        ],
        "externalDocs": {
          "description": "Portal Access Requests reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "access_request_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the access request.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessRequest"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "portals_access_requests_update",
        "summary": "Review portal access request",
        "description": "Approves or rejects a access request.",
        "tags": [
          "Portal Access Requests"
        ],
        "externalDocs": {
          "description": "Portal Access Requests reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "access_request_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the access request.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessRequest"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest27"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/access/{access_id}": {
      "delete": {
        "operationId": "portals_access_delete",
        "summary": "Delete portal access",
        "description": "Deletes a consumer access rule from the portal.",
        "tags": [
          "Portal Access"
        ],
        "externalDocs": {
          "description": "Portal Access reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "access_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the access.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccess"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "portals_access_get",
        "summary": "Get portal access",
        "description": "Retrieves a portal access rule by ID.",
        "tags": [
          "Portal Access"
        ],
        "externalDocs": {
          "description": "Portal Access reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "access_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the access.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccess"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "portals_access_update",
        "summary": "Update portal access",
        "description": "Updates the shared listing fields for a portal access rule.",
        "tags": [
          "Portal Access"
        ],
        "externalDocs": {
          "description": "Portal Access reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "access_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the access.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccess"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest28"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-groups": {
      "get": {
        "operationId": "portals_consumer_groups_list",
        "summary": "List portal consumer groups",
        "description": "Returns a paginated list of consumer groups for a portal.",
        "tags": [
          "Portal Consumer Groups"
        ],
        "externalDocs": {
          "description": "Portal Consumer Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerGroupList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "portals_consumer_groups_create",
        "summary": "Create portal consumer group",
        "description": "Creates a new consumer group for the portal.",
        "tags": [
          "Portal Consumer Groups"
        ],
        "externalDocs": {
          "description": "Portal Consumer Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest29"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-groups/{consumer_group_id}": {
      "delete": {
        "operationId": "portals_consumer_groups_delete",
        "summary": "Delete portal consumer group",
        "description": "Archives a consumer group for the portal.",
        "tags": [
          "Portal Consumer Groups"
        ],
        "externalDocs": {
          "description": "Portal Consumer Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "portals_consumer_groups_get",
        "summary": "Get portal consumer group",
        "description": "Retrieves a portal consumer group by ID.",
        "tags": [
          "Portal Consumer Groups"
        ],
        "externalDocs": {
          "description": "Portal Consumer Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "portals_consumer_groups_update",
        "summary": "Update portal consumer group",
        "description": "Updates a consumer group for the portal.",
        "tags": [
          "Portal Consumer Groups"
        ],
        "externalDocs": {
          "description": "Portal Consumer Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest30"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-invites": {
      "get": {
        "operationId": "portals_consumer_invites_list",
        "summary": "List portal consumer invites",
        "description": "Returns a paginated list of invites for a portal.",
        "tags": [
          "Portal Consumer Invites"
        ],
        "externalDocs": {
          "description": "Portal Consumer Invites reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "accepted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "pending",
                      "accepted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerInviteList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "portals_consumer_invites_create",
        "summary": "Create portal consumer invite",
        "description": "Invites a consumer to a portal.",
        "tags": [
          "Portal Consumer Invites"
        ],
        "externalDocs": {
          "description": "Portal Consumer Invites reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerInvite"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest31"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-invites/{consumer_invite_id}": {
      "get": {
        "operationId": "portals_consumer_invites_get",
        "summary": "Get portal consumer invite",
        "description": "Retrieves a portal consumer invite by ID.",
        "tags": [
          "Portal Consumer Invites"
        ],
        "externalDocs": {
          "description": "Portal Consumer Invites reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_invite_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer invite.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerInvite"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-profile": {
      "get": {
        "operationId": "portals_consumer_profiles_list",
        "summary": "List portal consumer profiles",
        "description": "Returns a paginated list of consumer profiles for a portal.",
        "tags": [
          "Portal Consumer Profiles"
        ],
        "externalDocs": {
          "description": "Portal Consumer Profiles reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_group_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "invited"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "invited"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerProfileList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "portals_consumer_profiles_create",
        "summary": "Create portal consumer profile",
        "description": "Creates a new portal consumer profile.",
        "tags": [
          "Portal Consumer Profiles"
        ],
        "externalDocs": {
          "description": "Portal Consumer Profiles reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest32"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-profile/{consumer_profile_id}": {
      "delete": {
        "operationId": "portals_consumer_profiles_delete",
        "summary": "Delete portal consumer profile",
        "description": "Soft-deletes a portal consumer profile.",
        "tags": [
          "Portal Consumer Profiles"
        ],
        "externalDocs": {
          "description": "Portal Consumer Profiles reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_profile_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer profile.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "portals_consumer_profiles_get",
        "summary": "Get portal consumer profile",
        "description": "Retrieves a portal consumer profile by ID.",
        "tags": [
          "Portal Consumer Profiles"
        ],
        "externalDocs": {
          "description": "Portal Consumer Profiles reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_profile_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer profile.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-profile/{consumer_profile_id}/assign-groups": {
      "post": {
        "operationId": "portals_consumer_profiles_assign_groups",
        "summary": "Assign portal consumer profile groups",
        "description": "Assigns one or more groups to a portal consumer profile.",
        "tags": [
          "Portal Consumer Profiles"
        ],
        "externalDocs": {
          "description": "Portal Consumer Profiles reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_profile_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer profile.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest33"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/consumer-profile/{consumer_profile_id}/unassign-groups": {
      "post": {
        "operationId": "portals_consumer_profiles_unassign_groups",
        "summary": "Unassign portal consumer profile groups",
        "description": "Removes one or more groups from a portal consumer profile.",
        "tags": [
          "Portal Consumer Profiles"
        ],
        "externalDocs": {
          "description": "Portal Consumer Profiles reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "consumer_profile_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the consumer profile.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest33"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/listings": {
      "post": {
        "operationId": "portals_listings_create",
        "summary": "Create portal listing",
        "description": "Creates a shared listing for a portal.",
        "tags": [
          "Portal Listings"
        ],
        "externalDocs": {
          "description": "Portal Listings reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessListing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest34"
              }
            }
          }
        }
      }
    },
    "/portals/{portal_id}/listings/{listing_id}": {
      "delete": {
        "operationId": "portals_listings_delete",
        "summary": "Delete portal listing",
        "description": "Deletes a portal listing and all consumer access attached to it.",
        "tags": [
          "Portal Listings"
        ],
        "externalDocs": {
          "description": "Portal Listings reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the listing.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessListing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "portals_listings_get",
        "summary": "Get portal listing",
        "description": "Retrieves one shared listing for a portal.",
        "tags": [
          "Portal Listings"
        ],
        "externalDocs": {
          "description": "Portal Listings reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the listing.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessListing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "portals_listings_update",
        "summary": "Update portal listing",
        "description": "Updates listing metadata for a portal listing.",
        "tags": [
          "Portal Listings"
        ],
        "externalDocs": {
          "description": "Portal Listings reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the portal.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the listing.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsumerAccessListing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest28"
              }
            }
          }
        }
      }
    },
    "/provider-auth-config-exports": {
      "get": {
        "operationId": "provider_deployments_auth_configs_exports_list",
        "summary": "List provider auth exports",
        "description": "Returns a paginated list of provider auth exports.",
        "tags": [
          "Provider Auth Exports"
        ],
        "externalDocs": {
          "description": "Provider Auth Exports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by export ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_credentials_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth credentials ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth export creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth export creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth export creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth export last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth export last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth export last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthExportList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_auth_configs_exports_create",
        "summary": "Create provider auth export",
        "description": "Exports authentication credentials from a provider.",
        "tags": [
          "Provider Auth Exports"
        ],
        "externalDocs": {
          "description": "Provider Auth Exports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthExport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest35"
              }
            }
          }
        }
      }
    },
    "/provider-auth-config-exports/{provider_auth_export_id}": {
      "get": {
        "operationId": "provider_deployments_auth_configs_exports_get",
        "summary": "Get provider auth export",
        "description": "Retrieves a specific provider auth export by ID.",
        "tags": [
          "Provider Auth Exports"
        ],
        "externalDocs": {
          "description": "Provider Auth Exports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_export_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth export.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthExport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-auth-config-imports": {
      "get": {
        "operationId": "provider_deployments_auth_configs_imports_list",
        "summary": "List provider auth imports",
        "description": "Returns a paginated list of provider auth imports.",
        "tags": [
          "Provider Auth Imports"
        ],
        "externalDocs": {
          "description": "Provider Auth Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by import ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_credentials_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth credentials ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth import creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth import creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth import creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth import last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth import last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth import last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthImportList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_auth_configs_imports_create",
        "summary": "Create provider auth import",
        "description": "Imports authentication credentials for a provider.",
        "tags": [
          "Provider Auth Imports"
        ],
        "externalDocs": {
          "description": "Provider Auth Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthImport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest36"
              }
            }
          }
        }
      }
    },
    "/provider-auth-config-imports/{provider_auth_import_id}": {
      "get": {
        "operationId": "provider_deployments_auth_configs_imports_get",
        "summary": "Get provider auth import",
        "description": "Retrieves a specific provider auth import by ID.",
        "tags": [
          "Provider Auth Imports"
        ],
        "externalDocs": {
          "description": "Provider Auth Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_import_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth import.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthImport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-auth-config-imports/schema": {
      "get": {
        "operationId": "provider_deployments_auth_configs_imports_get_schema",
        "summary": "Get auth import schema",
        "description": "Retrieves the JSON Schema for importing authentication credentials.",
        "tags": [
          "Provider Auth Imports"
        ],
        "externalDocs": {
          "description": "Provider Auth Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_auth_method_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthImportSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-auth-configs": {
      "get": {
        "operationId": "provider_deployments_auth_configs_list",
        "summary": "List provider auth configs",
        "description": "Returns a paginated list of provider auth configs.",
        "tags": [
          "Provider Auth Configs"
        ],
        "externalDocs": {
          "description": "Provider Auth Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "available_for_use",
            "in": "query",
            "required": false,
            "description": "Only return auth configs that are not owned by another integration instance provider.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "available_for_provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Only return auth configs that are not locked to a different provider deployment.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_auth_credentials_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth credentials ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_method_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth method ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_credential_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity credential ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth config creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth config creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth config creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth config last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth config last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth config last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthConfigList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_auth_configs_create",
        "summary": "Create provider auth config",
        "description": "Creates a new provider auth config.",
        "tags": [
          "Provider Auth Configs"
        ],
        "externalDocs": {
          "description": "Provider Auth Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthConfig"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest37"
              }
            }
          }
        }
      }
    },
    "/provider-auth-configs/{provider_auth_config_id}": {
      "delete": {
        "operationId": "provider_deployments_auth_configs_delete",
        "summary": "Delete provider auth config",
        "description": "Permanently deletes a provider auth config.",
        "tags": [
          "Provider Auth Configs"
        ],
        "externalDocs": {
          "description": "Provider Auth Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_config_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth config.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthConfig"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "provider_deployments_auth_configs_get",
        "summary": "Get provider auth config",
        "description": "Retrieves a specific provider auth config by ID.",
        "tags": [
          "Provider Auth Configs"
        ],
        "externalDocs": {
          "description": "Provider Auth Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_config_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth config.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthConfig"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "provider_deployments_auth_configs_update",
        "summary": "Update provider auth config",
        "description": "Updates a specific provider auth config.",
        "tags": [
          "Provider Auth Configs"
        ],
        "externalDocs": {
          "description": "Provider Auth Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_config_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth config.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthConfig"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest38"
              }
            }
          }
        }
      }
    },
    "/provider-auth-credentials": {
      "get": {
        "operationId": "provider_deployments_auth_credentials_list",
        "summary": "List provider auth credentials",
        "description": "Returns a paginated list of provider auth credentials.",
        "tags": [
          "Provider Auth Credentials"
        ],
        "externalDocs": {
          "description": "Provider Auth Credentials reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by credential ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_method_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth method ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "description": "Filter by credential origin (custom, managed)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "custom",
                    "managed"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "custom",
                      "managed"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth credentials creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth credentials creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth credentials creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider auth credentials last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider auth credentials last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider auth credentials last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthCredentialsList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_auth_credentials_create",
        "summary": "Create provider auth credentials",
        "description": "Creates new provider auth credentials.",
        "tags": [
          "Provider Auth Credentials"
        ],
        "externalDocs": {
          "description": "Provider Auth Credentials reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthCredentials"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest39"
              }
            }
          }
        }
      }
    },
    "/provider-auth-credentials/{provider_auth_credentials_id}": {
      "delete": {
        "operationId": "provider_deployments_auth_credentials_delete",
        "summary": "Delete provider auth credentials",
        "description": "Permanently deletes provider auth credentials.",
        "tags": [
          "Provider Auth Credentials"
        ],
        "externalDocs": {
          "description": "Provider Auth Credentials reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_credentials_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth credentials.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthCredentials"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "provider_deployments_auth_credentials_get",
        "summary": "Get provider auth credentials",
        "description": "Retrieves specific provider auth credentials by ID.",
        "tags": [
          "Provider Auth Credentials"
        ],
        "externalDocs": {
          "description": "Provider Auth Credentials reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_credentials_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth credentials.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthCredentials"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "provider_deployments_auth_credentials_update",
        "summary": "Update provider auth credentials",
        "description": "Updates specific provider auth credentials.",
        "tags": [
          "Provider Auth Credentials"
        ],
        "externalDocs": {
          "description": "Provider Auth Credentials reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_credentials_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth credentials.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderAuthCredentials"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest40"
              }
            }
          }
        }
      }
    },
    "/provider-auth-methods": {
      "get": {
        "operationId": "providers_auth_methods_list",
        "summary": "List provider auth methods",
        "description": "Returns a paginated list of provider auth methods.",
        "tags": [
          "Provider Auth Methods"
        ],
        "externalDocs": {
          "description": "Provider Auth Methods reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderCapabilitiesAuthMethodList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-auth-methods/{provider_auth_method_id}": {
      "get": {
        "operationId": "providers_auth_methods_get",
        "summary": "Get provider auth method",
        "description": "Retrieves a specific provider auth method by ID.",
        "tags": [
          "Provider Auth Methods"
        ],
        "externalDocs": {
          "description": "Provider Auth Methods reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_auth_method_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider auth method.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderCapabilitiesAuthMethod"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-config-schema": {
      "get": {
        "operationId": "provider_deployments_configs_get_config_schema",
        "summary": "Get config schema",
        "description": "Retrieves the JSON Schema for configuration of this provider deployment.",
        "tags": [
          "Provider Configs"
        ],
        "externalDocs": {
          "description": "Provider Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-config-vaults": {
      "get": {
        "operationId": "provider_deployments_config_vaults_list",
        "summary": "List provider config vaults",
        "description": "Returns a paginated list of provider config vaults.",
        "tags": [
          "Provider Config Vaults"
        ],
        "externalDocs": {
          "description": "Provider Config Vaults reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by config vault ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_vault_id",
            "in": "query",
            "required": false,
            "description": "Filter by config vault ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider config vault creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider config vault creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider config vault creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider config vault last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider config vault last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider config vault last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigVaultList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_config_vaults_create",
        "summary": "Create provider config vault",
        "description": "Creates a new provider config vault.",
        "tags": [
          "Provider Config Vaults"
        ],
        "externalDocs": {
          "description": "Provider Config Vaults reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigVault"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest41"
              }
            }
          }
        }
      }
    },
    "/provider-config-vaults/{provider_config_vault_id}": {
      "delete": {
        "operationId": "provider_deployments_config_vaults_delete",
        "summary": "Delete provider config vault",
        "description": "Permanently deletes a provider config vault.",
        "tags": [
          "Provider Config Vaults"
        ],
        "externalDocs": {
          "description": "Provider Config Vaults reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_config_vault_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider config vault.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigVault"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "provider_deployments_config_vaults_get",
        "summary": "Get provider config vault",
        "description": "Retrieves a specific provider config vault by ID.",
        "tags": [
          "Provider Config Vaults"
        ],
        "externalDocs": {
          "description": "Provider Config Vaults reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_config_vault_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider config vault.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigVault"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "provider_deployments_config_vaults_update",
        "summary": "Update provider config vault",
        "description": "Updates a specific provider config vault.",
        "tags": [
          "Provider Config Vaults"
        ],
        "externalDocs": {
          "description": "Provider Config Vaults reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_config_vault_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider config vault.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigVault"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest42"
              }
            }
          }
        }
      }
    },
    "/provider-configs": {
      "get": {
        "operationId": "provider_deployments_configs_list",
        "summary": "List provider configs",
        "description": "Returns a paginated list of provider configs.",
        "tags": [
          "Provider Configs"
        ],
        "externalDocs": {
          "description": "Provider Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_specification_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider specification ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "available_for_use",
            "in": "query",
            "required": false,
            "description": "Only return configs that are not owned by another integration instance provider.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "available_for_provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Only return configs that are not locked to a different provider deployment.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_config_vault_id",
            "in": "query",
            "required": false,
            "description": "Filter by config vault ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_credential_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity credential ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider config creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider config creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider config creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider config last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider config last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider config last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_configs_create",
        "summary": "Create provider config",
        "description": "Creates a new provider config.",
        "tags": [
          "Provider Configs"
        ],
        "externalDocs": {
          "description": "Provider Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest43"
              }
            }
          }
        }
      }
    },
    "/provider-configs/{provider_config_id}": {
      "delete": {
        "operationId": "provider_deployments_configs_delete",
        "summary": "Delete provider config",
        "description": "Permanently deletes a provider config.",
        "tags": [
          "Provider Configs"
        ],
        "externalDocs": {
          "description": "Provider Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_config_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider config.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "provider_deployments_configs_get",
        "summary": "Get provider config",
        "description": "Retrieves a specific provider config by ID.",
        "tags": [
          "Provider Configs"
        ],
        "externalDocs": {
          "description": "Provider Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_config_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider config.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "provider_deployments_configs_update",
        "summary": "Update provider config",
        "description": "Updates a specific provider config.",
        "tags": [
          "Provider Configs"
        ],
        "externalDocs": {
          "description": "Provider Configs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_config_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider config.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest44"
              }
            }
          }
        }
      }
    },
    "/provider-deployments": {
      "get": {
        "operationId": "provider_deployments_list",
        "summary": "List provider deployments",
        "description": "Returns a paginated list of provider deployments.",
        "tags": [
          "Provider Deployments"
        ],
        "externalDocs": {
          "description": "Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": false,
            "description": "Filter by version ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_credential_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity credential ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by name or description",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider deployment creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider deployment creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider deployment creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider deployment last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider deployment last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider deployment last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_create",
        "summary": "Create provider deployment",
        "description": "Creates a new provider deployment.",
        "tags": [
          "Provider Deployments"
        ],
        "externalDocs": {
          "description": "Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deployment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest45"
              }
            }
          }
        }
      }
    },
    "/provider-deployments/{provider_deployment_id}": {
      "delete": {
        "operationId": "provider_deployments_delete",
        "summary": "Delete provider deployment",
        "description": "Permanently deletes a provider deployment.",
        "tags": [
          "Provider Deployments"
        ],
        "externalDocs": {
          "description": "Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_deployment_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider deployment.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deployment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "provider_deployments_get",
        "summary": "Get provider deployment",
        "description": "Retrieves a specific provider deployment by ID.",
        "tags": [
          "Provider Deployments"
        ],
        "externalDocs": {
          "description": "Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_deployment_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider deployment.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deployment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "provider_deployments_update",
        "summary": "Update provider deployment",
        "description": "Updates a specific provider deployment.",
        "tags": [
          "Provider Deployments"
        ],
        "externalDocs": {
          "description": "Provider Deployments reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_deployment_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider deployment.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deployment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest46"
              }
            }
          }
        }
      }
    },
    "/provider-runs": {
      "get": {
        "operationId": "provider_runs_list",
        "summary": "List all provider runs",
        "description": "Returns a paginated list of provider runs across all sessions.",
        "tags": [
          "Provider Runs"
        ],
        "externalDocs": {
          "description": "Provider Runs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by run status",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "running",
                    "stopped"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "running",
                      "stopped"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by provider run ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_connection_id",
            "in": "query",
            "required": false,
            "description": "Filter by session connection ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider version ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider run creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider run creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider run creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider run last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider run last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider run last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderRunList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-runs/{provider_run_id}": {
      "get": {
        "operationId": "provider_runs_get",
        "summary": "Get provider run",
        "description": "Retrieves a specific provider run by ID.",
        "tags": [
          "Provider Runs"
        ],
        "externalDocs": {
          "description": "Provider Runs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_run_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider run.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderRun"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-runs/{provider_run_id}/logs": {
      "get": {
        "operationId": "provider_runs_get_logs",
        "summary": "Get provider run logs",
        "description": "Retrieves the logs for a specific provider run.",
        "tags": [
          "Provider Runs"
        ],
        "externalDocs": {
          "description": "Provider Runs reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_run_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider run.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderRunLogs"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-setup-sessions": {
      "get": {
        "operationId": "provider_deployments_setup_sessions_list",
        "summary": "List provider setup sessions",
        "description": "Returns a paginated list of provider setup sessions.",
        "tags": [
          "Provider Setup Sessions"
        ],
        "externalDocs": {
          "description": "Provider Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by setup session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_method_id",
            "in": "query",
            "required": false,
            "description": "Filter by auth method ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_credentials_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth credentials ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by session status (archived, failed, completed, expired, pending)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "archived",
                    "failed",
                    "completed",
                    "expired",
                    "pending"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "archived",
                      "failed",
                      "completed",
                      "expired",
                      "pending"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider setup session creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider setup session creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider setup session creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider setup session last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider setup session last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider setup session last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupSessionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "provider_deployments_setup_sessions_create",
        "summary": "Create provider setup session",
        "description": "Creates a new provider setup session for OAuth authentication.",
        "tags": [
          "Provider Setup Sessions"
        ],
        "externalDocs": {
          "description": "Provider Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest47"
              }
            }
          }
        }
      }
    },
    "/provider-setup-sessions/{provider_setup_session_id}": {
      "delete": {
        "operationId": "provider_deployments_setup_sessions_delete",
        "summary": "Delete provider setup session",
        "description": "Deletes a provider setup session.",
        "tags": [
          "Provider Setup Sessions"
        ],
        "externalDocs": {
          "description": "Provider Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_setup_session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider setup session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "provider_deployments_setup_sessions_get",
        "summary": "Get provider setup session",
        "description": "Retrieves a specific provider setup session by ID.",
        "tags": [
          "Provider Setup Sessions"
        ],
        "externalDocs": {
          "description": "Provider Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_setup_session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider setup session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "provider_deployments_setup_sessions_update",
        "summary": "Update provider setup session",
        "description": "Updates a specific provider setup session.",
        "tags": [
          "Provider Setup Sessions"
        ],
        "externalDocs": {
          "description": "Provider Setup Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_setup_session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider setup session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest48"
              }
            }
          }
        }
      }
    },
    "/provider-specifications": {
      "get": {
        "operationId": "providers_specifications_list",
        "summary": "List provider specifications",
        "description": "Returns a paginated list of provider specifications.",
        "tags": [
          "Provider Specifications"
        ],
        "externalDocs": {
          "description": "Provider Specifications reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by specification ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider version ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider specification creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider specification creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider specification creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider specification last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider specification last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider specification last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpecificationList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-specifications/{provider_specification_id}": {
      "get": {
        "operationId": "providers_specifications_get",
        "summary": "Get provider specification",
        "description": "Retrieves a specific provider specification by ID.",
        "tags": [
          "Provider Specifications"
        ],
        "externalDocs": {
          "description": "Provider Specifications reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_specification_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider specification.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Specification"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-tools": {
      "get": {
        "operationId": "providers_tools_list",
        "summary": "List provider tools",
        "description": "Returns a paginated list of provider tools. By default returns tools from the latest version. Use optional filters to get tools for a specific version.",
        "tags": [
          "Provider Tools"
        ],
        "externalDocs": {
          "description": "Provider Tools reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider_auth_method_id",
            "in": "query",
            "required": false,
            "description": "Filter to tools compatible with one auth method ID, or the common compatible subset for multiple auth method IDs.",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-tools/{provider_tool_id}": {
      "get": {
        "operationId": "providers_tools_get",
        "summary": "Get provider tool",
        "description": "Retrieves a specific provider tool by ID.",
        "tags": [
          "Provider Tools"
        ],
        "externalDocs": {
          "description": "Provider Tools reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_tool_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider tool.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tool"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-triggers": {
      "get": {
        "operationId": "providers_triggers_list",
        "summary": "List provider triggers",
        "description": "Returns a paginated list of provider triggers for a specific provider version.",
        "tags": [
          "Provider Triggers"
        ],
        "externalDocs": {
          "description": "Provider Triggers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "provider_version_id",
            "in": "query",
            "required": true,
            "description": "Provider version to list triggers for",
            "schema": {
              "type": "string",
              "examples": [
                "pvr_3xYzAbCdEfGhIjKl"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderCapabilitiesTriggerList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-triggers/{provider_trigger_id}": {
      "get": {
        "operationId": "providers_triggers_get",
        "summary": "Get provider trigger",
        "description": "Retrieves a specific provider trigger by ID.",
        "tags": [
          "Provider Triggers"
        ],
        "externalDocs": {
          "description": "Provider Triggers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_trigger_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider trigger.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderCapabilitiesTrigger"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-versions": {
      "get": {
        "operationId": "providers_versions_list",
        "summary": "List provider versions",
        "description": "Returns a paginated list of provider versions.",
        "tags": [
          "Provider Versions"
        ],
        "externalDocs": {
          "description": "Provider Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by version ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter provider version creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider version creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider version creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter provider version last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for provider version last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for provider version last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/provider-versions/{provider_version_id}": {
      "get": {
        "operationId": "providers_versions_get",
        "summary": "Get provider version",
        "description": "Retrieves a specific provider version by ID.",
        "tags": [
          "Provider Versions"
        ],
        "externalDocs": {
          "description": "Provider Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_version_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider version.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Version"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/providers": {
      "get": {
        "operationId": "providers_list",
        "summary": "List providers",
        "description": "Returns a paginated list of providers.",
        "tags": [
          "Providers"
        ],
        "externalDocs": {
          "description": "Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search providers by name, description, or readme",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auth_method",
            "in": "query",
            "required": false,
            "description": "Filter by auth method — matches an auth method ID, auth method global ID, key, name, or type (oauth, token, service_account, custom)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "auth_setup",
            "in": "query",
            "required": false,
            "description": "Filter by auth setup status. \"configured\" matches providers with a token or custom auth method, or with auth credentials already configured. \"not_configured\" matches providers with only OAuth auth methods and no auth credentials configured.",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "configured",
                    "not_configured"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "configured",
                      "not_configured"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/providers/{provider_id}": {
      "get": {
        "operationId": "providers_get",
        "summary": "Get provider",
        "description": "Retrieves a specific provider by ID.",
        "tags": [
          "Providers"
        ],
        "externalDocs": {
          "description": "Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Provider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-connections": {
      "get": {
        "operationId": "sessions_connections_list",
        "summary": "List session connections",
        "description": "Returns a paginated list of connections for a session.",
        "tags": [
          "Session Connections"
        ],
        "externalDocs": {
          "description": "Session Connections reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by connection status",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "connection_state",
            "in": "query",
            "required": false,
            "description": "Filter by connection state",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "connected",
                    "disconnected"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "connected",
                      "disconnected"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by session connection ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected agent ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected identity actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_instance_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected agent instance ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "participant_id",
            "in": "query",
            "required": false,
            "description": "Filter by participant ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session connection creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session connection creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session connection creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session connection last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session connection last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session connection last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubspaceSessionConnectionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-connections/{session_connection_id}": {
      "get": {
        "operationId": "sessions_connections_get",
        "summary": "Get session connection",
        "description": "Retrieves a specific connection from a session.",
        "tags": [
          "Session Connections"
        ],
        "externalDocs": {
          "description": "Session Connections reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_connection_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session connection.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubspaceSessionConnection"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-errors": {
      "get": {
        "operationId": "sessions_errors_list",
        "summary": "List all session errors",
        "description": "Returns a paginated list of errors across all sessions.",
        "tags": [
          "Session Errors"
        ],
        "externalDocs": {
          "description": "Session Errors reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by error type(s)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "message_processing_timeout",
                    "message_processing_provider_error",
                    "message_processing_system_error"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "message_processing_timeout",
                      "message_processing_provider_error",
                      "message_processing_system_error"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by session error ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_connection_id",
            "in": "query",
            "required": false,
            "description": "Filter by session connection ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_error_group_id",
            "in": "query",
            "required": false,
            "description": "Filter by error group ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_run_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider run ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_message_id",
            "in": "query",
            "required": false,
            "description": "Filter by session message ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session error creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session error creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session error creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session error last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session error last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session error last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionErrorList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-errors/{session_error_id}": {
      "get": {
        "operationId": "sessions_errors_get",
        "summary": "Get session error",
        "description": "Retrieves a specific error that occurred in a session.",
        "tags": [
          "Session Errors"
        ],
        "externalDocs": {
          "description": "Session Errors reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_error_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session error.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionError"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-messages": {
      "get": {
        "operationId": "sessions_messages_list",
        "summary": "List session messages",
        "description": "Returns a paginated list of messages for a session.",
        "tags": [
          "Session Messages"
        ],
        "externalDocs": {
          "description": "Session Messages reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by message type(s)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "unknown",
                    "tool_call",
                    "mcp_control",
                    "mcp_message"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "unknown",
                      "tool_call",
                      "mcp_control",
                      "mcp_message"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "Filter by message source(s)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "provider",
                    "client"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "provider",
                      "client"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "hierarchy",
            "in": "query",
            "required": false,
            "description": "Filter by message hierarchy",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "child",
                    "parent"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "child",
                      "parent"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by message ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_connection_id",
            "in": "query",
            "required": false,
            "description": "Filter by session connection ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_run_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider run ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "error_id",
            "in": "query",
            "required": false,
            "description": "Filter by error ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "participant_id",
            "in": "query",
            "required": false,
            "description": "Filter by participant ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "parent_message_id",
            "in": "query",
            "required": false,
            "description": "Filter by parent message ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session message creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session message creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session message creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session message last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session message last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session message last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubspaceSessionMessageList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-messages/{session_message_id}": {
      "get": {
        "operationId": "sessions_messages_get",
        "summary": "Get session message",
        "description": "Retrieves a specific message from a session.",
        "tags": [
          "Session Messages"
        ],
        "externalDocs": {
          "description": "Session Messages reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_message_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session message.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubspaceSessionMessage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-participants": {
      "get": {
        "operationId": "sessions_participants_list",
        "summary": "List session participants",
        "description": "Returns a paginated list of participants in a session.",
        "tags": [
          "Session Participants"
        ],
        "externalDocs": {
          "description": "Session Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by participant type(s)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "unknown",
                    "provider",
                    "system",
                    "tool_call",
                    "mcp_client",
                    "metorial_protocol_client"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "unknown",
                      "provider",
                      "system",
                      "tool_call",
                      "mcp_client",
                      "metorial_protocol_client"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by participant ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected agent ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected identity actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_instance_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected agent instance ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_connection_id",
            "in": "query",
            "required": false,
            "description": "Filter by session connection ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_message_id",
            "in": "query",
            "required": false,
            "description": "Filter by session message ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session participant creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session participant creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session participant creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session participant last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session participant last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session participant last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionParticipantList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-participants/{session_participant_id}": {
      "get": {
        "operationId": "sessions_participants_get",
        "summary": "Get session participant",
        "description": "Retrieves a specific participant in a session.",
        "tags": [
          "Session Participants"
        ],
        "externalDocs": {
          "description": "Session Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_participant_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session participant.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionParticipant"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/session-providers": {
      "get": {
        "operationId": "sessions_providers_list",
        "summary": "List session providers",
        "description": "Returns a paginated list of providers connected to a session.",
        "tags": [
          "Session Providers"
        ],
        "externalDocs": {
          "description": "Session Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "description": "Filter by session template ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by provider status",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session provider creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session provider creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session provider creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session provider last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session provider last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session provider last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sessions_providers_create",
        "summary": "Create session provider",
        "description": "Adds a new provider to an active session.",
        "tags": [
          "Session Providers"
        ],
        "externalDocs": {
          "description": "Session Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest49"
              }
            }
          }
        }
      }
    },
    "/session-providers/{session_provider_id}": {
      "delete": {
        "operationId": "sessions_providers_delete",
        "summary": "Delete session provider",
        "description": "Removes a provider from a session.",
        "tags": [
          "Session Providers"
        ],
        "externalDocs": {
          "description": "Session Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "sessions_providers_get",
        "summary": "Get session provider",
        "description": "Retrieves a specific provider connected to a session.",
        "tags": [
          "Session Providers"
        ],
        "externalDocs": {
          "description": "Session Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "sessions_providers_update",
        "summary": "Update session provider",
        "description": "Updates a provider connected to a session.",
        "tags": [
          "Session Providers"
        ],
        "externalDocs": {
          "description": "Session Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest14"
              }
            }
          }
        }
      }
    },
    "/session-template-providers": {
      "get": {
        "operationId": "session_templates_providers_list",
        "summary": "List session template providers",
        "description": "Returns a paginated list of providers configured for a session template.",
        "tags": [
          "Session Template Providers"
        ],
        "externalDocs": {
          "description": "Session Template Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by session template provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "description": "Filter by session template ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session template provider creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session template provider creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session template provider creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session template provider last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session template provider last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session template provider last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplateProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "session_templates_providers_create",
        "summary": "Create session template provider",
        "description": "Adds a new provider configuration to a session template.",
        "tags": [
          "Session Template Providers"
        ],
        "externalDocs": {
          "description": "Session Template Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplateProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest50"
              }
            }
          }
        }
      }
    },
    "/session-template-providers/{session_template_provider_id}": {
      "delete": {
        "operationId": "session_templates_providers_delete",
        "summary": "Delete session template provider",
        "description": "Removes a provider configuration from a session template.",
        "tags": [
          "Session Template Providers"
        ],
        "externalDocs": {
          "description": "Session Template Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplateProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "session_templates_providers_get",
        "summary": "Get session template provider",
        "description": "Retrieves a specific provider configuration from a session template.",
        "tags": [
          "Session Template Providers"
        ],
        "externalDocs": {
          "description": "Session Template Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplateProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "session_templates_providers_update",
        "summary": "Update session template provider",
        "description": "Updates a provider configuration in a session template.",
        "tags": [
          "Session Template Providers"
        ],
        "externalDocs": {
          "description": "Session Template Providers reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_provider_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template provider.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplateProvider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest14"
              }
            }
          }
        }
      }
    },
    "/session-templates": {
      "get": {
        "operationId": "session_templates_list",
        "summary": "List session templates",
        "description": "Returns a paginated list of session templates.",
        "tags": [
          "Session Templates"
        ],
        "externalDocs": {
          "description": "Session Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by session template ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "description": "Filter templates that include sessions with these IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter templates that include session providers with these IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter templates that include providers with these IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter templates that include provider deployments with these IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter templates that include provider configs with these IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter templates that include provider auth configs with these IDs",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session template creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session template creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session template creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session template last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session template last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session template last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplateList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "session_templates_create",
        "summary": "Create session template",
        "description": "Creates a new session template.",
        "tags": [
          "Session Templates"
        ],
        "externalDocs": {
          "description": "Session Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest51"
              }
            }
          }
        }
      }
    },
    "/session-templates/{session_template_id}": {
      "delete": {
        "operationId": "session_templates_delete",
        "summary": "Delete session template",
        "description": "Deletes a specific session template.",
        "tags": [
          "Session Templates"
        ],
        "externalDocs": {
          "description": "Session Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "session_templates_get",
        "summary": "Get session template",
        "description": "Retrieves a specific session template by ID.",
        "tags": [
          "Session Templates"
        ],
        "externalDocs": {
          "description": "Session Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "session_templates_update",
        "summary": "Update session template",
        "description": "Updates a specific session template.",
        "tags": [
          "Session Templates"
        ],
        "externalDocs": {
          "description": "Session Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest52"
              }
            }
          }
        }
      }
    },
    "/session-templates/{session_template_id}/tools": {
      "get": {
        "operationId": "session_templates_list_tools",
        "summary": "List session template tools",
        "description": "Returns the effective set of tools available through the providers in a session template, filtered by the tool filters of each provider, deployment, config, and auth config.",
        "tags": [
          "Session Templates"
        ],
        "externalDocs": {
          "description": "Session Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderTools"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions": {
      "get": {
        "operationId": "sessions_list",
        "summary": "List sessions",
        "description": "Returns a paginated list of sessions.",
        "tags": [
          "Sessions"
        ],
        "externalDocs": {
          "description": "Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (active, archived)",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by session ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected agent ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected identity actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by connected identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "description": "Filter by session template ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter session creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter session last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for session last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for session last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSessionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sessions_create",
        "summary": "Create session",
        "description": "Creates a new session with provider deployments.",
        "tags": [
          "Sessions"
        ],
        "externalDocs": {
          "description": "Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest53"
              }
            }
          }
        }
      }
    },
    "/sessions/{session_id}": {
      "delete": {
        "operationId": "sessions_delete",
        "summary": "Delete session",
        "description": "Deletes a session.",
        "tags": [
          "Sessions"
        ],
        "externalDocs": {
          "description": "Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "sessions_get",
        "summary": "Get session",
        "description": "Retrieves a specific session by ID.",
        "tags": [
          "Sessions"
        ],
        "externalDocs": {
          "description": "Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "sessions_update",
        "summary": "Update session",
        "description": "Updates a session.",
        "tags": [
          "Sessions"
        ],
        "externalDocs": {
          "description": "Sessions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the session.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderSession"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest54"
              }
            }
          }
        }
      }
    },
    "/skill-exports": {
      "get": {
        "operationId": "skills_exports_list",
        "summary": "List skill exports",
        "description": "Returns a paginated list of skill exports.",
        "tags": [
          "Skill Exports"
        ],
        "externalDocs": {
          "description": "Skill Exports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "target",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "skill",
                    "plugin",
                    "marketplace"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "skill",
                      "plugin",
                      "marketplace"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "completed",
                    "failed"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "pending",
                      "completed",
                      "failed"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillExportList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_exports_create",
        "summary": "Create skill export",
        "description": "Creates a skill, plugin, or marketplace export.",
        "tags": [
          "Skill Exports"
        ],
        "externalDocs": {
          "description": "Skill Exports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillExport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest55"
              }
            }
          }
        }
      }
    },
    "/skill-exports/{skill_export_id}": {
      "get": {
        "operationId": "skills_exports_get",
        "summary": "Get skill export",
        "description": "Retrieves a skill export.",
        "tags": [
          "Skill Exports"
        ],
        "externalDocs": {
          "description": "Skill Exports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_export_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill export.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillExport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skill-groups": {
      "get": {
        "operationId": "skills_groups_list",
        "summary": "List skill groups",
        "description": "Returns a paginated list of skill groups.",
        "tags": [
          "Skill Groups"
        ],
        "externalDocs": {
          "description": "Skill Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill group creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill group creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill group creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill group last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill group last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill group last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroupList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_groups_create",
        "summary": "Create skill group",
        "description": "Creates a skill group.",
        "tags": [
          "Skill Groups"
        ],
        "externalDocs": {
          "description": "Skill Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest56"
              }
            }
          }
        }
      }
    },
    "/skill-groups/{skill_group_id}": {
      "delete": {
        "operationId": "skills_groups_delete",
        "summary": "Delete skill group",
        "description": "Archives a skill group.",
        "tags": [
          "Skill Groups"
        ],
        "externalDocs": {
          "description": "Skill Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_groups_get",
        "summary": "Get skill group",
        "description": "Retrieves a specific skill group.",
        "tags": [
          "Skill Groups"
        ],
        "externalDocs": {
          "description": "Skill Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_groups_update",
        "summary": "Update skill group",
        "description": "Updates a skill group.",
        "tags": [
          "Skill Groups"
        ],
        "externalDocs": {
          "description": "Skill Groups reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroup"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest57"
              }
            }
          }
        }
      }
    },
    "/skill-groups/{skill_group_id}/items": {
      "get": {
        "operationId": "skills_groups_items_list",
        "summary": "List skill group items",
        "description": "Returns a paginated list of items for a skill group.",
        "tags": [
          "Skill Group Items"
        ],
        "externalDocs": {
          "description": "Skill Group Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill group item creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill group item creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill group item creation time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroupItemList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_groups_items_create",
        "summary": "Create skill group item",
        "description": "Adds a skill to a skill group.",
        "tags": [
          "Skill Group Items"
        ],
        "externalDocs": {
          "description": "Skill Group Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroupItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest58"
              }
            }
          }
        }
      }
    },
    "/skill-groups/{skill_group_id}/items/{skill_group_item_id}": {
      "delete": {
        "operationId": "skills_groups_items_delete",
        "summary": "Delete skill group item",
        "description": "Archives a skill group item.",
        "tags": [
          "Skill Group Items"
        ],
        "externalDocs": {
          "description": "Skill Group Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_group_item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroupItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_groups_items_get",
        "summary": "Get skill group item",
        "description": "Retrieves a specific skill group item.",
        "tags": [
          "Skill Group Items"
        ],
        "externalDocs": {
          "description": "Skill Group Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_group_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_group_item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill group item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGroupItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skill-imports": {
      "get": {
        "operationId": "skills_imports_list",
        "summary": "List skill imports",
        "description": "Returns a paginated list of skill imports.",
        "tags": [
          "Skill Imports"
        ],
        "externalDocs": {
          "description": "Skill Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "pending",
                    "processing",
                    "completed",
                    "failed"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "pending",
                      "processing",
                      "completed",
                      "failed"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillImportList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_imports_create",
        "summary": "Create skill import",
        "description": "Queues a skill import from a repository or uploaded file.",
        "tags": [
          "Skill Imports"
        ],
        "externalDocs": {
          "description": "Skill Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillImport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest59"
              }
            }
          }
        }
      }
    },
    "/skill-imports/{skill_import_id}": {
      "get": {
        "operationId": "skills_imports_get",
        "summary": "Get skill import",
        "description": "Retrieves an individual skill import and its results.",
        "tags": [
          "Skill Imports"
        ],
        "externalDocs": {
          "description": "Skill Imports reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_import_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill import.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillImport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skill-marketplaces": {
      "get": {
        "operationId": "skills_marketplaces_list",
        "summary": "List skill marketplaces",
        "description": "Returns a paginated list of skill marketplaces.",
        "tags": [
          "Skill Marketplaces"
        ],
        "externalDocs": {
          "description": "Skill Marketplaces reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_configuration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill marketplace creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill marketplace creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill marketplace creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill marketplace last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill marketplace last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill marketplace last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplaceList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_marketplaces_create",
        "summary": "Create skill marketplace",
        "description": "Creates a skill marketplace.",
        "tags": [
          "Skill Marketplaces"
        ],
        "externalDocs": {
          "description": "Skill Marketplaces reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplace"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest60"
              }
            }
          }
        }
      }
    },
    "/skill-marketplaces/{skill_marketplace_id}": {
      "delete": {
        "operationId": "skills_marketplaces_archive",
        "summary": "Archive skill marketplace",
        "description": "Archives a skill marketplace.",
        "tags": [
          "Skill Marketplaces"
        ],
        "externalDocs": {
          "description": "Skill Marketplaces reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplace"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_marketplaces_get",
        "summary": "Get skill marketplace",
        "description": "Retrieves a skill marketplace.",
        "tags": [
          "Skill Marketplaces"
        ],
        "externalDocs": {
          "description": "Skill Marketplaces reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplace"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_marketplaces_update",
        "summary": "Update skill marketplace",
        "description": "Updates a skill marketplace.",
        "tags": [
          "Skill Marketplaces"
        ],
        "externalDocs": {
          "description": "Skill Marketplaces reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplace"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest61"
              }
            }
          }
        }
      }
    },
    "/skill-marketplaces/{skill_marketplace_id}/plugins": {
      "get": {
        "operationId": "skills_marketplaces_plugins_list",
        "summary": "List skill marketplace plugins",
        "description": "Returns plugins linked to a skill marketplace.",
        "tags": [
          "Skill Marketplace Plugins"
        ],
        "externalDocs": {
          "description": "Skill Marketplace Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_plugin_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_configuration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill marketplace plugin creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill marketplace plugin creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill marketplace plugin creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill marketplace plugin last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill marketplace plugin last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill marketplace plugin last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplacePluginList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_marketplaces_plugins_add",
        "summary": "Add skill marketplace plugin",
        "description": "Adds a skill plugin to a skill marketplace.",
        "tags": [
          "Skill Marketplace Plugins"
        ],
        "externalDocs": {
          "description": "Skill Marketplace Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplacePlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest62"
              }
            }
          }
        }
      }
    },
    "/skill-marketplaces/{skill_marketplace_id}/plugins/{skill_marketplace_plugin_id}": {
      "delete": {
        "operationId": "skills_marketplaces_plugins_remove",
        "summary": "Remove skill marketplace plugin",
        "description": "Removes a skill plugin from a skill marketplace.",
        "tags": [
          "Skill Marketplace Plugins"
        ],
        "externalDocs": {
          "description": "Skill Marketplace Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_marketplace_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplacePlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_marketplaces_plugins_get",
        "summary": "Get skill marketplace plugin",
        "description": "Retrieves a skill marketplace plugin link.",
        "tags": [
          "Skill Marketplace Plugins"
        ],
        "externalDocs": {
          "description": "Skill Marketplace Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_marketplace_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplacePlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skill-marketplaces/{skill_marketplace_id}/sync": {
      "post": {
        "operationId": "skills_marketplaces_sync",
        "summary": "Sync skill marketplace",
        "description": "Forces a skill marketplace sync.",
        "tags": [
          "Skill Marketplaces"
        ],
        "externalDocs": {
          "description": "Skill Marketplaces reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_marketplace_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill marketplace.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillMarketplace"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skill-plugins": {
      "get": {
        "operationId": "skills_plugins_list",
        "summary": "List skill plugins",
        "description": "Returns a paginated list of skill plugins.",
        "tags": [
          "Skill Plugins"
        ],
        "externalDocs": {
          "description": "Skill Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_marketplace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skill_configuration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill plugin creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill plugin creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill plugin creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill plugin last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill plugin last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill plugin last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPluginList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_plugins_create",
        "summary": "Create skill plugin",
        "description": "Creates a skill plugin.",
        "tags": [
          "Skill Plugins"
        ],
        "externalDocs": {
          "description": "Skill Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest63"
              }
            }
          }
        }
      }
    },
    "/skill-plugins/{skill_plugin_id}": {
      "delete": {
        "operationId": "skills_plugins_archive",
        "summary": "Archive skill plugin",
        "description": "Archives a skill plugin.",
        "tags": [
          "Skill Plugins"
        ],
        "externalDocs": {
          "description": "Skill Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_plugins_get",
        "summary": "Get skill plugin",
        "description": "Retrieves a skill plugin.",
        "tags": [
          "Skill Plugins"
        ],
        "externalDocs": {
          "description": "Skill Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_plugins_update",
        "summary": "Update skill plugin",
        "description": "Updates a skill plugin.",
        "tags": [
          "Skill Plugins"
        ],
        "externalDocs": {
          "description": "Skill Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest64"
              }
            }
          }
        }
      }
    },
    "/skill-plugins/{skill_plugin_id}/skills": {
      "get": {
        "operationId": "skills_plugins_skills_list",
        "summary": "List skill plugin skills",
        "description": "Returns skills linked to a skill plugin.",
        "tags": [
          "Skill Plugin Skills"
        ],
        "externalDocs": {
          "description": "Skill Plugin Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_configuration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill plugin skill creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill plugin skill creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill plugin skill creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill plugin skill last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill plugin skill last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill plugin skill last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPluginSkillList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_plugins_skills_add",
        "summary": "Add skill plugin skill",
        "description": "Adds a skill to a skill plugin.",
        "tags": [
          "Skill Plugin Skills"
        ],
        "externalDocs": {
          "description": "Skill Plugin Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPluginSkill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest65"
              }
            }
          }
        }
      }
    },
    "/skill-plugins/{skill_plugin_id}/skills/{skill_plugin_skill_id}": {
      "delete": {
        "operationId": "skills_plugins_skills_remove",
        "summary": "Remove skill plugin skill",
        "description": "Removes a skill from a skill plugin.",
        "tags": [
          "Skill Plugin Skills"
        ],
        "externalDocs": {
          "description": "Skill Plugin Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_plugin_skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPluginSkill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_plugins_skills_get",
        "summary": "Get skill plugin skill",
        "description": "Retrieves a skill plugin skill link.",
        "tags": [
          "Skill Plugin Skills"
        ],
        "externalDocs": {
          "description": "Skill Plugin Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_plugin_skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPluginSkill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_plugins_skills_update",
        "summary": "Update skill plugin skill",
        "description": "Updates a skill plugin skill link.",
        "tags": [
          "Skill Plugin Skills"
        ],
        "externalDocs": {
          "description": "Skill Plugin Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_plugin_skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPluginSkill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest66"
              }
            }
          }
        }
      }
    },
    "/skill-plugins/{skill_plugin_id}/sync": {
      "post": {
        "operationId": "skills_plugins_sync",
        "summary": "Sync skill plugin",
        "description": "Forces a skill plugin sync.",
        "tags": [
          "Skill Plugins"
        ],
        "externalDocs": {
          "description": "Skill Plugins reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_plugin_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill plugin.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillPlugin"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skill-templates": {
      "get": {
        "operationId": "skills_templates_list",
        "summary": "List skill templates",
        "description": "Returns a paginated list of skill templates.",
        "tags": [
          "Skill Templates"
        ],
        "externalDocs": {
          "description": "Skill Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "system",
                    "tenant"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "system",
                      "tenant"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill template creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill template creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill template creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill template last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill template last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill template last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplateList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_templates_create",
        "summary": "Create skill template",
        "description": "Creates a skill template.",
        "tags": [
          "Skill Templates"
        ],
        "externalDocs": {
          "description": "Skill Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest67"
              }
            }
          }
        }
      }
    },
    "/skill-templates/{skill_template_id}": {
      "delete": {
        "operationId": "skills_templates_delete",
        "summary": "Delete skill template",
        "description": "Archives a skill template.",
        "tags": [
          "Skill Templates"
        ],
        "externalDocs": {
          "description": "Skill Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_templates_get",
        "summary": "Get skill template",
        "description": "Retrieves a specific skill template.",
        "tags": [
          "Skill Templates"
        ],
        "externalDocs": {
          "description": "Skill Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_templates_update",
        "summary": "Update skill template",
        "description": "Updates a skill template.",
        "tags": [
          "Skill Templates"
        ],
        "externalDocs": {
          "description": "Skill Templates reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplate"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest68"
              }
            }
          }
        }
      }
    },
    "/skill-templates/{skill_template_id}/items": {
      "get": {
        "operationId": "skills_templates_items_list",
        "summary": "List skill template items",
        "description": "Returns a paginated list of items for a skill template.",
        "tags": [
          "Skill Template Items"
        ],
        "externalDocs": {
          "description": "Skill Template Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplateItemList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_templates_items_create",
        "summary": "Create skill template item",
        "description": "Adds a provider or integration item to a skill template.",
        "tags": [
          "Skill Template Items"
        ],
        "externalDocs": {
          "description": "Skill Template Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplateItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest69"
              }
            }
          }
        }
      }
    },
    "/skill-templates/{skill_template_id}/items/{skill_template_item_id}": {
      "delete": {
        "operationId": "skills_templates_items_delete",
        "summary": "Delete skill template item",
        "description": "Deletes a skill template item.",
        "tags": [
          "Skill Template Items"
        ],
        "externalDocs": {
          "description": "Skill Template Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_template_item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplateItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_templates_items_get",
        "summary": "Get skill template item",
        "description": "Retrieves a specific skill template item.",
        "tags": [
          "Skill Template Items"
        ],
        "externalDocs": {
          "description": "Skill Template Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_template_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_template_item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill template item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillTemplateItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills": {
      "get": {
        "operationId": "skills_list",
        "summary": "List skills",
        "description": "Returns a paginated list of skills.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "skill_group_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter skill last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_create",
        "summary": "Create skill",
        "description": "Creates a new skill.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest70"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}": {
      "delete": {
        "operationId": "skills_delete",
        "summary": "Delete skill",
        "description": "Archives a specific skill.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_get",
        "summary": "Get skill",
        "description": "Retrieves a specific skill.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_update",
        "summary": "Update skill",
        "description": "Updates a specific skill.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest71"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/agents": {
      "get": {
        "operationId": "skills_agents_list",
        "summary": "List skill agents",
        "description": "Returns a paginated list of agents for a specific skill.",
        "tags": [
          "Skill Agents"
        ],
        "externalDocs": {
          "description": "Skill Agents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillAgentList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_agents_create",
        "summary": "Create skill agent",
        "description": "Creates a new agent document in the skill agents directory.",
        "tags": [
          "Skill Agents"
        ],
        "externalDocs": {
          "description": "Skill Agents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillAgent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest72"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/agents/{skill_agent_id}": {
      "delete": {
        "operationId": "skills_agents_delete",
        "summary": "Delete skill agent",
        "description": "Archives a specific skill agent and removes its linked store item.",
        "tags": [
          "Skill Agents"
        ],
        "externalDocs": {
          "description": "Skill Agents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_agent_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill agent.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillAgent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_agents_get",
        "summary": "Get skill agent by ID",
        "description": "Retrieves a specific agent within a skill.",
        "tags": [
          "Skill Agents"
        ],
        "externalDocs": {
          "description": "Skill Agents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_agent_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill agent.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillAgent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_agents_update",
        "summary": "Update skill agent",
        "description": "Updates the name or description for a specific skill agent.",
        "tags": [
          "Skill Agents"
        ],
        "externalDocs": {
          "description": "Skill Agents reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_agent_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill agent.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillAgent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest73"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/duplicate": {
      "post": {
        "operationId": "skills_duplicate",
        "summary": "Duplicate skill",
        "description": "Duplicates a skill.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest74"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/items": {
      "get": {
        "operationId": "skills_items_list",
        "summary": "List skill items",
        "description": "Returns a paginated list of items for a skill.",
        "tags": [
          "Skill Items"
        ],
        "externalDocs": {
          "description": "Skill Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "active",
                    "archived",
                    "deleted"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "integration",
                    "provider"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "integration",
                      "provider"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter skill item creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for skill item creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for skill item creation time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillItemList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_items_create",
        "summary": "Create skill item",
        "description": "Creates a new item on a skill.",
        "tags": [
          "Skill Items"
        ],
        "externalDocs": {
          "description": "Skill Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest69"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/items/{skill_item_id}": {
      "delete": {
        "operationId": "skills_items_delete",
        "summary": "Delete skill item",
        "description": "Archives a skill item.",
        "tags": [
          "Skill Items"
        ],
        "externalDocs": {
          "description": "Skill Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_items_get",
        "summary": "Get skill item",
        "description": "Retrieves a specific skill item.",
        "tags": [
          "Skill Items"
        ],
        "externalDocs": {
          "description": "Skill Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/participants": {
      "get": {
        "operationId": "skills_participants_list",
        "summary": "List skill participants",
        "description": "Returns a paginated list of participants for a specific skill.",
        "tags": [
          "Skill Participants"
        ],
        "externalDocs": {
          "description": "Skill Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillParticipantList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/participants/{skill_participant_id}": {
      "get": {
        "operationId": "skills_participants_get",
        "summary": "Get skill participant by ID",
        "description": "Retrieves a specific participant within a skill.",
        "tags": [
          "Skill Participants"
        ],
        "externalDocs": {
          "description": "Skill Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_participant_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill participant.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillParticipant"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/shares": {
      "post": {
        "operationId": "skills_share",
        "summary": "Share skill",
        "description": "Shares a skill with consumers or organization members.",
        "tags": [
          "Skills"
        ],
        "externalDocs": {
          "description": "Skills reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest75"
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/versions": {
      "get": {
        "operationId": "skills_versions_list",
        "summary": "List skill versions",
        "description": "Returns a paginated list of versions for a specific skill.",
        "tags": [
          "Skill Versions"
        ],
        "externalDocs": {
          "description": "Skill Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillVersionList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/versions/{skill_version_id}": {
      "get": {
        "operationId": "skills_versions_get",
        "summary": "Get skill version by ID",
        "description": "Retrieves a specific skill version by its ID.",
        "tags": [
          "Skill Versions"
        ],
        "externalDocs": {
          "description": "Skill Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_version_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill version.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillVersion"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills/{skill_id}/versions/{skill_version_id}/snapshot": {
      "get": {
        "operationId": "skills_versions_snapshot_get",
        "summary": "Get skill version snapshot",
        "description": "Retrieves the store-backed snapshot for a specific skill version.",
        "tags": [
          "Skill Versions"
        ],
        "externalDocs": {
          "description": "Skill Versions reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "skill_version_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill version.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillVersionSnapshot"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/skills/configurations": {
      "get": {
        "operationId": "skills_configurations_list",
        "summary": "List skill configurations",
        "description": "Returns a paginated list of visible skill configurations.",
        "tags": [
          "Skill Configurations"
        ],
        "externalDocs": {
          "description": "Skill Configurations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillConfigurationList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "skills_configurations_create",
        "summary": "Create skill configuration",
        "description": "Creates a new non-default skill configuration.",
        "tags": [
          "Skill Configurations"
        ],
        "externalDocs": {
          "description": "Skill Configurations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillConfiguration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest76"
              }
            }
          }
        }
      }
    },
    "/skills/configurations/{skill_configuration_id}": {
      "delete": {
        "operationId": "skills_configurations_delete",
        "summary": "Delete skill configuration",
        "description": "Soft deletes a specific non-internal skill configuration.",
        "tags": [
          "Skill Configurations"
        ],
        "externalDocs": {
          "description": "Skill Configurations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_configuration_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill configuration.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillConfiguration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "skills_configurations_get",
        "summary": "Get skill configuration",
        "description": "Retrieves a specific skill configuration by ID, or the default.",
        "tags": [
          "Skill Configurations"
        ],
        "externalDocs": {
          "description": "Skill Configurations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_configuration_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill configuration.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillConfiguration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "skills_configurations_update",
        "summary": "Update skill configuration",
        "description": "Updates a specific skill configuration. Updating default creates it first if needed.",
        "tags": [
          "Skill Configurations"
        ],
        "externalDocs": {
          "description": "Skill Configurations reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "skill_configuration_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the skill configuration.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillConfiguration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest76"
              }
            }
          }
        }
      }
    },
    "/stores": {
      "get": {
        "operationId": "stores_list",
        "summary": "List stores",
        "description": "Returns a paginated list of stores owned by the instance.",
        "tags": [
          "Stores"
        ],
        "externalDocs": {
          "description": "Stores reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by store ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "stores_create",
        "summary": "Create store",
        "description": "Creates a new store for the instance.",
        "tags": [
          "Stores"
        ],
        "externalDocs": {
          "description": "Stores reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest77"
              }
            }
          }
        }
      }
    },
    "/stores/{store_id}": {
      "delete": {
        "operationId": "stores_delete",
        "summary": "Delete store by ID",
        "description": "Deletes a specific store.",
        "tags": [
          "Stores"
        ],
        "externalDocs": {
          "description": "Stores reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "stores_get",
        "summary": "Get store by ID",
        "description": "Retrieves a store by its ID.",
        "tags": [
          "Stores"
        ],
        "externalDocs": {
          "description": "Stores reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "stores_update",
        "summary": "Update store by ID",
        "description": "Updates a specific store.",
        "tags": [
          "Stores"
        ],
        "externalDocs": {
          "description": "Stores reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest78"
              }
            }
          }
        }
      }
    },
    "/stores/{store_id}/items": {
      "get": {
        "operationId": "stores_items_list",
        "summary": "List store items",
        "description": "Returns a paginated list of items for a specific store.",
        "tags": [
          "Store Items"
        ],
        "externalDocs": {
          "description": "Store Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Filter by store item ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "file_id",
            "in": "query",
            "required": false,
            "description": "Filter by file ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "document_id",
            "in": "query",
            "required": false,
            "description": "Filter by document ID",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by store item type. Repeat `type` to include multiple values. Defaults to `file` and `document`.",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "file",
                    "document",
                    "directory"
                  ],
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "file",
                      "document",
                      "directory"
                    ],
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter Filter by update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for Filter by update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for Filter by update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreItemList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "stores_items_modify",
        "summary": "Modify store items",
        "description": "Applies bulk item operations to a specific store.",
        "tags": [
          "Stores"
        ],
        "externalDocs": {
          "description": "Stores reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreItemList2"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest79"
              }
            }
          }
        }
      }
    },
    "/stores/{store_id}/items/{item_id}": {
      "get": {
        "operationId": "stores_items_get",
        "summary": "Get store item by ID",
        "description": "Retrieves a specific item within a store.",
        "tags": [
          "Store Items"
        ],
        "externalDocs": {
          "description": "Store Items reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the item.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreItem"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/stores/{store_id}/participants": {
      "get": {
        "operationId": "stores_participants_list",
        "summary": "List store participants",
        "description": "Returns a paginated list of participants for a specific store.",
        "tags": [
          "Store Participants"
        ],
        "externalDocs": {
          "description": "Store Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreParticipantList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/stores/{store_id}/participants/{store_participant_id}": {
      "get": {
        "operationId": "stores_participants_get",
        "summary": "Get store participant by ID",
        "description": "Retrieves a specific participant within a store.",
        "tags": [
          "Store Participants"
        ],
        "externalDocs": {
          "description": "Store Participants reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "store_participant_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the store participant.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreParticipant"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tool-calls": {
      "get": {
        "operationId": "tool_calls_list",
        "summary": "List all tool calls",
        "description": "Returns a paginated list of tool calls across all sessions.",
        "tags": [
          "Tool Calls"
        ],
        "externalDocs": {
          "description": "Tool Calls reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "name": "session_template_id",
            "in": "query",
            "required": false,
            "description": "Filter by session template ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "session_provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by session provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_deployment_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider deployment ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "provider_auth_config_id",
            "in": "query",
            "required": false,
            "description": "Filter by provider auth config ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_id",
            "in": "query",
            "required": false,
            "description": "Filter by agent ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity actor ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "consumer_id",
            "in": "query",
            "required": false,
            "description": "Filter by consumer ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "identity_id",
            "in": "query",
            "required": false,
            "description": "Filter by identity ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "agent_instance_id",
            "in": "query",
            "required": false,
            "description": "Filter by agent instance ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "tool_id",
            "in": "query",
            "required": false,
            "description": "Filter by tool ID(s)",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "created_at",
            "in": "query",
            "required": false,
            "description": "Filter tool call creation time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for tool call creation time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for tool call creation time"
                }
              }
            }
          },
          {
            "name": "updated_at",
            "in": "query",
            "required": false,
            "description": "Filter tool call last update time by date range",
            "schema": {
              "type": "object",
              "properties": {
                "gt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records after this timestamp for tool call last update time"
                },
                "lt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Only include records before this timestamp for tool call last update time"
                }
              }
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolCallList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "tool_calls_create",
        "summary": "Create tool call",
        "description": "Creates a new tool call in a session by invoking a specific tool.",
        "tags": [
          "Tool Calls"
        ],
        "externalDocs": {
          "description": "Tool Calls reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolCall"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BodyRequest80"
              }
            }
          }
        }
      }
    },
    "/tool-calls/{tool_call_id}": {
      "get": {
        "operationId": "tool_calls_get",
        "summary": "Get tool call",
        "description": "Retrieves a specific tool call by ID.",
        "tags": [
          "Tool Calls"
        ],
        "externalDocs": {
          "description": "Tool Calls reference",
          "url": "https://metorial.com/api"
        },
        "parameters": [
          {
            "name": "tool_call_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the tool call.",
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "$ref": "#/components/parameters/MetorialVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolCall"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key lacks permission for this resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such resource",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "secretApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Secret API key, prefixed `metorial_sk_`. Grants full access to the project and environment the key belongs to. Server-side use only."
      },
      "publishableApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Publishable API key, prefixed `metorial_pk_`. Reads public data only and is safe to use in client-side code. Prefer this key when full access is not required."
      }
    },
    "parameters": {
      "MetorialVersion": {
        "name": "Metorial-Version",
        "in": "header",
        "required": false,
        "description": "Pin the dated API version for this request, e.g. `2025-01-01`. Defaults to the version configured for the environment.",
        "schema": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "examples": [
            "2025-01-01"
          ]
        }
      }
    },
    "headers": {
      "RetryAfter": {
        "description": "Seconds to wait before retrying. Present on `429` responses; honour it rather than retrying immediately.",
        "schema": {
          "type": "integer",
          "examples": [
            10
          ]
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid parameters or action",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 400,
              "code": "bad_request",
              "message": "Invalid parameters or action"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing or invalid API key",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 401,
              "code": "unauthorized",
              "message": "Missing or invalid API key"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The key lacks permission for this resource",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 403,
              "code": "forbidden",
              "message": "The key lacks permission for this resource"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such resource",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 404,
              "code": "not_found",
              "message": "No such resource"
            }
          }
        }
      },
      "UnprocessableEntity": {
        "description": "Validation failed",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 422,
              "code": "unprocessable_entity",
              "message": "Validation failed"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit exceeded",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 429,
              "code": "too_many_requests",
              "message": "Rate limit exceeded"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Unexpected server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "object": "error",
              "ok": false,
              "status": 500,
              "code": "internal_server_error",
              "message": "Unexpected server error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "title": "Error",
        "description": "Every failing Metorial API request returns this envelope. `code` is the stable, machine-readable discriminator; branch on it rather than on `message`, which is written for humans and may be reworded.",
        "required": [
          "object",
          "ok",
          "status",
          "code",
          "message"
        ],
        "properties": {
          "object": {
            "const": "error",
            "type": "string",
            "description": "Always `error`, so a response can be identified as a failure by shape alone."
          },
          "ok": {
            "const": false,
            "type": "boolean",
            "description": "Always `false` on an error response."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code, repeated in the body.",
            "examples": [
              401
            ]
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code. Branch on this value to handle failures programmatically.",
            "examples": [
              "unauthorized"
            ]
          },
          "message": {
            "type": "string",
            "description": "Human-readable summary of what went wrong.",
            "examples": [
              "Missing Authorization header"
            ]
          },
          "hint": {
            "type": "string",
            "description": "Actionable suggestion for resolving the error, when one applies.",
            "examples": [
              "Copy your API key from the Metorial dashboard and use it in the \"Authorization\" header in the format \"Bearer your_token_from_the_dashboard\""
            ]
          },
          "description": {
            "type": "string",
            "description": "Longer explanation of the failure, when one applies.",
            "examples": [
              "Expected the authentication header to be \"Bearer <token>\"."
            ]
          }
        }
      },
      "CallbackDestinationList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CallbackDestination"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name for the callback destination",
            "examples": [
              "Primary Webhook Endpoint"
            ]
          },
          "description": {
            "type": "string",
            "description": "Optional callback destination description",
            "examples": [
              "Primary production webhook receiver"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing destination metadata"
          },
          "url": {
            "type": "string",
            "description": "Webhook URL that should receive callback deliveries",
            "examples": [
              "https://api.example.com/webhooks/metorial"
            ]
          }
        },
        "required": [
          "name",
          "url"
        ]
      },
      "CallbackDestination": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback.destination",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback destination identifier",
            "examples": [
              "cld_7dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Callback destination lifecycle status"
          },
          "name": {
            "type": "string",
            "description": "Display name for the callback destination",
            "examples": [
              "Primary Webhook Endpoint"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional destination description",
            "examples": [
              "Primary production webhook receiver"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional destination metadata"
          },
          "url": {
            "type": "string",
            "description": "Webhook URL that receives callback deliveries",
            "examples": [
              "https://api.example.com/webhooks/metorial"
            ]
          },
          "method": {
            "type": "string",
            "description": "HTTP method used for webhook delivery",
            "examples": [
              "POST"
            ]
          },
          "signing_secret": {
            "type": [
              "string",
              "null"
            ],
            "description": "Secret used to verify callback webhook signatures. Populated on detailed destination responses when available.",
            "examples": [
              "whsec_4dEfGhJkLmNpQrSt"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback destination was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback destination was last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "url",
          "method",
          "signing_secret",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Updated callback destination name",
            "examples": [
              "Secondary Webhook Endpoint"
            ]
          },
          "description": {
            "type": "string",
            "description": "Updated destination description",
            "examples": [
              "Secondary failover webhook receiver"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Updated destination metadata"
          },
          "url": {
            "type": "string",
            "description": "Updated webhook URL for callback deliveries",
            "examples": [
              "https://api.example.com/webhooks/metorial/failover"
            ]
          }
        }
      },
      "CallbackList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest3": {
        "type": "object",
        "properties": {
          "provider_deployment_id": {
            "type": "string",
            "description": "Provider deployment that owns the trigger specification for this callback",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name for the callback",
            "examples": [
              "Production Webhook Callback"
            ]
          },
          "description": {
            "type": "string",
            "description": "Optional callback description",
            "examples": [
              "Sends provider trigger deliveries to our production webhook"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional callback metadata"
          },
          "poll_interval_seconds_override": {
            "type": [
              "number",
              "null"
            ],
            "description": "Optional polling interval override, in seconds, for polling triggers",
            "examples": [
              60
            ]
          },
          "destination_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "examples": [
                "cld_7dEfGhJkLmNpQrSt"
              ]
            },
            "description": "Optional callback destination IDs that should receive deliveries. Destinations can also be attached later."
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "trigger_id": {
                  "type": "string",
                  "description": "Provider trigger key or identifier from the deployment specification",
                  "examples": [
                    "messages.created"
                  ]
                },
                "event_types": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "examples": [
                      "message.created"
                    ]
                  },
                  "description": "Optional provider-specific event type filters for this trigger"
                }
              },
              "required": [
                "trigger_id"
              ],
              "description": "Trigger definition for this callback"
            }
          }
        },
        "required": [
          "provider_deployment_id",
          "name"
        ]
      },
      "Callback": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback identifier",
            "examples": [
              "clb_4dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Callback lifecycle status"
          },
          "name": {
            "type": "string",
            "description": "Display name for the callback",
            "examples": [
              "Production Webhook Callback"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional callback description",
            "examples": [
              "Sends provider trigger deliveries to our production webhook endpoint"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional callback metadata"
          },
          "poll_interval_seconds_override": {
            "type": [
              "number",
              "null"
            ],
            "description": "Optional polling interval override, in seconds, for polling-capable triggers",
            "examples": [
              60
            ]
          },
          "provider_deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CallbackDestination"
            },
            "description": "Destinations currently attached to this callback"
          },
          "provider_triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderTrigger2"
            },
            "description": "Triggers configured on this callback"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback was last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "poll_interval_seconds_override",
          "provider_deployment",
          "destinations",
          "provider_triggers",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest4": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Updated callback display name",
            "examples": [
              "Staging Webhook Callback"
            ]
          },
          "description": {
            "type": "string",
            "description": "Updated callback description",
            "examples": [
              "Sends deliveries to the staging webhook endpoint"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Updated custom metadata for the callback"
          },
          "poll_interval_seconds_override": {
            "type": [
              "number",
              "null"
            ],
            "description": "Updated polling interval override, in seconds",
            "examples": [
              120
            ]
          },
          "destination_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "examples": [
                "cld_7dEfGhJkLmNpQrSt"
              ]
            },
            "description": "Replacement list of callback destination IDs"
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "trigger_id": {
                  "type": "string",
                  "description": "Provider trigger key or identifier",
                  "examples": [
                    "messages.created"
                  ]
                },
                "event_types": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "examples": [
                      "message.created"
                    ]
                  },
                  "description": "Updated provider-specific event type filters for this trigger"
                }
              },
              "required": [
                "trigger_id"
              ],
              "description": "Updated trigger definition for this callback"
            }
          }
        }
      },
      "CallbackEventList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CallbackEvent"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "CallbackEvent": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback.event",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback event identifier",
            "examples": [
              "cte_4dEfGhJkLmNpQrSt"
            ]
          },
          "type": {
            "type": "string",
            "description": "Provider event type received by the callback",
            "examples": [
              "message.created"
            ]
          },
          "source_id": {
            "type": "string",
            "description": "Provider-specific source identifier for the event",
            "examples": [
              "thr_123456"
            ]
          },
          "trigger_key": {
            "type": "string",
            "description": "Trigger key that produced this event",
            "examples": [
              "messages.created"
            ]
          },
          "input": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Original trigger input payload captured for the event"
          },
          "output": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Trigger output payload resolved for the event"
          },
          "status": {
            "enum": [
              "pending",
              "processing",
              "retrying",
              "succeeded",
              "failed",
              "skipped"
            ],
            "type": "string",
            "description": "Lifecycle status for this callback event"
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Machine-readable callback event error code"
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Human-readable callback event error message"
              }
            },
            "required": [
              "code",
              "message"
            ]
          },
          "delivery_status": {
            "enum": [
              "pending",
              "sent",
              "failed",
              "skipped"
            ],
            "type": "string",
            "description": "Aggregate delivery status for this callback event"
          },
          "callback_id": {
            "type": "string",
            "description": "Parent callback identifier",
            "examples": [
              "clb_4dEfGhJkLmNpQrSt"
            ]
          },
          "callback_instance_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Callback instance that received the event, when applicable",
            "examples": [
              "cbi_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback event was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "source_id",
          "trigger_key",
          "input",
          "output",
          "status",
          "error",
          "delivery_status",
          "callback_id",
          "callback_instance_id",
          "created_at"
        ]
      },
      "CallbackInstanceList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item2"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest5": {
        "type": "object",
        "properties": {
          "provider_config_id": {
            "type": "string",
            "description": "Provider config to attach to the callback instance",
            "examples": [
              "pcf_7dEfGhJkLmNpQrSt"
            ]
          },
          "provider_auth_config_id": {
            "type": "string",
            "description": "Optional provider auth config to attach to the callback instance",
            "examples": [
              "pac_8pQrStUvWxYzAbCd"
            ]
          }
        },
        "required": [
          "provider_config_id"
        ]
      },
      "CallbackInstance": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback.instance",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback instance identifier",
            "examples": [
              "cbi_5gHjKlMnPqRsTuVw"
            ]
          },
          "status": {
            "enum": [
              "attached",
              "detached"
            ],
            "type": "string",
            "description": "Whether the callback instance is currently attached to a deployment/config pair"
          },
          "deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "config": {
            "$ref": "#/components/schemas/Config2"
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "webhook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shared webhook URL for manual provider setup on this callback instance",
            "examples": [
              "https://api.example.com/slates-hub/triggers/receiver-webhook/shtr_abc123"
            ]
          },
          "triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trigger"
            },
            "description": "Resolved trigger registrations for this callback instance"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback instance was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback instance was last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "deployment",
          "config",
          "auth_config",
          "webhook_url",
          "triggers",
          "created_at",
          "updated_at"
        ]
      },
      "CustomProviderDeploymentList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item3"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "CustomProviderDeployment": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.deployment",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider deployment identifier",
            "examples": [
              "cpd_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "failed",
              "queued",
              "deploying",
              "succeeded"
            ],
            "type": "string",
            "description": "Current deployment status"
          },
          "trigger": {
            "enum": [
              "manual",
              "system",
              "scm"
            ],
            "type": "string",
            "description": "What triggered this deployment"
          },
          "custom_provider_id": {
            "type": "string",
            "description": "ID of the parent custom provider",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the associated provider",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "custom_provider_version_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the custom provider version being deployed",
            "examples": [
              "cpv_1aBcDeFgHjKlMnPq"
            ]
          },
          "commit": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "custom_provider.deployment.commit",
                "type": "string"
              },
              "id": {
                "type": "string",
                "description": "Commit identifier"
              },
              "type": {
                "enum": [
                  "create_version",
                  "merge_version_into_environment",
                  "rollback_to_version"
                ],
                "type": "string",
                "description": "Commit type"
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Commit message"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when commit was created"
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "message",
              "created_at"
            ]
          },
          "immutable_bucket": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "bucket",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique bucket identifier"
              },
              "is_immutable": {
                "type": "boolean",
                "description": "Whether the bucket is immutable"
              },
              "is_read_only": {
                "type": "boolean",
                "description": "Whether the bucket is read-only"
              },
              "scm_repo_link": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "bucket.scm_repo",
                    "type": "string"
                  },
                  "is_linked": {
                    "const": true,
                    "type": "boolean"
                  },
                  "path": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Path within the SCM repository"
                  },
                  "repository": {
                    "$ref": "#/components/schemas/Repository"
                  }
                },
                "required": [
                  "object",
                  "is_linked",
                  "path",
                  "repository"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created"
              }
            },
            "required": [
              "object",
              "id",
              "is_immutable",
              "is_read_only",
              "scm_repo_link",
              "created_at"
            ]
          },
          "actor": {
            "$ref": "#/components/schemas/Actor"
          },
          "scm_push": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "scm.push",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique SCM push identifier"
              },
              "actor": {
                "$ref": "#/components/schemas/Actor2"
              },
              "commit": {
                "$ref": "#/components/schemas/Commit"
              },
              "repository": {
                "$ref": "#/components/schemas/Repository"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created"
              }
            },
            "required": [
              "object",
              "id",
              "actor",
              "commit",
              "repository",
              "created_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "trigger",
          "custom_provider_id",
          "provider_id",
          "custom_provider_version_id",
          "commit",
          "immutable_bucket",
          "actor",
          "scm_push",
          "created_at",
          "updated_at"
        ]
      },
      "CustomProviderDeploymentLogs": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.deployment.logs",
            "type": "string",
            "description": "String representing the object's type"
          },
          "custom_provider_deployment_id": {
            "type": "string",
            "description": "ID of the deployment these logs belong to"
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "object": {
                  "const": "custom_provider.deployment.logs.step",
                  "type": "string",
                  "description": "String representing the deployment log step's type"
                },
                "id": {
                  "type": "string",
                  "description": "Step identifier"
                },
                "name": {
                  "type": "string",
                  "description": "Step name"
                },
                "type": {
                  "type": "string",
                  "description": "Step type",
                  "examples": [
                    "build"
                  ]
                },
                "status": {
                  "enum": [
                    "pending",
                    "running",
                    "succeeded",
                    "failed",
                    "canceled"
                  ],
                  "type": "string",
                  "description": "Step status"
                },
                "logs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "object": {
                        "const": "custom_provider.deployment.logs.step.log",
                        "type": "string",
                        "description": "String representing the deployment log entry's type"
                      },
                      "timestamp": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Log entry timestamp"
                      },
                      "message": {
                        "type": "string",
                        "description": "Log message"
                      }
                    },
                    "required": [
                      "object",
                      "timestamp",
                      "message"
                    ]
                  }
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Timestamp when step was created"
                },
                "started_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Timestamp when step started"
                },
                "ended_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Timestamp when step ended"
                }
              },
              "required": [
                "object",
                "id",
                "name",
                "type",
                "status",
                "logs",
                "created_at",
                "started_at",
                "ended_at"
              ]
            },
            "description": "Deployment steps with logs"
          }
        },
        "required": [
          "object",
          "custom_provider_deployment_id",
          "steps"
        ]
      },
      "CustomProviderVersionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item4"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest6": {
        "type": "object",
        "properties": {
          "custom_provider_id": {
            "type": "string",
            "description": "Custom provider ID",
            "examples": [
              "cp_1aBcDeFgHjKlMnPq"
            ]
          },
          "from": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/From"
              },
              {
                "$ref": "#/components/schemas/From2"
              },
              {
                "$ref": "#/components/schemas/From3"
              },
              {
                "$ref": "#/components/schemas/From4"
              }
            ]
          },
          "config": {
            "type": "object",
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "Configuration JSON schema"
              },
              "transformer": {
                "type": "string",
                "description": "Configuration transformer code"
              }
            },
            "required": [
              "schema",
              "transformer"
            ]
          }
        },
        "required": [
          "custom_provider_id",
          "from"
        ]
      },
      "CustomProviderVersion": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.version",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider version identifier",
            "examples": [
              "cpv_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "queued",
              "deploying",
              "deployment_succeeded",
              "deployment_failed"
            ],
            "type": "string",
            "description": "Current version status"
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "custom_provider.version.config",
                "type": "string",
                "description": "String representing the object's type"
              },
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the configuration fields for the custom provider"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "transformer": {
                "type": "string",
                "description": "Optional jsonata transformer function for the configuration."
              }
            },
            "required": [
              "object",
              "schema",
              "transformer"
            ]
          },
          "index": {
            "type": "number",
            "description": "Version index number",
            "examples": [
              1
            ]
          },
          "identifier": {
            "type": "string",
            "description": "Version identifier",
            "examples": [
              "v1.0.0"
            ]
          },
          "deployment": {
            "$ref": "#/components/schemas/Item3"
          },
          "environments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Environment2"
            },
            "description": "Environments this version is deployed to"
          },
          "custom_provider_id": {
            "type": "string",
            "description": "ID of the parent custom provider",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the associated provider",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "actor": {
            "$ref": "#/components/schemas/Actor"
          },
          "container_image": {
            "$ref": "#/components/schemas/ContainerImage"
          },
          "remote_mcp_server": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "URL of the remote MCP server",
                "examples": [
                  "https://mcp.example.com"
                ]
              },
              "transport": {
                "type": "string",
                "description": "Transport protocol for the remote MCP server",
                "examples": [
                  "grpc"
                ]
              }
            },
            "required": [
              "url",
              "transport"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "config",
          "index",
          "identifier",
          "deployment",
          "environments",
          "custom_provider_id",
          "provider_id",
          "actor",
          "created_at",
          "updated_at"
        ]
      },
      "CustomProviderEnv": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.env",
            "type": "string",
            "description": "String representing the object's type"
          },
          "env": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Key-value pairs representing the custom provider environment variables"
          }
        },
        "required": [
          "object",
          "env"
        ]
      },
      "CustomProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item5"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest7": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "My Custom Provider"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "A custom MCP server for my application"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "from": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/From"
              },
              {
                "$ref": "#/components/schemas/From2"
              },
              {
                "$ref": "#/components/schemas/From3"
              },
              {
                "$ref": "#/components/schemas/From4"
              }
            ]
          },
          "config": {
            "type": "object",
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "Configuration JSON schema"
              },
              "transformer": {
                "type": "string",
                "description": "Configuration transformer code"
              }
            },
            "required": [
              "schema",
              "transformer"
            ]
          }
        },
        "required": [
          "name",
          "from"
        ]
      },
      "CustomProvider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider identifier",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Current status of the custom provider"
          },
          "type": {
            "enum": [
              "function",
              "container",
              "remote"
            ],
            "type": "string",
            "description": "Type of the custom provider"
          },
          "name": {
            "type": "string",
            "description": "Display name of the custom provider",
            "examples": [
              "My Custom Provider"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brief description of the custom provider",
            "examples": [
              "A custom provider for my application"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "draft": {
            "$ref": "#/components/schemas/Draft"
          },
          "scm_repo": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "scm.repository",
                "type": "string"
              },
              "id": {
                "type": "string",
                "description": "Unique repository identifier"
              },
              "provider": {
                "$ref": "#/components/schemas/Provider2"
              },
              "url": {
                "type": "string",
                "description": "Repository URL"
              },
              "is_private": {
                "type": "boolean",
                "description": "Whether the repository is private"
              },
              "default_branch": {
                "type": "string",
                "description": "Default branch name"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created"
              }
            },
            "required": [
              "object",
              "id",
              "provider",
              "url",
              "is_private",
              "default_branch",
              "created_at"
            ]
          },
          "provider": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider identifier",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "access": {
                "enum": [
                  "public",
                  "tenant"
                ],
                "type": "string",
                "description": "Access level of the provider"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Current status of the provider"
              },
              "publisher": {
                "$ref": "#/components/schemas/Publisher"
              },
              "current_version": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.version",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique version identifier",
                    "examples": [
                      "prv_4dEfGhJkLmNpQrSt"
                    ]
                  },
                  "version": {
                    "type": "string",
                    "description": "Version identifier string",
                    "examples": [
                      "1.0.0"
                    ]
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "is_current": {
                    "type": "boolean",
                    "description": "Whether this is the current version"
                  },
                  "name": {
                    "type": "string",
                    "description": "Version name",
                    "examples": [
                      "Version 1.0.0"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Version description"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "specification_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Specification ID",
                    "examples": [
                      "psp_9gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "version",
                  "provider_id",
                  "is_current",
                  "name",
                  "description",
                  "metadata",
                  "specification_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "oauth": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "enabled",
                      "disabled"
                    ],
                    "type": "string",
                    "description": "OAuth status"
                  },
                  "callback_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "OAuth callback URL"
                  },
                  "auto_registration": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "enum": [
                          "supported",
                          "unsupported"
                        ],
                        "type": "string",
                        "description": "Auto-registration status"
                      }
                    },
                    "required": [
                      "status"
                    ]
                  }
                },
                "required": [
                  "status",
                  "callback_url",
                  "auto_registration"
                ]
              },
              "identifier": {
                "type": "string",
                "description": "Provider identifier"
              },
              "name": {
                "type": "string",
                "description": "Display name of the provider"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brief description of the provider"
              },
              "slug": {
                "type": "string",
                "description": "URL-friendly identifier"
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "access",
              "status",
              "publisher",
              "current_version",
              "oauth",
              "identifier",
              "name",
              "description",
              "slug",
              "metadata",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "type",
          "name",
          "description",
          "metadata",
          "draft",
          "scm_repo",
          "provider",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest8": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Updated Provider Name"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated description"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "readme": {
            "type": "string",
            "description": "README content in markdown format"
          }
        }
      },
      "DocumentList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item6"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest9": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "content"
        ]
      },
      "Document": {
        "type": "object",
        "properties": {
          "object": {
            "const": "document",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "deleted"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "file_id": {
            "type": "string"
          },
          "parent_document_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "current_version_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "enum": [
                  "organization_actor",
                  "consumer",
                  "resource_actor"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization_actor": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "organization.actor",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "The organization member's unique identifier",
                    "examples": [
                      "omem_5fGhJkLmNpQrStUv"
                    ]
                  },
                  "type": {
                    "enum": [
                      "member",
                      "machine_access"
                    ],
                    "type": "string",
                    "description": "The organization member's type"
                  },
                  "organization_id": {
                    "type": "string",
                    "description": "The organization member's organization ID",
                    "examples": [
                      "org_7hNkPqRsTuVwXyZa"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "The organization member's name",
                    "examples": [
                      "Alex Chen"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The organization member's email",
                    "examples": [
                      "alex.chen@acme.com"
                    ]
                  },
                  "image_url": {
                    "type": "string",
                    "description": "The organization member's image URL",
                    "examples": [
                      "https://avatar-cdn.metorial.com/aimg_1234567890"
                    ]
                  },
                  "member": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.member#preview",
                        "type": "string",
                        "description": "String representing the organization's member preview type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "ome_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "status": {
                        "enum": [
                          "active",
                          "deleted"
                        ],
                        "type": "string",
                        "description": "The organization member's status"
                      },
                      "role": {
                        "enum": [
                          "member",
                          "admin"
                        ],
                        "type": "string",
                        "description": "The organization member's role"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "status",
                      "role"
                    ]
                  },
                  "teams": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Team"
                    }
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's creation date"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's last update date"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "organization_id",
                  "name",
                  "email",
                  "image_url",
                  "member",
                  "teams",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "consumer",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "name",
                  "email",
                  "image_url",
                  "user_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer_profile": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ConsumerProfile2"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "groups": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "$ref": "#/components/schemas/Group"
                            }
                          }
                        },
                        "required": [
                          "groups"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "name",
              "image_url",
              "email",
              "organization_actor",
              "consumer",
              "consumer_profile"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "title",
          "content",
          "file_id",
          "parent_document_id",
          "current_version_id",
          "created_by",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest10": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "BodyRequest11": {
        "type": "object",
        "properties": {
          "target_document_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "DocumentParticipantList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item7"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "DocumentParticipant": {
        "type": "object",
        "properties": {
          "object": {
            "const": "document.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "role": {
            "enum": [
              "editor",
              "viewer"
            ],
            "type": "string"
          },
          "edit_count": {
            "type": "number"
          },
          "last_edited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_viewed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "actor": {
            "$ref": "#/components/schemas/Actor3"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "role",
          "edit_count",
          "last_edited_at",
          "last_viewed_at",
          "actor",
          "created_at"
        ]
      },
      "DocumentVersionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item8"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "DocumentVersion": {
        "type": "object",
        "properties": {
          "object": {
            "const": "document.version",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "document_id": {
            "type": "string"
          },
          "version_number": {
            "type": "number"
          },
          "previous_version_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "list_edited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "content": {
            "type": "string"
          },
          "editors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Actor3"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "document_id",
          "version_number",
          "previous_version_id",
          "list_edited_at",
          "content",
          "editors",
          "created_at"
        ]
      },
      "IntegrationInstanceGroupProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item9"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "IntegrationInstanceGroupProvider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance.group.provider",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "integration_id": {
            "type": "string"
          },
          "integration_instance_group_id": {
            "type": "string"
          },
          "integration_instance_id": {
            "type": "string"
          },
          "integration_provider_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "integration_instance_provider_id": {
            "type": "string"
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "is_override_tool_filter": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "integration_instance_group_id",
          "integration_instance_id",
          "integration_provider_id",
          "integration_instance_provider_id",
          "tool_filter",
          "is_override_tool_filter",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "IntegrationInstanceGroupList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item10"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest12": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider3"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "IntegrationInstanceGroup": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance.group",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "implementation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "magic_mcp_endpoint",
                "type": "string"
              },
              "magic_mcp_endpoint_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "magic_mcp_endpoint_id"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item9"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "implementation",
          "providers",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "BodyRequest13": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider3"
            }
          }
        }
      },
      "BodyRequest14": {
        "type": "object",
        "properties": {
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "BodyRequest15": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          }
        }
      },
      "ProviderSession": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session identifier",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Session status"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "Production Session"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Session for production environment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "connection_state": {
            "enum": [
              "connected",
              "disconnected"
            ],
            "type": "string",
            "description": "Session connection state"
          },
          "connection_url": {
            "type": "string",
            "description": "MCP connection URL for this session",
            "examples": [
              "https://mcp.metorial.com/mcp/ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "client_secret": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session-scoped fine grained client secret token",
            "examples": [
              "metorial_fk_4eC39HqLyjWDarjtT1zdp7dc"
            ]
          },
          "usage": {
            "$ref": "#/components/schemas/Usage"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider4"
            },
            "description": "Session providers"
          },
          "from_templates_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Template IDs this session was created from"
          },
          "has_errors": {
            "type": "boolean",
            "description": "Whether the session has any errors"
          },
          "has_warnings": {
            "type": "boolean",
            "description": "Whether the session has any warnings"
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "connection_state",
          "connection_url",
          "client_secret",
          "usage",
          "providers",
          "from_templates_ids",
          "has_errors",
          "has_warnings",
          "identity_actor_id",
          "identity_id",
          "created_at",
          "updated_at"
        ]
      },
      "SessionTemplate": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.template",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session template identifier",
            "examples": [
              "stm_2bCdEfGhJkLmNpQr"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Status of the session template"
          },
          "name": {
            "type": "string",
            "description": "Template name",
            "examples": [
              "Production Template"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Template description",
            "examples": [
              "Template for production sessions"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs"
          },
          "integration_instance_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "integration_instance_group_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider5"
            },
            "description": "Template providers"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_instance_id",
          "integration_instance_group_id",
          "identity_actor_id",
          "identity_id",
          "providers",
          "created_at",
          "updated_at"
        ]
      },
      "IntegrationInstanceProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item11"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "IntegrationInstanceProvider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance.provider",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "integration_id": {
            "type": "string"
          },
          "integration_instance_id": {
            "type": "string"
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "is_override_tool_filter": {
            "type": "boolean"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider6"
          },
          "integration_provider": {
            "$ref": "#/components/schemas/IntegrationProvider2"
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "integration_instance_id",
          "tool_filter",
          "is_override_tool_filter",
          "provider",
          "integration_provider",
          "config",
          "auth_config",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "IntegrationInstanceList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item12"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest16": {
        "type": "object",
        "properties": {
          "integration_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider7"
            }
          }
        },
        "required": [
          "integration_id",
          "name"
        ]
      },
      "IntegrationInstance": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "integration_id": {
            "type": "string"
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "implementation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "magic_mcp_server",
                "type": "string"
              },
              "magic_mcp_server_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "magic_mcp_server_id"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item11"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "identity_actor_id",
          "identity_id",
          "implementation",
          "providers",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "BodyRequest17": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider7"
            }
          }
        }
      },
      "BodyRequest18": {
        "type": "object",
        "properties": {
          "provider_deployment_id": {
            "type": "string"
          },
          "provider_config_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_auth_config_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "is_override_tool_filter": {
            "type": "boolean"
          }
        }
      },
      "IntegrationProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item13"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest19": {
        "type": "object",
        "properties": {
          "integration_id": {
            "type": "string"
          },
          "provider_id": {
            "type": "string"
          },
          "provider_deployment_id": {
            "type": "string"
          },
          "provider_auth_method_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_auth_credentials_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_config_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "integration_id",
          "provider_id",
          "provider_deployment_id"
        ]
      },
      "IntegrationProvider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.provider",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "integration_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string"
          },
          "deployment_id": {
            "type": "string"
          },
          "auth_method_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "auth_credentials_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "integration_id",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "deployment_id",
          "auth_method_id",
          "auth_credentials_id",
          "config",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "BodyRequest20": {
        "type": "object",
        "properties": {
          "provider_deployment_id": {
            "type": "string"
          },
          "provider_auth_method_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_auth_credentials_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_config_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "IntegrationSetupSessionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item14"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest21": {
        "type": "object",
        "properties": {
          "integration_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "redirect_url": {
            "type": "string"
          },
          "configuration": {
            "$ref": "#/components/schemas/Configuration"
          }
        },
        "required": [
          "integration_id",
          "name"
        ]
      },
      "IntegrationSetupSession": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.setup_session",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "successful",
              "expired",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "configuration": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "redirect_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "integration_id": {
            "type": "string"
          },
          "integration_instance": {
            "$ref": "#/components/schemas/Item12"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "url",
          "name",
          "description",
          "metadata",
          "configuration",
          "redirect_url",
          "integration_id",
          "integration_instance",
          "created_at",
          "updated_at",
          "expires_at"
        ]
      },
      "IntegrationList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item15"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest22": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "use_integration_name_in_tool_names": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "can_attach_custom_tool_filters": {
            "type": "boolean"
          },
          "can_attach_custom_provider_config": {
            "type": "boolean"
          },
          "can_override_tool_filters": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ]
      },
      "Integration": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "configuration": {
            "$ref": "#/components/schemas/Configuration2"
          },
          "implementation": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "provider_template",
                        "type": "string"
                      },
                      "provider_template_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "provider_template_id"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "magic_mcp_server",
                        "type": "string"
                      },
                      "magic_mcp_server_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "magic_mcp_server_id"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item13"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "slug",
          "name",
          "description",
          "metadata",
          "configuration",
          "implementation",
          "providers",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "BodyRequest23": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "use_integration_name_in_tool_names": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "can_attach_custom_tool_filters": {
            "type": "boolean"
          },
          "can_attach_custom_provider_config": {
            "type": "boolean"
          },
          "can_override_tool_filters": {
            "type": "boolean"
          }
        }
      },
      "PortalList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item16"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest24": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "allowed_redirect_url_filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "session_expiry_time_in_seconds": {
            "type": "number"
          },
          "allow_consumer_skill_authoring": {
            "type": "boolean"
          },
          "allow_consumer_skill_publishing": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ]
      },
      "Portal": {
        "type": "object",
        "properties": {
          "object": {
            "const": "portal",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "allow_consumer_skill_authoring": {
            "type": "boolean"
          },
          "allow_consumer_skill_publishing": {
            "type": "boolean"
          },
          "skill_configuration": {
            "$ref": "#/components/schemas/SkillConfiguration2"
          },
          "auth": {
            "$ref": "#/components/schemas/Auth"
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "enum": [
                    "default",
                    "namespace"
                  ],
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "url"
              ]
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "slug",
          "description",
          "allow_consumer_skill_authoring",
          "allow_consumer_skill_publishing",
          "skill_configuration",
          "auth",
          "urls",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest25": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "allowed_redirect_url_filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "session_expiry_time_in_seconds": {
            "type": "number"
          },
          "allow_consumer_skill_authoring": {
            "type": "boolean"
          },
          "allow_consumer_skill_publishing": {
            "type": "boolean"
          },
          "skill_configuration": {
            "type": "object",
            "properties": {
              "allow_scripts": {
                "type": "boolean"
              },
              "allowed_file_extensions": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                }
              },
              "allow_non_standard_directories": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "ConsumerAccessList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item17"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest26": {
        "type": "object",
        "properties": {
          "consumer_group_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "readme": {
            "type": [
              "string",
              "null"
            ]
          },
          "access": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "provider_template",
                    "type": "string"
                  },
                  "provider_template_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "provider_template_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "magic_mcp_server",
                    "type": "string"
                  },
                  "magic_mcp_server_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "magic_mcp_server_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill",
                    "type": "string"
                  },
                  "skill_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_template",
                    "type": "string"
                  },
                  "skill_template_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_template_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_group",
                    "type": "string"
                  },
                  "skill_group_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_group_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_marketplace",
                    "type": "string"
                  },
                  "skill_marketplace_id": {
                    "type": "string"
                  },
                  "permission": {
                    "enum": [
                      "read",
                      "manage"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_marketplace_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_plugin",
                    "type": "string"
                  },
                  "skill_marketplace_id": {
                    "type": "string"
                  },
                  "skill_plugin_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_marketplace_id",
                  "skill_plugin_id"
                ]
              }
            ]
          }
        },
        "required": [
          "consumer_group_id",
          "access"
        ]
      },
      "ConsumerAccess": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.access",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "access_level": {
            "enum": [
              "read",
              "manage"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "readme": {
            "type": [
              "string",
              "null"
            ]
          },
          "listing": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "description"
            ]
          },
          "access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Access"
              },
              {
                "$ref": "#/components/schemas/Access2"
              },
              {
                "$ref": "#/components/schemas/Access3"
              },
              {
                "$ref": "#/components/schemas/Access4"
              },
              {
                "$ref": "#/components/schemas/Access5"
              },
              {
                "$ref": "#/components/schemas/Access6"
              },
              {
                "$ref": "#/components/schemas/Access7"
              }
            ]
          },
          "consumer_group": {
            "$ref": "#/components/schemas/ConsumerGroup"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "access_level",
          "name",
          "description",
          "readme",
          "listing",
          "access",
          "consumer_group",
          "created_at",
          "updated_at"
        ]
      },
      "ConsumerAccessRequestList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item18"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "ConsumerAccessRequest": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.access_request",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "approved",
              "rejected"
            ],
            "type": "string"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolution_message": {
            "type": [
              "string",
              "null"
            ]
          },
          "consumer_profile": {
            "type": "object",
            "properties": {
              "object": {
                "const": "consumer.profile#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "email"
            ]
          },
          "target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Access"
              },
              {
                "$ref": "#/components/schemas/Access2"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "reviewed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "message",
          "resolution_message",
          "consumer_profile",
          "target",
          "created_at",
          "updated_at",
          "reviewed_at"
        ]
      },
      "BodyRequest27": {
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "approved",
              "rejected"
            ],
            "type": "string"
          },
          "resolution_message": {
            "type": "string"
          },
          "consumer_group_id": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ]
      },
      "BodyRequest28": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "readme": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ConsumerGroupList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerGroup"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest29": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ]
      },
      "ConsumerGroup": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.group",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_default": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "is_default",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest30": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          }
        }
      },
      "ConsumerInviteList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerInvite"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest31": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "ConsumerInvite": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.invite",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "accepted"
            ],
            "type": "string"
          },
          "portal_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "consumer_profile": {
            "type": "object",
            "properties": {
              "object": {
                "const": "consumer.profile#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "email"
            ]
          },
          "invited_by": {
            "type": "object",
            "properties": {
              "object": {
                "const": "organization.actor#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "email"
            ]
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "portal_url",
          "consumer_profile",
          "invited_by",
          "message",
          "accepted_at",
          "created_at",
          "updated_at"
        ]
      },
      "ConsumerProfileList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ConsumerProfile2"
                },
                {
                  "type": "object",
                  "properties": {
                    "groups": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "$ref": "#/components/schemas/Group"
                      }
                    }
                  },
                  "required": [
                    "groups"
                  ]
                }
              ]
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest32": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "name"
        ]
      },
      "ConsumerProfile": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ConsumerProfile2"
          },
          {
            "type": "object",
            "properties": {
              "groups": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "$ref": "#/components/schemas/Group"
                }
              }
            },
            "required": [
              "groups"
            ]
          }
        ]
      },
      "BodyRequest33": {
        "type": "object",
        "properties": {
          "group_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "group_ids"
        ]
      },
      "BodyRequest34": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "readme": {
            "type": [
              "string",
              "null"
            ]
          },
          "access": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "provider_template",
                    "type": "string"
                  },
                  "provider_template_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "provider_template_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "magic_mcp_server",
                    "type": "string"
                  },
                  "magic_mcp_server_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "magic_mcp_server_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill",
                    "type": "string"
                  },
                  "skill_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_template",
                    "type": "string"
                  },
                  "skill_template_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_template_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_group",
                    "type": "string"
                  },
                  "skill_group_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_group_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "skill_marketplace",
                    "type": "string"
                  },
                  "skill_marketplace_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "skill_marketplace_id"
                ]
              }
            ]
          }
        },
        "required": [
          "access"
        ]
      },
      "ConsumerAccessListing": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.access_listing",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "readme": {
            "type": [
              "string",
              "null"
            ]
          },
          "access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Access"
              },
              {
                "$ref": "#/components/schemas/Access2"
              },
              {
                "$ref": "#/components/schemas/Access3"
              },
              {
                "$ref": "#/components/schemas/Access4"
              },
              {
                "$ref": "#/components/schemas/Access5"
              },
              {
                "$ref": "#/components/schemas/Access6"
              },
              {
                "$ref": "#/components/schemas/Access7"
              }
            ]
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "index": {
                  "type": "number"
                }
              },
              "required": [
                "id",
                "name",
                "description",
                "index"
              ]
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "name",
          "description",
          "readme",
          "access",
          "groups",
          "created_at",
          "updated_at"
        ]
      },
      "AuthExportList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item19"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest35": {
        "type": "object",
        "properties": {
          "provider_auth_config_id": {
            "type": "string",
            "description": "Provider auth config ID",
            "examples": [
              "pacf_4sTuVwXyZaBcDeFg"
            ]
          },
          "note": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          }
        },
        "required": [
          "provider_auth_config_id",
          "note"
        ]
      },
      "AuthExport": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_export",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth export identifier",
            "examples": [
              "pace_7yZaBcDeFgHjKlMn"
            ]
          },
          "note": {
            "type": "string",
            "description": "Note explaining the export reason",
            "examples": [
              "Exported for backup purposes"
            ]
          },
          "ip": {
            "type": [
              "string",
              "null"
            ],
            "description": "IP address of the export request",
            "examples": [
              "192.168.1.1"
            ]
          },
          "user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "User agent of the export request"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "auth_config": {
            "$ref": "#/components/schemas/AuthConfig"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deployment ID",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "auth_method_id": {
            "type": "string",
            "description": "Auth method ID",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "credentials_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Auth credentials ID",
            "examples": [
              "par_4sTuVwXyZaBcDeFg"
            ]
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "The exported credential data"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when the export expires",
            "examples": [
              "2026-03-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "note",
          "ip",
          "user_agent",
          "metadata",
          "auth_config",
          "provider_id",
          "provider_deployment_id",
          "auth_method_id",
          "credentials_id",
          "value",
          "created_at",
          "expires_at"
        ]
      },
      "AuthImportList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item20"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest36": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": "string",
            "examples": [
              "pdp_4dEfGhJkLmNpQrSt"
            ]
          },
          "provider_auth_config_id": {
            "type": "string",
            "examples": [
              "pacf_4sTuVwXyZaBcDeFg"
            ]
          },
          "provider_auth_method_id": {
            "type": "string",
            "description": "The authentication method used by these credentials",
            "examples": [
              "pam_3cDeFgHjKlMnPqRs"
            ]
          },
          "note": {
            "type": "string",
            "description": "A note describing the import source or reason",
            "examples": [
              "Migrated from legacy OAuth app"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "value": {
            "type": "object",
            "additionalProperties": {},
            "description": "The credential data to import"
          }
        },
        "required": [
          "note",
          "value"
        ]
      },
      "AuthImport": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_import",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth import identifier",
            "examples": [
              "paci_1vWxYzAbCdEfGhJk"
            ]
          },
          "note": {
            "type": "string",
            "description": "Note explaining the import",
            "examples": [
              "Imported from previous environment"
            ]
          },
          "ip": {
            "type": [
              "string",
              "null"
            ],
            "description": "IP address of the import request",
            "examples": [
              "192.168.1.1"
            ]
          },
          "user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "User agent of the import request"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "auth_config": {
            "$ref": "#/components/schemas/AuthConfig"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deployment ID",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "auth_method_id": {
            "type": "string",
            "description": "Auth method ID",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "credentials_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Auth credentials ID",
            "examples": [
              "par_4sTuVwXyZaBcDeFg"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when the import expires",
            "examples": [
              "2026-03-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "note",
          "ip",
          "user_agent",
          "metadata",
          "auth_config",
          "provider_id",
          "provider_deployment_id",
          "auth_method_id",
          "credentials_id",
          "created_at",
          "expires_at"
        ]
      },
      "AuthImportSchema": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.auth_config.schema",
            "type": "string",
            "description": "String representing the object's type"
          },
          "schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema for auth import data"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "visibility": {
            "enum": [
              "encrypted"
            ],
            "type": "string",
            "description": "Visibility of the auth config data"
          },
          "specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "schema",
          "visibility",
          "specification_id",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderAuthConfigList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthConfig"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest37": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "GitHub OAuth Token"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "OAuth token for GitHub API access"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "provider_auth_method_id": {
            "type": "string",
            "description": "The authentication method this config uses (e.g., OAuth, API key)",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "provider_deployment_id": {
            "type": "string",
            "description": "The provider deployment this auth config is associated with (if applicable)",
            "examples": [
              "pd_2mNpQrStUvWxYzAb"
            ]
          },
          "value": {
            "type": "object",
            "additionalProperties": {},
            "description": "Authentication config payload"
          }
        },
        "required": [
          "provider_auth_method_id",
          "value"
        ]
      },
      "ProviderAuthConfig": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_config",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth config identifier",
            "examples": [
              "pac_8pQrStUvWxYzAbCd"
            ]
          },
          "type": {
            "enum": [
              "manual",
              "oauth_automated",
              "oauth_manual"
            ],
            "type": "string",
            "description": "Authentication type"
          },
          "source": {
            "enum": [
              "manual",
              "setup_session",
              "system"
            ],
            "type": "string",
            "description": "Auth config source"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Auth config status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default auth config"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "GitHub OAuth Token"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "OAuth token for GitHub API access"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "credentials": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_credentials",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique credentials identifier",
                "examples": [
                  "par_4sTuVwXyZaBcDeFg"
                ]
              },
              "type": {
                "const": "oauth",
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Credentials status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default credentials for the provider",
                "examples": [
                  true
                ]
              },
              "is_managed": {
                "type": "boolean",
                "description": "Whether these credentials are managed by Metorial",
                "examples": [
                  true
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "GitHub OAuth"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "OAuth credentials for GitHub API"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "scopes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                },
                "description": "OAuth scopes requested by this credential"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "status",
              "is_default",
              "is_managed",
              "name",
              "description",
              "metadata",
              "scopes",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "auth_method": {
            "$ref": "#/components/schemas/AuthMethod"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "source",
          "status",
          "is_default",
          "provider_id",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "deployment",
          "credentials",
          "auth_method",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest38": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Updated Auth Config Name"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated description for auth configuration"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ProviderAuthCredentialsList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderAuthCredentials"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest39": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "GitHub OAuth"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "OAuth credentials for GitHub API"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "config": {
            "type": "object",
            "properties": {
              "type": {
                "const": "oauth",
                "type": "string"
              },
              "client_id": {
                "type": "string",
                "description": "OAuth client ID",
                "examples": [
                  "Iv1.abc123def456"
                ]
              },
              "client_secret": {
                "type": "string",
                "description": "OAuth client secret",
                "examples": [
                  "gho_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                ]
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "examples": [
                    "repo"
                  ]
                },
                "description": "OAuth scopes to request"
              }
            },
            "required": [
              "client_id",
              "client_secret",
              "scopes"
            ]
          }
        },
        "required": [
          "provider_id",
          "config"
        ]
      },
      "ProviderAuthCredentials": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_credentials",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique credentials identifier",
            "examples": [
              "par_4sTuVwXyZaBcDeFg"
            ]
          },
          "type": {
            "const": "oauth",
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Credentials status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default credentials for the provider",
            "examples": [
              true
            ]
          },
          "is_managed": {
            "type": "boolean",
            "description": "Whether these credentials are managed by Metorial",
            "examples": [
              true
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "GitHub OAuth"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "OAuth credentials for GitHub API"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "scopes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "OAuth scopes requested by this credential"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status",
          "is_default",
          "is_managed",
          "name",
          "description",
          "metadata",
          "scopes",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest40": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "client_id": {
            "type": "string"
          },
          "client_secret": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ProviderCapabilitiesAuthMethodList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthMethod"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "ProviderCapabilitiesAuthMethod": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.auth_method",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth method identifier",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "type": {
            "enum": [
              "oauth",
              "token",
              "custom"
            ],
            "type": "string",
            "description": "Authentication type"
          },
          "key": {
            "type": "string",
            "description": "Auth method key",
            "examples": [
              "oauth2"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "OAuth 2.0"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Auth method description",
            "examples": [
              "Authenticate using OAuth 2.0"
            ]
          },
          "capabilities": {
            "type": "object",
            "additionalProperties": {},
            "description": "Auth method capabilities"
          },
          "input_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the required auth input fields"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "output_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the auth output fields"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "scopes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/Scope"
            },
            "description": "Available OAuth scopes"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "key",
          "name",
          "description",
          "capabilities",
          "input_schema",
          "output_schema",
          "scopes",
          "provider_id",
          "provider_specification_id",
          "created_at",
          "updated_at"
        ]
      },
      "ConfigSchema": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.config.schema",
            "type": "string",
            "description": "String representing the object's type"
          },
          "schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema for provider configuration"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "visibility": {
            "enum": [
              "plain",
              "encrypted"
            ],
            "type": "string",
            "description": "Visibility of the config data"
          },
          "specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "schema",
          "visibility",
          "specification_id",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "ConfigVaultList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConfigVault"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest41": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": "string",
            "description": "Provider deployment ID",
            "examples": [
              "pdp_4dEfGhJkLmNpQrSt"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Production Secrets"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Secure storage for production credentials"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "value": {
            "type": "object",
            "additionalProperties": {},
            "description": "Secure configuration values to store in the vault"
          }
        },
        "required": [
          "provider_id",
          "name",
          "value"
        ]
      },
      "ConfigVault": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.config_vault",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique config vault identifier",
            "examples": [
              "pcvt_3bCdEfGhJkLmNpQr"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Status of the config vault"
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "Production Secrets"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Secure storage for production credentials"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "provider_id",
          "deployment",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest42": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Updated Vault Name"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated vault description"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          }
        }
      },
      "ConfigList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item21"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest43": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "provider_deployment_id": {
                "type": "string",
                "description": "Optional provider deployment ID",
                "examples": [
                  "pdp_4dEfGhJkLmNpQrSt"
                ]
              },
              "name": {
                "type": "string",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": "string",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "tool_filters": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "tool_keys",
                                "type": "string"
                              },
                              "keys": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "keys"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "tool_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "resource_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "resource_uris",
                                "type": "string"
                              },
                              "uris": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "uris"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "prompt_keys",
                                "type": "string"
                              },
                              "keys": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "keys"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "prompt_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_uris",
                                  "type": "string"
                                },
                                "uris": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "uris"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "provider_id"
            ]
          },
          {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "Provider-specific configuration values"
                  }
                },
                "required": [
                  "value"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "provider_config_vault_id": {
                    "type": "string",
                    "description": "Config vault ID to use as template",
                    "examples": [
                      "pcvt_3bCdEfGhJkLmNpQr"
                    ]
                  }
                },
                "required": [
                  "provider_config_vault_id"
                ]
              }
            ]
          }
        ]
      },
      "Config": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.config",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique config identifier",
            "examples": [
              "pcf_7dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Config status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default config"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "Production Config"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Configuration for production environment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "from_vault": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config_vault",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique config vault identifier",
                "examples": [
                  "pcvt_3bCdEfGhJkLmNpQr"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Status of the config vault"
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Production Secrets"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Secure storage for production credentials"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "deployment": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.deployment#preview",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Deployment ID",
                    "examples": [
                      "pde_1aBcDeFgHjKlMnPq"
                    ]
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default deployment"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Deployment name",
                    "examples": [
                      "Production"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Production deployment"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "is_default",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "name",
              "description",
              "metadata",
              "provider_id",
              "deployment",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "is_default",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "specification_id",
          "deployment",
          "from_vault",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest44": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "DeploymentList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item22"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest45": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "examples": [
                  "Production Deployment"
                ]
              },
              "description": {
                "type": "string",
                "examples": [
                  "Main production environment configuration"
                ]
              },
              "metadata": {
                "type": "object",
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "tool_filters": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "tool_keys",
                                "type": "string"
                              },
                              "keys": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "keys"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "tool_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "resource_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "resource_uris",
                                "type": "string"
                              },
                              "uris": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "uris"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "prompt_keys",
                                "type": "string"
                              },
                              "keys": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "keys"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "prompt_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_uris",
                                  "type": "string"
                                },
                                "uris": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "uris"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "provider_id": {
                "type": "string",
                "description": "The provider to deploy",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "locked_provider_version_id": {
                "type": "string",
                "description": "Pin this deployment to a specific provider version",
                "examples": [
                  "prv_4dEfGhJkLmNpQrSt"
                ]
              }
            },
            "required": [
              "provider_id"
            ]
          },
          {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "provider_config_id": {
                    "type": "string",
                    "description": "Existing provider config ID",
                    "examples": [
                      "pcf_7dEfGhJkLmNpQrSt"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "provider_config": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "examples": [
                              "Default Config"
                            ]
                          },
                          "value": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "Provider-specific configuration values"
                          }
                        },
                        "required": [
                          "value"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "examples": [
                              "Default Config"
                            ]
                          },
                          "provider_config_vault_id": {
                            "type": "string",
                            "description": "Provider config vault ID",
                            "examples": [
                              "pcvt_3bCdEfGhJkLmNpQr"
                            ]
                          }
                        },
                        "required": [
                          "provider_config_vault_id"
                        ]
                      }
                    ]
                  }
                }
              }
            ]
          }
        ]
      },
      "Deployment": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.deployment",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique deployment identifier",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Deployment status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default deployment"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "Production"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Production deployment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "locked_version": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.version",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique version identifier",
                "examples": [
                  "prv_4dEfGhJkLmNpQrSt"
                ]
              },
              "version": {
                "type": "string",
                "description": "Version identifier string",
                "examples": [
                  "1.0.0"
                ]
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "is_current": {
                "type": "boolean",
                "description": "Whether this is the current version"
              },
              "name": {
                "type": "string",
                "description": "Version name",
                "examples": [
                  "Version 1.0.0"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Version description"
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "specification_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "version",
              "provider_id",
              "is_current",
              "name",
              "description",
              "metadata",
              "specification_id",
              "created_at",
              "updated_at"
            ]
          },
          "default_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "is_default",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "locked_version",
          "default_config",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest46": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Updated Deployment Name"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated description for this deployment"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "locked_provider_version_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pin this deployment to a specific provider version, or null to follow latest",
            "examples": [
              "prv_4dEfGhJkLmNpQrSt"
            ]
          }
        }
      },
      "ProviderRunList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderRun"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "ProviderRun": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.provider_run",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique provider run identifier",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "status": {
            "enum": [
              "running",
              "stopped"
            ],
            "type": "string",
            "description": "Run status"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "session_provider_id": {
            "type": "string",
            "description": "Session provider ID",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "Connection ID",
            "examples": [
              "scn_8hJkLmNpQrStUvWx"
            ]
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when run completed",
            "examples": [
              "2025-09-15T10:30:05.000Z"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "session_id",
          "session_provider_id",
          "provider_id",
          "connection_id",
          "completed_at",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderRunLogs": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.provider_run.logs",
            "type": "string",
            "description": "String representing the object's type"
          },
          "provider_run_id": {
            "type": "string",
            "description": "Provider run ID",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "logs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "object": {
                  "const": "session.provider_run.item",
                  "type": "string",
                  "description": "String representing the object's type"
                },
                "timestamp": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Log timestamp",
                  "examples": [
                    "2025-09-15T10:30:00.000Z"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Log message content",
                  "examples": [
                    "Server started on port 3000"
                  ]
                },
                "output_type": {
                  "enum": [
                    "stdout",
                    "stderr",
                    "debug.info",
                    "debug.warning",
                    "debug.error"
                  ],
                  "type": "string",
                  "description": "Output type of the log entry"
                }
              },
              "required": [
                "object",
                "timestamp",
                "message",
                "output_type"
              ]
            },
            "description": "Array of log entries"
          }
        },
        "required": [
          "object",
          "provider_run_id",
          "logs"
        ]
      },
      "SetupSessionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item23"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest47": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string",
            "description": "The provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": "string",
            "description": "Optional provider deployment ID",
            "examples": [
              "pdp_4dEfGhJkLmNpQrSt"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "GitHub OAuth Setup"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Connect your GitHub account"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "provider_auth_method_id": {
            "type": "string",
            "description": "The authentication method to use (e.g., OAuth flow)",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "provider_auth_credentials_id": {
            "type": "string",
            "description": "Optional OAuth app credentials to use instead of defaults",
            "examples": [
              "pac_3nOpRsTuVwXyZaBc"
            ]
          },
          "identity_id": {
            "type": "string",
            "description": "Optional identity to link this setup session to",
            "examples": [
              "idn_3nOpRsTuVwXyZaBc"
            ]
          },
          "consumer_id": {
            "type": "string",
            "description": "Optional consumer to link this setup session to",
            "examples": [
              "con_1a2b3c4d5e6f7g8h"
            ]
          },
          "redirect_url": {
            "type": "string",
            "examples": [
              "https://app.example.com/oauth/callback"
            ]
          },
          "type": {
            "enum": [
              "auth_only",
              "config_only",
              "auth_and_config",
              "auto"
            ],
            "type": "string",
            "description": "The type of setup session, determining the flow and outcome of the session"
          },
          "configuration": {
            "$ref": "#/components/schemas/Configuration"
          }
        }
      },
      "SetupSession": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.setup_session",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique setup session identifier",
            "examples": [
              "pas_6eFgHjKlMnPqRsTu"
            ]
          },
          "type": {
            "enum": [
              "auth_only",
              "config_only",
              "auth_and_config"
            ],
            "type": "string",
            "description": "Setup session type"
          },
          "status": {
            "enum": [
              "failed",
              "archived",
              "deleted",
              "pending",
              "completed",
              "expired"
            ],
            "type": "string",
            "description": "Session status"
          },
          "url": {
            "type": "string",
            "description": "URL where user completes authentication",
            "examples": [
              "https://provider.metorial.com/setup/pas_6eFgHjKlMnPqRsTu"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "GitHub OAuth Setup"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Connect your GitHub account"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs"
          },
          "configuration": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Setup session configuration"
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Linked identity ID",
            "examples": [
              "idn_3nOpRsTuVwXyZaBc"
            ]
          },
          "identity_credential_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identity credential created from this setup session",
            "examples": [
              "idc_3nOpRsTuVwXyZaBc"
            ]
          },
          "auth_method": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.capabilities.auth_method",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique auth method identifier",
                "examples": [
                  "pam_2mNpQrStUvWxYzAb"
                ]
              },
              "type": {
                "enum": [
                  "oauth",
                  "token",
                  "custom"
                ],
                "type": "string",
                "description": "Authentication type"
              },
              "key": {
                "type": "string",
                "description": "Auth method key",
                "examples": [
                  "oauth2"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "OAuth 2.0"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Auth method description",
                "examples": [
                  "Authenticate using OAuth 2.0"
                ]
              },
              "capabilities": {
                "type": "object",
                "additionalProperties": {},
                "description": "Auth method capabilities"
              },
              "input_schema": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the required auth input fields"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "output_schema": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the auth output fields"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "scopes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "$ref": "#/components/schemas/Scope"
                },
                "description": "Available OAuth scopes"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "provider_specification_id": {
                "type": "string",
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "key",
              "name",
              "description",
              "capabilities",
              "input_schema",
              "output_schema",
              "scopes",
              "provider_id",
              "provider_specification_id",
              "created_at",
              "updated_at"
            ]
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "credentials": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_credentials",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique credentials identifier",
                "examples": [
                  "par_4sTuVwXyZaBcDeFg"
                ]
              },
              "type": {
                "const": "oauth",
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Credentials status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default credentials for the provider",
                "examples": [
                  true
                ]
              },
              "is_managed": {
                "type": "boolean",
                "description": "Whether these credentials are managed by Metorial",
                "examples": [
                  true
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "GitHub OAuth"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "OAuth credentials for GitHub API"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "scopes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                },
                "description": "OAuth scopes requested by this credential"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "status",
              "is_default",
              "is_managed",
              "name",
              "description",
              "metadata",
              "scopes",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique auth config identifier",
                "examples": [
                  "pac_8pQrStUvWxYzAbCd"
                ]
              },
              "type": {
                "enum": [
                  "manual",
                  "oauth_automated",
                  "oauth_manual"
                ],
                "type": "string",
                "description": "Authentication type"
              },
              "source": {
                "enum": [
                  "manual",
                  "setup_session",
                  "system"
                ],
                "type": "string",
                "description": "Auth config source"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Auth config status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default auth config"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "GitHub OAuth Token"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "OAuth token for GitHub API access"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "tool_filter": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ],
                "description": "Tool filter configuration"
              },
              "deployment": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.deployment#preview",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Deployment ID",
                    "examples": [
                      "pde_1aBcDeFgHjKlMnPq"
                    ]
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default deployment"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Deployment name",
                    "examples": [
                      "Production"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Production deployment"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "is_default",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "credentials": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.auth_credentials",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique credentials identifier",
                    "examples": [
                      "par_4sTuVwXyZaBcDeFg"
                    ]
                  },
                  "type": {
                    "const": "oauth",
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string",
                    "description": "Credentials status"
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default credentials for the provider",
                    "examples": [
                      true
                    ]
                  },
                  "is_managed": {
                    "type": "boolean",
                    "description": "Whether these credentials are managed by Metorial",
                    "examples": [
                      true
                    ]
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Display name",
                    "examples": [
                      "GitHub OAuth"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "OAuth credentials for GitHub API"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "scopes": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "description": "OAuth scopes requested by this credential"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "status",
                  "is_default",
                  "is_managed",
                  "name",
                  "description",
                  "metadata",
                  "scopes",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "auth_method": {
                "$ref": "#/components/schemas/AuthMethod"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "source",
              "status",
              "is_default",
              "provider_id",
              "name",
              "description",
              "metadata",
              "tool_filter",
              "deployment",
              "credentials",
              "auth_method",
              "created_at",
              "updated_at"
            ]
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique config identifier",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Config status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "tool_filter": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ],
                "description": "Tool filter configuration"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "specification_id": {
                "type": "string",
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "deployment": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.deployment#preview",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Deployment ID",
                    "examples": [
                      "pde_1aBcDeFgHjKlMnPq"
                    ]
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default deployment"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Deployment name",
                    "examples": [
                      "Production"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Production deployment"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "is_default",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "from_vault": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.config_vault",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique config vault identifier",
                    "examples": [
                      "pcvt_3bCdEfGhJkLmNpQr"
                    ]
                  },
                  "status": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string",
                    "description": "Status of the config vault"
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name",
                    "examples": [
                      "Production Secrets"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Secure storage for production credentials"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "deployment": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "provider.deployment#preview",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "Deployment ID",
                        "examples": [
                          "pde_1aBcDeFgHjKlMnPq"
                        ]
                      },
                      "is_default": {
                        "type": "boolean",
                        "description": "Whether this is the default deployment"
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Deployment name",
                        "examples": [
                          "Production"
                        ]
                      },
                      "description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Description",
                        "examples": [
                          "Production deployment"
                        ]
                      },
                      "metadata": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "additionalProperties": {},
                        "description": "Custom key-value pairs for storing additional information"
                      },
                      "provider_id": {
                        "type": "string",
                        "description": "Provider ID",
                        "examples": [
                          "pro_5gHjKlMnPqRsTuVw"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when created",
                        "examples": [
                          "2025-09-15T10:30:00.000Z"
                        ]
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when last updated",
                        "examples": [
                          "2026-01-10T14:45:00.000Z"
                        ]
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "is_default",
                      "name",
                      "description",
                      "metadata",
                      "provider_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "status",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "deployment",
                  "created_at",
                  "updated_at"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "is_default",
              "name",
              "description",
              "metadata",
              "tool_filter",
              "provider_id",
              "specification_id",
              "deployment",
              "from_vault",
              "created_at",
              "updated_at"
            ]
          },
          "ui_mode": {
            "enum": [
              "metorial_elements",
              "dashboard_embeddable"
            ],
            "type": "string",
            "description": "UI mode for setup"
          },
          "redirect_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to redirect after setup",
            "examples": [
              "https://app.example.com/callback"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the session expires",
            "examples": [
              "2025-09-15T11:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status",
          "url",
          "name",
          "description",
          "metadata",
          "configuration",
          "provider_id",
          "identity_id",
          "identity_credential_id",
          "auth_method",
          "deployment",
          "credentials",
          "auth_config",
          "config",
          "ui_mode",
          "redirect_url",
          "created_at",
          "updated_at",
          "expires_at"
        ]
      },
      "BodyRequest48": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Updated Setup Session"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated setup session description"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "identity_id": {
            "type": "string",
            "description": "Optional identity to link this setup session to",
            "examples": [
              "idn_3nOpRsTuVwXyZaBc"
            ]
          }
        }
      },
      "SpecificationList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item24"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "Specification": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.specification",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique specification identifier",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "key": {
            "type": "string",
            "description": "Unique specification key",
            "examples": [
              "github"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "GitHub"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "GitHub API integration"
            ]
          },
          "config_schema": {
            "type": "object",
            "additionalProperties": {},
            "description": "JSON Schema defining the configuration structure"
          },
          "config_visibility": {
            "enum": [
              "encrypted",
              "plain"
            ],
            "type": "string",
            "description": "Visibility level of the configuration"
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            },
            "description": "Available tools"
          },
          "auth_methods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthMethod"
            },
            "description": "Authentication methods"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "key",
          "name",
          "description",
          "config_schema",
          "config_visibility",
          "tools",
          "auth_methods",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "ToolList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "Tool": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.tool",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique tool identifier",
            "examples": [
              "pto_5jKlMnPqRsTuVwXy"
            ]
          },
          "key": {
            "type": "string",
            "description": "Tool key",
            "examples": [
              "create_issue"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the tool",
            "examples": [
              "Create Issue"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tool description",
            "examples": [
              "Creates a new issue in a GitHub repository"
            ]
          },
          "capabilities": {
            "type": "object",
            "additionalProperties": {},
            "description": "Tool capabilities"
          },
          "constraints": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tool constraints"
          },
          "instructions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tool usage instructions"
          },
          "input_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the tool input parameters"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "output_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the tool output format"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "tags": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "destructive": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Whether the tool is destructive"
              },
              "read_only": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Whether the tool is read-only"
              }
            },
            "required": [
              "destructive",
              "read_only"
            ]
          },
          "specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "key",
          "name",
          "description",
          "capabilities",
          "constraints",
          "instructions",
          "input_schema",
          "output_schema",
          "tags",
          "specification_id",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderCapabilitiesTriggerList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item25"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "ProviderCapabilitiesTrigger": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.trigger",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique provider trigger identifier",
            "examples": [
              "ptr_4nOpQrStUvWxYzAb"
            ]
          },
          "key": {
            "type": "string",
            "description": "Trigger key used when subscribing callbacks",
            "examples": [
              "messages.created"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the trigger",
            "examples": [
              "Messages Created"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Trigger description",
            "examples": [
              "Fires whenever a new message is created in the provider"
            ]
          },
          "input_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the trigger payload input shape"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "output_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the trigger delivery output shape"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "invocation": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "polling",
                    "type": "string"
                  },
                  "interval_seconds": {
                    "type": "number",
                    "description": "Polling interval in seconds for polling-based triggers",
                    "examples": [
                      60
                    ]
                  }
                },
                "required": [
                  "type",
                  "interval_seconds"
                ]
              },
              {
                "$ref": "#/components/schemas/Invocation"
              }
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_specification_id": {
            "type": "string",
            "description": "Provider specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "key",
          "name",
          "description",
          "input_schema",
          "output_schema",
          "invocation",
          "provider_id",
          "provider_specification_id",
          "created_at",
          "updated_at"
        ]
      },
      "VersionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Version"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "Version": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.version",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique version identifier",
            "examples": [
              "prv_4dEfGhJkLmNpQrSt"
            ]
          },
          "version": {
            "type": "string",
            "description": "Version identifier string",
            "examples": [
              "1.0.0"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "is_current": {
            "type": "boolean",
            "description": "Whether this is the current version"
          },
          "name": {
            "type": "string",
            "description": "Version name",
            "examples": [
              "Version 1.0.0"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version description"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "specification_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "version",
          "provider_id",
          "is_current",
          "name",
          "description",
          "metadata",
          "specification_id",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item26"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "Provider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique provider identifier",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "access": {
            "enum": [
              "public",
              "tenant"
            ],
            "type": "string",
            "description": "Access level of the provider"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Current status of the provider"
          },
          "publisher": {
            "$ref": "#/components/schemas/Publisher"
          },
          "current_version": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.version",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique version identifier",
                "examples": [
                  "prv_4dEfGhJkLmNpQrSt"
                ]
              },
              "version": {
                "type": "string",
                "description": "Version identifier string",
                "examples": [
                  "1.0.0"
                ]
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "is_current": {
                "type": "boolean",
                "description": "Whether this is the current version"
              },
              "name": {
                "type": "string",
                "description": "Version name",
                "examples": [
                  "Version 1.0.0"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Version description"
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "specification_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "version",
              "provider_id",
              "is_current",
              "name",
              "description",
              "metadata",
              "specification_id",
              "created_at",
              "updated_at"
            ]
          },
          "oauth": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "status": {
                "enum": [
                  "enabled",
                  "disabled"
                ],
                "type": "string",
                "description": "OAuth status"
              },
              "callback_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "OAuth callback URL"
              },
              "auto_registration": {
                "type": "object",
                "properties": {
                  "status": {
                    "enum": [
                      "supported",
                      "unsupported"
                    ],
                    "type": "string",
                    "description": "Auto-registration status"
                  }
                },
                "required": [
                  "status"
                ]
              }
            },
            "required": [
              "status",
              "callback_url",
              "auto_registration"
            ]
          },
          "identifier": {
            "type": "string",
            "description": "Provider identifier"
          },
          "name": {
            "type": "string",
            "description": "Display name of the provider"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brief description of the provider"
          },
          "slug": {
            "type": "string",
            "description": "URL-friendly identifier"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "access",
          "status",
          "publisher",
          "current_version",
          "oauth",
          "identifier",
          "name",
          "description",
          "slug",
          "metadata",
          "created_at",
          "updated_at"
        ]
      },
      "SubspaceSessionConnectionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item27"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SubspaceSessionConnection": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.connection",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session connection identifier",
            "examples": [
              "scn_8hJkLmNpQrStUvWx"
            ]
          },
          "connection_state": {
            "enum": [
              "connected",
              "disconnected"
            ],
            "type": "string",
            "description": "Connection state"
          },
          "transport": {
            "enum": [
              "mcp",
              "tool_call",
              "metorial_protocol",
              "system"
            ],
            "type": "string",
            "description": "Transport protocol used"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage2"
          },
          "mcp": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "capabilities": {
                "type": "object",
                "additionalProperties": {},
                "description": "MCP capabilities"
              },
              "protocol_version": {
                "type": "string",
                "description": "MCP protocol version",
                "examples": [
                  "2024-11-05"
                ]
              },
              "transport": {
                "enum": [
                  "none",
                  "sse",
                  "streamable_http"
                ],
                "type": "string",
                "description": "MCP transport type"
              }
            },
            "required": [
              "capabilities",
              "protocol_version",
              "transport"
            ],
            "description": "MCP connection details"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "has_errors": {
            "type": "boolean",
            "description": "Whether the connection has any errors"
          },
          "has_warnings": {
            "type": "boolean",
            "description": "Whether the connection has any warnings"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "last_message_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of last message",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "last_active_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when last active",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "connection_state",
          "transport",
          "usage",
          "mcp",
          "session_id",
          "participant",
          "has_errors",
          "has_warnings",
          "created_at",
          "last_message_at",
          "last_active_at"
        ]
      },
      "SessionErrorList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionError"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SessionError": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.error",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session error identifier",
            "examples": [
              "ser_6fGhJkLmNpQrStUv"
            ]
          },
          "code": {
            "type": "string",
            "description": "Error code",
            "examples": [
              "CONNECTION_TIMEOUT"
            ]
          },
          "message": {
            "type": "string",
            "description": "Error message",
            "examples": [
              "Connection timed out after 30 seconds"
            ]
          },
          "data": {
            "type": "object",
            "additionalProperties": {},
            "description": "Error payload data"
          },
          "status": {
            "enum": [
              "processing",
              "processed"
            ],
            "type": "string",
            "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "provider_run_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider run ID",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "connection_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Connection ID",
            "examples": [
              "scn_8hJkLmNpQrStUvWx"
            ]
          },
          "group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error group ID",
            "examples": [
              "seg_7gHjKlMnPqRsTuVw"
            ]
          },
          "similar_error_count": {
            "type": "number",
            "description": "Count of similar errors in the group",
            "examples": [
              5
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "code",
          "message",
          "data",
          "status",
          "session_id",
          "provider_run_id",
          "connection_id",
          "group_id",
          "similar_error_count",
          "created_at"
        ]
      },
      "SubspaceSessionMessageList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item28"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SubspaceSessionMessage": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.message",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session message identifier",
            "examples": [
              "smg_8hJkLmNpQrStUvWx"
            ]
          },
          "type": {
            "enum": [
              "tool_call",
              "mcp_control",
              "mcp_message",
              "unknown"
            ],
            "type": "string",
            "description": "Message type"
          },
          "status": {
            "enum": [
              "waiting_for_response",
              "failed",
              "succeeded"
            ],
            "type": "string",
            "description": "Message status"
          },
          "source": {
            "enum": [
              "client",
              "provider"
            ],
            "type": "string",
            "description": "Message source"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "session_provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session provider ID",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "connection_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Connection ID",
            "examples": [
              "scn_2bCdEfGhJkLmNpQr"
            ]
          },
          "provider_run_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider run ID",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "hierarchy": {
            "$ref": "#/components/schemas/Hierarchy"
          },
          "transport": {
            "$ref": "#/components/schemas/Transport"
          },
          "input": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Input message data"
          },
          "output": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Output message data"
          },
          "tool_call": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.tool_call",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique tool call identifier",
                "examples": [
                  "tcl_8hJkLmNpQrStUvWx"
                ]
              },
              "tool_key": {
                "type": "string",
                "description": "The key identifying the tool that was called",
                "examples": [
                  "create_issue"
                ]
              },
              "type": {
                "enum": [
                  "tool_call",
                  "mcp_control",
                  "mcp_message",
                  "unknown"
                ],
                "type": "string",
                "description": "The type of the tool call"
              },
              "status": {
                "enum": [
                  "waiting_for_response",
                  "failed",
                  "succeeded"
                ],
                "type": "string",
                "description": "Current status of the tool call"
              },
              "source": {
                "enum": [
                  "client",
                  "provider"
                ],
                "type": "string",
                "description": "Source of the tool call"
              },
              "transport": {
                "enum": [
                  "tool_call",
                  "mcp",
                  "metorial_protocol",
                  "system"
                ],
                "type": "string",
                "description": "Transport protocol used"
              },
              "session_id": {
                "type": "string",
                "description": "Parent session ID",
                "examples": [
                  "ses_4dEfGhJkLmNpQrSt"
                ]
              },
              "message_id": {
                "type": "string",
                "description": "Associated session message ID",
                "examples": [
                  "smg_3cDeFgHjKlMnPqRs"
                ]
              },
              "session_provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Session provider ID",
                "examples": [
                  "spr_3cDeFgHjKlMnPqRs"
                ]
              },
              "connection_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Session connection ID",
                "examples": [
                  "scn_2bCdEfGhJkLmNpQr"
                ]
              },
              "provider_run_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider run ID",
                "examples": [
                  "prn_8hJkLmNpQrStUvWx"
                ]
              },
              "sender_participant": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "session.participant",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique session participant identifier",
                    "examples": [
                      "spt_5eFgHjKlMnPqRsTu"
                    ]
                  },
                  "type": {
                    "enum": [
                      "unknown",
                      "provider",
                      "agent",
                      "system"
                    ],
                    "type": "string",
                    "description": "Participant type"
                  },
                  "identifier": {
                    "type": "string",
                    "description": "Participant identifier",
                    "examples": [
                      "claude-desktop"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name",
                    "examples": [
                      "Claude Desktop"
                    ]
                  },
                  "data": {
                    "$ref": "#/components/schemas/Data"
                  },
                  "provider_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Provider ID if associated",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "connection_type": {
                    "enum": [
                      "mcp",
                      "metorial_protocol",
                      "tool_call"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_instance_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_client_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "consumer_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "identifier",
                  "name",
                  "data",
                  "provider_id",
                  "connection_type",
                  "agent_id",
                  "agent_instance_id",
                  "identity_actor_id",
                  "identity_id",
                  "agent_actor_id",
                  "agent_client_id",
                  "consumer_id",
                  "created_at"
                ]
              },
              "responder_participant": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "session.participant",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique session participant identifier",
                    "examples": [
                      "spt_5eFgHjKlMnPqRsTu"
                    ]
                  },
                  "type": {
                    "enum": [
                      "unknown",
                      "provider",
                      "agent",
                      "system"
                    ],
                    "type": "string",
                    "description": "Participant type"
                  },
                  "identifier": {
                    "type": "string",
                    "description": "Participant identifier",
                    "examples": [
                      "claude-desktop"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name",
                    "examples": [
                      "Claude Desktop"
                    ]
                  },
                  "data": {
                    "$ref": "#/components/schemas/Data"
                  },
                  "provider_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Provider ID if associated",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "connection_type": {
                    "enum": [
                      "mcp",
                      "metorial_protocol",
                      "tool_call"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_instance_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_client_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "consumer_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "identifier",
                  "name",
                  "data",
                  "provider_id",
                  "connection_type",
                  "agent_id",
                  "agent_instance_id",
                  "identity_actor_id",
                  "identity_id",
                  "agent_actor_id",
                  "agent_client_id",
                  "consumer_id",
                  "created_at"
                ]
              },
              "tool": {
                "$ref": "#/components/schemas/Tool"
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "session.error",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique session error identifier",
                    "examples": [
                      "ser_6fGhJkLmNpQrStUv"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "description": "Error code",
                    "examples": [
                      "CONNECTION_TIMEOUT"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "description": "Error message",
                    "examples": [
                      "Connection timed out after 30 seconds"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "Error payload data"
                  },
                  "status": {
                    "enum": [
                      "processing",
                      "processed"
                    ],
                    "type": "string",
                    "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
                  },
                  "session_id": {
                    "type": "string",
                    "description": "Parent session ID",
                    "examples": [
                      "ses_4dEfGhJkLmNpQrSt"
                    ]
                  },
                  "provider_run_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Provider run ID",
                    "examples": [
                      "prn_8hJkLmNpQrStUvWx"
                    ]
                  },
                  "connection_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Connection ID",
                    "examples": [
                      "scn_8hJkLmNpQrStUvWx"
                    ]
                  },
                  "group_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Error group ID",
                    "examples": [
                      "seg_7gHjKlMnPqRsTuVw"
                    ]
                  },
                  "similar_error_count": {
                    "type": "number",
                    "description": "Count of similar errors in the group",
                    "examples": [
                      5
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "code",
                  "message",
                  "data",
                  "status",
                  "session_id",
                  "provider_run_id",
                  "connection_id",
                  "group_id",
                  "similar_error_count",
                  "created_at"
                ]
              },
              "input": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Input data passed to the tool call"
              },
              "output": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Output data returned from the tool call"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "tool_key",
              "type",
              "status",
              "source",
              "transport",
              "session_id",
              "message_id",
              "session_provider_id",
              "connection_id",
              "provider_run_id",
              "sender_participant",
              "responder_participant",
              "tool",
              "error",
              "input",
              "output",
              "created_at"
            ]
          },
          "sender_participant": {
            "$ref": "#/components/schemas/SenderParticipant"
          },
          "responder_participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.error",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session error identifier",
                "examples": [
                  "ser_6fGhJkLmNpQrStUv"
                ]
              },
              "code": {
                "type": "string",
                "description": "Error code",
                "examples": [
                  "CONNECTION_TIMEOUT"
                ]
              },
              "message": {
                "type": "string",
                "description": "Error message",
                "examples": [
                  "Connection timed out after 30 seconds"
                ]
              },
              "data": {
                "type": "object",
                "additionalProperties": {},
                "description": "Error payload data"
              },
              "status": {
                "enum": [
                  "processing",
                  "processed"
                ],
                "type": "string",
                "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
              },
              "session_id": {
                "type": "string",
                "description": "Parent session ID",
                "examples": [
                  "ses_4dEfGhJkLmNpQrSt"
                ]
              },
              "provider_run_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider run ID",
                "examples": [
                  "prn_8hJkLmNpQrStUvWx"
                ]
              },
              "connection_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Connection ID",
                "examples": [
                  "scn_8hJkLmNpQrStUvWx"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Error group ID",
                "examples": [
                  "seg_7gHjKlMnPqRsTuVw"
                ]
              },
              "similar_error_count": {
                "type": "number",
                "description": "Count of similar errors in the group",
                "examples": [
                  5
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "code",
              "message",
              "data",
              "status",
              "session_id",
              "provider_run_id",
              "connection_id",
              "group_id",
              "similar_error_count",
              "created_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status",
          "source",
          "session_id",
          "session_provider_id",
          "connection_id",
          "provider_run_id",
          "hierarchy",
          "transport",
          "input",
          "output",
          "tool_call",
          "sender_participant",
          "responder_participant",
          "error",
          "created_at"
        ]
      },
      "SessionParticipantList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SenderParticipant"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SessionParticipant": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session participant identifier",
            "examples": [
              "spt_5eFgHjKlMnPqRsTu"
            ]
          },
          "type": {
            "enum": [
              "unknown",
              "provider",
              "agent",
              "system"
            ],
            "type": "string",
            "description": "Participant type"
          },
          "identifier": {
            "type": "string",
            "description": "Participant identifier",
            "examples": [
              "claude-desktop"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "Claude Desktop"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/Data"
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider ID if associated",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "connection_type": {
            "enum": [
              "mcp",
              "metorial_protocol",
              "tool_call"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "agent_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent_instance_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent_client_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "consumer_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "identifier",
          "name",
          "data",
          "provider_id",
          "connection_type",
          "agent_id",
          "agent_instance_id",
          "identity_actor_id",
          "identity_id",
          "agent_actor_id",
          "agent_client_id",
          "consumer_id",
          "created_at"
        ]
      },
      "SessionProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider4"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest49": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "session_id": {
                "type": "string"
              },
              "tool_filters": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "tool_keys",
                                "type": "string"
                              },
                              "keys": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "keys"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "tool_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "resource_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "resource_uris",
                                "type": "string"
                              },
                              "uris": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "uris"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "prompt_keys",
                                "type": "string"
                              },
                              "keys": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "type",
                              "keys"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "prompt_regex",
                                "type": "string"
                              },
                              "pattern": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "pattern"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_uris",
                                  "type": "string"
                                },
                                "uris": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "uris"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "session_id"
            ]
          },
          {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider_deployment_id": {
                        "type": "string",
                        "description": "Existing provider deployment ID",
                        "examples": [
                          "pdp_4dEfGhJkLmNpQrSt"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider_deployment": {
                        "$ref": "#/components/schemas/ProviderDeployment2"
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider_config_id": {
                        "type": "string",
                        "description": "Existing provider config ID",
                        "examples": [
                          "pcf_7dEfGhJkLmNpQrSt"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider_config": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "examples": [
                                  "Default Config"
                                ]
                              },
                              "value": {
                                "type": "object",
                                "additionalProperties": {},
                                "description": "Provider-specific configuration values"
                              }
                            },
                            "required": [
                              "value"
                            ]
                          },
                          {
                            "$ref": "#/components/schemas/ProviderConfig"
                          }
                        ]
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider_auth_config_id": {
                        "type": "string",
                        "description": "Existing provider auth config ID",
                        "examples": [
                          "pac_3nOpRsTuVwXyZaBc"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "provider_auth_config": {
                        "$ref": "#/components/schemas/ProviderAuthConfig2"
                      }
                    }
                  }
                ]
              }
            ]
          }
        ]
      },
      "SessionProvider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session provider identifier",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Provider status"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage2"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "from_template_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source template ID",
            "examples": [
              "stm_2bCdEfGhJkLmNpQr"
            ]
          },
          "from_template_provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source template provider ID",
            "examples": [
              "stp_3cDeFgHjKlMnPqRs"
            ]
          },
          "deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "config": {
            "$ref": "#/components/schemas/Config2"
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "usage",
          "tool_filter",
          "provider_id",
          "session_id",
          "from_template_id",
          "from_template_provider_id",
          "deployment",
          "config",
          "auth_config",
          "created_at",
          "updated_at"
        ]
      },
      "SessionTemplateProviderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider5"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest50": {
        "type": "object",
        "properties": {
          "session_template_id": {
            "type": "string"
          },
          "provider_deployment_id": {
            "type": "string"
          },
          "provider_config_id": {
            "type": "string"
          },
          "provider_config_vault_id": {
            "type": "string"
          },
          "provider_auth_config_id": {
            "type": "string"
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "session_template_id"
        ]
      },
      "SessionTemplateProvider": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.template.provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session template provider identifier",
            "examples": [
              "stp_3cDeFgHjKlMnPqRs"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Provider status"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "session_template_id": {
            "type": "string",
            "description": "Parent session template ID",
            "examples": [
              "stm_2bCdEfGhJkLmNpQr"
            ]
          },
          "deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "config": {
            "$ref": "#/components/schemas/Config2"
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "tool_filter",
          "provider_id",
          "session_template_id",
          "deployment",
          "config",
          "auth_config",
          "created_at",
          "updated_at"
        ]
      },
      "SessionTemplateList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionTemplate2"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest51": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Production Template"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Template for production sessions"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider_deployment_id": {
                  "type": "string"
                },
                "provider_config_id": {
                  "type": "string"
                },
                "provider_auth_config_id": {
                  "type": "string"
                },
                "tool_filters": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "tool_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "resource_uris",
                                  "type": "string"
                                },
                                "uris": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "uris"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_keys",
                                  "type": "string"
                                },
                                "keys": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "keys"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "const": "prompt_regex",
                                  "type": "string"
                                },
                                "pattern": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "pattern"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "const": "tool_keys",
                                    "type": "string"
                                  },
                                  "keys": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "keys"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "const": "tool_regex",
                                    "type": "string"
                                  },
                                  "pattern": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type",
                                  "pattern"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "const": "resource_regex",
                                    "type": "string"
                                  },
                                  "pattern": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type",
                                  "pattern"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "const": "resource_uris",
                                    "type": "string"
                                  },
                                  "uris": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "uris"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "const": "prompt_keys",
                                    "type": "string"
                                  },
                                  "keys": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "keys"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "const": "prompt_regex",
                                    "type": "string"
                                  },
                                  "pattern": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type",
                                  "pattern"
                                ]
                              }
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            },
            "description": "Optional list of providers to include in the template"
          }
        },
        "required": [
          "name"
        ]
      },
      "BodyRequest52": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Updated Template Name"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated description"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          }
        }
      },
      "ProviderTools": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.tools",
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            }
          }
        },
        "required": [
          "object",
          "items"
        ]
      },
      "ProviderSessionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderSession2"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest53": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "providers": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "allOf": [
                    {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "provider_deployment_id": {
                                  "type": "string",
                                  "description": "Existing provider deployment ID",
                                  "examples": [
                                    "pdp_4dEfGhJkLmNpQrSt"
                                  ]
                                }
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "provider_deployment": {
                                  "$ref": "#/components/schemas/ProviderDeployment2"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "provider_config_id": {
                                  "type": "string",
                                  "description": "Existing provider config ID",
                                  "examples": [
                                    "pcf_7dEfGhJkLmNpQrSt"
                                  ]
                                }
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "provider_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "examples": [
                                            "Default Config"
                                          ]
                                        },
                                        "value": {
                                          "type": "object",
                                          "additionalProperties": {},
                                          "description": "Provider-specific configuration values"
                                        }
                                      },
                                      "required": [
                                        "value"
                                      ]
                                    },
                                    {
                                      "$ref": "#/components/schemas/ProviderConfig"
                                    }
                                  ]
                                }
                              }
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "provider_auth_config_id": {
                                  "type": "string",
                                  "description": "Existing provider auth config ID",
                                  "examples": [
                                    "pac_3nOpRsTuVwXyZaBc"
                                  ]
                                }
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "provider_auth_config": {
                                  "$ref": "#/components/schemas/ProviderAuthConfig2"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "session_template_id": {
                              "type": "string"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "tool_filters": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "const": "tool_keys",
                                      "type": "string"
                                    },
                                    "keys": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "keys"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "const": "tool_regex",
                                      "type": "string"
                                    },
                                    "pattern": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "pattern"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "const": "resource_regex",
                                      "type": "string"
                                    },
                                    "pattern": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "pattern"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "const": "resource_uris",
                                      "type": "string"
                                    },
                                    "uris": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "uris"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "const": "prompt_keys",
                                      "type": "string"
                                    },
                                    "keys": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "keys"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "const": "prompt_regex",
                                      "type": "string"
                                    },
                                    "pattern": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "pattern"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "const": "tool_keys",
                                        "type": "string"
                                      },
                                      "keys": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "keys"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "const": "tool_regex",
                                        "type": "string"
                                      },
                                      "pattern": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "pattern"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "const": "resource_regex",
                                        "type": "string"
                                      },
                                      "pattern": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "pattern"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "const": "resource_uris",
                                        "type": "string"
                                      },
                                      "uris": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "uris"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "const": "prompt_keys",
                                        "type": "string"
                                      },
                                      "keys": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "keys"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "const": "prompt_regex",
                                        "type": "string"
                                      },
                                      "pattern": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "pattern"
                                    ]
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        },
        "required": [
          "providers"
        ]
      },
      "BodyRequest54": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "My updated session"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Updated session description"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          }
        }
      },
      "SkillExportList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item29"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest55": {
        "type": "object",
        "properties": {
          "target": {
            "enum": [
              "skill",
              "plugin",
              "marketplace"
            ],
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "skill_plugin_id": {
            "type": "string"
          },
          "skill_marketplace_id": {
            "type": "string"
          }
        },
        "required": [
          "target"
        ]
      },
      "SkillExport": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.export",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "target": {
            "enum": [
              "skill",
              "plugin",
              "marketplace"
            ],
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "file",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The files's unique identifier",
                "examples": [
                  "fil_9jKlMnPqRsTuVwXy"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "deleted"
                ],
                "type": "string",
                "description": "The files's status"
              },
              "file_name": {
                "type": "string",
                "description": "The file's name",
                "examples": [
                  "company-logo.png"
                ]
              },
              "file_size": {
                "type": "number",
                "description": "The file's size in bytes",
                "examples": [
                  245760
                ]
              },
              "file_type": {
                "type": "string",
                "description": "The file's MIME type",
                "examples": [
                  "image/png"
                ]
              },
              "title": {
                "type": "string",
                "description": "The file's title",
                "examples": [
                  "Company Logo"
                ]
              },
              "purpose": {
                "type": "string",
                "description": "The file's purpose identifier",
                "examples": [
                  "organization_logo"
                ]
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's creation date"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's last update date"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "file_name",
              "file_size",
              "file_type",
              "title",
              "purpose",
              "created_by",
              "created_at",
              "updated_at"
            ]
          },
          "file_link": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "file.file_link",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The links's unique identifier",
                "examples": [
                  "flk_5mNpQrStUvWxYzAb"
                ]
              },
              "file_id": {
                "type": "string",
                "description": "The file's unique identifier",
                "examples": [
                  "fil_9jKlMnPqRsTuVwXy"
                ]
              },
              "url": {
                "type": "string",
                "description": "The file's public URL",
                "examples": [
                  "https://files.metorial.com/files/fil_9jKlMnPqRsTuVwXy/a8f3k2m9"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The links's creation date"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "The file's expiration date"
              }
            },
            "required": [
              "object",
              "id",
              "file_id",
              "url",
              "created_at",
              "expires_at"
            ]
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "enum": [
                  "organization_actor",
                  "consumer",
                  "resource_actor"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization_actor": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "organization.actor",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "The organization member's unique identifier",
                    "examples": [
                      "omem_5fGhJkLmNpQrStUv"
                    ]
                  },
                  "type": {
                    "enum": [
                      "member",
                      "machine_access"
                    ],
                    "type": "string",
                    "description": "The organization member's type"
                  },
                  "organization_id": {
                    "type": "string",
                    "description": "The organization member's organization ID",
                    "examples": [
                      "org_7hNkPqRsTuVwXyZa"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "The organization member's name",
                    "examples": [
                      "Alex Chen"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The organization member's email",
                    "examples": [
                      "alex.chen@acme.com"
                    ]
                  },
                  "image_url": {
                    "type": "string",
                    "description": "The organization member's image URL",
                    "examples": [
                      "https://avatar-cdn.metorial.com/aimg_1234567890"
                    ]
                  },
                  "member": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.member#preview",
                        "type": "string",
                        "description": "String representing the organization's member preview type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "ome_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "status": {
                        "enum": [
                          "active",
                          "deleted"
                        ],
                        "type": "string",
                        "description": "The organization member's status"
                      },
                      "role": {
                        "enum": [
                          "member",
                          "admin"
                        ],
                        "type": "string",
                        "description": "The organization member's role"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "status",
                      "role"
                    ]
                  },
                  "teams": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Team"
                    }
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's creation date"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's last update date"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "organization_id",
                  "name",
                  "email",
                  "image_url",
                  "member",
                  "teams",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "consumer",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "name",
                  "email",
                  "image_url",
                  "user_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer_profile": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ConsumerProfile2"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "groups": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "$ref": "#/components/schemas/Group"
                            }
                          }
                        },
                        "required": [
                          "groups"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "name",
              "image_url",
              "email",
              "organization_actor",
              "consumer",
              "consumer_profile"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "target",
          "status",
          "file",
          "file_link",
          "created_by",
          "created_at",
          "started_at",
          "completed_at"
        ]
      },
      "SkillGroupList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item30"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest56": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "skill_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allow_consumer_skill_assignment": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ]
      },
      "SkillGroup": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.group",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "allow_consumer_skill_assignment": {
            "type": "boolean"
          },
          "skills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill2"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "allow_consumer_skill_assignment",
          "skills",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest57": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "skill_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allow_consumer_skill_assignment": {
            "type": "boolean"
          }
        }
      },
      "SkillGroupItemList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item31"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest58": {
        "type": "object",
        "properties": {
          "skill_id": {
            "type": "string"
          }
        },
        "required": [
          "skill_id"
        ]
      },
      "SkillGroupItem": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.group.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "skill_group_id": {
            "type": "string"
          },
          "skill": {
            "$ref": "#/components/schemas/Skill2"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "skill_group_id",
          "skill",
          "created_at"
        ]
      },
      "SkillImportList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item33"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest59": {
        "type": "object",
        "properties": {
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "public",
                    "type": "string"
                  },
                  "repository_url": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "repository_url"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "origin",
                    "type": "string"
                  },
                  "repository_id": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "repository_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "file",
                    "type": "string"
                  },
                  "file_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "file_id"
                ]
              }
            ]
          }
        },
        "required": [
          "source"
        ]
      },
      "SkillImport": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.import",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "public",
                    "type": "string"
                  },
                  "repository_url": {
                    "type": "string"
                  },
                  "repository_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type",
                  "repository_url",
                  "repository_name",
                  "ref"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "scm",
                    "type": "string"
                  },
                  "repository_id": {
                    "type": "string"
                  },
                  "repository_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "path": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type",
                  "repository_id",
                  "repository_name",
                  "ref",
                  "path"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "file",
                    "type": "string"
                  },
                  "file_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "file_name": {
                    "type": "string"
                  },
                  "format": {
                    "enum": [
                      "zip",
                      "markdown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "file_id",
                  "file_name",
                  "format"
                ]
              }
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item32"
            }
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "source",
          "error",
          "items",
          "started_at",
          "completed_at",
          "created_at"
        ]
      },
      "SkillMarketplaceList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item34"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest60": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_file_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "repository_access_mode": {
            "enum": [
              "pull_request",
              "default_branch"
            ],
            "type": "string"
          },
          "force_merge_or_push": {
            "type": "boolean"
          },
          "merge_before_checks_pass": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ]
      },
      "SkillMarketplace": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.marketplace",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "repository_access_mode": {
            "enum": [
              "pull_request",
              "default_branch"
            ],
            "type": "string"
          },
          "force_merge_or_push": {
            "type": "boolean"
          },
          "merge_before_checks_pass": {
            "type": "boolean"
          },
          "sync_status": {
            "enum": [
              "pending",
              "processing",
              "synced"
            ],
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "plugins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Plugin"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "repository_access_mode",
          "force_merge_or_push",
          "merge_before_checks_pass",
          "sync_status",
          "image_url",
          "name",
          "description",
          "slug",
          "skill_configuration_id",
          "plugins",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest61": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_file_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "repository_access_mode": {
            "enum": [
              "pull_request",
              "default_branch"
            ],
            "type": "string"
          },
          "force_merge_or_push": {
            "type": "boolean"
          },
          "merge_before_checks_pass": {
            "type": "boolean"
          }
        }
      },
      "SkillMarketplacePluginList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Plugin"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest62": {
        "type": "object",
        "properties": {
          "skill_plugin_id": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          }
        },
        "required": [
          "skill_plugin_id"
        ]
      },
      "SkillMarketplacePlugin": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.marketplace_plugin",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_marketplace_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_plugin": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "skill.plugin",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string"
              },
              "sync_status": {
                "enum": [
                  "pending",
                  "processing",
                  "synced"
                ],
                "type": "string"
              },
              "image_url": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "long_description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "type": "string"
              },
              "skill_configuration_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "skills": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Skill3"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "sync_status",
              "image_url",
              "name",
              "description",
              "long_description",
              "category",
              "slug",
              "skill_configuration_id",
              "skills",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "identifier",
          "skill_configuration_id",
          "skill_marketplace_id",
          "skill_plugin",
          "created_at",
          "updated_at"
        ]
      },
      "SkillPluginList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item35"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest63": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "long_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_file_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_marketplace_id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "SkillPlugin": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.plugin",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "sync_status": {
            "enum": [
              "pending",
              "processing",
              "synced"
            ],
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "long_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill3"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "sync_status",
          "image_url",
          "name",
          "description",
          "long_description",
          "category",
          "slug",
          "skill_configuration_id",
          "skills",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest64": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "long_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_file_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SkillPluginSkillList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill3"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest65": {
        "type": "object",
        "properties": {
          "skill_id": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "client_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "skill_id"
        ]
      },
      "SkillPluginSkill": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.plugin_skill",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "client_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_id": {
            "type": "string"
          },
          "skill": {
            "$ref": "#/components/schemas/Skill2"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "identifier",
          "status",
          "client_name",
          "client_description",
          "client_metadata",
          "license",
          "compatibility",
          "skill_configuration_id",
          "skill_id",
          "skill",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest66": {
        "type": "object",
        "properties": {
          "client_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SkillTemplateList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item37"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest67": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "from_skill_Id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "SkillTemplate": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.template",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "owner": {
            "enum": [
              "system",
              "tenant"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "store_id": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item36"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "owner",
          "slug",
          "name",
          "description",
          "metadata",
          "store_id",
          "items",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest68": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          }
        }
      },
      "SkillTemplateItemList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item36"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest69": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "provider",
                "type": "string"
              },
              "provider_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "provider_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "integration",
                "type": "string"
              },
              "integration_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "integration_id"
            ]
          }
        ]
      },
      "SkillTemplateItem": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.template.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "integration",
              "provider"
            ],
            "type": "string"
          },
          "integration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "integration#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {}
              },
              "configuration": {
                "$ref": "#/components/schemas/Configuration2"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              },
              "archived_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "slug",
              "name",
              "description",
              "metadata",
              "configuration",
              "created_at",
              "updated_at",
              "archived_at"
            ]
          },
          "provider": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider identifier",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name of the provider",
                "examples": [
                  "GitHub"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brief description of the provider",
                "examples": [
                  "Connect to GitHub repositories, issues, and pull requests"
                ]
              },
              "slug": {
                "type": "string",
                "description": "URL-friendly identifier",
                "examples": [
                  "github"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "description",
              "slug",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "integration",
          "provider",
          "created_at",
          "updated_at"
        ]
      },
      "SkillList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item38"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest70": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "client_name": {
            "type": "string"
          },
          "client_description": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "compatibility": {
            "type": "string"
          },
          "client_metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "image_file_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "template_id": {
            "type": "string"
          },
          "skill_group_id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "Skill": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "store_id": {
            "type": "string"
          },
          "hierarchy": {
            "$ref": "#/components/schemas/Hierarchy2"
          },
          "integrations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Integration2"
            }
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider6"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "slug",
          "name",
          "description",
          "image_url",
          "client_name",
          "client_description",
          "client_metadata",
          "license",
          "compatibility",
          "metadata",
          "store_id",
          "hierarchy",
          "integrations",
          "providers",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest71": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_name": {
            "type": "string"
          },
          "client_description": {
            "type": "string"
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "image_file_id": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SkillAgentList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SkillAgent"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest72": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "SkillAgent": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.agent",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived"
            ],
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "store_item_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "path": {
            "type": [
              "string",
              "null"
            ]
          },
          "document_id": {
            "type": "string"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "skill_id",
          "name",
          "description",
          "slug",
          "status",
          "store_id",
          "store_item_id",
          "path",
          "document_id",
          "archived_at",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest73": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "BodyRequest74": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "client_description": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "compatibility": {
            "type": "string"
          },
          "client_metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "name"
        ]
      },
      "SkillItemList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item39"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SkillItem": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "integration",
              "provider"
            ],
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "integration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "integration#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {}
              },
              "configuration": {
                "$ref": "#/components/schemas/Configuration2"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              },
              "archived_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "slug",
              "name",
              "description",
              "metadata",
              "configuration",
              "created_at",
              "updated_at",
              "archived_at"
            ]
          },
          "provider": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider identifier",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name of the provider",
                "examples": [
                  "GitHub"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brief description of the provider",
                "examples": [
                  "Connect to GitHub repositories, issues, and pull requests"
                ]
              },
              "slug": {
                "type": "string",
                "description": "URL-friendly identifier",
                "examples": [
                  "github"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "description",
              "slug",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "type",
          "skill_id",
          "integration",
          "provider",
          "created_at"
        ]
      },
      "SkillParticipantList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item40"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SkillParticipant": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "enum": [
                "creator",
                "editor",
                "viewer",
                "user",
                "forker"
              ],
              "type": "string"
            }
          },
          "actor": {
            "$ref": "#/components/schemas/Actor3"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "skill_id",
          "roles",
          "actor",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest75": {
        "type": "object",
        "properties": {
          "consumer_profile_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "organization_member_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "permission": {
            "enum": [
              "none",
              "read",
              "write"
            ],
            "type": "string"
          }
        },
        "required": [
          "permission"
        ]
      },
      "SkillVersionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SkillVersion"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "SkillVersion": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.version",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "store_version_id": {
            "type": "string"
          },
          "version_number": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "skill_id",
          "store_id",
          "store_version_id",
          "version_number",
          "created_at"
        ]
      },
      "SkillVersionSnapshot": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.version.snapshot",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "store_version_id": {
            "type": "string"
          },
          "version_number": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "object": {
                  "const": "skill.version.snapshot.item",
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "file",
                    "document",
                    "directory"
                  ],
                  "type": "string"
                },
                "path": {
                  "type": "string"
                },
                "file_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "document_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "document_version_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "content": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "object",
                "id",
                "kind",
                "path",
                "file_id",
                "document_id",
                "document_version_id",
                "content",
                "created_at"
              ]
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "skill_id",
          "store_id",
          "store_version_id",
          "version_number",
          "items",
          "created_at"
        ]
      },
      "SkillConfigurationList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SkillConfiguration"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest76": {
        "type": "object",
        "properties": {
          "allow_scripts": {
            "type": "boolean"
          },
          "allowed_file_extensions": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "allow_non_standard_directories": {
            "type": "boolean"
          }
        }
      },
      "SkillConfiguration": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.configuration",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "allow_scripts": {
            "type": "boolean"
          },
          "allowed_file_extensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allow_non_standard_directories": {
            "type": "boolean"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "is_default",
          "allow_scripts",
          "allowed_file_extensions",
          "allow_non_standard_directories",
          "deleted_at",
          "created_at",
          "updated_at"
        ]
      },
      "StoreList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Store"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest77": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "access": {
            "enum": [
              "private",
              "public_read",
              "public_write"
            ],
            "type": "string"
          },
          "template_id": {
            "type": "string"
          },
          "parent_id": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "Store": {
        "type": "object",
        "properties": {
          "object": {
            "const": "store",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "access": {
            "enum": [
              "private",
              "public_read",
              "public_write"
            ],
            "type": "string"
          },
          "item_count": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "name",
          "access",
          "item_count",
          "created_at",
          "updated_at"
        ]
      },
      "BodyRequest78": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "access": {
            "enum": [
              "private",
              "public_read",
              "public_write"
            ],
            "type": "string"
          }
        }
      },
      "StoreItemList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item41"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest79": {
        "type": "object",
        "properties": {
          "operations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "enum": [
                    "add",
                    "modify",
                    "remove"
                  ],
                  "type": "string"
                },
                "itemId": {
                  "type": "string"
                },
                "fileId": {
                  "type": "string"
                },
                "documentId": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "operations"
        ]
      },
      "StoreItemList2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "list(store.item)",
            "type": "string",
            "description": "String representing the object's type"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item41"
            }
          }
        },
        "required": [
          "object",
          "items"
        ]
      },
      "StoreItem": {
        "type": "object",
        "properties": {
          "object": {
            "const": "store.item",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "file",
              "document",
              "directory"
            ],
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "directory_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "file",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The files's unique identifier",
                "examples": [
                  "fil_9jKlMnPqRsTuVwXy"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "deleted"
                ],
                "type": "string",
                "description": "The files's status"
              },
              "file_name": {
                "type": "string",
                "description": "The file's name",
                "examples": [
                  "company-logo.png"
                ]
              },
              "file_size": {
                "type": "number",
                "description": "The file's size in bytes",
                "examples": [
                  245760
                ]
              },
              "file_type": {
                "type": "string",
                "description": "The file's MIME type",
                "examples": [
                  "image/png"
                ]
              },
              "title": {
                "type": "string",
                "description": "The file's title",
                "examples": [
                  "Company Logo"
                ]
              },
              "purpose": {
                "type": "string",
                "description": "The file's purpose identifier",
                "examples": [
                  "organization_logo"
                ]
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's creation date"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's last update date"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "file_name",
              "file_size",
              "file_type",
              "title",
              "purpose",
              "created_by",
              "created_at",
              "updated_at"
            ]
          },
          "document": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "document",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "deleted"
                ],
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "content": {
                "type": "string"
              },
              "file_id": {
                "type": "string"
              },
              "parent_document_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "current_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "title",
              "content",
              "file_id",
              "parent_document_id",
              "current_version_id",
              "created_by",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "kind",
          "path",
          "store_id",
          "directory_id",
          "file",
          "document",
          "created_at",
          "updated_at"
        ]
      },
      "StoreParticipantList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item42"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "StoreParticipant": {
        "type": "object",
        "properties": {
          "object": {
            "const": "store.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "permissions": {
            "type": "array",
            "items": {
              "enum": [
                "content_read",
                "content_write"
              ],
              "type": "string"
            }
          },
          "actor": {
            "$ref": "#/components/schemas/Actor3"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "store_id",
          "permissions",
          "actor",
          "created_at"
        ]
      },
      "ToolCallList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item43"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "has_more_before": {
                "type": "boolean"
              },
              "has_more_after": {
                "type": "boolean"
              }
            },
            "required": [
              "has_more_before",
              "has_more_after"
            ]
          }
        },
        "required": [
          "items",
          "pagination"
        ]
      },
      "BodyRequest80": {
        "type": "object",
        "properties": {
          "tool_id": {
            "type": "string",
            "description": "The ID of the tool to call"
          },
          "input": {
            "type": "object",
            "additionalProperties": {},
            "description": "Input data to pass to the tool"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Optional metadata for the tool call"
          },
          "session_id": {
            "type": "string",
            "description": "The ID of the session to which this tool call belongs"
          }
        },
        "required": [
          "tool_id",
          "input",
          "session_id"
        ]
      },
      "ToolCall": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.tool_call",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique tool call identifier",
            "examples": [
              "tcl_8hJkLmNpQrStUvWx"
            ]
          },
          "tool_key": {
            "type": "string",
            "description": "The key identifying the tool that was called",
            "examples": [
              "create_issue"
            ]
          },
          "type": {
            "enum": [
              "tool_call",
              "mcp_control",
              "mcp_message",
              "unknown"
            ],
            "type": "string",
            "description": "The type of the tool call"
          },
          "status": {
            "enum": [
              "waiting_for_response",
              "failed",
              "succeeded"
            ],
            "type": "string",
            "description": "Current status of the tool call"
          },
          "source": {
            "enum": [
              "client",
              "provider"
            ],
            "type": "string",
            "description": "Source of the tool call"
          },
          "transport": {
            "enum": [
              "tool_call",
              "mcp",
              "metorial_protocol",
              "system"
            ],
            "type": "string",
            "description": "Transport protocol used"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "message_id": {
            "type": "string",
            "description": "Associated session message ID",
            "examples": [
              "smg_3cDeFgHjKlMnPqRs"
            ]
          },
          "session_provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session provider ID",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "connection_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session connection ID",
            "examples": [
              "scn_2bCdEfGhJkLmNpQr"
            ]
          },
          "provider_run_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider run ID",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "sender_participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "responder_participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "tool": {
            "$ref": "#/components/schemas/Tool"
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.error",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session error identifier",
                "examples": [
                  "ser_6fGhJkLmNpQrStUv"
                ]
              },
              "code": {
                "type": "string",
                "description": "Error code",
                "examples": [
                  "CONNECTION_TIMEOUT"
                ]
              },
              "message": {
                "type": "string",
                "description": "Error message",
                "examples": [
                  "Connection timed out after 30 seconds"
                ]
              },
              "data": {
                "type": "object",
                "additionalProperties": {},
                "description": "Error payload data"
              },
              "status": {
                "enum": [
                  "processing",
                  "processed"
                ],
                "type": "string",
                "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
              },
              "session_id": {
                "type": "string",
                "description": "Parent session ID",
                "examples": [
                  "ses_4dEfGhJkLmNpQrSt"
                ]
              },
              "provider_run_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider run ID",
                "examples": [
                  "prn_8hJkLmNpQrStUvWx"
                ]
              },
              "connection_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Connection ID",
                "examples": [
                  "scn_8hJkLmNpQrStUvWx"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Error group ID",
                "examples": [
                  "seg_7gHjKlMnPqRsTuVw"
                ]
              },
              "similar_error_count": {
                "type": "number",
                "description": "Count of similar errors in the group",
                "examples": [
                  5
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "code",
              "message",
              "data",
              "status",
              "session_id",
              "provider_run_id",
              "connection_id",
              "group_id",
              "similar_error_count",
              "created_at"
            ]
          },
          "input": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Input data passed to the tool call"
          },
          "output": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Output data returned from the tool call"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "tool_key",
          "type",
          "status",
          "source",
          "transport",
          "session_id",
          "message_id",
          "session_provider_id",
          "connection_id",
          "provider_run_id",
          "sender_participant",
          "responder_participant",
          "tool",
          "error",
          "input",
          "output",
          "created_at"
        ]
      },
      "ProviderDeployment": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.deployment#preview",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Deployment ID",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default deployment"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deployment name",
            "examples": [
              "Production"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Production deployment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "is_default",
          "name",
          "description",
          "metadata",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderTrigger": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.trigger#preview",
            "type": "string",
            "description": "String representing the provider trigger's type"
          },
          "id": {
            "type": "string",
            "description": "Provider trigger identifier from the deployment specification",
            "examples": [
              "ptr_7dEfGhJkLmNpQrSt"
            ]
          },
          "key": {
            "type": "string",
            "description": "Stable trigger key used by the provider",
            "examples": [
              "messages.created"
            ]
          },
          "name": {
            "type": "string",
            "description": "Human-readable trigger name",
            "examples": [
              "Messages Created"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "key",
          "name"
        ],
        "description": "Preview of the provider trigger associated with this callback trigger"
      },
      "ProviderTrigger2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback.provider_trigger",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback trigger association identifier",
            "examples": [
              "cbt_4dEfGhJkLmNpQrSt"
            ]
          },
          "provider_trigger": {
            "$ref": "#/components/schemas/ProviderTrigger"
          },
          "event_types": {
            "type": "array",
            "items": {
              "type": "string",
              "examples": [
                "message.created"
              ]
            },
            "description": "Provider-specific event types enabled for this trigger"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when this trigger was attached to the callback",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "provider_trigger",
          "event_types",
          "created_at"
        ]
      },
      "Item": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback identifier",
            "examples": [
              "clb_4dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Callback lifecycle status"
          },
          "name": {
            "type": "string",
            "description": "Display name for the callback",
            "examples": [
              "Production Webhook Callback"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional callback description",
            "examples": [
              "Sends provider trigger deliveries to our production webhook endpoint"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional callback metadata"
          },
          "poll_interval_seconds_override": {
            "type": [
              "number",
              "null"
            ],
            "description": "Optional polling interval override, in seconds, for polling-capable triggers",
            "examples": [
              60
            ]
          },
          "provider_deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CallbackDestination"
            },
            "description": "Destinations currently attached to this callback"
          },
          "provider_triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderTrigger2"
            },
            "description": "Triggers configured on this callback"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback was last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "poll_interval_seconds_override",
          "provider_deployment",
          "destinations",
          "provider_triggers",
          "created_at",
          "updated_at"
        ]
      },
      "Config2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.config#preview",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Config ID",
            "examples": [
              "pcf_7dEfGhJkLmNpQrSt"
            ]
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default config"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Config name",
            "examples": [
              "Production Config"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Configuration for production environment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "is_default",
          "name",
          "description",
          "metadata",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "Invocation": {
        "type": "object",
        "properties": {
          "type": {
            "const": "webhook",
            "type": "string"
          },
          "auto_registration": {
            "type": "object",
            "properties": {
              "status": {
                "enum": [
                  "supported",
                  "unsupported"
                ],
                "type": "string",
                "description": "Whether automatic webhook registration is supported"
              }
            },
            "required": [
              "status"
            ]
          },
          "auto_unregistration": {
            "type": "object",
            "properties": {
              "status": {
                "enum": [
                  "supported",
                  "unsupported"
                ],
                "type": "string",
                "description": "Whether automatic webhook removal is supported"
              }
            },
            "required": [
              "status"
            ]
          }
        },
        "required": [
          "type",
          "auto_registration",
          "auto_unregistration"
        ]
      },
      "Trigger": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback.instance.trigger",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique receiver trigger identifier",
            "examples": [
              "ctr_9gHjKlMnPqRsTuVw"
            ]
          },
          "source": {
            "enum": [
              "polling",
              "webhook"
            ],
            "type": "string",
            "description": "How this trigger is invoked by the provider backend"
          },
          "poll_interval_seconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Polling interval in seconds when the trigger uses polling",
            "examples": [
              60
            ]
          },
          "next_poll_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Next scheduled poll timestamp for polling triggers",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          },
          "last_polled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last successful poll timestamp for polling triggers",
            "examples": [
              "2026-01-10T14:44:00.000Z"
            ]
          },
          "webhook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider webhook URL registered for this trigger when webhook delivery is used",
            "examples": [
              "https://provider.example.com/webhooks/abc123"
            ]
          },
          "is_webhook_registered": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether webhook registration is currently active for this trigger"
          },
          "provider_trigger": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.capabilities.trigger",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider trigger identifier",
                "examples": [
                  "ptr_4nOpQrStUvWxYzAb"
                ]
              },
              "key": {
                "type": "string",
                "description": "Trigger key used when subscribing callbacks",
                "examples": [
                  "messages.created"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name of the trigger",
                "examples": [
                  "Messages Created"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Trigger description",
                "examples": [
                  "Fires whenever a new message is created in the provider"
                ]
              },
              "input_schema": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the trigger payload input shape"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "output_schema": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the trigger delivery output shape"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "invocation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "polling",
                        "type": "string"
                      },
                      "interval_seconds": {
                        "type": "number",
                        "description": "Polling interval in seconds for polling-based triggers",
                        "examples": [
                          60
                        ]
                      }
                    },
                    "required": [
                      "type",
                      "interval_seconds"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/Invocation"
                  }
                ]
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "provider_specification_id": {
                "type": "string",
                "description": "Provider specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "key",
              "name",
              "description",
              "input_schema",
              "output_schema",
              "invocation",
              "provider_id",
              "provider_specification_id",
              "created_at",
              "updated_at"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "source",
          "poll_interval_seconds",
          "next_poll_at",
          "last_polled_at",
          "webhook_url",
          "is_webhook_registered",
          "provider_trigger"
        ]
      },
      "Item2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "callback.instance",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique callback instance identifier",
            "examples": [
              "cbi_5gHjKlMnPqRsTuVw"
            ]
          },
          "status": {
            "enum": [
              "attached",
              "detached"
            ],
            "type": "string",
            "description": "Whether the callback instance is currently attached to a deployment/config pair"
          },
          "deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "config": {
            "$ref": "#/components/schemas/Config2"
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "webhook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shared webhook URL for manual provider setup on this callback instance",
            "examples": [
              "https://api.example.com/slates-hub/triggers/receiver-webhook/shtr_abc123"
            ]
          },
          "triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trigger"
            },
            "description": "Resolved trigger registrations for this callback instance"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback instance was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the callback instance was last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "deployment",
          "config",
          "auth_config",
          "webhook_url",
          "triggers",
          "created_at",
          "updated_at"
        ]
      },
      "Provider2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "scm.provider",
            "type": "string"
          },
          "type": {
            "enum": [
              "github",
              "gitlab",
              "bitbucket"
            ],
            "type": "string",
            "description": "SCM provider type"
          },
          "id": {
            "type": "string",
            "description": "External provider identifier"
          },
          "name": {
            "type": "string",
            "description": "Repository name on the provider"
          },
          "owner": {
            "type": "string",
            "description": "Repository owner on the provider"
          }
        },
        "required": [
          "object",
          "type",
          "id",
          "name",
          "owner"
        ]
      },
      "Repository": {
        "type": "object",
        "properties": {
          "object": {
            "const": "scm.repository",
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Unique repository identifier"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider2"
          },
          "url": {
            "type": "string",
            "description": "Repository URL"
          },
          "is_private": {
            "type": "boolean",
            "description": "Whether the repository is private"
          },
          "default_branch": {
            "type": "string",
            "description": "Default branch name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created"
          }
        },
        "required": [
          "object",
          "id",
          "provider",
          "url",
          "is_private",
          "default_branch",
          "created_at"
        ]
      },
      "Actor": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.actor#preview",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Actor identifier",
            "examples": [
              "act_1aBcDeFgHjKlMnPq"
            ]
          },
          "type": {
            "enum": [
              "external",
              "system"
            ],
            "type": "string",
            "description": "Actor type"
          },
          "identifier": {
            "type": "string",
            "description": "Actor unique identifier",
            "examples": [
              "mtea-orgact_1aBcDeFgHjKlMnPq"
            ]
          },
          "name": {
            "type": "string",
            "description": "Actor display name",
            "examples": [
              "John Doe"
            ]
          },
          "organization_actor_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Organization actor ID if linked",
            "examples": [
              "ora_1aBcDeFgHjKlMnPq"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "identifier",
          "name",
          "organization_actor_id",
          "created_at"
        ]
      },
      "Actor2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "scm.actor",
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Actor identifier"
          },
          "external_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "External actor identifier"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Actor name"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Actor email"
          }
        },
        "required": [
          "object",
          "id",
          "external_id",
          "name",
          "email"
        ]
      },
      "Commit": {
        "type": "object",
        "properties": {
          "object": {
            "const": "scm.commit",
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Commit identifier"
          },
          "sha": {
            "type": "string",
            "description": "Commit SHA"
          },
          "branch": {
            "type": "string",
            "description": "Branch name"
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Commit message"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when commit was created"
          }
        },
        "required": [
          "object",
          "id",
          "sha",
          "branch",
          "message",
          "created_at"
        ]
      },
      "Item3": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.deployment",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider deployment identifier",
            "examples": [
              "cpd_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "failed",
              "queued",
              "deploying",
              "succeeded"
            ],
            "type": "string",
            "description": "Current deployment status"
          },
          "trigger": {
            "enum": [
              "manual",
              "system",
              "scm"
            ],
            "type": "string",
            "description": "What triggered this deployment"
          },
          "custom_provider_id": {
            "type": "string",
            "description": "ID of the parent custom provider",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the associated provider",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "custom_provider_version_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the custom provider version being deployed",
            "examples": [
              "cpv_1aBcDeFgHjKlMnPq"
            ]
          },
          "commit": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "custom_provider.deployment.commit",
                "type": "string"
              },
              "id": {
                "type": "string",
                "description": "Commit identifier"
              },
              "type": {
                "enum": [
                  "create_version",
                  "merge_version_into_environment",
                  "rollback_to_version"
                ],
                "type": "string",
                "description": "Commit type"
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Commit message"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when commit was created"
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "message",
              "created_at"
            ]
          },
          "immutable_bucket": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "bucket",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique bucket identifier"
              },
              "is_immutable": {
                "type": "boolean",
                "description": "Whether the bucket is immutable"
              },
              "is_read_only": {
                "type": "boolean",
                "description": "Whether the bucket is read-only"
              },
              "scm_repo_link": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "bucket.scm_repo",
                    "type": "string"
                  },
                  "is_linked": {
                    "const": true,
                    "type": "boolean"
                  },
                  "path": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Path within the SCM repository"
                  },
                  "repository": {
                    "$ref": "#/components/schemas/Repository"
                  }
                },
                "required": [
                  "object",
                  "is_linked",
                  "path",
                  "repository"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created"
              }
            },
            "required": [
              "object",
              "id",
              "is_immutable",
              "is_read_only",
              "scm_repo_link",
              "created_at"
            ]
          },
          "actor": {
            "$ref": "#/components/schemas/Actor"
          },
          "scm_push": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "scm.push",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique SCM push identifier"
              },
              "actor": {
                "$ref": "#/components/schemas/Actor2"
              },
              "commit": {
                "$ref": "#/components/schemas/Commit"
              },
              "repository": {
                "$ref": "#/components/schemas/Repository"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created"
              }
            },
            "required": [
              "object",
              "id",
              "actor",
              "commit",
              "repository",
              "created_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "trigger",
          "custom_provider_id",
          "provider_id",
          "custom_provider_version_id",
          "commit",
          "immutable_bucket",
          "actor",
          "scm_push",
          "created_at",
          "updated_at"
        ]
      },
      "Environment": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.environment",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider environment identifier",
            "examples": [
              "cpenv_1aBcDeFgHjKlMnPq"
            ]
          },
          "custom_provider_id": {
            "type": "string",
            "description": "ID of the parent custom provider",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the associated provider",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "current_provider_version_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the current provider version in this environment",
            "examples": [
              "prv_4dEfGhJkLmNpQrSt"
            ]
          },
          "instance_id": {
            "type": "string",
            "description": "ID of the instance this environment is associated with",
            "examples": [
              "ins_2cDeFgHjKlMnPqRs"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "custom_provider_id",
          "provider_id",
          "current_provider_version_id",
          "instance_id",
          "created_at",
          "updated_at"
        ]
      },
      "Environment2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.environment",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Environment version reference identifier",
            "examples": [
              "cpenv_1aBcDeFgHjKlMnPq"
            ]
          },
          "is_current_version_for_environment": {
            "type": "boolean",
            "description": "Whether this version is the current one for the environment"
          },
          "environment": {
            "$ref": "#/components/schemas/Environment"
          }
        },
        "required": [
          "object",
          "id",
          "is_current_version_for_environment",
          "environment"
        ]
      },
      "ContainerImage": {
        "type": "object",
        "properties": {
          "container_registry": {
            "type": "string",
            "description": "URL of the container registry",
            "examples": [
              "https://index.docker.io/v1/"
            ]
          },
          "container_image_tag": {
            "type": "string",
            "description": "Tag of the container image",
            "examples": [
              "v1.0.0"
            ]
          },
          "container_image": {
            "type": "string",
            "description": "Name of the container image",
            "examples": [
              "my-app-image"
            ]
          }
        },
        "required": [
          "container_registry",
          "container_image_tag",
          "container_image"
        ]
      },
      "Item4": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.version",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider version identifier",
            "examples": [
              "cpv_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "queued",
              "deploying",
              "deployment_succeeded",
              "deployment_failed"
            ],
            "type": "string",
            "description": "Current version status"
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "custom_provider.version.config",
                "type": "string",
                "description": "String representing the object's type"
              },
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the configuration fields for the custom provider"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "transformer": {
                "type": "string",
                "description": "Optional jsonata transformer function for the configuration."
              }
            },
            "required": [
              "object",
              "schema",
              "transformer"
            ]
          },
          "index": {
            "type": "number",
            "description": "Version index number",
            "examples": [
              1
            ]
          },
          "identifier": {
            "type": "string",
            "description": "Version identifier",
            "examples": [
              "v1.0.0"
            ]
          },
          "deployment": {
            "$ref": "#/components/schemas/Item3"
          },
          "environments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Environment2"
            },
            "description": "Environments this version is deployed to"
          },
          "custom_provider_id": {
            "type": "string",
            "description": "ID of the parent custom provider",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the associated provider",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "actor": {
            "$ref": "#/components/schemas/Actor"
          },
          "container_image": {
            "$ref": "#/components/schemas/ContainerImage"
          },
          "remote_mcp_server": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "URL of the remote MCP server",
                "examples": [
                  "https://mcp.example.com"
                ]
              },
              "transport": {
                "type": "string",
                "description": "Transport protocol for the remote MCP server",
                "examples": [
                  "grpc"
                ]
              }
            },
            "required": [
              "url",
              "transport"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "config",
          "index",
          "identifier",
          "deployment",
          "environments",
          "custom_provider_id",
          "provider_id",
          "actor",
          "created_at",
          "updated_at"
        ]
      },
      "From": {
        "type": "object",
        "properties": {
          "type": {
            "const": "container",
            "type": "string"
          },
          "image_ref": {
            "type": "string",
            "description": "Container image reference"
          },
          "username": {
            "type": "string",
            "description": "Registry username"
          },
          "password": {
            "type": "string",
            "description": "Registry password"
          }
        },
        "required": [
          "type",
          "image_ref"
        ],
        "description": "Deploy from a container image"
      },
      "From2": {
        "type": "object",
        "properties": {
          "type": {
            "const": "remote",
            "type": "string"
          },
          "remote_url": {
            "type": "string",
            "description": "Remote MCP server URL"
          },
          "oauth_config": {
            "type": "object",
            "additionalProperties": {},
            "description": "Remote server configuration"
          },
          "protocol": {
            "enum": [
              "sse",
              "streamable_http"
            ],
            "type": "string",
            "description": "MCP protocol to use"
          }
        },
        "required": [
          "type",
          "remote_url",
          "protocol"
        ],
        "description": "Connect to a remote MCP server"
      },
      "From3": {
        "type": "object",
        "properties": {
          "type": {
            "const": "function",
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "filename": {
                  "type": "string",
                  "description": "File name"
                },
                "content": {
                  "type": "string",
                  "description": "File content"
                },
                "encoding": {
                  "enum": [
                    "utf-8",
                    "base64"
                  ],
                  "type": "string",
                  "description": "Content encoding"
                }
              },
              "required": [
                "filename",
                "content"
              ]
            },
            "description": "Source files"
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables"
          },
          "runtime": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "identifier": {
                    "const": "nodejs",
                    "type": "string"
                  },
                  "version": {
                    "enum": [
                      "24.x",
                      "22.x"
                    ],
                    "type": "string",
                    "description": "Node.js version"
                  }
                },
                "required": [
                  "identifier",
                  "version"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "identifier": {
                    "const": "python",
                    "type": "string"
                  },
                  "version": {
                    "enum": [
                      "3.14",
                      "3.13",
                      "3.12"
                    ],
                    "type": "string",
                    "description": "Python version"
                  }
                },
                "required": [
                  "identifier",
                  "version"
                ]
              }
            ]
          }
        },
        "required": [
          "type",
          "files",
          "env",
          "runtime"
        ],
        "description": "Deploy as a serverless function"
      },
      "From4": {
        "type": "object",
        "properties": {
          "type": {
            "const": "function",
            "type": "string"
          },
          "env": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Environment variables"
          },
          "runtime": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "identifier": {
                    "const": "nodejs",
                    "type": "string"
                  },
                  "version": {
                    "enum": [
                      "24.x",
                      "22.x"
                    ],
                    "type": "string",
                    "description": "Node.js version"
                  }
                },
                "required": [
                  "identifier",
                  "version"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "identifier": {
                    "const": "python",
                    "type": "string"
                  },
                  "version": {
                    "enum": [
                      "3.14",
                      "3.13",
                      "3.12"
                    ],
                    "type": "string",
                    "description": "Python version"
                  }
                },
                "required": [
                  "identifier",
                  "version"
                ]
              }
            ]
          },
          "repository": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "repository_id": {
                    "type": "string",
                    "description": "Repository ID"
                  },
                  "branch": {
                    "type": "string",
                    "description": "Branch name"
                  },
                  "path": {
                    "type": "string",
                    "description": "Repository path"
                  }
                },
                "required": [
                  "repository_id",
                  "branch"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "git",
                    "type": "string"
                  },
                  "repository_url": {
                    "type": "string",
                    "description": "Git repository URL"
                  },
                  "branch": {
                    "type": "string",
                    "description": "Branch name"
                  },
                  "path": {
                    "type": "string",
                    "description": "Repository path"
                  }
                },
                "required": [
                  "type",
                  "repository_url",
                  "branch"
                ]
              }
            ]
          }
        },
        "required": [
          "type",
          "env",
          "runtime",
          "repository"
        ],
        "description": "Deploy as a serverless function"
      },
      "ContainerImage2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.draft.container",
            "type": "string",
            "description": "String representing the container image draft type"
          },
          "container_registry": {
            "type": "string",
            "description": "URL of the container registry",
            "examples": [
              "https://index.docker.io/v1/"
            ]
          },
          "container_image_tag": {
            "type": "string",
            "description": "Tag of the container image",
            "examples": [
              "v1.0.0"
            ]
          },
          "container_image": {
            "type": "string",
            "description": "Name of the container image",
            "examples": [
              "my-app-image"
            ]
          }
        },
        "required": [
          "object",
          "container_registry",
          "container_image_tag",
          "container_image"
        ]
      },
      "RemoteMcpServer": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.draft.remote",
            "type": "string",
            "description": "String representing the remote MCP server draft type"
          },
          "url": {
            "type": "string",
            "description": "URL of the remote MCP server",
            "examples": [
              "https://mcp.example.com"
            ]
          },
          "transport": {
            "enum": [
              "sse",
              "streamable_http"
            ],
            "type": "string",
            "description": "Transport protocol for connecting to the remote MCP server"
          }
        },
        "required": [
          "object",
          "url",
          "transport"
        ]
      },
      "Config3": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider.draft.config",
            "type": "string",
            "description": "String representing the custom provider config draft type"
          },
          "schema": {
            "type": "object",
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the configuration fields for the custom provider"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "transformer": {
            "type": "string",
            "description": "Optional jsonata transformer function for the configuration."
          }
        },
        "required": [
          "object",
          "schema",
          "transformer"
        ]
      },
      "Draft": {
        "type": "object",
        "properties": {
          "object": {
            "enum": [
              "custom_provider.draft#function",
              "custom_provider.draft.container",
              "custom_provider.draft.remote"
            ],
            "type": "string",
            "description": "String representing the draft's type"
          },
          "container_image": {
            "$ref": "#/components/schemas/ContainerImage2"
          },
          "remote_mcp_server": {
            "$ref": "#/components/schemas/RemoteMcpServer"
          },
          "config": {
            "$ref": "#/components/schemas/Config3"
          }
        },
        "required": [
          "object",
          "config"
        ]
      },
      "Publisher": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.publisher",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique publisher identifier",
            "examples": [
              "pub_9hJkLmNpQrStUvWx"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the publisher",
            "examples": [
              "Acme Corp"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brief description of the publisher",
            "examples": [
              "A leading provider of developer tools"
            ]
          },
          "image_url": {
            "type": "string",
            "description": "URL of the publisher logo",
            "examples": [
              "https://cdn.metorial.com/images/acme.png"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "name",
          "description",
          "image_url",
          "created_at",
          "updated_at"
        ]
      },
      "Item5": {
        "type": "object",
        "properties": {
          "object": {
            "const": "custom_provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique custom provider identifier",
            "examples": [
              "cpr_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Current status of the custom provider"
          },
          "type": {
            "enum": [
              "function",
              "container",
              "remote"
            ],
            "type": "string",
            "description": "Type of the custom provider"
          },
          "name": {
            "type": "string",
            "description": "Display name of the custom provider",
            "examples": [
              "My Custom Provider"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brief description of the custom provider",
            "examples": [
              "A custom provider for my application"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "draft": {
            "$ref": "#/components/schemas/Draft"
          },
          "scm_repo": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "scm.repository",
                "type": "string"
              },
              "id": {
                "type": "string",
                "description": "Unique repository identifier"
              },
              "provider": {
                "$ref": "#/components/schemas/Provider2"
              },
              "url": {
                "type": "string",
                "description": "Repository URL"
              },
              "is_private": {
                "type": "boolean",
                "description": "Whether the repository is private"
              },
              "default_branch": {
                "type": "string",
                "description": "Default branch name"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created"
              }
            },
            "required": [
              "object",
              "id",
              "provider",
              "url",
              "is_private",
              "default_branch",
              "created_at"
            ]
          },
          "provider": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider identifier",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "access": {
                "enum": [
                  "public",
                  "tenant"
                ],
                "type": "string",
                "description": "Access level of the provider"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Current status of the provider"
              },
              "publisher": {
                "$ref": "#/components/schemas/Publisher"
              },
              "current_version": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.version",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique version identifier",
                    "examples": [
                      "prv_4dEfGhJkLmNpQrSt"
                    ]
                  },
                  "version": {
                    "type": "string",
                    "description": "Version identifier string",
                    "examples": [
                      "1.0.0"
                    ]
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "is_current": {
                    "type": "boolean",
                    "description": "Whether this is the current version"
                  },
                  "name": {
                    "type": "string",
                    "description": "Version name",
                    "examples": [
                      "Version 1.0.0"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Version description"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "specification_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Specification ID",
                    "examples": [
                      "psp_9gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "version",
                  "provider_id",
                  "is_current",
                  "name",
                  "description",
                  "metadata",
                  "specification_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "oauth": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "enabled",
                      "disabled"
                    ],
                    "type": "string",
                    "description": "OAuth status"
                  },
                  "callback_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "OAuth callback URL"
                  },
                  "auto_registration": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "enum": [
                          "supported",
                          "unsupported"
                        ],
                        "type": "string",
                        "description": "Auto-registration status"
                      }
                    },
                    "required": [
                      "status"
                    ]
                  }
                },
                "required": [
                  "status",
                  "callback_url",
                  "auto_registration"
                ]
              },
              "identifier": {
                "type": "string",
                "description": "Provider identifier"
              },
              "name": {
                "type": "string",
                "description": "Display name of the provider"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brief description of the provider"
              },
              "slug": {
                "type": "string",
                "description": "URL-friendly identifier"
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "access",
              "status",
              "publisher",
              "current_version",
              "oauth",
              "identifier",
              "name",
              "description",
              "slug",
              "metadata",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "type",
          "name",
          "description",
          "metadata",
          "draft",
          "scm_repo",
          "provider",
          "created_at",
          "updated_at"
        ]
      },
      "Team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The team ID",
            "examples": [
              "tm_3eFgHjKlMnPqRsTu"
            ]
          },
          "name": {
            "type": "string",
            "description": "The team name",
            "examples": [
              "Engineering"
            ]
          },
          "slug": {
            "type": "string",
            "description": "The team slug",
            "examples": [
              "engineering"
            ]
          },
          "assignment_id": {
            "type": "string",
            "description": "The team assignment ID",
            "examples": [
              "tmas_8jKlMnPqRsTuVwXy"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "The team assignment creation date"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The team assignment last update date"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "assignment_id",
          "created_at",
          "updated_at"
        ],
        "description": "The teams the actor belongs to"
      },
      "ConsumerProfile2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.profile",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "consumer_id": {
            "type": "string"
          },
          "user_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "enum": [
              "active",
              "invited"
            ],
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "name",
          "email",
          "image_url",
          "consumer_id",
          "user_id",
          "status",
          "created_at",
          "updated_at"
        ]
      },
      "Group": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.profile.group_assignment",
            "type": "string"
          },
          "group": {
            "$ref": "#/components/schemas/ConsumerGroup"
          },
          "assigned_via": {
            "enum": [
              "default",
              "manual",
              "sso",
              "user"
            ],
            "type": "string"
          }
        },
        "required": [
          "object",
          "group",
          "assigned_via"
        ]
      },
      "Item6": {
        "type": "object",
        "properties": {
          "object": {
            "const": "document",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "deleted"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "file_id": {
            "type": "string"
          },
          "parent_document_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "current_version_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "enum": [
                  "organization_actor",
                  "consumer",
                  "resource_actor"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization_actor": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "organization.actor",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "The organization member's unique identifier",
                    "examples": [
                      "omem_5fGhJkLmNpQrStUv"
                    ]
                  },
                  "type": {
                    "enum": [
                      "member",
                      "machine_access"
                    ],
                    "type": "string",
                    "description": "The organization member's type"
                  },
                  "organization_id": {
                    "type": "string",
                    "description": "The organization member's organization ID",
                    "examples": [
                      "org_7hNkPqRsTuVwXyZa"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "The organization member's name",
                    "examples": [
                      "Alex Chen"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The organization member's email",
                    "examples": [
                      "alex.chen@acme.com"
                    ]
                  },
                  "image_url": {
                    "type": "string",
                    "description": "The organization member's image URL",
                    "examples": [
                      "https://avatar-cdn.metorial.com/aimg_1234567890"
                    ]
                  },
                  "member": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.member#preview",
                        "type": "string",
                        "description": "String representing the organization's member preview type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "ome_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "status": {
                        "enum": [
                          "active",
                          "deleted"
                        ],
                        "type": "string",
                        "description": "The organization member's status"
                      },
                      "role": {
                        "enum": [
                          "member",
                          "admin"
                        ],
                        "type": "string",
                        "description": "The organization member's role"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "status",
                      "role"
                    ]
                  },
                  "teams": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Team"
                    }
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's creation date"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's last update date"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "organization_id",
                  "name",
                  "email",
                  "image_url",
                  "member",
                  "teams",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "consumer",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "name",
                  "email",
                  "image_url",
                  "user_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer_profile": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ConsumerProfile2"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "groups": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "$ref": "#/components/schemas/Group"
                            }
                          }
                        },
                        "required": [
                          "groups"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "name",
              "image_url",
              "email",
              "organization_actor",
              "consumer",
              "consumer_profile"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "title",
          "content",
          "file_id",
          "parent_document_id",
          "current_version_id",
          "created_by",
          "created_at",
          "updated_at"
        ]
      },
      "Actor3": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "organization_actor",
              "consumer",
              "resource_actor"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "organization_actor": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "organization.actor",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The organization member's unique identifier",
                "examples": [
                  "omem_5fGhJkLmNpQrStUv"
                ]
              },
              "type": {
                "enum": [
                  "member",
                  "machine_access"
                ],
                "type": "string",
                "description": "The organization member's type"
              },
              "organization_id": {
                "type": "string",
                "description": "The organization member's organization ID",
                "examples": [
                  "org_7hNkPqRsTuVwXyZa"
                ]
              },
              "name": {
                "type": "string",
                "description": "The organization member's name",
                "examples": [
                  "Alex Chen"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The organization member's email",
                "examples": [
                  "alex.chen@acme.com"
                ]
              },
              "image_url": {
                "type": "string",
                "description": "The organization member's image URL",
                "examples": [
                  "https://avatar-cdn.metorial.com/aimg_1234567890"
                ]
              },
              "member": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "organization.member#preview",
                    "type": "string",
                    "description": "String representing the organization's member preview type"
                  },
                  "id": {
                    "type": "string",
                    "description": "The organization member's unique identifier",
                    "examples": [
                      "ome_7hNkPqRsTuVwXyZa"
                    ]
                  },
                  "status": {
                    "enum": [
                      "active",
                      "deleted"
                    ],
                    "type": "string",
                    "description": "The organization member's status"
                  },
                  "role": {
                    "enum": [
                      "member",
                      "admin"
                    ],
                    "type": "string",
                    "description": "The organization member's role"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "status",
                  "role"
                ]
              },
              "teams": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Team"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The organization member's creation date"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "The organization member's last update date"
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "organization_id",
              "name",
              "email",
              "image_url",
              "member",
              "teams",
              "created_at",
              "updated_at"
            ]
          },
          "consumer": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "consumer",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "image_url": {
                "type": "string"
              },
              "user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "email",
              "image_url",
              "user_id",
              "created_at",
              "updated_at"
            ]
          },
          "consumer_profile": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ConsumerProfile2"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "groups": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "$ref": "#/components/schemas/Group"
                        }
                      }
                    },
                    "required": [
                      "groups"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "type",
          "name",
          "image_url",
          "email",
          "organization_actor",
          "consumer",
          "consumer_profile"
        ]
      },
      "Item7": {
        "type": "object",
        "properties": {
          "object": {
            "const": "document.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "role": {
            "enum": [
              "editor",
              "viewer"
            ],
            "type": "string"
          },
          "edit_count": {
            "type": "number"
          },
          "last_edited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_viewed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "actor": {
            "$ref": "#/components/schemas/Actor3"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "role",
          "edit_count",
          "last_edited_at",
          "last_viewed_at",
          "actor",
          "created_at"
        ]
      },
      "Item8": {
        "type": "object",
        "properties": {
          "object": {
            "const": "document.version",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "document_id": {
            "type": "string"
          },
          "version_number": {
            "type": "number"
          },
          "previous_version_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "list_edited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "content": {
            "type": "string"
          },
          "editors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Actor3"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "document_id",
          "version_number",
          "previous_version_id",
          "list_edited_at",
          "content",
          "editors",
          "created_at"
        ]
      },
      "ToolFilter": {
        "type": "object",
        "properties": {
          "type": {
            "const": "filter",
            "type": "string"
          },
          "filters": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "tool_keys",
                      "type": "string"
                    },
                    "keys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "type",
                    "keys"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "tool_regex",
                      "type": "string"
                    },
                    "pattern": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "pattern"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "resource_regex",
                      "type": "string"
                    },
                    "pattern": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "pattern"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "resource_uris",
                      "type": "string"
                    },
                    "uris": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "type",
                    "uris"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "prompt_keys",
                      "type": "string"
                    },
                    "keys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "type",
                    "keys"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "const": "prompt_regex",
                      "type": "string"
                    },
                    "pattern": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "pattern"
                  ]
                }
              ]
            }
          },
          "ignore_parent_filters": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "filters",
          "ignore_parent_filters"
        ]
      },
      "Item9": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance.group.provider",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "integration_id": {
            "type": "string"
          },
          "integration_instance_group_id": {
            "type": "string"
          },
          "integration_instance_id": {
            "type": "string"
          },
          "integration_provider_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "integration_instance_provider_id": {
            "type": "string"
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "is_override_tool_filter": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "integration_instance_group_id",
          "integration_instance_id",
          "integration_provider_id",
          "integration_instance_provider_id",
          "tool_filter",
          "is_override_tool_filter",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Item10": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance.group",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "implementation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "magic_mcp_endpoint",
                "type": "string"
              },
              "magic_mcp_endpoint_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "magic_mcp_endpoint_id"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item9"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "implementation",
          "providers",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Provider3": {
        "type": "object",
        "properties": {
          "integration_instance_provider_id": {
            "type": "string"
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "integration_instance_provider_id"
        ]
      },
      "Usage": {
        "type": "object",
        "properties": {
          "total_productive_client_message_count": {
            "type": "number",
            "description": "Total productive client messages"
          },
          "total_productive_provider_message_count": {
            "type": "number",
            "description": "Total productive provider messages"
          }
        },
        "required": [
          "total_productive_client_message_count",
          "total_productive_provider_message_count"
        ]
      },
      "Usage2": {
        "type": "object",
        "properties": {
          "total_productive_client_message_count": {
            "type": "number",
            "description": "Total productive client messages"
          },
          "total_productive_provider_message_count": {
            "type": "number",
            "description": "Total productive provider messages"
          }
        },
        "required": [
          "total_productive_client_message_count",
          "total_productive_provider_message_count"
        ],
        "description": "Usage statistics"
      },
      "Provider4": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session provider identifier",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Provider status"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage2"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "from_template_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source template ID",
            "examples": [
              "stm_2bCdEfGhJkLmNpQr"
            ]
          },
          "from_template_provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source template provider ID",
            "examples": [
              "stp_3cDeFgHjKlMnPqRs"
            ]
          },
          "deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "config": {
            "$ref": "#/components/schemas/Config2"
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "usage",
          "tool_filter",
          "provider_id",
          "session_id",
          "from_template_id",
          "from_template_provider_id",
          "deployment",
          "config",
          "auth_config",
          "created_at",
          "updated_at"
        ]
      },
      "Provider5": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.template.provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session template provider identifier",
            "examples": [
              "stp_3cDeFgHjKlMnPqRs"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Provider status"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "session_template_id": {
            "type": "string",
            "description": "Parent session template ID",
            "examples": [
              "stm_2bCdEfGhJkLmNpQr"
            ]
          },
          "deployment": {
            "$ref": "#/components/schemas/ProviderDeployment"
          },
          "config": {
            "$ref": "#/components/schemas/Config2"
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "tool_filter",
          "provider_id",
          "session_template_id",
          "deployment",
          "config",
          "auth_config",
          "created_at",
          "updated_at"
        ]
      },
      "Provider6": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider#preview",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique provider identifier",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the provider",
            "examples": [
              "GitHub"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brief description of the provider",
            "examples": [
              "Connect to GitHub repositories, issues, and pull requests"
            ]
          },
          "slug": {
            "type": "string",
            "description": "URL-friendly identifier",
            "examples": [
              "github"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the provider was created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the provider was last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "name",
          "description",
          "slug",
          "created_at",
          "updated_at"
        ]
      },
      "IntegrationProvider2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.provider#snapshot",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "provider_version": {
            "type": "object",
            "properties": {
              "object": {
                "const": "integration.provider.version",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "index": {
                "type": "number"
              }
            },
            "required": [
              "object",
              "id",
              "index"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string"
          },
          "deployment_id": {
            "type": "string"
          },
          "auth_method_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "auth_credentials_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "provider_version",
          "status",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "deployment_id",
          "auth_method_id",
          "auth_credentials_id",
          "config",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Item11": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance.provider",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "integration_id": {
            "type": "string"
          },
          "integration_instance_id": {
            "type": "string"
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "is_override_tool_filter": {
            "type": "boolean"
          },
          "provider": {
            "$ref": "#/components/schemas/Provider6"
          },
          "integration_provider": {
            "$ref": "#/components/schemas/IntegrationProvider2"
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "integration_instance_id",
          "tool_filter",
          "is_override_tool_filter",
          "provider",
          "integration_provider",
          "config",
          "auth_config",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Item12": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.instance",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "integration_id": {
            "type": "string"
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "implementation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "magic_mcp_server",
                "type": "string"
              },
              "magic_mcp_server_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "magic_mcp_server_id"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item11"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "identity_actor_id",
          "identity_id",
          "implementation",
          "providers",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Provider7": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string"
          },
          "provider_config_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_auth_config_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool_filters": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "tool_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "resource_uris",
                            "type": "string"
                          },
                          "uris": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "uris"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_keys",
                            "type": "string"
                          },
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "type",
                          "keys"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "prompt_regex",
                            "type": "string"
                          },
                          "pattern": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "pattern"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "tool_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "resource_uris",
                              "type": "string"
                            },
                            "uris": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "uris"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_keys",
                              "type": "string"
                            },
                            "keys": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "keys"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "prompt_regex",
                              "type": "string"
                            },
                            "pattern": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "pattern"
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "is_override_tool_filter": {
            "type": "boolean"
          }
        },
        "required": [
          "provider_id"
        ]
      },
      "Item13": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.provider",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "integration_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "tool_filter": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string"
          },
          "deployment_id": {
            "type": "string"
          },
          "auth_method_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "auth_credentials_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "integration_id",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "deployment_id",
          "auth_method_id",
          "auth_credentials_id",
          "config",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Item14": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration.setup_session",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "successful",
              "expired",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "configuration": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "redirect_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "integration_id": {
            "type": "string"
          },
          "integration_instance": {
            "$ref": "#/components/schemas/Item12"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "url",
          "name",
          "description",
          "metadata",
          "configuration",
          "redirect_url",
          "integration_id",
          "integration_instance",
          "created_at",
          "updated_at",
          "expires_at"
        ]
      },
      "ProviderSearch": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "group_id": {
                  "type": "string"
                }
              },
              "required": [
                "group_id"
              ]
            }
          },
          "collections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "collection_id": {
                  "type": "string"
                }
              },
              "required": [
                "collection_id"
              ]
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "category_id": {
                  "type": "string"
                }
              },
              "required": [
                "category_id"
              ]
            }
          }
        }
      },
      "Configuration": {
        "type": "object",
        "properties": {
          "provider_search": {
            "$ref": "#/components/schemas/ProviderSearch"
          },
          "tool_filters": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              }
            }
          },
          "ui": {
            "type": "object",
            "properties": {
              "layout": {
                "enum": [
                  "box",
                  "side",
                  "light"
                ],
                "type": "string"
              }
            }
          }
        }
      },
      "Configuration2": {
        "type": "object",
        "properties": {
          "can_attach_custom_tool_filters": {
            "type": "boolean"
          },
          "can_attach_custom_provider_config": {
            "type": "boolean"
          },
          "can_override_tool_filters": {
            "type": "boolean"
          },
          "use_integration_name_in_tool_names": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "can_attach_custom_tool_filters",
          "can_attach_custom_provider_config",
          "can_override_tool_filters",
          "use_integration_name_in_tool_names"
        ]
      },
      "Item15": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "configuration": {
            "$ref": "#/components/schemas/Configuration2"
          },
          "implementation": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "provider_template",
                        "type": "string"
                      },
                      "provider_template_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "provider_template_id"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "magic_mcp_server",
                        "type": "string"
                      },
                      "magic_mcp_server_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "magic_mcp_server_id"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item13"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "slug",
          "name",
          "description",
          "metadata",
          "configuration",
          "implementation",
          "providers",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "SkillConfiguration2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "portal.skill_configuration",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "allow_scripts": {
            "type": "boolean"
          },
          "allowed_file_extensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allow_non_standard_directories": {
            "type": "boolean"
          }
        },
        "required": [
          "object",
          "id",
          "is_default",
          "allow_scripts",
          "allowed_file_extensions",
          "allow_non_standard_directories"
        ]
      },
      "Auth": {
        "type": "object",
        "properties": {
          "object": {
            "const": "portal.auth",
            "type": "string"
          },
          "session_expiry_time_in_seconds": {
            "type": "number"
          },
          "allowed_redirect_url_filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            }
          }
        },
        "required": [
          "object",
          "session_expiry_time_in_seconds",
          "allowed_redirect_url_filters"
        ]
      },
      "Item16": {
        "type": "object",
        "properties": {
          "object": {
            "const": "portal",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "allow_consumer_skill_authoring": {
            "type": "boolean"
          },
          "allow_consumer_skill_publishing": {
            "type": "boolean"
          },
          "skill_configuration": {
            "$ref": "#/components/schemas/SkillConfiguration2"
          },
          "auth": {
            "$ref": "#/components/schemas/Auth"
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "enum": [
                    "default",
                    "namespace"
                  ],
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "url"
              ]
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "slug",
          "description",
          "allow_consumer_skill_authoring",
          "allow_consumer_skill_publishing",
          "skill_configuration",
          "auth",
          "urls",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderTemplate": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.template#preview",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "integration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_id",
          "created_at",
          "updated_at"
        ]
      },
      "Access": {
        "type": "object",
        "properties": {
          "type": {
            "const": "provider_template",
            "type": "string"
          },
          "provider_template": {
            "$ref": "#/components/schemas/ProviderTemplate"
          }
        },
        "required": [
          "type",
          "provider_template"
        ]
      },
      "MagicMcpServer": {
        "type": "object",
        "properties": {
          "object": {
            "const": "magic_mcp.server#preview",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description"
        ]
      },
      "Access2": {
        "type": "object",
        "properties": {
          "type": {
            "const": "magic_mcp_server",
            "type": "string"
          },
          "magic_mcp_server": {
            "$ref": "#/components/schemas/MagicMcpServer"
          }
        },
        "required": [
          "type",
          "magic_mcp_server"
        ]
      },
      "Access3": {
        "type": "object",
        "properties": {
          "type": {
            "const": "skill",
            "type": "string"
          },
          "skill": {
            "type": "object",
            "properties": {
              "object": {
                "const": "skill",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "name"
            ]
          }
        },
        "required": [
          "type",
          "skill"
        ]
      },
      "SkillTemplate2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.template",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "owner": {
            "enum": [
              "system",
              "tenant"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "owner",
          "name",
          "description"
        ]
      },
      "Access4": {
        "type": "object",
        "properties": {
          "type": {
            "const": "skill_template",
            "type": "string"
          },
          "skill_template": {
            "$ref": "#/components/schemas/SkillTemplate2"
          }
        },
        "required": [
          "type",
          "skill_template"
        ]
      },
      "Access5": {
        "type": "object",
        "properties": {
          "type": {
            "const": "skill_group",
            "type": "string"
          },
          "skill_group": {
            "type": "object",
            "properties": {
              "object": {
                "const": "skill.group",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "name",
              "description"
            ]
          }
        },
        "required": [
          "type",
          "skill_group"
        ]
      },
      "Access6": {
        "type": "object",
        "properties": {
          "type": {
            "const": "skill_marketplace",
            "type": "string"
          },
          "skill_marketplace": {
            "type": "object",
            "properties": {
              "object": {
                "const": "skill.marketplace",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string"
              }
            },
            "required": [
              "object",
              "id",
              "status"
            ]
          }
        },
        "required": [
          "type",
          "skill_marketplace"
        ]
      },
      "Access7": {
        "type": "object",
        "properties": {
          "type": {
            "const": "skill_plugin",
            "type": "string"
          },
          "skill_plugin": {
            "type": "object",
            "properties": {
              "object": {
                "const": "skill.plugin",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "name"
            ]
          }
        },
        "required": [
          "type",
          "skill_plugin"
        ]
      },
      "Item17": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.access",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "access_level": {
            "enum": [
              "read",
              "manage"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "readme": {
            "type": [
              "string",
              "null"
            ]
          },
          "listing": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "description"
            ]
          },
          "access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Access"
              },
              {
                "$ref": "#/components/schemas/Access2"
              },
              {
                "$ref": "#/components/schemas/Access3"
              },
              {
                "$ref": "#/components/schemas/Access4"
              },
              {
                "$ref": "#/components/schemas/Access5"
              },
              {
                "$ref": "#/components/schemas/Access6"
              },
              {
                "$ref": "#/components/schemas/Access7"
              }
            ]
          },
          "consumer_group": {
            "$ref": "#/components/schemas/ConsumerGroup"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "access_level",
          "name",
          "description",
          "readme",
          "listing",
          "access",
          "consumer_group",
          "created_at",
          "updated_at"
        ]
      },
      "Item18": {
        "type": "object",
        "properties": {
          "object": {
            "const": "consumer.access_request",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "approved",
              "rejected"
            ],
            "type": "string"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolution_message": {
            "type": [
              "string",
              "null"
            ]
          },
          "consumer_profile": {
            "type": "object",
            "properties": {
              "object": {
                "const": "consumer.profile#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "email"
            ]
          },
          "target": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Access"
              },
              {
                "$ref": "#/components/schemas/Access2"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "reviewed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "message",
          "resolution_message",
          "consumer_profile",
          "target",
          "created_at",
          "updated_at",
          "reviewed_at"
        ]
      },
      "Scope": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.auth_method.scope",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique scope identifier",
            "examples": [
              "pams_8tUvWxYzAbCdEfGh"
            ]
          },
          "scope": {
            "type": "string",
            "description": "OAuth scope string",
            "examples": [
              "repo"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the scope",
            "examples": [
              "Repository Access"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scope description",
            "examples": [
              "Full control of private repositories"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "scope",
          "name",
          "description"
        ]
      },
      "AuthMethod": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.auth_method",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth method identifier",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "type": {
            "enum": [
              "oauth",
              "token",
              "custom"
            ],
            "type": "string",
            "description": "Authentication type"
          },
          "key": {
            "type": "string",
            "description": "Auth method key",
            "examples": [
              "oauth2"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "OAuth 2.0"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Auth method description",
            "examples": [
              "Authenticate using OAuth 2.0"
            ]
          },
          "capabilities": {
            "type": "object",
            "additionalProperties": {},
            "description": "Auth method capabilities"
          },
          "input_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the required auth input fields"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "output_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the auth output fields"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "scopes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/Scope"
            },
            "description": "Available OAuth scopes"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "key",
          "name",
          "description",
          "capabilities",
          "input_schema",
          "output_schema",
          "scopes",
          "provider_id",
          "provider_specification_id",
          "created_at",
          "updated_at"
        ]
      },
      "AuthConfig": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_config",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth config identifier",
            "examples": [
              "pac_8pQrStUvWxYzAbCd"
            ]
          },
          "type": {
            "enum": [
              "manual",
              "oauth_automated",
              "oauth_manual"
            ],
            "type": "string",
            "description": "Authentication type"
          },
          "source": {
            "enum": [
              "manual",
              "setup_session",
              "system"
            ],
            "type": "string",
            "description": "Auth config source"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Auth config status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default auth config"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "GitHub OAuth Token"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "OAuth token for GitHub API access"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "credentials": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_credentials",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique credentials identifier",
                "examples": [
                  "par_4sTuVwXyZaBcDeFg"
                ]
              },
              "type": {
                "const": "oauth",
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Credentials status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default credentials for the provider",
                "examples": [
                  true
                ]
              },
              "is_managed": {
                "type": "boolean",
                "description": "Whether these credentials are managed by Metorial",
                "examples": [
                  true
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "GitHub OAuth"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "OAuth credentials for GitHub API"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "scopes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                },
                "description": "OAuth scopes requested by this credential"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "status",
              "is_default",
              "is_managed",
              "name",
              "description",
              "metadata",
              "scopes",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "auth_method": {
            "$ref": "#/components/schemas/AuthMethod"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "source",
          "status",
          "is_default",
          "provider_id",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "deployment",
          "credentials",
          "auth_method",
          "created_at",
          "updated_at"
        ]
      },
      "Item19": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_export",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth export identifier",
            "examples": [
              "pace_7yZaBcDeFgHjKlMn"
            ]
          },
          "note": {
            "type": "string",
            "description": "Note explaining the export reason",
            "examples": [
              "Exported for backup purposes"
            ]
          },
          "ip": {
            "type": [
              "string",
              "null"
            ],
            "description": "IP address of the export request",
            "examples": [
              "192.168.1.1"
            ]
          },
          "user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "User agent of the export request"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "auth_config": {
            "$ref": "#/components/schemas/AuthConfig"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deployment ID",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "auth_method_id": {
            "type": "string",
            "description": "Auth method ID",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "credentials_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Auth credentials ID",
            "examples": [
              "par_4sTuVwXyZaBcDeFg"
            ]
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "The exported credential data"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when the export expires",
            "examples": [
              "2026-03-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "note",
          "ip",
          "user_agent",
          "metadata",
          "auth_config",
          "provider_id",
          "provider_deployment_id",
          "auth_method_id",
          "credentials_id",
          "value",
          "created_at",
          "expires_at"
        ]
      },
      "Item20": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.auth_import",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique auth import identifier",
            "examples": [
              "paci_1vWxYzAbCdEfGhJk"
            ]
          },
          "note": {
            "type": "string",
            "description": "Note explaining the import",
            "examples": [
              "Imported from previous environment"
            ]
          },
          "ip": {
            "type": [
              "string",
              "null"
            ],
            "description": "IP address of the import request",
            "examples": [
              "192.168.1.1"
            ]
          },
          "user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "User agent of the import request"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "auth_config": {
            "$ref": "#/components/schemas/AuthConfig"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_deployment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deployment ID",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "auth_method_id": {
            "type": "string",
            "description": "Auth method ID",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "credentials_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Auth credentials ID",
            "examples": [
              "par_4sTuVwXyZaBcDeFg"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when the import expires",
            "examples": [
              "2026-03-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "note",
          "ip",
          "user_agent",
          "metadata",
          "auth_config",
          "provider_id",
          "provider_deployment_id",
          "auth_method_id",
          "credentials_id",
          "created_at",
          "expires_at"
        ]
      },
      "Item21": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.config",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique config identifier",
            "examples": [
              "pcf_7dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Config status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default config"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "Production Config"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Configuration for production environment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "specification_id": {
            "type": "string",
            "description": "Specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "from_vault": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config_vault",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique config vault identifier",
                "examples": [
                  "pcvt_3bCdEfGhJkLmNpQr"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Status of the config vault"
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Production Secrets"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Secure storage for production credentials"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "deployment": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.deployment#preview",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Deployment ID",
                    "examples": [
                      "pde_1aBcDeFgHjKlMnPq"
                    ]
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default deployment"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Deployment name",
                    "examples": [
                      "Production"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Production deployment"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "is_default",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "name",
              "description",
              "metadata",
              "provider_id",
              "deployment",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "is_default",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "specification_id",
          "deployment",
          "from_vault",
          "created_at",
          "updated_at"
        ]
      },
      "Item22": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.deployment",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique deployment identifier",
            "examples": [
              "pde_1aBcDeFgHjKlMnPq"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Deployment status"
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is the default deployment"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "Production"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Production deployment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "tool_filter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "allow_all",
                    "type": "string"
                  },
                  "ignore_parent_filters": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "ignore_parent_filters"
                ]
              },
              {
                "$ref": "#/components/schemas/ToolFilter"
              }
            ],
            "description": "Tool filter configuration"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "locked_version": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.version",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique version identifier",
                "examples": [
                  "prv_4dEfGhJkLmNpQrSt"
                ]
              },
              "version": {
                "type": "string",
                "description": "Version identifier string",
                "examples": [
                  "1.0.0"
                ]
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "is_current": {
                "type": "boolean",
                "description": "Whether this is the current version"
              },
              "name": {
                "type": "string",
                "description": "Version name",
                "examples": [
                  "Version 1.0.0"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Version description"
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "specification_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "version",
              "provider_id",
              "is_current",
              "name",
              "description",
              "metadata",
              "specification_id",
              "created_at",
              "updated_at"
            ]
          },
          "default_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Config ID",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Config name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "is_default",
          "name",
          "description",
          "metadata",
          "tool_filter",
          "provider_id",
          "locked_version",
          "default_config",
          "created_at",
          "updated_at"
        ]
      },
      "Item23": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.setup_session",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique setup session identifier",
            "examples": [
              "pas_6eFgHjKlMnPqRsTu"
            ]
          },
          "type": {
            "enum": [
              "auth_only",
              "config_only",
              "auth_and_config"
            ],
            "type": "string",
            "description": "Setup session type"
          },
          "status": {
            "enum": [
              "failed",
              "archived",
              "deleted",
              "pending",
              "completed",
              "expired"
            ],
            "type": "string",
            "description": "Session status"
          },
          "url": {
            "type": "string",
            "description": "URL where user completes authentication",
            "examples": [
              "https://provider.metorial.com/setup/pas_6eFgHjKlMnPqRsTu"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "GitHub OAuth Setup"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Connect your GitHub account"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs"
          },
          "configuration": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Setup session configuration"
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Linked identity ID",
            "examples": [
              "idn_3nOpRsTuVwXyZaBc"
            ]
          },
          "identity_credential_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identity credential created from this setup session",
            "examples": [
              "idc_3nOpRsTuVwXyZaBc"
            ]
          },
          "auth_method": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.capabilities.auth_method",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique auth method identifier",
                "examples": [
                  "pam_2mNpQrStUvWxYzAb"
                ]
              },
              "type": {
                "enum": [
                  "oauth",
                  "token",
                  "custom"
                ],
                "type": "string",
                "description": "Authentication type"
              },
              "key": {
                "type": "string",
                "description": "Auth method key",
                "examples": [
                  "oauth2"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "OAuth 2.0"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Auth method description",
                "examples": [
                  "Authenticate using OAuth 2.0"
                ]
              },
              "capabilities": {
                "type": "object",
                "additionalProperties": {},
                "description": "Auth method capabilities"
              },
              "input_schema": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the required auth input fields"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "output_schema": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "const": "json_schema",
                    "type": "string"
                  },
                  "schema": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "JSON Schema defining the auth output fields"
                  }
                },
                "required": [
                  "type",
                  "schema"
                ]
              },
              "scopes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "$ref": "#/components/schemas/Scope"
                },
                "description": "Available OAuth scopes"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "provider_specification_id": {
                "type": "string",
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "key",
              "name",
              "description",
              "capabilities",
              "input_schema",
              "output_schema",
              "scopes",
              "provider_id",
              "provider_specification_id",
              "created_at",
              "updated_at"
            ]
          },
          "deployment": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.deployment#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Deployment ID",
                "examples": [
                  "pde_1aBcDeFgHjKlMnPq"
                ]
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default deployment"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Deployment name",
                "examples": [
                  "Production"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Production deployment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "is_default",
              "name",
              "description",
              "metadata",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "credentials": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_credentials",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique credentials identifier",
                "examples": [
                  "par_4sTuVwXyZaBcDeFg"
                ]
              },
              "type": {
                "const": "oauth",
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Credentials status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default credentials for the provider",
                "examples": [
                  true
                ]
              },
              "is_managed": {
                "type": "boolean",
                "description": "Whether these credentials are managed by Metorial",
                "examples": [
                  true
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "GitHub OAuth"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "OAuth credentials for GitHub API"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "scopes": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                },
                "description": "OAuth scopes requested by this credential"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "status",
              "is_default",
              "is_managed",
              "name",
              "description",
              "metadata",
              "scopes",
              "provider_id",
              "created_at",
              "updated_at"
            ]
          },
          "auth_config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.auth_config",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique auth config identifier",
                "examples": [
                  "pac_8pQrStUvWxYzAbCd"
                ]
              },
              "type": {
                "enum": [
                  "manual",
                  "oauth_automated",
                  "oauth_manual"
                ],
                "type": "string",
                "description": "Authentication type"
              },
              "source": {
                "enum": [
                  "manual",
                  "setup_session",
                  "system"
                ],
                "type": "string",
                "description": "Auth config source"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Auth config status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default auth config"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "GitHub OAuth Token"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "OAuth token for GitHub API access"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "tool_filter": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ],
                "description": "Tool filter configuration"
              },
              "deployment": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.deployment#preview",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Deployment ID",
                    "examples": [
                      "pde_1aBcDeFgHjKlMnPq"
                    ]
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default deployment"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Deployment name",
                    "examples": [
                      "Production"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Production deployment"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "is_default",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "credentials": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.auth_credentials",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique credentials identifier",
                    "examples": [
                      "par_4sTuVwXyZaBcDeFg"
                    ]
                  },
                  "type": {
                    "const": "oauth",
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string",
                    "description": "Credentials status"
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default credentials for the provider",
                    "examples": [
                      true
                    ]
                  },
                  "is_managed": {
                    "type": "boolean",
                    "description": "Whether these credentials are managed by Metorial",
                    "examples": [
                      true
                    ]
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Display name",
                    "examples": [
                      "GitHub OAuth"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "OAuth credentials for GitHub API"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "scopes": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "string"
                    },
                    "description": "OAuth scopes requested by this credential"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "status",
                  "is_default",
                  "is_managed",
                  "name",
                  "description",
                  "metadata",
                  "scopes",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "auth_method": {
                "$ref": "#/components/schemas/AuthMethod"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "source",
              "status",
              "is_default",
              "provider_id",
              "name",
              "description",
              "metadata",
              "tool_filter",
              "deployment",
              "credentials",
              "auth_method",
              "created_at",
              "updated_at"
            ]
          },
          "config": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.config",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique config identifier",
                "examples": [
                  "pcf_7dEfGhJkLmNpQrSt"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string",
                "description": "Config status"
              },
              "is_default": {
                "type": "boolean",
                "description": "Whether this is the default config"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name",
                "examples": [
                  "Production Config"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description",
                "examples": [
                  "Configuration for production environment"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "tool_filter": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "allow_all",
                        "type": "string"
                      },
                      "ignore_parent_filters": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type",
                      "ignore_parent_filters"
                    ]
                  },
                  {
                    "$ref": "#/components/schemas/ToolFilter"
                  }
                ],
                "description": "Tool filter configuration"
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "specification_id": {
                "type": "string",
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "deployment": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.deployment#preview",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Deployment ID",
                    "examples": [
                      "pde_1aBcDeFgHjKlMnPq"
                    ]
                  },
                  "is_default": {
                    "type": "boolean",
                    "description": "Whether this is the default deployment"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Deployment name",
                    "examples": [
                      "Production"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Production deployment"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "is_default",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "from_vault": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "provider.config_vault",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique config vault identifier",
                    "examples": [
                      "pcvt_3bCdEfGhJkLmNpQr"
                    ]
                  },
                  "status": {
                    "enum": [
                      "active",
                      "archived",
                      "deleted"
                    ],
                    "type": "string",
                    "description": "Status of the config vault"
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name",
                    "examples": [
                      "Production Secrets"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Description",
                    "examples": [
                      "Secure storage for production credentials"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {},
                    "description": "Custom key-value pairs for storing additional information"
                  },
                  "provider_id": {
                    "type": "string",
                    "description": "Provider ID",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "deployment": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "provider.deployment#preview",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "Deployment ID",
                        "examples": [
                          "pde_1aBcDeFgHjKlMnPq"
                        ]
                      },
                      "is_default": {
                        "type": "boolean",
                        "description": "Whether this is the default deployment"
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Deployment name",
                        "examples": [
                          "Production"
                        ]
                      },
                      "description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Description",
                        "examples": [
                          "Production deployment"
                        ]
                      },
                      "metadata": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "additionalProperties": {},
                        "description": "Custom key-value pairs for storing additional information"
                      },
                      "provider_id": {
                        "type": "string",
                        "description": "Provider ID",
                        "examples": [
                          "pro_5gHjKlMnPqRsTuVw"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when created",
                        "examples": [
                          "2025-09-15T10:30:00.000Z"
                        ]
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when last updated",
                        "examples": [
                          "2026-01-10T14:45:00.000Z"
                        ]
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "is_default",
                      "name",
                      "description",
                      "metadata",
                      "provider_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when last updated",
                    "examples": [
                      "2026-01-10T14:45:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "status",
                  "name",
                  "description",
                  "metadata",
                  "provider_id",
                  "deployment",
                  "created_at",
                  "updated_at"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "is_default",
              "name",
              "description",
              "metadata",
              "tool_filter",
              "provider_id",
              "specification_id",
              "deployment",
              "from_vault",
              "created_at",
              "updated_at"
            ]
          },
          "ui_mode": {
            "enum": [
              "metorial_elements",
              "dashboard_embeddable"
            ],
            "type": "string",
            "description": "UI mode for setup"
          },
          "redirect_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to redirect after setup",
            "examples": [
              "https://app.example.com/callback"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the session expires",
            "examples": [
              "2025-09-15T11:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status",
          "url",
          "name",
          "description",
          "metadata",
          "configuration",
          "provider_id",
          "identity_id",
          "identity_credential_id",
          "auth_method",
          "deployment",
          "credentials",
          "auth_config",
          "config",
          "ui_mode",
          "redirect_url",
          "created_at",
          "updated_at",
          "expires_at"
        ]
      },
      "Item24": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.specification",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique specification identifier",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "key": {
            "type": "string",
            "description": "Unique specification key",
            "examples": [
              "github"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "GitHub"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "GitHub API integration"
            ]
          },
          "config_schema": {
            "type": "object",
            "additionalProperties": {},
            "description": "JSON Schema defining the configuration structure"
          },
          "config_visibility": {
            "enum": [
              "encrypted",
              "plain"
            ],
            "type": "string",
            "description": "Visibility level of the configuration"
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            },
            "description": "Available tools"
          },
          "auth_methods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthMethod"
            },
            "description": "Authentication methods"
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "key",
          "name",
          "description",
          "config_schema",
          "config_visibility",
          "tools",
          "auth_methods",
          "provider_id",
          "created_at",
          "updated_at"
        ]
      },
      "Item25": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider.capabilities.trigger",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique provider trigger identifier",
            "examples": [
              "ptr_4nOpQrStUvWxYzAb"
            ]
          },
          "key": {
            "type": "string",
            "description": "Trigger key used when subscribing callbacks",
            "examples": [
              "messages.created"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the trigger",
            "examples": [
              "Messages Created"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Trigger description",
            "examples": [
              "Fires whenever a new message is created in the provider"
            ]
          },
          "input_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the trigger payload input shape"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "output_schema": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "const": "json_schema",
                "type": "string"
              },
              "schema": {
                "type": "object",
                "additionalProperties": {},
                "description": "JSON Schema defining the trigger delivery output shape"
              }
            },
            "required": [
              "type",
              "schema"
            ]
          },
          "invocation": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "polling",
                    "type": "string"
                  },
                  "interval_seconds": {
                    "type": "number",
                    "description": "Polling interval in seconds for polling-based triggers",
                    "examples": [
                      60
                    ]
                  }
                },
                "required": [
                  "type",
                  "interval_seconds"
                ]
              },
              {
                "$ref": "#/components/schemas/Invocation"
              }
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "provider_specification_id": {
            "type": "string",
            "description": "Provider specification ID",
            "examples": [
              "psp_9gHjKlMnPqRsTuVw"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "key",
          "name",
          "description",
          "input_schema",
          "output_schema",
          "invocation",
          "provider_id",
          "provider_specification_id",
          "created_at",
          "updated_at"
        ]
      },
      "Item26": {
        "type": "object",
        "properties": {
          "object": {
            "const": "provider",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique provider identifier",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "access": {
            "enum": [
              "public",
              "tenant"
            ],
            "type": "string",
            "description": "Access level of the provider"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Current status of the provider"
          },
          "publisher": {
            "$ref": "#/components/schemas/Publisher"
          },
          "current_version": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider.version",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique version identifier",
                "examples": [
                  "prv_4dEfGhJkLmNpQrSt"
                ]
              },
              "version": {
                "type": "string",
                "description": "Version identifier string",
                "examples": [
                  "1.0.0"
                ]
              },
              "provider_id": {
                "type": "string",
                "description": "Provider ID",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "is_current": {
                "type": "boolean",
                "description": "Whether this is the current version"
              },
              "name": {
                "type": "string",
                "description": "Version name",
                "examples": [
                  "Version 1.0.0"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Version description"
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Custom key-value pairs for storing additional information"
              },
              "specification_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Specification ID",
                "examples": [
                  "psp_9gHjKlMnPqRsTuVw"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "version",
              "provider_id",
              "is_current",
              "name",
              "description",
              "metadata",
              "specification_id",
              "created_at",
              "updated_at"
            ]
          },
          "oauth": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "status": {
                "enum": [
                  "enabled",
                  "disabled"
                ],
                "type": "string",
                "description": "OAuth status"
              },
              "callback_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "OAuth callback URL"
              },
              "auto_registration": {
                "type": "object",
                "properties": {
                  "status": {
                    "enum": [
                      "supported",
                      "unsupported"
                    ],
                    "type": "string",
                    "description": "Auto-registration status"
                  }
                },
                "required": [
                  "status"
                ]
              }
            },
            "required": [
              "status",
              "callback_url",
              "auto_registration"
            ]
          },
          "identifier": {
            "type": "string",
            "description": "Provider identifier"
          },
          "name": {
            "type": "string",
            "description": "Display name of the provider"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brief description of the provider"
          },
          "slug": {
            "type": "string",
            "description": "URL-friendly identifier"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "access",
          "status",
          "publisher",
          "current_version",
          "oauth",
          "identifier",
          "name",
          "description",
          "slug",
          "metadata",
          "created_at",
          "updated_at"
        ]
      },
      "Data": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "description": "Participant-specific identifier within the payload",
            "examples": [
              "claude-desktop"
            ]
          },
          "name": {
            "type": "string",
            "description": "Participant-specific display name within the payload",
            "examples": [
              "Claude Desktop"
            ]
          }
        },
        "required": [
          "identifier",
          "name"
        ],
        "description": "Participant payload data"
      },
      "Item27": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.connection",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session connection identifier",
            "examples": [
              "scn_8hJkLmNpQrStUvWx"
            ]
          },
          "connection_state": {
            "enum": [
              "connected",
              "disconnected"
            ],
            "type": "string",
            "description": "Connection state"
          },
          "transport": {
            "enum": [
              "mcp",
              "tool_call",
              "metorial_protocol",
              "system"
            ],
            "type": "string",
            "description": "Transport protocol used"
          },
          "usage": {
            "$ref": "#/components/schemas/Usage2"
          },
          "mcp": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "capabilities": {
                "type": "object",
                "additionalProperties": {},
                "description": "MCP capabilities"
              },
              "protocol_version": {
                "type": "string",
                "description": "MCP protocol version",
                "examples": [
                  "2024-11-05"
                ]
              },
              "transport": {
                "enum": [
                  "none",
                  "sse",
                  "streamable_http"
                ],
                "type": "string",
                "description": "MCP transport type"
              }
            },
            "required": [
              "capabilities",
              "protocol_version",
              "transport"
            ],
            "description": "MCP connection details"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "has_errors": {
            "type": "boolean",
            "description": "Whether the connection has any errors"
          },
          "has_warnings": {
            "type": "boolean",
            "description": "Whether the connection has any warnings"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "last_message_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of last message",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "last_active_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp when last active",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "connection_state",
          "transport",
          "usage",
          "mcp",
          "session_id",
          "participant",
          "has_errors",
          "has_warnings",
          "created_at",
          "last_message_at",
          "last_active_at"
        ]
      },
      "Hierarchy": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.message.hierarchy",
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Hierarchy type",
            "examples": [
              "child"
            ]
          },
          "parent_message_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Parent message ID"
          },
          "child_message_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Child message ID"
            },
            "description": "List of child message IDs"
          }
        },
        "required": [
          "object",
          "type",
          "parent_message_id",
          "child_message_ids"
        ],
        "description": "Message hierarchy information"
      },
      "Transport": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.message.transport",
            "type": "string"
          },
          "type": {
            "enum": [
              "mcp",
              "tool_call",
              "metorial_protocol",
              "system"
            ],
            "type": "string",
            "description": "Transport type"
          },
          "mcp": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.message.transport.mcp",
                "type": "string"
              },
              "id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "MCP message ID"
              },
              "protocol_version": {
                "type": "string",
                "description": "MCP protocol version"
              },
              "transport": {
                "type": "string",
                "description": "MCP transport type",
                "examples": [
                  "unknown"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "protocol_version",
              "transport"
            ]
          },
          "tool_call": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.message.transport.tool_call",
                "type": "string"
              },
              "id": {
                "type": "string",
                "description": "Tool call ID"
              }
            },
            "required": [
              "object",
              "id"
            ]
          }
        },
        "required": [
          "object",
          "type",
          "mcp",
          "tool_call"
        ],
        "description": "Transport information"
      },
      "SenderParticipant": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session participant identifier",
            "examples": [
              "spt_5eFgHjKlMnPqRsTu"
            ]
          },
          "type": {
            "enum": [
              "unknown",
              "provider",
              "agent",
              "system"
            ],
            "type": "string",
            "description": "Participant type"
          },
          "identifier": {
            "type": "string",
            "description": "Participant identifier",
            "examples": [
              "claude-desktop"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name",
            "examples": [
              "Claude Desktop"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/Data"
          },
          "provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider ID if associated",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "connection_type": {
            "enum": [
              "mcp",
              "metorial_protocol",
              "tool_call"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "agent_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent_instance_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent_client_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "consumer_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "identifier",
          "name",
          "data",
          "provider_id",
          "connection_type",
          "agent_id",
          "agent_instance_id",
          "identity_actor_id",
          "identity_id",
          "agent_actor_id",
          "agent_client_id",
          "consumer_id",
          "created_at"
        ]
      },
      "Item28": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.message",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session message identifier",
            "examples": [
              "smg_8hJkLmNpQrStUvWx"
            ]
          },
          "type": {
            "enum": [
              "tool_call",
              "mcp_control",
              "mcp_message",
              "unknown"
            ],
            "type": "string",
            "description": "Message type"
          },
          "status": {
            "enum": [
              "waiting_for_response",
              "failed",
              "succeeded"
            ],
            "type": "string",
            "description": "Message status"
          },
          "source": {
            "enum": [
              "client",
              "provider"
            ],
            "type": "string",
            "description": "Message source"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "session_provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session provider ID",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "connection_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Connection ID",
            "examples": [
              "scn_2bCdEfGhJkLmNpQr"
            ]
          },
          "provider_run_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider run ID",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "hierarchy": {
            "$ref": "#/components/schemas/Hierarchy"
          },
          "transport": {
            "$ref": "#/components/schemas/Transport"
          },
          "input": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Input message data"
          },
          "output": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Output message data"
          },
          "tool_call": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.tool_call",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique tool call identifier",
                "examples": [
                  "tcl_8hJkLmNpQrStUvWx"
                ]
              },
              "tool_key": {
                "type": "string",
                "description": "The key identifying the tool that was called",
                "examples": [
                  "create_issue"
                ]
              },
              "type": {
                "enum": [
                  "tool_call",
                  "mcp_control",
                  "mcp_message",
                  "unknown"
                ],
                "type": "string",
                "description": "The type of the tool call"
              },
              "status": {
                "enum": [
                  "waiting_for_response",
                  "failed",
                  "succeeded"
                ],
                "type": "string",
                "description": "Current status of the tool call"
              },
              "source": {
                "enum": [
                  "client",
                  "provider"
                ],
                "type": "string",
                "description": "Source of the tool call"
              },
              "transport": {
                "enum": [
                  "tool_call",
                  "mcp",
                  "metorial_protocol",
                  "system"
                ],
                "type": "string",
                "description": "Transport protocol used"
              },
              "session_id": {
                "type": "string",
                "description": "Parent session ID",
                "examples": [
                  "ses_4dEfGhJkLmNpQrSt"
                ]
              },
              "message_id": {
                "type": "string",
                "description": "Associated session message ID",
                "examples": [
                  "smg_3cDeFgHjKlMnPqRs"
                ]
              },
              "session_provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Session provider ID",
                "examples": [
                  "spr_3cDeFgHjKlMnPqRs"
                ]
              },
              "connection_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Session connection ID",
                "examples": [
                  "scn_2bCdEfGhJkLmNpQr"
                ]
              },
              "provider_run_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider run ID",
                "examples": [
                  "prn_8hJkLmNpQrStUvWx"
                ]
              },
              "sender_participant": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "session.participant",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique session participant identifier",
                    "examples": [
                      "spt_5eFgHjKlMnPqRsTu"
                    ]
                  },
                  "type": {
                    "enum": [
                      "unknown",
                      "provider",
                      "agent",
                      "system"
                    ],
                    "type": "string",
                    "description": "Participant type"
                  },
                  "identifier": {
                    "type": "string",
                    "description": "Participant identifier",
                    "examples": [
                      "claude-desktop"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name",
                    "examples": [
                      "Claude Desktop"
                    ]
                  },
                  "data": {
                    "$ref": "#/components/schemas/Data"
                  },
                  "provider_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Provider ID if associated",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "connection_type": {
                    "enum": [
                      "mcp",
                      "metorial_protocol",
                      "tool_call"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_instance_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_client_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "consumer_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "identifier",
                  "name",
                  "data",
                  "provider_id",
                  "connection_type",
                  "agent_id",
                  "agent_instance_id",
                  "identity_actor_id",
                  "identity_id",
                  "agent_actor_id",
                  "agent_client_id",
                  "consumer_id",
                  "created_at"
                ]
              },
              "responder_participant": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "session.participant",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique session participant identifier",
                    "examples": [
                      "spt_5eFgHjKlMnPqRsTu"
                    ]
                  },
                  "type": {
                    "enum": [
                      "unknown",
                      "provider",
                      "agent",
                      "system"
                    ],
                    "type": "string",
                    "description": "Participant type"
                  },
                  "identifier": {
                    "type": "string",
                    "description": "Participant identifier",
                    "examples": [
                      "claude-desktop"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name",
                    "examples": [
                      "Claude Desktop"
                    ]
                  },
                  "data": {
                    "$ref": "#/components/schemas/Data"
                  },
                  "provider_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Provider ID if associated",
                    "examples": [
                      "pro_5gHjKlMnPqRsTuVw"
                    ]
                  },
                  "connection_type": {
                    "enum": [
                      "mcp",
                      "metorial_protocol",
                      "tool_call"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_instance_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "identity_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_actor_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "agent_client_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "consumer_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "identifier",
                  "name",
                  "data",
                  "provider_id",
                  "connection_type",
                  "agent_id",
                  "agent_instance_id",
                  "identity_actor_id",
                  "identity_id",
                  "agent_actor_id",
                  "agent_client_id",
                  "consumer_id",
                  "created_at"
                ]
              },
              "tool": {
                "$ref": "#/components/schemas/Tool"
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "session.error",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "Unique session error identifier",
                    "examples": [
                      "ser_6fGhJkLmNpQrStUv"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "description": "Error code",
                    "examples": [
                      "CONNECTION_TIMEOUT"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "description": "Error message",
                    "examples": [
                      "Connection timed out after 30 seconds"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "Error payload data"
                  },
                  "status": {
                    "enum": [
                      "processing",
                      "processed"
                    ],
                    "type": "string",
                    "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
                  },
                  "session_id": {
                    "type": "string",
                    "description": "Parent session ID",
                    "examples": [
                      "ses_4dEfGhJkLmNpQrSt"
                    ]
                  },
                  "provider_run_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Provider run ID",
                    "examples": [
                      "prn_8hJkLmNpQrStUvWx"
                    ]
                  },
                  "connection_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Connection ID",
                    "examples": [
                      "scn_8hJkLmNpQrStUvWx"
                    ]
                  },
                  "group_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Error group ID",
                    "examples": [
                      "seg_7gHjKlMnPqRsTuVw"
                    ]
                  },
                  "similar_error_count": {
                    "type": "number",
                    "description": "Count of similar errors in the group",
                    "examples": [
                      5
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Timestamp when created",
                    "examples": [
                      "2025-09-15T10:30:00.000Z"
                    ]
                  }
                },
                "required": [
                  "object",
                  "id",
                  "code",
                  "message",
                  "data",
                  "status",
                  "session_id",
                  "provider_run_id",
                  "connection_id",
                  "group_id",
                  "similar_error_count",
                  "created_at"
                ]
              },
              "input": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Input data passed to the tool call"
              },
              "output": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "description": "Output data returned from the tool call"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "tool_key",
              "type",
              "status",
              "source",
              "transport",
              "session_id",
              "message_id",
              "session_provider_id",
              "connection_id",
              "provider_run_id",
              "sender_participant",
              "responder_participant",
              "tool",
              "error",
              "input",
              "output",
              "created_at"
            ]
          },
          "sender_participant": {
            "$ref": "#/components/schemas/SenderParticipant"
          },
          "responder_participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.error",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session error identifier",
                "examples": [
                  "ser_6fGhJkLmNpQrStUv"
                ]
              },
              "code": {
                "type": "string",
                "description": "Error code",
                "examples": [
                  "CONNECTION_TIMEOUT"
                ]
              },
              "message": {
                "type": "string",
                "description": "Error message",
                "examples": [
                  "Connection timed out after 30 seconds"
                ]
              },
              "data": {
                "type": "object",
                "additionalProperties": {},
                "description": "Error payload data"
              },
              "status": {
                "enum": [
                  "processing",
                  "processed"
                ],
                "type": "string",
                "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
              },
              "session_id": {
                "type": "string",
                "description": "Parent session ID",
                "examples": [
                  "ses_4dEfGhJkLmNpQrSt"
                ]
              },
              "provider_run_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider run ID",
                "examples": [
                  "prn_8hJkLmNpQrStUvWx"
                ]
              },
              "connection_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Connection ID",
                "examples": [
                  "scn_8hJkLmNpQrStUvWx"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Error group ID",
                "examples": [
                  "seg_7gHjKlMnPqRsTuVw"
                ]
              },
              "similar_error_count": {
                "type": "number",
                "description": "Count of similar errors in the group",
                "examples": [
                  5
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "code",
              "message",
              "data",
              "status",
              "session_id",
              "provider_run_id",
              "connection_id",
              "group_id",
              "similar_error_count",
              "created_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "status",
          "source",
          "session_id",
          "session_provider_id",
          "connection_id",
          "provider_run_id",
          "hierarchy",
          "transport",
          "input",
          "output",
          "tool_call",
          "sender_participant",
          "responder_participant",
          "error",
          "created_at"
        ]
      },
      "ProviderDeployment2": {
        "type": "object",
        "properties": {
          "provider_id": {
            "type": "string",
            "description": "Provider ID",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Default Deployment"
            ]
          },
          "description": {
            "type": "string",
            "examples": [
              "Deployment for production environment"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "locked_provider_version_id": {
            "type": "string",
            "description": "Locked provider version ID to ensure consistent behavior",
            "examples": [
              "pv_1a2b3c4d5e6f7g8h9"
            ]
          }
        },
        "required": [
          "provider_id"
        ]
      },
      "ProviderConfig": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Default Config"
            ]
          },
          "provider_config_vault_id": {
            "type": "string",
            "description": "Provider config vault ID",
            "examples": [
              "pcvt_3bCdEfGhJkLmNpQr"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "Explicitly specify provider ID to associate with this auth config",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          }
        },
        "required": [
          "provider_config_vault_id"
        ]
      },
      "ProviderAuthConfig2": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Default Auth Config"
            ]
          },
          "provider_auth_method_id": {
            "type": "string",
            "description": "The authentication method to use (e.g., OAuth flow)",
            "examples": [
              "pam_2mNpQrStUvWxYzAb"
            ]
          },
          "credentials": {
            "type": "object",
            "additionalProperties": {},
            "description": "Provider-specific authentication credentials"
          },
          "provider_id": {
            "type": "string",
            "description": "Explicitly specify provider ID to associate with this auth config",
            "examples": [
              "pro_5gHjKlMnPqRsTuVw"
            ]
          }
        },
        "required": [
          "provider_auth_method_id",
          "credentials"
        ]
      },
      "SessionTemplate2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.template",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session template identifier",
            "examples": [
              "stm_2bCdEfGhJkLmNpQr"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Status of the session template"
          },
          "name": {
            "type": "string",
            "description": "Template name",
            "examples": [
              "Production Template"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Template description",
            "examples": [
              "Template for production sessions"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs"
          },
          "integration_instance_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "integration_instance_group_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider5"
            },
            "description": "Template providers"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "integration_instance_id",
          "integration_instance_group_id",
          "identity_actor_id",
          "identity_id",
          "providers",
          "created_at",
          "updated_at"
        ]
      },
      "ProviderSession2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique session identifier",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string",
            "description": "Session status"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name",
            "examples": [
              "Production Session"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description",
            "examples": [
              "Session for production environment"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Custom key-value pairs for storing additional information"
          },
          "connection_state": {
            "enum": [
              "connected",
              "disconnected"
            ],
            "type": "string",
            "description": "Session connection state"
          },
          "connection_url": {
            "type": "string",
            "description": "MCP connection URL for this session",
            "examples": [
              "https://mcp.metorial.com/mcp/ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "client_secret": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session-scoped fine grained client secret token",
            "examples": [
              "metorial_fk_4eC39HqLyjWDarjtT1zdp7dc"
            ]
          },
          "usage": {
            "$ref": "#/components/schemas/Usage"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider4"
            },
            "description": "Session providers"
          },
          "from_templates_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Template IDs this session was created from"
          },
          "has_errors": {
            "type": "boolean",
            "description": "Whether the session has any errors"
          },
          "has_warnings": {
            "type": "boolean",
            "description": "Whether the session has any warnings"
          },
          "identity_actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "identity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when last updated",
            "examples": [
              "2026-01-10T14:45:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "connection_state",
          "connection_url",
          "client_secret",
          "usage",
          "providers",
          "from_templates_ids",
          "has_errors",
          "has_warnings",
          "identity_actor_id",
          "identity_id",
          "created_at",
          "updated_at"
        ]
      },
      "Item29": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.export",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "target": {
            "enum": [
              "skill",
              "plugin",
              "marketplace"
            ],
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "file",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The files's unique identifier",
                "examples": [
                  "fil_9jKlMnPqRsTuVwXy"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "deleted"
                ],
                "type": "string",
                "description": "The files's status"
              },
              "file_name": {
                "type": "string",
                "description": "The file's name",
                "examples": [
                  "company-logo.png"
                ]
              },
              "file_size": {
                "type": "number",
                "description": "The file's size in bytes",
                "examples": [
                  245760
                ]
              },
              "file_type": {
                "type": "string",
                "description": "The file's MIME type",
                "examples": [
                  "image/png"
                ]
              },
              "title": {
                "type": "string",
                "description": "The file's title",
                "examples": [
                  "Company Logo"
                ]
              },
              "purpose": {
                "type": "string",
                "description": "The file's purpose identifier",
                "examples": [
                  "organization_logo"
                ]
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's creation date"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's last update date"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "file_name",
              "file_size",
              "file_type",
              "title",
              "purpose",
              "created_by",
              "created_at",
              "updated_at"
            ]
          },
          "file_link": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "file.file_link",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The links's unique identifier",
                "examples": [
                  "flk_5mNpQrStUvWxYzAb"
                ]
              },
              "file_id": {
                "type": "string",
                "description": "The file's unique identifier",
                "examples": [
                  "fil_9jKlMnPqRsTuVwXy"
                ]
              },
              "url": {
                "type": "string",
                "description": "The file's public URL",
                "examples": [
                  "https://files.metorial.com/files/fil_9jKlMnPqRsTuVwXy/a8f3k2m9"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The links's creation date"
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "The file's expiration date"
              }
            },
            "required": [
              "object",
              "id",
              "file_id",
              "url",
              "created_at",
              "expires_at"
            ]
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "enum": [
                  "organization_actor",
                  "consumer",
                  "resource_actor"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization_actor": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "organization.actor",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "The organization member's unique identifier",
                    "examples": [
                      "omem_5fGhJkLmNpQrStUv"
                    ]
                  },
                  "type": {
                    "enum": [
                      "member",
                      "machine_access"
                    ],
                    "type": "string",
                    "description": "The organization member's type"
                  },
                  "organization_id": {
                    "type": "string",
                    "description": "The organization member's organization ID",
                    "examples": [
                      "org_7hNkPqRsTuVwXyZa"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "The organization member's name",
                    "examples": [
                      "Alex Chen"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The organization member's email",
                    "examples": [
                      "alex.chen@acme.com"
                    ]
                  },
                  "image_url": {
                    "type": "string",
                    "description": "The organization member's image URL",
                    "examples": [
                      "https://avatar-cdn.metorial.com/aimg_1234567890"
                    ]
                  },
                  "member": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.member#preview",
                        "type": "string",
                        "description": "String representing the organization's member preview type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "ome_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "status": {
                        "enum": [
                          "active",
                          "deleted"
                        ],
                        "type": "string",
                        "description": "The organization member's status"
                      },
                      "role": {
                        "enum": [
                          "member",
                          "admin"
                        ],
                        "type": "string",
                        "description": "The organization member's role"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "status",
                      "role"
                    ]
                  },
                  "teams": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Team"
                    }
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's creation date"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's last update date"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "organization_id",
                  "name",
                  "email",
                  "image_url",
                  "member",
                  "teams",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "consumer",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "name",
                  "email",
                  "image_url",
                  "user_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer_profile": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ConsumerProfile2"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "groups": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "$ref": "#/components/schemas/Group"
                            }
                          }
                        },
                        "required": [
                          "groups"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "name",
              "image_url",
              "email",
              "organization_actor",
              "consumer",
              "consumer_profile"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "target",
          "status",
          "file",
          "file_link",
          "created_by",
          "created_at",
          "started_at",
          "completed_at"
        ]
      },
      "Skill2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "slug",
          "name",
          "description",
          "image_url",
          "client_name",
          "client_description",
          "client_metadata",
          "license",
          "compatibility",
          "metadata",
          "created_at",
          "updated_at"
        ]
      },
      "Item30": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.group",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "allow_consumer_skill_assignment": {
            "type": "boolean"
          },
          "skills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill2"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "name",
          "description",
          "metadata",
          "allow_consumer_skill_assignment",
          "skills",
          "created_at",
          "updated_at"
        ]
      },
      "Item31": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.group.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "skill_group_id": {
            "type": "string"
          },
          "skill": {
            "$ref": "#/components/schemas/Skill2"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "skill_group_id",
          "skill",
          "created_at"
        ]
      },
      "Item32": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.import.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "description"
            ]
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "path",
          "error",
          "skill",
          "started_at",
          "completed_at",
          "created_at"
        ]
      },
      "Item33": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.import",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "public",
                    "type": "string"
                  },
                  "repository_url": {
                    "type": "string"
                  },
                  "repository_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type",
                  "repository_url",
                  "repository_name",
                  "ref"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "scm",
                    "type": "string"
                  },
                  "repository_id": {
                    "type": "string"
                  },
                  "repository_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "path": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type",
                  "repository_id",
                  "repository_name",
                  "ref",
                  "path"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "const": "file",
                    "type": "string"
                  },
                  "file_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "file_name": {
                    "type": "string"
                  },
                  "format": {
                    "enum": [
                      "zip",
                      "markdown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "file_id",
                  "file_name",
                  "format"
                ]
              }
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item32"
            }
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "source",
          "error",
          "items",
          "started_at",
          "completed_at",
          "created_at"
        ]
      },
      "Skill3": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.plugin_skill",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "client_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_id": {
            "type": "string"
          },
          "skill": {
            "$ref": "#/components/schemas/Skill2"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "identifier",
          "status",
          "client_name",
          "client_description",
          "client_metadata",
          "license",
          "compatibility",
          "skill_configuration_id",
          "skill_id",
          "skill",
          "created_at",
          "updated_at"
        ]
      },
      "Plugin": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.marketplace_plugin",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_marketplace_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_plugin": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "skill.plugin",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "archived",
                  "deleted"
                ],
                "type": "string"
              },
              "sync_status": {
                "enum": [
                  "pending",
                  "processing",
                  "synced"
                ],
                "type": "string"
              },
              "image_url": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "long_description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "type": "string"
              },
              "skill_configuration_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "skills": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Skill3"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "sync_status",
              "image_url",
              "name",
              "description",
              "long_description",
              "category",
              "slug",
              "skill_configuration_id",
              "skills",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "identifier",
          "skill_configuration_id",
          "skill_marketplace_id",
          "skill_plugin",
          "created_at",
          "updated_at"
        ]
      },
      "Item34": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.marketplace",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "repository_access_mode": {
            "enum": [
              "pull_request",
              "default_branch"
            ],
            "type": "string"
          },
          "force_merge_or_push": {
            "type": "boolean"
          },
          "merge_before_checks_pass": {
            "type": "boolean"
          },
          "sync_status": {
            "enum": [
              "pending",
              "processing",
              "synced"
            ],
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "plugins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Plugin"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "repository_access_mode",
          "force_merge_or_push",
          "merge_before_checks_pass",
          "sync_status",
          "image_url",
          "name",
          "description",
          "slug",
          "skill_configuration_id",
          "plugins",
          "created_at",
          "updated_at"
        ]
      },
      "Item35": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.plugin",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "sync_status": {
            "enum": [
              "pending",
              "processing",
              "synced"
            ],
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "long_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "skill_configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "skills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill3"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "sync_status",
          "image_url",
          "name",
          "description",
          "long_description",
          "category",
          "slug",
          "skill_configuration_id",
          "skills",
          "created_at",
          "updated_at"
        ]
      },
      "Item36": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.template.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "integration",
              "provider"
            ],
            "type": "string"
          },
          "integration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "integration#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {}
              },
              "configuration": {
                "$ref": "#/components/schemas/Configuration2"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              },
              "archived_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "slug",
              "name",
              "description",
              "metadata",
              "configuration",
              "created_at",
              "updated_at",
              "archived_at"
            ]
          },
          "provider": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider identifier",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name of the provider",
                "examples": [
                  "GitHub"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brief description of the provider",
                "examples": [
                  "Connect to GitHub repositories, issues, and pull requests"
                ]
              },
              "slug": {
                "type": "string",
                "description": "URL-friendly identifier",
                "examples": [
                  "github"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "description",
              "slug",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "integration",
          "provider",
          "created_at",
          "updated_at"
        ]
      },
      "Item37": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.template",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "owner": {
            "enum": [
              "system",
              "tenant"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "store_id": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item36"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "owner",
          "slug",
          "name",
          "description",
          "metadata",
          "store_id",
          "items",
          "created_at",
          "updated_at"
        ]
      },
      "Entity": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.entity",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "parent_skill_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "name",
          "slug",
          "description",
          "parent_skill_id",
          "created_at",
          "updated_at"
        ]
      },
      "Hierarchy2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.hierarchy",
            "type": "string"
          },
          "type": {
            "enum": [
              "root",
              "fork",
              "duplicated"
            ],
            "type": "string"
          },
          "parent_skill_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "creator": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "enum": [
                  "organization_actor",
                  "consumer",
                  "resource_actor"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization_actor": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "organization.actor",
                    "type": "string",
                    "description": "String representing the object's type"
                  },
                  "id": {
                    "type": "string",
                    "description": "The organization member's unique identifier",
                    "examples": [
                      "omem_5fGhJkLmNpQrStUv"
                    ]
                  },
                  "type": {
                    "enum": [
                      "member",
                      "machine_access"
                    ],
                    "type": "string",
                    "description": "The organization member's type"
                  },
                  "organization_id": {
                    "type": "string",
                    "description": "The organization member's organization ID",
                    "examples": [
                      "org_7hNkPqRsTuVwXyZa"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "The organization member's name",
                    "examples": [
                      "Alex Chen"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The organization member's email",
                    "examples": [
                      "alex.chen@acme.com"
                    ]
                  },
                  "image_url": {
                    "type": "string",
                    "description": "The organization member's image URL",
                    "examples": [
                      "https://avatar-cdn.metorial.com/aimg_1234567890"
                    ]
                  },
                  "member": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.member#preview",
                        "type": "string",
                        "description": "String representing the organization's member preview type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "ome_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "status": {
                        "enum": [
                          "active",
                          "deleted"
                        ],
                        "type": "string",
                        "description": "The organization member's status"
                      },
                      "role": {
                        "enum": [
                          "member",
                          "admin"
                        ],
                        "type": "string",
                        "description": "The organization member's role"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "status",
                      "role"
                    ]
                  },
                  "teams": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Team"
                    }
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's creation date"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The organization member's last update date"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "type",
                  "organization_id",
                  "name",
                  "email",
                  "image_url",
                  "member",
                  "teams",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "object": {
                    "const": "consumer",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "object",
                  "id",
                  "name",
                  "email",
                  "image_url",
                  "user_id",
                  "created_at",
                  "updated_at"
                ]
              },
              "consumer_profile": {
                "anyOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ConsumerProfile2"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "groups": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "$ref": "#/components/schemas/Group"
                            }
                          }
                        },
                        "required": [
                          "groups"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "type",
              "name",
              "image_url",
              "email",
              "organization_actor",
              "consumer",
              "consumer_profile"
            ]
          },
          "fork": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "parent_skill_id": {
                "type": "string"
              },
              "creator": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "original_creator": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "parent_skill_id",
              "creator",
              "original_creator",
              "created_at"
            ]
          },
          "entity": {
            "$ref": "#/components/schemas/Entity"
          }
        },
        "required": [
          "object",
          "type",
          "parent_skill_id",
          "creator",
          "fork",
          "entity"
        ]
      },
      "Integration2": {
        "type": "object",
        "properties": {
          "object": {
            "const": "integration#preview",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "configuration": {
            "$ref": "#/components/schemas/Configuration2"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "slug",
          "name",
          "description",
          "metadata",
          "configuration",
          "created_at",
          "updated_at",
          "archived_at"
        ]
      },
      "Item38": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "client_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {}
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "compatibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {}
          },
          "store_id": {
            "type": "string"
          },
          "hierarchy": {
            "$ref": "#/components/schemas/Hierarchy2"
          },
          "integrations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Integration2"
            }
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Provider6"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "slug",
          "name",
          "description",
          "image_url",
          "client_name",
          "client_description",
          "client_metadata",
          "license",
          "compatibility",
          "metadata",
          "store_id",
          "hierarchy",
          "integrations",
          "providers",
          "created_at",
          "updated_at"
        ]
      },
      "Item39": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.item",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "active",
              "archived",
              "deleted"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "integration",
              "provider"
            ],
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "integration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "integration#preview",
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "metadata": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {}
              },
              "configuration": {
                "$ref": "#/components/schemas/Configuration2"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              },
              "archived_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "slug",
              "name",
              "description",
              "metadata",
              "configuration",
              "created_at",
              "updated_at",
              "archived_at"
            ]
          },
          "provider": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "provider#preview",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique provider identifier",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name of the provider",
                "examples": [
                  "GitHub"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brief description of the provider",
                "examples": [
                  "Connect to GitHub repositories, issues, and pull requests"
                ]
              },
              "slug": {
                "type": "string",
                "description": "URL-friendly identifier",
                "examples": [
                  "github"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the provider was last updated",
                "examples": [
                  "2026-01-10T14:45:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "name",
              "description",
              "slug",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "status",
          "type",
          "skill_id",
          "integration",
          "provider",
          "created_at"
        ]
      },
      "Item40": {
        "type": "object",
        "properties": {
          "object": {
            "const": "skill.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "skill_id": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "enum": [
                "creator",
                "editor",
                "viewer",
                "user",
                "forker"
              ],
              "type": "string"
            }
          },
          "actor": {
            "$ref": "#/components/schemas/Actor3"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "skill_id",
          "roles",
          "actor",
          "created_at",
          "updated_at"
        ]
      },
      "Item41": {
        "type": "object",
        "properties": {
          "object": {
            "const": "store.item",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "file",
              "document",
              "directory"
            ],
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "directory_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "file",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "The files's unique identifier",
                "examples": [
                  "fil_9jKlMnPqRsTuVwXy"
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "deleted"
                ],
                "type": "string",
                "description": "The files's status"
              },
              "file_name": {
                "type": "string",
                "description": "The file's name",
                "examples": [
                  "company-logo.png"
                ]
              },
              "file_size": {
                "type": "number",
                "description": "The file's size in bytes",
                "examples": [
                  245760
                ]
              },
              "file_type": {
                "type": "string",
                "description": "The file's MIME type",
                "examples": [
                  "image/png"
                ]
              },
              "title": {
                "type": "string",
                "description": "The file's title",
                "examples": [
                  "Company Logo"
                ]
              },
              "purpose": {
                "type": "string",
                "description": "The file's purpose identifier",
                "examples": [
                  "organization_logo"
                ]
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's creation date"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "The files's last update date"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "file_name",
              "file_size",
              "file_type",
              "title",
              "purpose",
              "created_by",
              "created_at",
              "updated_at"
            ]
          },
          "document": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "document",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "active",
                  "deleted"
                ],
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "content": {
                "type": "string"
              },
              "file_id": {
                "type": "string"
              },
              "parent_document_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "current_version_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_by": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "organization_actor",
                      "consumer",
                      "resource_actor"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "image_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "organization_actor": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "organization.actor",
                        "type": "string",
                        "description": "String representing the object's type"
                      },
                      "id": {
                        "type": "string",
                        "description": "The organization member's unique identifier",
                        "examples": [
                          "omem_5fGhJkLmNpQrStUv"
                        ]
                      },
                      "type": {
                        "enum": [
                          "member",
                          "machine_access"
                        ],
                        "type": "string",
                        "description": "The organization member's type"
                      },
                      "organization_id": {
                        "type": "string",
                        "description": "The organization member's organization ID",
                        "examples": [
                          "org_7hNkPqRsTuVwXyZa"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "description": "The organization member's name",
                        "examples": [
                          "Alex Chen"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The organization member's email",
                        "examples": [
                          "alex.chen@acme.com"
                        ]
                      },
                      "image_url": {
                        "type": "string",
                        "description": "The organization member's image URL",
                        "examples": [
                          "https://avatar-cdn.metorial.com/aimg_1234567890"
                        ]
                      },
                      "member": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "object": {
                            "const": "organization.member#preview",
                            "type": "string",
                            "description": "String representing the organization's member preview type"
                          },
                          "id": {
                            "type": "string",
                            "description": "The organization member's unique identifier",
                            "examples": [
                              "ome_7hNkPqRsTuVwXyZa"
                            ]
                          },
                          "status": {
                            "enum": [
                              "active",
                              "deleted"
                            ],
                            "type": "string",
                            "description": "The organization member's status"
                          },
                          "role": {
                            "enum": [
                              "member",
                              "admin"
                            ],
                            "type": "string",
                            "description": "The organization member's role"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "status",
                          "role"
                        ]
                      },
                      "teams": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Team"
                        }
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's creation date"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The organization member's last update date"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "type",
                      "organization_id",
                      "name",
                      "email",
                      "image_url",
                      "member",
                      "teams",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "object": {
                        "const": "consumer",
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "image_url": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "name",
                      "email",
                      "image_url",
                      "user_id",
                      "created_at",
                      "updated_at"
                    ]
                  },
                  "consumer_profile": {
                    "anyOf": [
                      {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ConsumerProfile2"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "groups": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "$ref": "#/components/schemas/Group"
                                }
                              }
                            },
                            "required": [
                              "groups"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "type",
                  "name",
                  "image_url",
                  "email",
                  "organization_actor",
                  "consumer",
                  "consumer_profile"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "object",
              "id",
              "status",
              "title",
              "content",
              "file_id",
              "parent_document_id",
              "current_version_id",
              "created_by",
              "created_at",
              "updated_at"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "kind",
          "path",
          "store_id",
          "directory_id",
          "file",
          "document",
          "created_at",
          "updated_at"
        ]
      },
      "Item42": {
        "type": "object",
        "properties": {
          "object": {
            "const": "store.participant",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "permissions": {
            "type": "array",
            "items": {
              "enum": [
                "content_read",
                "content_write"
              ],
              "type": "string"
            }
          },
          "actor": {
            "$ref": "#/components/schemas/Actor3"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "object",
          "id",
          "store_id",
          "permissions",
          "actor",
          "created_at"
        ]
      },
      "Item43": {
        "type": "object",
        "properties": {
          "object": {
            "const": "session.tool_call",
            "type": "string",
            "description": "String representing the object's type"
          },
          "id": {
            "type": "string",
            "description": "Unique tool call identifier",
            "examples": [
              "tcl_8hJkLmNpQrStUvWx"
            ]
          },
          "tool_key": {
            "type": "string",
            "description": "The key identifying the tool that was called",
            "examples": [
              "create_issue"
            ]
          },
          "type": {
            "enum": [
              "tool_call",
              "mcp_control",
              "mcp_message",
              "unknown"
            ],
            "type": "string",
            "description": "The type of the tool call"
          },
          "status": {
            "enum": [
              "waiting_for_response",
              "failed",
              "succeeded"
            ],
            "type": "string",
            "description": "Current status of the tool call"
          },
          "source": {
            "enum": [
              "client",
              "provider"
            ],
            "type": "string",
            "description": "Source of the tool call"
          },
          "transport": {
            "enum": [
              "tool_call",
              "mcp",
              "metorial_protocol",
              "system"
            ],
            "type": "string",
            "description": "Transport protocol used"
          },
          "session_id": {
            "type": "string",
            "description": "Parent session ID",
            "examples": [
              "ses_4dEfGhJkLmNpQrSt"
            ]
          },
          "message_id": {
            "type": "string",
            "description": "Associated session message ID",
            "examples": [
              "smg_3cDeFgHjKlMnPqRs"
            ]
          },
          "session_provider_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session provider ID",
            "examples": [
              "spr_3cDeFgHjKlMnPqRs"
            ]
          },
          "connection_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Session connection ID",
            "examples": [
              "scn_2bCdEfGhJkLmNpQr"
            ]
          },
          "provider_run_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider run ID",
            "examples": [
              "prn_8hJkLmNpQrStUvWx"
            ]
          },
          "sender_participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "responder_participant": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.participant",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session participant identifier",
                "examples": [
                  "spt_5eFgHjKlMnPqRsTu"
                ]
              },
              "type": {
                "enum": [
                  "unknown",
                  "provider",
                  "agent",
                  "system"
                ],
                "type": "string",
                "description": "Participant type"
              },
              "identifier": {
                "type": "string",
                "description": "Participant identifier",
                "examples": [
                  "claude-desktop"
                ]
              },
              "name": {
                "type": "string",
                "description": "Display name",
                "examples": [
                  "Claude Desktop"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/Data"
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider ID if associated",
                "examples": [
                  "pro_5gHjKlMnPqRsTuVw"
                ]
              },
              "connection_type": {
                "enum": [
                  "mcp",
                  "metorial_protocol",
                  "tool_call"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_instance_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "identity_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_actor_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "agent_client_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consumer_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "type",
              "identifier",
              "name",
              "data",
              "provider_id",
              "connection_type",
              "agent_id",
              "agent_instance_id",
              "identity_actor_id",
              "identity_id",
              "agent_actor_id",
              "agent_client_id",
              "consumer_id",
              "created_at"
            ]
          },
          "tool": {
            "$ref": "#/components/schemas/Tool"
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "object": {
                "const": "session.error",
                "type": "string",
                "description": "String representing the object's type"
              },
              "id": {
                "type": "string",
                "description": "Unique session error identifier",
                "examples": [
                  "ser_6fGhJkLmNpQrStUv"
                ]
              },
              "code": {
                "type": "string",
                "description": "Error code",
                "examples": [
                  "CONNECTION_TIMEOUT"
                ]
              },
              "message": {
                "type": "string",
                "description": "Error message",
                "examples": [
                  "Connection timed out after 30 seconds"
                ]
              },
              "data": {
                "type": "object",
                "additionalProperties": {},
                "description": "Error payload data"
              },
              "status": {
                "enum": [
                  "processing",
                  "processed"
                ],
                "type": "string",
                "description": "Indicates whether the error is still being processed or has been fully processed and grouped."
              },
              "session_id": {
                "type": "string",
                "description": "Parent session ID",
                "examples": [
                  "ses_4dEfGhJkLmNpQrSt"
                ]
              },
              "provider_run_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Provider run ID",
                "examples": [
                  "prn_8hJkLmNpQrStUvWx"
                ]
              },
              "connection_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Connection ID",
                "examples": [
                  "scn_8hJkLmNpQrStUvWx"
                ]
              },
              "group_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Error group ID",
                "examples": [
                  "seg_7gHjKlMnPqRsTuVw"
                ]
              },
              "similar_error_count": {
                "type": "number",
                "description": "Count of similar errors in the group",
                "examples": [
                  5
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when created",
                "examples": [
                  "2025-09-15T10:30:00.000Z"
                ]
              }
            },
            "required": [
              "object",
              "id",
              "code",
              "message",
              "data",
              "status",
              "session_id",
              "provider_run_id",
              "connection_id",
              "group_id",
              "similar_error_count",
              "created_at"
            ]
          },
          "input": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Input data passed to the tool call"
          },
          "output": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "description": "Output data returned from the tool call"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when created",
            "examples": [
              "2025-09-15T10:30:00.000Z"
            ]
          }
        },
        "required": [
          "object",
          "id",
          "tool_key",
          "type",
          "status",
          "source",
          "transport",
          "session_id",
          "message_id",
          "session_provider_id",
          "connection_id",
          "provider_run_id",
          "sender_participant",
          "responder_participant",
          "tool",
          "error",
          "input",
          "output",
          "created_at"
        ]
      }
    }
  }
}
