{
  "name": "openai",
  "displayName": "OpenAI",
  "description": "A Pulumi provider for managing resources in OpenAI.",
  "keywords": [
    "pulumi",
    "openai",
    "ai",
    "agents",
    "category/utility"
  ],
  "homepage": "https://www.pulumi.com/openai",
  "license": "Apache-2.0",
  "repository": "https://github.com/pulumi-labs/pulumi-openai",
  "pluginDownloadURL": "github://api.github.com/pulumi-labs/pulumi-openai",
  "publisher": "Pulumi Labs",
  "language": {
    "csharp": {
      "respectSchemaVersion": true,
      "rootNamespace": "Pulumi.Labs"
    },
    "go": {
      "generateResourceContainerTypes": true,
      "importBasePath": "github.com/pulumi-labs/pulumi-openai/sdk/go/pulumi-openai",
      "respectSchemaVersion": true
    },
    "java": {
      "basePackage": "com.pulumi.labs",
      "respectSchemaVersion": true
    },
    "nodejs": {
      "packageDescription": "A Pulumi provider for managing resources in OpenAI.",
      "packageName": "@pulumi-labs/openai",
      "respectSchemaVersion": true
    },
    "python": {
      "packageName": "pulumi_labs_openai",
      "pyproject": {
        "enabled": true
      },
      "respectSchemaVersion": true
    }
  },
  "config": {
    "variables": {
      "apiToken": {
        "type": "string",
        "description": "The OpenAI API key used to authenticate with the OpenAI API. Can also be set with the `OPENAI_API_KEY` environment variable.",
        "defaultInfo": {
          "environment": [
            "OPENAI_API_KEY"
          ]
        },
        "secret": true
      },
      "baseUrl": {
        "type": "string",
        "description": "The base URL of the OpenAI API. Defaults to `https://api.openai.com/v1`. Can also be set with the `OPENAI_BASE_URL` environment variable.",
        "defaultInfo": {
          "environment": [
            "OPENAI_BASE_URL"
          ]
        }
      }
    }
  },
  "types": {
    "openai:index:AgentCompaction": {
      "properties": {
        "async": {
          "type": "boolean",
          "description": "Whether compaction runs in the background. Defaults to true; set to false for blocking compaction."
        }
      },
      "type": "object"
    },
    "openai:index:AgentExperimental": {
      "properties": {
        "timeAwareness": {
          "type": "boolean",
          "description": "Whether the model receives periodic reminders of the current time. Defaults to false."
        }
      },
      "type": "object"
    },
    "openai:index:AgentMcpTransport": {
      "properties": {
        "args": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "`stdio` transport: arguments passed to the command."
        },
        "command": {
          "type": "string",
          "description": "`stdio` transport: the command that starts the MCP server. Required."
        },
        "cwd": {
          "type": "string",
          "description": "`stdio` transport: the working directory the command runs in. Required."
        },
        "envVars": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "`stdio` transport: names of environment variables the command inherits from the execution environment."
        },
        "headers": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "`http` transport: non-secret headers sent with each request to the server."
        },
        "serverUrl": {
          "type": "string",
          "description": "`http` transport: the URL of the MCP server. Required."
        },
        "type": {
          "$ref": "#/types/openai:index:McpTransportType",
          "description": "The transport type: `http` or `stdio`."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:AgentMultiAgent": {
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether subagent tools are enabled."
        },
        "maxConcurrentSubagents": {
          "type": "integer",
          "description": "The maximum number of subagents that run at once. Defaults to 6."
        }
      },
      "type": "object",
      "required": [
        "enabled"
      ]
    },
    "openai:index:AgentReasoning": {
      "properties": {
        "effort": {
          "$ref": "#/types/openai:index:ReasoningEffort",
          "description": "How much reasoning effort the model spends. When unset, the model chooses its default."
        },
        "summary": {
          "$ref": "#/types/openai:index:ReasoningSummary",
          "description": "The kind of reasoning summary to produce. When unset, summaries are disabled."
        }
      },
      "type": "object"
    },
    "openai:index:AgentText": {
      "properties": {
        "format": {
          "$ref": "#/types/openai:index:AgentTextFormat",
          "description": "The output format. Defaults to plain text."
        },
        "verbosity": {
          "$ref": "#/types/openai:index:TextVerbosity",
          "description": "How verbose the agent's responses are. Defaults to `medium`."
        }
      },
      "type": "object"
    },
    "openai:index:AgentTextFormat": {
      "properties": {
        "schema": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "The JSON Schema the output must conform to. Required when `type` is `json_schema`."
        },
        "type": {
          "$ref": "#/types/openai:index:TextFormatType",
          "description": "The format type: `text` for ordinary text, or `json_schema` to constrain output to a JSON Schema."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:AgentTool": {
      "description": "A tool available to an agent. `type` selects the kind of tool; each other property applies only to the tool types named in its description.",
      "properties": {
        "allowedDomains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "`web_search` tools: the domains searches are restricted to."
        },
        "allowedTools": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "`mcp` tools: the names of the server's tools the agent may use. When unset, all tools are allowed."
        },
        "async": {
          "type": "boolean",
          "description": "`function` tools: whether the function is called asynchronously."
        },
        "connectionOrigin": {
          "$ref": "#/types/openai:index:ConnectionOrigin",
          "description": "`mcp` tools: where the connection to the server is made from."
        },
        "contextSize": {
          "$ref": "#/types/openai:index:WebSearchContextSize",
          "description": "`web_search` tools: how much search context is given to the model."
        },
        "credentialId": {
          "type": "string",
          "description": "`mcp` tools: the ID of a stored credential used to authenticate to the server."
        },
        "deferLoading": {
          "type": "boolean",
          "description": "`function` tools: whether the function is only loaded once discovered through a `tool_search` tool."
        },
        "description": {
          "type": "string",
          "description": "`function` tools: a description of what the function does."
        },
        "enabled": {
          "type": "boolean",
          "description": "`programmatic_tool_calling` tools: whether programmatic tool calling is enabled. Defaults to true."
        },
        "includeScreenshots": {
          "type": "boolean",
          "description": "`computer_use` tools: whether screenshots are included."
        },
        "location": {
          "$ref": "#/types/openai:index:AgentWebSearchLocation",
          "description": "`web_search` tools: an approximate user location used to localize results."
        },
        "mode": {
          "$ref": "#/types/openai:index:WebSearchMode",
          "description": "`web_search` tools: whether results are fetched live, served from cache, or disabled."
        },
        "name": {
          "type": "string",
          "description": "`function` tools: the name of the function. Required."
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "`function` tools: a JSON Schema describing the function's parameters."
        },
        "requestMetadata": {
          "type": "object",
          "additionalProperties": {
            "$ref": "pulumi.json#/Any"
          },
          "description": "`mcp` tools: metadata sent to the server with each request."
        },
        "required": {
          "type": "boolean",
          "description": "`mcp` tools: whether the agent requires the server to be available."
        },
        "serverLabel": {
          "type": "string",
          "description": "`mcp` tools: a label identifying the MCP server. Required."
        },
        "transport": {
          "$ref": "#/types/openai:index:AgentMcpTransport",
          "description": "`mcp` tools: how to connect to the MCP server. Required."
        },
        "type": {
          "$ref": "#/types/openai:index:ToolType",
          "description": "The kind of tool."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:AgentWebSearchLocation": {
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "openai:index:AutomationCreatedBy": {
      "properties": {
        "sessionId": {
          "type": "string",
          "description": "For automations created by an agent, the session that created it."
        },
        "toolCallId": {
          "type": "string",
          "description": "For automations created by an agent, the tool call that created it."
        },
        "type": {
          "type": "string",
          "description": "Who created the automation: `developer` or `agent`."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:AutomationTarget": {
      "description": "What an automation invocation does: it starts a new session of an agent.",
      "properties": {
        "agentId": {
          "type": "string",
          "description": "The ID of the agent to run, such as the `id` of an `Agent` resource."
        },
        "environment": {
          "$ref": "#/types/openai:index:EnvironmentConfig",
          "description": "The execution environment of each session."
        },
        "input": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:InputMessage"
          },
          "description": "The user messages that start each session. At least one message is required."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Custom key-value pairs applied to each new session."
        },
        "vaultIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of vaults available to each session."
        }
      },
      "type": "object",
      "required": [
        "agentId",
        "environment",
        "input"
      ]
    },
    "openai:index:ConnectionOrigin": {
      "type": "string",
      "enum": [
        {
          "name": "Service",
          "value": "service"
        },
        {
          "name": "Environment",
          "value": "environment"
        }
      ]
    },
    "openai:index:ContainerSize": {
      "type": "string",
      "enum": [
        {
          "name": "Small",
          "value": "small"
        },
        {
          "name": "Medium",
          "value": "medium"
        },
        {
          "name": "Large",
          "value": "large"
        }
      ]
    },
    "openai:index:CredentialAuth": {
      "description": "How a credential authenticates. `type` selects the kind of credential; each other property applies only to the credential types named in its description. Secrets are write-only: the API never returns them, so they are not refreshed.",
      "properties": {
        "accessToken": {
          "type": "string",
          "description": "`mcp_oauth` credentials: the OAuth access token. Required. Changing it rotates the token in place.",
          "secret": true
        },
        "expiresAt": {
          "type": "string",
          "description": "`mcp_oauth` credentials: when the access token expires, as an RFC 3339 timestamp, if known. OpenAI updates the expiry when it refreshes the token; that is not reported as drift."
        },
        "mcpServerUrl": {
          "type": "string",
          "description": "`mcp_oauth` and `static_bearer` credentials: the HTTPS URL of the MCP server the credential authorizes. Required. An MCP tool uses the credential whose server URL matches, or the one its `credentialId` names. Changing it replaces the credential."
        },
        "networking": {
          "$ref": "#/types/openai:index:CredentialNetworking",
          "description": "`environment_variable` credentials: where the secret may be sent. Required. Changing it replaces the credential."
        },
        "refresh": {
          "$ref": "#/types/openai:index:CredentialOAuthRefresh",
          "description": "`mcp_oauth` credentials: how OpenAI refreshes the access token. When unset, the token is not refreshed. Adding or removing it replaces the credential."
        },
        "secretName": {
          "type": "string",
          "description": "`environment_variable` credentials: the name of the environment variable that receives a placeholder for the secret. Required. Use ASCII letters, digits and underscores, starting with a letter or underscore; names starting with `CODEX_` are reserved. It must be unique among the vault's environment variable credentials. Changing it replaces the credential."
        },
        "secretValue": {
          "type": "string",
          "description": "`environment_variable` credentials: the secret. Required. It must not contain carriage returns, newlines or NUL bytes. Sandbox code only sees a placeholder; OpenAI's egress proxy substitutes the secret in requests to allowed hosts. Changing it rotates the secret in place, for sessions created afterwards.",
          "secret": true
        },
        "token": {
          "type": "string",
          "description": "`static_bearer` credentials: the bearer token, which is not refreshed automatically. Required. Changing it rotates the token in place.",
          "secret": true
        },
        "type": {
          "$ref": "#/types/openai:index:CredentialAuthType",
          "description": "The kind of credential. It cannot be changed: changing it replaces the credential."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:CredentialAuthType": {
      "type": "string",
      "enum": [
        {
          "name": "McpOAuth",
          "description": "An OAuth access token for an MCP server, optionally refreshed by OpenAI.",
          "value": "mcp_oauth"
        },
        {
          "name": "StaticBearer",
          "description": "A bearer token for an MCP server.",
          "value": "static_bearer"
        },
        {
          "name": "EnvironmentVariable",
          "description": "A secret exposed to OpenAI-hosted environments as an environment variable placeholder.",
          "value": "environment_variable"
        }
      ]
    },
    "openai:index:CredentialNetworking": {
      "properties": {
        "allowedHosts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "`limited` networking: the hosts the secret may be sent to, 1 to 16 lowercase host names or IPv4 addresses, without a scheme, path, port or wildcard. They must also be allowed by the session's network policy. Required."
        },
        "type": {
          "$ref": "#/types/openai:index:CredentialNetworkingType",
          "description": "`limited` sends the secret only to `allowedHosts`. `unrestricted` sends it to any host the session's network policy allows, which must then be `restricted` with explicit allowed domains."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:CredentialNetworkingType": {
      "type": "string",
      "enum": [
        {
          "name": "Limited",
          "value": "limited"
        },
        {
          "name": "Unrestricted",
          "value": "unrestricted"
        }
      ]
    },
    "openai:index:CredentialOAuthRefresh": {
      "properties": {
        "clientId": {
          "type": "string",
          "description": "The OAuth client ID used to request a new token. Changing it replaces the credential."
        },
        "refreshToken": {
          "type": "string",
          "description": "The OAuth refresh token. Changing it rotates the token in place.",
          "secret": true
        },
        "resource": {
          "type": "string",
          "description": "The resource URI sent when refreshing, if the server requires one. Changing it replaces the credential."
        },
        "scope": {
          "type": "string",
          "description": "The space-separated OAuth scopes requested when refreshing."
        },
        "tokenEndpoint": {
          "type": "string",
          "description": "The HTTPS token endpoint the refresh token is exchanged at. Changing it replaces the credential."
        },
        "tokenEndpointAuth": {
          "$ref": "#/types/openai:index:CredentialTokenEndpointAuth",
          "description": "How the client authenticates to the token endpoint."
        }
      },
      "type": "object",
      "required": [
        "clientId",
        "refreshToken",
        "tokenEndpoint",
        "tokenEndpointAuth"
      ]
    },
    "openai:index:CredentialTokenEndpointAuth": {
      "properties": {
        "clientSecret": {
          "type": "string",
          "description": "`client_secret_basic` and `client_secret_post`: the OAuth client secret. Required. Changing it rotates the secret in place.",
          "secret": true
        },
        "type": {
          "$ref": "#/types/openai:index:TokenEndpointAuthType",
          "description": "How the client authenticates: `none` sends only the client ID, `client_secret_basic` sends the client secret with HTTP Basic authentication, and `client_secret_post` sends it in the request body. Changing it replaces the credential."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:EnvironmentConfig": {
      "description": "The execution environment of a session. `type` selects the kind of environment; each other property applies only to the environment types named in its description.",
      "properties": {
        "capabilityDirectories": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "`openai_hosted` and `self_hosted` environments: capability directories."
        },
        "containerSize": {
          "$ref": "#/types/openai:index:ContainerSize",
          "description": "`openai_hosted` environments: the size of the container. Defaults to `medium`."
        },
        "desktop": {
          "$ref": "#/types/openai:index:EnvironmentDesktop",
          "description": "`openai_hosted` environments: desktop settings."
        },
        "env": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "`openai_hosted` environments: environment variables. They are secret and never refreshed from the API.",
          "secret": true
        },
        "environmentId": {
          "type": "string",
          "description": "`openai_hosted` environments: the ID of an existing prewarmed environment. Cannot be combined with a template or inline configuration."
        },
        "environmentTemplateId": {
          "type": "string",
          "description": "`openai_hosted` environments: the ID of a hosted environment template. Properties left unset inherit from the template."
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:EnvironmentFile"
          },
          "description": "`openai_hosted` environments: files placed in the workspace, up to 50."
        },
        "network": {
          "$ref": "#/types/openai:index:EnvironmentNetwork",
          "description": "`openai_hosted` environments: the network policy."
        },
        "packages": {
          "$ref": "#/types/openai:index:EnvironmentPackages",
          "description": "`openai_hosted` environments: packages to install."
        },
        "plugins": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:EnvironmentPlugin"
          },
          "description": "`openai_hosted` environments: plugins to install, up to 32."
        },
        "setupCommands": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:EnvironmentSetupCommand"
          },
          "description": "`openai_hosted` environments: commands run to set up the environment, up to 16. They are never refreshed from the API."
        },
        "skills": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:EnvironmentSkill"
          },
          "description": "`openai_hosted` environments: skills to install, up to 200."
        },
        "type": {
          "$ref": "#/types/openai:index:EnvironmentType",
          "description": "The kind of environment: `none` for no execution environment, `openai_hosted` for a container hosted by OpenAI, or `self_hosted`."
        },
        "workspaceDirectory": {
          "type": "string",
          "description": "`self_hosted` environments: the absolute path of the workspace directory. Required."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:EnvironmentDesktop": {
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether the environment has a desktop."
        }
      },
      "type": "object",
      "required": [
        "enabled"
      ]
    },
    "openai:index:EnvironmentFile": {
      "properties": {
        "data": {
          "type": "string",
          "description": "`inline` files: the content of the file, base64-encoded. Required. It is never refreshed from the API."
        },
        "fileId": {
          "type": "string",
          "description": "`file_id` files: the ID of the uploaded file. Required."
        },
        "path": {
          "type": "string",
          "description": "The absolute path of the file, which must be under `/workspace`."
        },
        "type": {
          "$ref": "#/types/openai:index:EnvironmentFileType",
          "description": "Where the file's content comes from: `file_id` for an uploaded file, or `inline` for content given in `data`."
        }
      },
      "type": "object",
      "required": [
        "type",
        "path"
      ]
    },
    "openai:index:EnvironmentFileType": {
      "type": "string",
      "enum": [
        {
          "name": "FileID",
          "value": "file_id"
        },
        {
          "name": "Inline",
          "value": "inline"
        }
      ]
    },
    "openai:index:EnvironmentNetwork": {
      "properties": {
        "access": {
          "$ref": "#/types/openai:index:NetworkAccess",
          "description": "Whether network access is `enabled` (unrestricted), `disabled`, or `restricted` by the domain rules."
        },
        "allowedDomains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The domains the environment may reach."
        },
        "blockedDomains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The domains the environment may not reach, up to 100. Requires `restricted` access and cannot be combined with `allowedDomains`. Wildcards are not supported. They are never refreshed from the API."
        }
      },
      "type": "object",
      "required": [
        "access"
      ]
    },
    "openai:index:EnvironmentPackages": {
      "properties": {
        "npm": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "npm packages to install."
        },
        "python": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Python packages to install."
        },
        "system": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "System packages to install."
        }
      },
      "type": "object"
    },
    "openai:index:EnvironmentPlugin": {
      "properties": {
        "description": {
          "type": "string",
          "description": "A description of the plugin."
        },
        "name": {
          "type": "string",
          "description": "The name of the plugin, as in its manifest."
        },
        "source": {
          "type": "string",
          "description": "The plugin as a base64-encoded ZIP archive. It is never refreshed from the API."
        }
      },
      "type": "object",
      "required": [
        "name",
        "description",
        "source"
      ]
    },
    "openai:index:EnvironmentSetupCommand": {
      "properties": {
        "command": {
          "type": "string",
          "description": "The command to run. The API treats it as confidential and never returns it.",
          "secret": true
        },
        "cwd": {
          "type": "string",
          "description": "The absolute path of the directory the command runs in. Defaults to `/workspace`."
        }
      },
      "type": "object",
      "required": [
        "command"
      ]
    },
    "openai:index:EnvironmentSkill": {
      "properties": {
        "description": {
          "type": "string",
          "description": "`inline` skills: a description of the skill. Required."
        },
        "name": {
          "type": "string",
          "description": "`inline` skills: the name of the skill. Required."
        },
        "skillId": {
          "type": "string",
          "description": "`skill_reference` skills: the ID of the skill. Required."
        },
        "source": {
          "type": "string",
          "description": "`inline` skills: the skill as a base64-encoded ZIP archive. Required. It is never refreshed from the API."
        },
        "type": {
          "$ref": "#/types/openai:index:EnvironmentSkillType",
          "description": "The kind of skill: `skill_reference` for a saved skill, or `inline`."
        },
        "version": {
          "type": "string",
          "description": "`skill_reference` skills: the version, as a positive integer or `latest`. When unset, the skill's default version is used."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:EnvironmentSkillType": {
      "type": "string",
      "enum": [
        {
          "name": "SkillReference",
          "value": "skill_reference"
        },
        {
          "name": "Inline",
          "value": "inline"
        }
      ]
    },
    "openai:index:EnvironmentType": {
      "type": "string",
      "enum": [
        {
          "name": "None",
          "description": "No execution environment.",
          "value": "none"
        },
        {
          "name": "OpenAIHosted",
          "description": "A container hosted by OpenAI.",
          "value": "openai_hosted"
        },
        {
          "name": "SelfHosted",
          "description": "An environment you host.",
          "value": "self_hosted"
        }
      ]
    },
    "openai:index:InputContent": {
      "properties": {
        "imageUrl": {
          "type": "string",
          "description": "`input_image` content: the URL of the image, which may be a base64 data URL. Required."
        },
        "text": {
          "type": "string",
          "description": "`input_text` content: the text. Required."
        },
        "type": {
          "$ref": "#/types/openai:index:InputContentType",
          "description": "The kind of content: `input_text` or `input_image`."
        }
      },
      "type": "object",
      "required": [
        "type"
      ]
    },
    "openai:index:InputContentType": {
      "type": "string",
      "enum": [
        {
          "name": "InputText",
          "value": "input_text"
        },
        {
          "name": "InputImage",
          "value": "input_image"
        }
      ]
    },
    "openai:index:InputMessage": {
      "properties": {
        "content": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:InputContent"
          },
          "description": "The parts of the message."
        }
      },
      "type": "object",
      "required": [
        "content"
      ]
    },
    "openai:index:McpTransportType": {
      "type": "string",
      "enum": [
        {
          "name": "Http",
          "value": "http"
        },
        {
          "name": "Stdio",
          "value": "stdio"
        }
      ]
    },
    "openai:index:NetworkAccess": {
      "type": "string",
      "enum": [
        {
          "name": "Enabled",
          "value": "enabled"
        },
        {
          "name": "Disabled",
          "value": "disabled"
        },
        {
          "name": "Restricted",
          "value": "restricted"
        }
      ]
    },
    "openai:index:ReasoningEffort": {
      "type": "string",
      "enum": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Minimal",
          "value": "minimal"
        },
        {
          "name": "Low",
          "value": "low"
        },
        {
          "name": "Medium",
          "value": "medium"
        },
        {
          "name": "High",
          "value": "high"
        },
        {
          "name": "XHigh",
          "value": "xhigh"
        },
        {
          "name": "Max",
          "value": "max"
        }
      ]
    },
    "openai:index:ReasoningSummary": {
      "type": "string",
      "enum": [
        {
          "name": "Concise",
          "value": "concise"
        },
        {
          "name": "Detailed",
          "value": "detailed"
        },
        {
          "name": "Auto",
          "value": "auto"
        }
      ]
    },
    "openai:index:ServiceTier": {
      "type": "string",
      "enum": [
        {
          "name": "Auto",
          "value": "auto"
        },
        {
          "name": "Default",
          "value": "default"
        },
        {
          "name": "Flex",
          "value": "flex"
        },
        {
          "name": "Priority",
          "value": "priority"
        },
        {
          "name": "Fast",
          "value": "fast"
        },
        {
          "name": "Ultrafast",
          "value": "ultrafast"
        }
      ]
    },
    "openai:index:TextFormatType": {
      "type": "string",
      "enum": [
        {
          "name": "Text",
          "value": "text"
        },
        {
          "name": "JsonSchema",
          "value": "json_schema"
        }
      ]
    },
    "openai:index:TextVerbosity": {
      "type": "string",
      "enum": [
        {
          "name": "Low",
          "value": "low"
        },
        {
          "name": "Medium",
          "value": "medium"
        },
        {
          "name": "High",
          "value": "high"
        }
      ]
    },
    "openai:index:TokenEndpointAuthType": {
      "type": "string",
      "enum": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "ClientSecretBasic",
          "value": "client_secret_basic"
        },
        {
          "name": "ClientSecretPost",
          "value": "client_secret_post"
        }
      ]
    },
    "openai:index:ToolType": {
      "type": "string",
      "enum": [
        {
          "name": "Function",
          "description": "A function the caller implements.",
          "value": "function"
        },
        {
          "name": "ToolSearch",
          "description": "Lets the agent discover deferred function tools.",
          "value": "tool_search"
        },
        {
          "name": "ProgrammaticToolCalling",
          "description": "Lets the agent call tools from code.",
          "value": "programmatic_tool_calling"
        },
        {
          "name": "Mcp",
          "description": "Tools served by a Model Context Protocol server.",
          "value": "mcp"
        },
        {
          "name": "WebSearch",
          "description": "Web search.",
          "value": "web_search"
        },
        {
          "name": "ComputerUse",
          "description": "Computer use.",
          "value": "computer_use"
        },
        {
          "name": "Automations",
          "description": "Lets the agent manage its own scheduled wakeups.",
          "value": "automations"
        }
      ]
    },
    "openai:index:WebSearchContextSize": {
      "type": "string",
      "enum": [
        {
          "name": "Low",
          "value": "low"
        },
        {
          "name": "Medium",
          "value": "medium"
        },
        {
          "name": "High",
          "value": "high"
        }
      ]
    },
    "openai:index:WebSearchMode": {
      "type": "string",
      "enum": [
        {
          "name": "Disabled",
          "value": "disabled"
        },
        {
          "name": "Cached",
          "value": "cached"
        },
        {
          "name": "Live",
          "value": "live"
        }
      ]
    }
  },
  "provider": {
    "properties": {
      "apiToken": {
        "type": "string",
        "description": "The OpenAI API key used to authenticate with the OpenAI API. Can also be set with the `OPENAI_API_KEY` environment variable.",
        "defaultInfo": {
          "environment": [
            "OPENAI_API_KEY"
          ]
        },
        "secret": true
      },
      "baseUrl": {
        "type": "string",
        "description": "The base URL of the OpenAI API. Defaults to `https://api.openai.com/v1`. Can also be set with the `OPENAI_BASE_URL` environment variable.",
        "defaultInfo": {
          "environment": [
            "OPENAI_BASE_URL"
          ]
        }
      }
    },
    "inputProperties": {
      "apiToken": {
        "type": "string",
        "description": "The OpenAI API key used to authenticate with the OpenAI API. Can also be set with the `OPENAI_API_KEY` environment variable.",
        "defaultInfo": {
          "environment": [
            "OPENAI_API_KEY"
          ]
        },
        "secret": true
      },
      "baseUrl": {
        "type": "string",
        "description": "The base URL of the OpenAI API. Defaults to `https://api.openai.com/v1`. Can also be set with the `OPENAI_BASE_URL` environment variable.",
        "defaultInfo": {
          "environment": [
            "OPENAI_BASE_URL"
          ]
        }
      }
    }
  },
  "resources": {
    "openai:index:Agent": {
      "description": "A reusable OpenAI agent: a model together with its instructions, tools and settings.\n\nThis resource uses the beta Agents API.",
      "properties": {
        "compaction": {
          "$ref": "#/types/openai:index:AgentCompaction",
          "description": "Controls how the agent's context is compacted."
        },
        "createdAt": {
          "type": "integer",
          "description": "When the agent was created, as a Unix timestamp in seconds."
        },
        "experimental": {
          "$ref": "#/types/openai:index:AgentExperimental",
          "description": "Experimental settings, which may change without notice."
        },
        "instructions": {
          "type": "string",
          "description": "Custom instructions, appended to the default base instructions."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters."
        },
        "model": {
          "type": "string",
          "description": "The model the agent uses for inference."
        },
        "multiAgent": {
          "$ref": "#/types/openai:index:AgentMultiAgent",
          "description": "Controls whether the agent can delegate work to subagents."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the agent, up to 128 characters."
        },
        "reasoning": {
          "$ref": "#/types/openai:index:AgentReasoning",
          "description": "Reasoning configuration. When unset, the model's defaults apply."
        },
        "serviceTier": {
          "$ref": "#/types/openai:index:ServiceTier",
          "description": "The service tier used to run the agent. Defaults to `auto`."
        },
        "text": {
          "$ref": "#/types/openai:index:AgentText",
          "description": "Configuration of the agent's text output."
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:AgentTool"
          },
          "description": "The tools available to the agent, up to 2000."
        },
        "updatedAt": {
          "type": "integer",
          "description": "When the agent was last updated, as a Unix timestamp in seconds."
        }
      },
      "required": [
        "model",
        "createdAt",
        "updatedAt"
      ],
      "inputProperties": {
        "compaction": {
          "$ref": "#/types/openai:index:AgentCompaction",
          "description": "Controls how the agent's context is compacted."
        },
        "experimental": {
          "$ref": "#/types/openai:index:AgentExperimental",
          "description": "Experimental settings, which may change without notice."
        },
        "instructions": {
          "type": "string",
          "description": "Custom instructions, appended to the default base instructions."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters."
        },
        "model": {
          "type": "string",
          "description": "The model the agent uses for inference."
        },
        "multiAgent": {
          "$ref": "#/types/openai:index:AgentMultiAgent",
          "description": "Controls whether the agent can delegate work to subagents."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the agent, up to 128 characters."
        },
        "reasoning": {
          "$ref": "#/types/openai:index:AgentReasoning",
          "description": "Reasoning configuration. When unset, the model's defaults apply."
        },
        "serviceTier": {
          "$ref": "#/types/openai:index:ServiceTier",
          "description": "The service tier used to run the agent. Defaults to `auto`."
        },
        "text": {
          "$ref": "#/types/openai:index:AgentText",
          "description": "Configuration of the agent's text output."
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "#/types/openai:index:AgentTool"
          },
          "description": "The tools available to the agent, up to 2000."
        }
      },
      "requiredInputs": [
        "model"
      ]
    },
    "openai:index:OneTimeAutomation": {
      "description": "A schedule that runs an agent once, at a given time. The invocation starts a new session.\n\nThis resource uses the beta Agents API.",
      "properties": {
        "createdAt": {
          "type": "integer",
          "description": "When the automation was created, as a Unix timestamp in seconds."
        },
        "createdBy": {
          "$ref": "#/types/openai:index:AutomationCreatedBy",
          "description": "Who created the automation."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Custom key-value pairs attached to the automation."
        },
        "name": {
          "type": "string",
          "description": "A display name for the automation, up to 256 characters."
        },
        "runAt": {
          "type": "integer",
          "description": "When the automation runs, as a Unix timestamp in seconds. It must be in the future, and can only be changed until the automation has run."
        },
        "status": {
          "type": "string",
          "description": "The status of the automation: `active`, `paused`, or, for a one-time automation whose schedule has finished, `completed`."
        },
        "target": {
          "$ref": "#/types/openai:index:AutomationTarget",
          "description": "What the automation does when it runs."
        }
      },
      "required": [
        "name",
        "runAt",
        "target",
        "status",
        "createdAt",
        "createdBy"
      ],
      "inputProperties": {
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Custom key-value pairs attached to the automation."
        },
        "name": {
          "type": "string",
          "description": "A display name for the automation, up to 256 characters."
        },
        "runAt": {
          "type": "integer",
          "description": "When the automation runs, as a Unix timestamp in seconds. It must be in the future, and can only be changed until the automation has run."
        },
        "target": {
          "$ref": "#/types/openai:index:AutomationTarget",
          "description": "What the automation does when it runs."
        }
      },
      "requiredInputs": [
        "name",
        "runAt",
        "target"
      ]
    },
    "openai:index:PeriodicAutomation": {
      "description": "A schedule that runs an agent repeatedly, on a cron expression. Each invocation starts a new session.\n\nThis resource uses the beta Agents API.",
      "properties": {
        "createdAt": {
          "type": "integer",
          "description": "When the automation was created, as a Unix timestamp in seconds."
        },
        "createdBy": {
          "$ref": "#/types/openai:index:AutomationCreatedBy",
          "description": "Who created the automation."
        },
        "expression": {
          "type": "string",
          "description": "A five-field cron expression that sets when the automation runs."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Custom key-value pairs attached to the automation."
        },
        "name": {
          "type": "string",
          "description": "A display name for the automation, up to 256 characters."
        },
        "status": {
          "type": "string",
          "description": "The status of the automation: `active`, `paused`, or, for a one-time automation whose schedule has finished, `completed`."
        },
        "target": {
          "$ref": "#/types/openai:index:AutomationTarget",
          "description": "What each invocation of the automation does."
        },
        "timezone": {
          "type": "string",
          "description": "The IANA timezone the cron expression is interpreted in, such as `Europe/Amsterdam`."
        }
      },
      "required": [
        "name",
        "expression",
        "timezone",
        "target",
        "status",
        "createdAt",
        "createdBy"
      ],
      "inputProperties": {
        "expression": {
          "type": "string",
          "description": "A five-field cron expression that sets when the automation runs."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Custom key-value pairs attached to the automation."
        },
        "name": {
          "type": "string",
          "description": "A display name for the automation, up to 256 characters."
        },
        "target": {
          "$ref": "#/types/openai:index:AutomationTarget",
          "description": "What each invocation of the automation does."
        },
        "timezone": {
          "type": "string",
          "description": "The IANA timezone the cron expression is interpreted in, such as `Europe/Amsterdam`."
        }
      },
      "requiredInputs": [
        "name",
        "expression",
        "timezone",
        "target"
      ]
    },
    "openai:index:Vault": {
      "description": "A vault: a store of credentials that sessions use without the secrets appearing in an agent's configuration. Add credentials to it with the `VaultCredential` resource, and make it available to the sessions an automation starts with `target.vaultIds`.\n\nDeleting a vault also deletes all of its credentials.\n\nThis resource uses the beta Agents API.",
      "properties": {
        "createdAt": {
          "type": "integer",
          "description": "When the vault was created, as a Unix timestamp in seconds."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Up to 16 custom key-value pairs, such as an application or team identifier. Keys can be up to 64 characters and values up to 512 characters."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the vault, 1 to 256 bytes once leading and trailing whitespace is trimmed."
        }
      },
      "required": [
        "createdAt"
      ],
      "inputProperties": {
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Up to 16 custom key-value pairs, such as an application or team identifier. Keys can be up to 64 characters and values up to 512 characters."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the vault, 1 to 256 bytes once leading and trailing whitespace is trimmed."
        }
      }
    },
    "openai:index:VaultCredential": {
      "description": "A credential stored in a vault: a token for an MCP server, or a secret exposed to OpenAI-hosted environments as an environment variable. Sessions use the credentials of the vaults attached to them; an MCP tool can pick one with `credentialId`.\n\nSecrets can be rotated in place. Everything else about how the credential authenticates is fixed once it is created, so changing it replaces the credential.\n\nImport a credential with an ID of the form `<vaultId>/<credentialId>`.\n\nThis resource uses the beta Agents API.",
      "properties": {
        "auth": {
          "$ref": "#/types/openai:index:CredentialAuth",
          "description": "How the credential authenticates, and its secrets."
        },
        "createdAt": {
          "type": "integer",
          "description": "When the credential was created, as a Unix timestamp in seconds."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the credential, 1 to 256 bytes once leading and trailing whitespace is trimmed. Names need not be unique.",
          "replaceOnChanges": true
        },
        "updatedAt": {
          "type": "integer",
          "description": "When the credential was last updated, as a Unix timestamp in seconds."
        },
        "vaultId": {
          "type": "string",
          "description": "The ID of the vault that holds the credential, such as the `id` of a `Vault` resource.",
          "replaceOnChanges": true
        }
      },
      "required": [
        "vaultId",
        "name",
        "auth",
        "createdAt",
        "updatedAt"
      ],
      "inputProperties": {
        "auth": {
          "$ref": "#/types/openai:index:CredentialAuth",
          "description": "How the credential authenticates, and its secrets."
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters."
        },
        "name": {
          "type": "string",
          "description": "A human-readable name for the credential, 1 to 256 bytes once leading and trailing whitespace is trimmed. Names need not be unique.",
          "replaceOnChanges": true
        },
        "vaultId": {
          "type": "string",
          "description": "The ID of the vault that holds the credential, such as the `id` of a `Vault` resource.",
          "replaceOnChanges": true
        }
      },
      "requiredInputs": [
        "vaultId",
        "name",
        "auth"
      ]
    }
  }
}
