openai 7.28.0 → 7.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +8 -3
- package/helpers/standard-schema.d.mts.map +1 -1
- package/helpers/standard-schema.d.ts +8 -3
- package/helpers/standard-schema.d.ts.map +1 -1
- package/helpers/standard-schema.js +1 -0
- package/helpers/standard-schema.js.map +1 -1
- package/helpers/standard-schema.mjs +1 -0
- package/helpers/standard-schema.mjs.map +1 -1
- package/helpers/zod.d.mts +2 -0
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +2 -0
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +1 -0
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +1 -0
- package/helpers/zod.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +2 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +2 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +9 -2
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +9 -2
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +5 -0
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +5 -0
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/agents/agent-session-stream.d.mts +7 -0
- package/lib/agents/agent-session-stream.d.mts.map +1 -1
- package/lib/agents/agent-session-stream.d.ts +7 -0
- package/lib/agents/agent-session-stream.d.ts.map +1 -1
- package/lib/agents/agent-session-stream.js +8 -110
- package/lib/agents/agent-session-stream.js.map +1 -1
- package/lib/agents/agent-session-stream.mjs +9 -111
- package/lib/agents/agent-session-stream.mjs.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts +41 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.ts +41 -1
- package/lib/beta/agents/agent-session-create-stream.d.ts.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.js +70 -2
- package/lib/beta/agents/agent-session-create-stream.js.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.mjs +69 -2
- package/lib/beta/agents/agent-session-create-stream.mjs.map +1 -1
- package/lib/beta/agents/function-tool.d.mts.map +1 -1
- package/lib/beta/agents/function-tool.d.ts.map +1 -1
- package/lib/beta/agents/function-tool.js +22 -15
- package/lib/beta/agents/function-tool.js.map +1 -1
- package/lib/beta/agents/function-tool.mjs +22 -15
- package/lib/beta/agents/function-tool.mjs.map +1 -1
- package/lib/beta/agents/parse-result.d.mts +2 -0
- package/lib/beta/agents/parse-result.d.mts.map +1 -1
- package/lib/beta/agents/parse-result.d.ts +2 -0
- package/lib/beta/agents/parse-result.d.ts.map +1 -1
- package/lib/beta/agents/tool-dispatcher.d.mts +13 -0
- package/lib/beta/agents/tool-dispatcher.d.mts.map +1 -0
- package/lib/beta/agents/tool-dispatcher.d.ts +13 -0
- package/lib/beta/agents/tool-dispatcher.d.ts.map +1 -0
- package/lib/beta/agents/tool-dispatcher.js +185 -0
- package/lib/beta/agents/tool-dispatcher.js.map +1 -0
- package/lib/beta/agents/tool-dispatcher.mjs +181 -0
- package/lib/beta/agents/tool-dispatcher.mjs.map +1 -0
- package/lib/beta/agents/tool-error.d.mts +13 -0
- package/lib/beta/agents/tool-error.d.mts.map +1 -0
- package/lib/beta/agents/tool-error.d.ts +13 -0
- package/lib/beta/agents/tool-error.d.ts.map +1 -0
- package/lib/beta/agents/tool-error.js +3 -0
- package/lib/beta/agents/tool-error.js.map +1 -0
- package/lib/beta/agents/tool-error.mjs +2 -0
- package/lib/beta/agents/tool-error.mjs.map +1 -0
- package/lib/beta/agents/tool-stages.d.mts +12 -0
- package/lib/beta/agents/tool-stages.d.mts.map +1 -0
- package/lib/beta/agents/tool-stages.d.ts +12 -0
- package/lib/beta/agents/tool-stages.d.ts.map +1 -0
- package/lib/beta/agents/tool-stages.js +6 -0
- package/lib/beta/agents/tool-stages.js.map +1 -0
- package/lib/beta/agents/tool-stages.mjs +3 -0
- package/lib/beta/agents/tool-stages.mjs.map +1 -0
- package/lib/chat-completions/streaming.d.mts +11 -0
- package/lib/chat-completions/streaming.d.mts.map +1 -0
- package/lib/chat-completions/streaming.d.ts +11 -0
- package/lib/chat-completions/streaming.d.ts.map +1 -0
- package/lib/chat-completions/streaming.js +27 -0
- package/lib/chat-completions/streaming.js.map +1 -0
- package/lib/chat-completions/streaming.mjs +23 -0
- package/lib/chat-completions/streaming.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/admin/organization/usage.d.mts +304 -9
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +304 -9
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/beta/agents/agents.d.mts +12 -6
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +12 -6
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +6 -8
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +6 -8
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.d.mts +1 -1
- package/resources/beta/agents/sessions/index.d.mts.map +1 -1
- package/resources/beta/agents/sessions/index.d.ts +1 -1
- package/resources/beta/agents/sessions/index.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.js +2 -2
- package/resources/beta/agents/sessions/index.js.map +1 -1
- package/resources/beta/agents/sessions/index.mjs +1 -1
- package/resources/beta/agents/sessions/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +6 -3
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +6 -3
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +7 -4
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +8 -5
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts +2 -2
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts +2 -2
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns/index.d.mts +3 -0
- package/resources/beta/agents/sessions/turns/index.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/index.d.ts +3 -0
- package/resources/beta/agents/sessions/turns/index.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/index.js +9 -0
- package/resources/beta/agents/sessions/turns/index.js.map +1 -0
- package/resources/beta/agents/sessions/turns/index.mjs +4 -0
- package/resources/beta/agents/sessions/turns/index.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns/items.d.mts +43 -0
- package/resources/beta/agents/sessions/turns/items.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/items.d.ts +43 -0
- package/resources/beta/agents/sessions/turns/items.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/items.js +40 -0
- package/resources/beta/agents/sessions/turns/items.js.map +1 -0
- package/resources/beta/agents/sessions/turns/items.mjs +36 -0
- package/resources/beta/agents/sessions/turns/items.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.d.mts +128 -0
- package/resources/beta/agents/sessions/turns/turns.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.d.ts +128 -0
- package/resources/beta/agents/sessions/turns/turns.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.js +111 -0
- package/resources/beta/agents/sessions/turns/turns.js.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.mjs +106 -0
- package/resources/beta/agents/sessions/turns/turns.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns.d.mts +1 -123
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +1 -123
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +2 -99
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +1 -97
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/index.d.mts +1 -1
- package/resources/beta/responses/index.d.mts.map +1 -1
- package/resources/beta/responses/index.d.ts +1 -1
- package/resources/beta/responses/index.d.ts.map +1 -1
- package/resources/beta/responses/index.js.map +1 -1
- package/resources/beta/responses/index.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +378 -6
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +378 -6
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +42 -8
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +42 -8
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +5 -2
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +5 -2
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/decisions.d.mts +196 -0
- package/resources/decisions.d.mts.map +1 -0
- package/resources/decisions.d.ts +196 -0
- package/resources/decisions.d.ts.map +1 -0
- package/resources/decisions.js +32 -0
- package/resources/decisions.js.map +1 -0
- package/resources/decisions.mjs +28 -0
- package/resources/decisions.mjs.map +1 -0
- package/resources/fine-tuning/jobs/jobs.d.mts +7 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +7 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +4 -3
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +4 -3
- package/resources/images.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +10 -0
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +10 -0
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/responses.d.mts +380 -6
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +380 -6
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +5 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +5 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/videos.d.mts +5 -0
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +5 -0
- package/resources/videos.d.ts.map +1 -1
- package/src/client.ts +21 -0
- package/src/helpers/standard-schema.ts +11 -4
- package/src/helpers/zod.ts +4 -0
- package/src/lib/ChatCompletionStream.ts +10 -3
- package/src/lib/ResponsesParser.ts +8 -0
- package/src/lib/agents/agent-session-stream.ts +20 -124
- package/src/lib/beta/agents/agent-session-create-stream.ts +87 -1
- package/src/lib/beta/agents/function-tool.ts +23 -15
- package/src/lib/beta/agents/tool-dispatcher.ts +226 -0
- package/src/lib/beta/agents/tool-error.ts +12 -0
- package/src/lib/beta/agents/tool-stages.ts +14 -0
- package/src/lib/chat-completions/streaming.ts +35 -0
- package/src/resources/admin/organization/usage.ts +350 -9
- package/src/resources/beta/agents/agents.ts +14 -5
- package/src/resources/beta/agents/environments/templates.ts +6 -8
- package/src/resources/beta/agents/sessions/index.ts +7 -1
- package/src/resources/beta/agents/sessions/sessions.ts +16 -4
- package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +2 -2
- package/src/resources/beta/agents/sessions/turns/index.ts +4 -0
- package/src/resources/beta/agents/sessions/turns/items.ts +79 -0
- package/src/resources/beta/agents/sessions/turns/turns.ts +383 -0
- package/src/resources/beta/agents/sessions/turns.ts +1 -373
- package/src/resources/beta/beta.ts +2 -0
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/responses/index.ts +1 -0
- package/src/resources/beta/responses/responses.ts +470 -5
- package/src/resources/chat/completions/completions.ts +65 -18
- package/src/resources/completions.ts +1 -1
- package/src/resources/decisions.ts +290 -0
- package/src/resources/fine-tuning/jobs/jobs.ts +7 -2
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +4 -3
- package/src/resources/index.ts +9 -0
- package/src/resources/realtime/realtime.ts +10 -0
- package/src/resources/responses/api.md +1 -0
- package/src/resources/responses/responses.ts +472 -5
- package/src/resources/shared.ts +6 -0
- package/src/resources/videos.ts +6 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2698,7 +2698,7 @@ export namespace ResponseComputerToolCall {
|
|
|
2698
2698
|
|
|
2699
2699
|
export interface ResponseComputerToolCallOutputItem {
|
|
2700
2700
|
/**
|
|
2701
|
-
* The
|
|
2701
|
+
* The ID of the computer tool call output.
|
|
2702
2702
|
*/
|
|
2703
2703
|
id: string;
|
|
2704
2704
|
|
|
@@ -3290,6 +3290,12 @@ export namespace ResponseError {
|
|
|
3290
3290
|
| 'potentially_unintended_destructive_activity'
|
|
3291
3291
|
| 'other';
|
|
3292
3292
|
|
|
3293
|
+
/**
|
|
3294
|
+
* An opaque target for explicitly continuing this review, or null when
|
|
3295
|
+
* unavailable.
|
|
3296
|
+
*/
|
|
3297
|
+
review_target?: string | null;
|
|
3298
|
+
|
|
3293
3299
|
/**
|
|
3294
3300
|
* An optional public continuation instruction.
|
|
3295
3301
|
*/
|
|
@@ -8763,7 +8769,24 @@ export interface ResponseToolSearchOutputItemParam {
|
|
|
8763
8769
|
/**
|
|
8764
8770
|
* The loaded tool definitions returned by the tool search output.
|
|
8765
8771
|
*/
|
|
8766
|
-
tools: Array<
|
|
8772
|
+
tools: Array<
|
|
8773
|
+
| FunctionTool
|
|
8774
|
+
| FileSearchTool
|
|
8775
|
+
| ComputerTool
|
|
8776
|
+
| ComputerUsePreviewTool
|
|
8777
|
+
| WebSearchTool
|
|
8778
|
+
| ResponseToolSearchOutputItemParam.Mcp
|
|
8779
|
+
| ResponseToolSearchOutputItemParam.CodeInterpreter
|
|
8780
|
+
| ResponseToolSearchOutputItemParam.ProgrammaticToolCalling
|
|
8781
|
+
| ResponseToolSearchOutputItemParam.ImageGeneration
|
|
8782
|
+
| ResponseToolSearchOutputItemParam.LocalShell
|
|
8783
|
+
| FunctionShellTool
|
|
8784
|
+
| CustomTool
|
|
8785
|
+
| ToolSearchOutputNamespaceTool
|
|
8786
|
+
| ToolSearchTool
|
|
8787
|
+
| WebSearchPreviewTool
|
|
8788
|
+
| ApplyPatchTool
|
|
8789
|
+
>;
|
|
8767
8790
|
|
|
8768
8791
|
/**
|
|
8769
8792
|
* The item type. Always `tool_search_output`.
|
|
@@ -8791,6 +8814,373 @@ export interface ResponseToolSearchOutputItemParam {
|
|
|
8791
8814
|
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
8792
8815
|
}
|
|
8793
8816
|
|
|
8817
|
+
export namespace ResponseToolSearchOutputItemParam {
|
|
8818
|
+
/**
|
|
8819
|
+
* Give the model access to additional tools via remote Model Context Protocol
|
|
8820
|
+
* (MCP) servers.
|
|
8821
|
+
* [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
|
|
8822
|
+
*/
|
|
8823
|
+
export interface Mcp {
|
|
8824
|
+
/**
|
|
8825
|
+
* A label for this MCP server, used to identify it in tool calls.
|
|
8826
|
+
*/
|
|
8827
|
+
server_label: string;
|
|
8828
|
+
|
|
8829
|
+
/**
|
|
8830
|
+
* The type of the MCP tool. Always `mcp`.
|
|
8831
|
+
*/
|
|
8832
|
+
type: 'mcp';
|
|
8833
|
+
|
|
8834
|
+
/**
|
|
8835
|
+
* The tool invocation context(s).
|
|
8836
|
+
*/
|
|
8837
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
8838
|
+
|
|
8839
|
+
/**
|
|
8840
|
+
* List of allowed tool names or a filter object.
|
|
8841
|
+
*/
|
|
8842
|
+
allowed_tools?: Array<string> | Mcp.McpToolFilter | null;
|
|
8843
|
+
|
|
8844
|
+
/**
|
|
8845
|
+
* An OAuth access token that can be used with a remote MCP server, either with a
|
|
8846
|
+
* custom MCP server URL or a service connector. Your application must handle the
|
|
8847
|
+
* OAuth authorization flow and provide the token here.
|
|
8848
|
+
*/
|
|
8849
|
+
authorization?: string;
|
|
8850
|
+
|
|
8851
|
+
/**
|
|
8852
|
+
* @deprecated Identifier for service connectors, like those available in ChatGPT.
|
|
8853
|
+
* One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
|
|
8854
|
+
* about service connectors
|
|
8855
|
+
* [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
8856
|
+
*
|
|
8857
|
+
* This field is deprecated for models released after September 1, 2026. Use
|
|
8858
|
+
* `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
8859
|
+
* through a Secure MCP Tunnel.
|
|
8860
|
+
*
|
|
8861
|
+
* Currently supported `connector_id` values are:
|
|
8862
|
+
*
|
|
8863
|
+
* - Dropbox: `connector_dropbox`
|
|
8864
|
+
* - Gmail: `connector_gmail`
|
|
8865
|
+
* - Google Calendar: `connector_googlecalendar`
|
|
8866
|
+
* - Google Drive: `connector_googledrive`
|
|
8867
|
+
* - Microsoft Teams: `connector_microsoftteams`
|
|
8868
|
+
* - Outlook Calendar: `connector_outlookcalendar`
|
|
8869
|
+
* - Outlook Email: `connector_outlookemail`
|
|
8870
|
+
* - SharePoint: `connector_sharepoint`
|
|
8871
|
+
*/
|
|
8872
|
+
connector_id?:
|
|
8873
|
+
| 'connector_dropbox'
|
|
8874
|
+
| 'connector_gmail'
|
|
8875
|
+
| 'connector_googlecalendar'
|
|
8876
|
+
| 'connector_googledrive'
|
|
8877
|
+
| 'connector_microsoftteams'
|
|
8878
|
+
| 'connector_outlookcalendar'
|
|
8879
|
+
| 'connector_outlookemail'
|
|
8880
|
+
| 'connector_sharepoint';
|
|
8881
|
+
|
|
8882
|
+
/**
|
|
8883
|
+
* Whether this MCP tool is deferred and discovered via tool search.
|
|
8884
|
+
*/
|
|
8885
|
+
defer_loading?: boolean;
|
|
8886
|
+
|
|
8887
|
+
/**
|
|
8888
|
+
* Optional HTTP headers to send to the MCP server. Use for authentication or other
|
|
8889
|
+
* purposes.
|
|
8890
|
+
*/
|
|
8891
|
+
headers?: { [key: string]: string } | null;
|
|
8892
|
+
|
|
8893
|
+
/**
|
|
8894
|
+
* Specify which of the MCP server's tools require approval.
|
|
8895
|
+
*/
|
|
8896
|
+
require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null;
|
|
8897
|
+
|
|
8898
|
+
/**
|
|
8899
|
+
* Optional description of the MCP server, used to provide more context.
|
|
8900
|
+
*/
|
|
8901
|
+
server_description?: string;
|
|
8902
|
+
|
|
8903
|
+
/**
|
|
8904
|
+
* The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
|
|
8905
|
+
* must be provided.
|
|
8906
|
+
*/
|
|
8907
|
+
server_url?: string;
|
|
8908
|
+
|
|
8909
|
+
/**
|
|
8910
|
+
* The Secure MCP Tunnel ID to use instead of a direct server URL. One of
|
|
8911
|
+
* `server_url`, `connector_id`, or `tunnel_id` must be provided.
|
|
8912
|
+
*/
|
|
8913
|
+
tunnel_id?: string;
|
|
8914
|
+
}
|
|
8915
|
+
|
|
8916
|
+
export namespace Mcp {
|
|
8917
|
+
/**
|
|
8918
|
+
* A filter object to specify which tools are allowed.
|
|
8919
|
+
*/
|
|
8920
|
+
export interface McpToolFilter {
|
|
8921
|
+
/**
|
|
8922
|
+
* Indicates whether or not a tool modifies data or is read-only. If an MCP server
|
|
8923
|
+
* is
|
|
8924
|
+
* [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
|
|
8925
|
+
* it will match this filter.
|
|
8926
|
+
*/
|
|
8927
|
+
read_only?: boolean;
|
|
8928
|
+
|
|
8929
|
+
/**
|
|
8930
|
+
* List of allowed tool names.
|
|
8931
|
+
*/
|
|
8932
|
+
tool_names?: Array<string>;
|
|
8933
|
+
}
|
|
8934
|
+
|
|
8935
|
+
/**
|
|
8936
|
+
* Specify which of the MCP server's tools require approval. Can be `always`,
|
|
8937
|
+
* `never`, or a filter object associated with tools that require approval.
|
|
8938
|
+
*/
|
|
8939
|
+
export interface McpToolApprovalFilter {
|
|
8940
|
+
/**
|
|
8941
|
+
* A filter object to specify which tools are allowed.
|
|
8942
|
+
*/
|
|
8943
|
+
always?: McpToolApprovalFilter.Always;
|
|
8944
|
+
|
|
8945
|
+
/**
|
|
8946
|
+
* A filter object to specify which tools are allowed.
|
|
8947
|
+
*/
|
|
8948
|
+
never?: McpToolApprovalFilter.Never;
|
|
8949
|
+
}
|
|
8950
|
+
|
|
8951
|
+
export namespace McpToolApprovalFilter {
|
|
8952
|
+
/**
|
|
8953
|
+
* A filter object to specify which tools are allowed.
|
|
8954
|
+
*/
|
|
8955
|
+
export interface Always {
|
|
8956
|
+
/**
|
|
8957
|
+
* Indicates whether or not a tool modifies data or is read-only. If an MCP server
|
|
8958
|
+
* is
|
|
8959
|
+
* [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
|
|
8960
|
+
* it will match this filter.
|
|
8961
|
+
*/
|
|
8962
|
+
read_only?: boolean;
|
|
8963
|
+
|
|
8964
|
+
/**
|
|
8965
|
+
* List of allowed tool names.
|
|
8966
|
+
*/
|
|
8967
|
+
tool_names?: Array<string>;
|
|
8968
|
+
}
|
|
8969
|
+
|
|
8970
|
+
/**
|
|
8971
|
+
* A filter object to specify which tools are allowed.
|
|
8972
|
+
*/
|
|
8973
|
+
export interface Never {
|
|
8974
|
+
/**
|
|
8975
|
+
* Indicates whether or not a tool modifies data or is read-only. If an MCP server
|
|
8976
|
+
* is
|
|
8977
|
+
* [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
|
|
8978
|
+
* it will match this filter.
|
|
8979
|
+
*/
|
|
8980
|
+
read_only?: boolean;
|
|
8981
|
+
|
|
8982
|
+
/**
|
|
8983
|
+
* List of allowed tool names.
|
|
8984
|
+
*/
|
|
8985
|
+
tool_names?: Array<string>;
|
|
8986
|
+
}
|
|
8987
|
+
}
|
|
8988
|
+
}
|
|
8989
|
+
|
|
8990
|
+
/**
|
|
8991
|
+
* A tool that runs Python code to help generate a response to a prompt.
|
|
8992
|
+
*/
|
|
8993
|
+
export interface CodeInterpreter {
|
|
8994
|
+
/**
|
|
8995
|
+
* The code interpreter container. Can be a container ID or an object that
|
|
8996
|
+
* specifies uploaded file IDs to make available to your code, along with an
|
|
8997
|
+
* optional `memory_limit` setting.
|
|
8998
|
+
*/
|
|
8999
|
+
container: string | CodeInterpreter.CodeInterpreterToolAuto;
|
|
9000
|
+
|
|
9001
|
+
/**
|
|
9002
|
+
* The type of the code interpreter tool. Always `code_interpreter`.
|
|
9003
|
+
*/
|
|
9004
|
+
type: 'code_interpreter';
|
|
9005
|
+
|
|
9006
|
+
/**
|
|
9007
|
+
* The tool invocation context(s).
|
|
9008
|
+
*/
|
|
9009
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
9010
|
+
}
|
|
9011
|
+
|
|
9012
|
+
export namespace CodeInterpreter {
|
|
9013
|
+
/**
|
|
9014
|
+
* Configuration for a code interpreter container. Optionally specify the IDs of
|
|
9015
|
+
* the files to run the code on.
|
|
9016
|
+
*/
|
|
9017
|
+
export interface CodeInterpreterToolAuto {
|
|
9018
|
+
/**
|
|
9019
|
+
* Always `auto`.
|
|
9020
|
+
*/
|
|
9021
|
+
type: 'auto';
|
|
9022
|
+
|
|
9023
|
+
/**
|
|
9024
|
+
* An optional list of uploaded files to make available to your code.
|
|
9025
|
+
*/
|
|
9026
|
+
file_ids?: Array<string>;
|
|
9027
|
+
|
|
9028
|
+
/**
|
|
9029
|
+
* The memory limit for the code interpreter container.
|
|
9030
|
+
*/
|
|
9031
|
+
memory_limit?: '1g' | '4g' | '16g' | '64g' | null;
|
|
9032
|
+
|
|
9033
|
+
/**
|
|
9034
|
+
* Network access policy for the container.
|
|
9035
|
+
*/
|
|
9036
|
+
network_policy?:
|
|
9037
|
+
| ResponsesAPI.ContainerNetworkPolicyDisabled
|
|
9038
|
+
| ResponsesAPI.ContainerNetworkPolicyAllowlist;
|
|
9039
|
+
}
|
|
9040
|
+
}
|
|
9041
|
+
|
|
9042
|
+
export interface ProgrammaticToolCalling {
|
|
9043
|
+
/**
|
|
9044
|
+
* The type of the tool. Always `programmatic_tool_calling`.
|
|
9045
|
+
*/
|
|
9046
|
+
type: 'programmatic_tool_calling';
|
|
9047
|
+
}
|
|
9048
|
+
|
|
9049
|
+
/**
|
|
9050
|
+
* A tool that generates images using the GPT image models.
|
|
9051
|
+
*/
|
|
9052
|
+
export interface ImageGeneration {
|
|
9053
|
+
/**
|
|
9054
|
+
* The type of the image generation tool. Always `image_generation`.
|
|
9055
|
+
*/
|
|
9056
|
+
type: 'image_generation';
|
|
9057
|
+
|
|
9058
|
+
/**
|
|
9059
|
+
* Whether to generate a new image or edit an existing image. Default: `auto`.
|
|
9060
|
+
*/
|
|
9061
|
+
action?: 'generate' | 'edit' | 'auto';
|
|
9062
|
+
|
|
9063
|
+
/**
|
|
9064
|
+
* Allows to set transparency for the background of the generated image(s). Must be
|
|
9065
|
+
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
9066
|
+
* the model will automatically determine the best background for the image.
|
|
9067
|
+
*
|
|
9068
|
+
* `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
|
|
9069
|
+
* snapshots, support `opaque` and `transparent` backgrounds. Transparent
|
|
9070
|
+
* backgrounds are available for supported GPT Image models. For `gpt-image-2` and
|
|
9071
|
+
* `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
|
|
9072
|
+
* set the output format to `png` or `webp`.
|
|
9073
|
+
*/
|
|
9074
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
9075
|
+
|
|
9076
|
+
/**
|
|
9077
|
+
* Control how much effort the model will exert to match the style and features,
|
|
9078
|
+
* especially facial features, of input images. Supports `high` and `low` on
|
|
9079
|
+
* `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
9080
|
+
* `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
9081
|
+
*/
|
|
9082
|
+
input_fidelity?: 'high' | 'low' | null;
|
|
9083
|
+
|
|
9084
|
+
/**
|
|
9085
|
+
* Optional mask for inpainting. Contains `image_url` (string, optional) and
|
|
9086
|
+
* `file_id` (string, optional).
|
|
9087
|
+
*/
|
|
9088
|
+
input_image_mask?: ImageGeneration.InputImageMask;
|
|
9089
|
+
|
|
9090
|
+
/**
|
|
9091
|
+
* The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
|
|
9092
|
+
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
9093
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
9094
|
+
* `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
|
|
9095
|
+
* `chatgpt-image-latest`. Default: `gpt-image-1`.
|
|
9096
|
+
*/
|
|
9097
|
+
model?:
|
|
9098
|
+
| (string & {})
|
|
9099
|
+
| 'gpt-image-1'
|
|
9100
|
+
| 'gpt-image-1-mini'
|
|
9101
|
+
| 'gpt-image-2'
|
|
9102
|
+
| 'gpt-image-2-2026-04-21'
|
|
9103
|
+
| 'gpt-image-2.5-sunburst'
|
|
9104
|
+
| 'gpt-image-2.5-sunburst-2026-09-08'
|
|
9105
|
+
| 'gpt-image-2.5-flare'
|
|
9106
|
+
| 'gpt-image-2.5-flare-2026-09-08'
|
|
9107
|
+
| 'gpt-image-1.5'
|
|
9108
|
+
| 'chatgpt-image-latest';
|
|
9109
|
+
|
|
9110
|
+
/**
|
|
9111
|
+
* Moderation level for the generated image. Default: `auto`.
|
|
9112
|
+
*/
|
|
9113
|
+
moderation?: 'auto' | 'low';
|
|
9114
|
+
|
|
9115
|
+
/**
|
|
9116
|
+
* Compression level for the output image. Default: 100.
|
|
9117
|
+
*/
|
|
9118
|
+
output_compression?: number;
|
|
9119
|
+
|
|
9120
|
+
/**
|
|
9121
|
+
* The output format of the generated image. One of `png`, `webp`, or `jpeg`.
|
|
9122
|
+
* Default: `png`.
|
|
9123
|
+
*/
|
|
9124
|
+
output_format?: 'png' | 'webp' | 'jpeg';
|
|
9125
|
+
|
|
9126
|
+
/**
|
|
9127
|
+
* Number of partial images to generate in streaming mode, from 0 (default value)
|
|
9128
|
+
* to 3.
|
|
9129
|
+
*/
|
|
9130
|
+
partial_images?: number;
|
|
9131
|
+
|
|
9132
|
+
/**
|
|
9133
|
+
* The quality of the generated image. The GPT image models support `low`,
|
|
9134
|
+
* `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
|
|
9135
|
+
* including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
|
|
9136
|
+
* `auto`.
|
|
9137
|
+
*/
|
|
9138
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
|
|
9139
|
+
|
|
9140
|
+
/**
|
|
9141
|
+
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
9142
|
+
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
9143
|
+
* `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
|
|
9144
|
+
* resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
|
|
9145
|
+
* Width and height must both be divisible by 16 and the requested aspect ratio
|
|
9146
|
+
* must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
|
|
9147
|
+
* the maximum supported resolution is `3840x2160`. The requested size must also
|
|
9148
|
+
* satisfy the model's current pixel and edge limits. The standard sizes
|
|
9149
|
+
* `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
|
|
9150
|
+
* `auto` is supported for models that allow automatic sizing.
|
|
9151
|
+
*/
|
|
9152
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
9153
|
+
}
|
|
9154
|
+
|
|
9155
|
+
export namespace ImageGeneration {
|
|
9156
|
+
/**
|
|
9157
|
+
* Optional mask for inpainting. Contains `image_url` (string, optional) and
|
|
9158
|
+
* `file_id` (string, optional).
|
|
9159
|
+
*/
|
|
9160
|
+
export interface InputImageMask {
|
|
9161
|
+
/**
|
|
9162
|
+
* File ID for the mask image.
|
|
9163
|
+
*/
|
|
9164
|
+
file_id?: string;
|
|
9165
|
+
|
|
9166
|
+
/**
|
|
9167
|
+
* Base64-encoded mask image.
|
|
9168
|
+
*/
|
|
9169
|
+
image_url?: string;
|
|
9170
|
+
}
|
|
9171
|
+
}
|
|
9172
|
+
|
|
9173
|
+
/**
|
|
9174
|
+
* A tool that allows the model to execute shell commands in a local environment.
|
|
9175
|
+
*/
|
|
9176
|
+
export interface LocalShell {
|
|
9177
|
+
/**
|
|
9178
|
+
* The type of the local shell tool. Always `local_shell`.
|
|
9179
|
+
*/
|
|
9180
|
+
type: 'local_shell';
|
|
9181
|
+
}
|
|
9182
|
+
}
|
|
9183
|
+
|
|
8794
9184
|
/**
|
|
8795
9185
|
* Represents token usage details including input tokens, output tokens, a
|
|
8796
9186
|
* breakdown of output tokens, and the total tokens used.
|
|
@@ -10262,6 +10652,12 @@ export namespace ResponsesServerEvent {
|
|
|
10262
10652
|
| 'potentially_unintended_destructive_activity'
|
|
10263
10653
|
| 'other';
|
|
10264
10654
|
|
|
10655
|
+
/**
|
|
10656
|
+
* An opaque target for explicitly continuing this review, or null when
|
|
10657
|
+
* unavailable.
|
|
10658
|
+
*/
|
|
10659
|
+
review_target?: string | null;
|
|
10660
|
+
|
|
10265
10661
|
/**
|
|
10266
10662
|
* An optional public continuation instruction.
|
|
10267
10663
|
*/
|
|
@@ -10611,9 +11007,10 @@ export namespace Tool {
|
|
|
10611
11007
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
10612
11008
|
|
|
10613
11009
|
/**
|
|
10614
|
-
*
|
|
10615
|
-
*
|
|
10616
|
-
* `gpt-image-
|
|
11010
|
+
* Control how much effort the model will exert to match the style and features,
|
|
11011
|
+
* especially facial features, of input images. Supports `high` and `low` on
|
|
11012
|
+
* `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
11013
|
+
* `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
10617
11014
|
*/
|
|
10618
11015
|
input_fidelity?: 'high' | 'low' | null;
|
|
10619
11016
|
|
|
@@ -10867,6 +11264,75 @@ export interface ToolChoiceTypes {
|
|
|
10867
11264
|
| 'mcp';
|
|
10868
11265
|
}
|
|
10869
11266
|
|
|
11267
|
+
/**
|
|
11268
|
+
* Groups function/custom tools under a shared namespace.
|
|
11269
|
+
*/
|
|
11270
|
+
export interface ToolSearchOutputNamespaceTool {
|
|
11271
|
+
/**
|
|
11272
|
+
* A description of the namespace shown to the model.
|
|
11273
|
+
*/
|
|
11274
|
+
description: string;
|
|
11275
|
+
|
|
11276
|
+
/**
|
|
11277
|
+
* The namespace name used in tool calls (for example, `crm`).
|
|
11278
|
+
*/
|
|
11279
|
+
name: string;
|
|
11280
|
+
|
|
11281
|
+
/**
|
|
11282
|
+
* The function/custom tools loaded inside this namespace.
|
|
11283
|
+
*/
|
|
11284
|
+
tools: Array<ToolSearchOutputNamespaceTool.Function | CustomTool>;
|
|
11285
|
+
|
|
11286
|
+
/**
|
|
11287
|
+
* The type of the tool. Always `namespace`.
|
|
11288
|
+
*/
|
|
11289
|
+
type: 'namespace';
|
|
11290
|
+
}
|
|
11291
|
+
|
|
11292
|
+
export namespace ToolSearchOutputNamespaceTool {
|
|
11293
|
+
export interface Function {
|
|
11294
|
+
/**
|
|
11295
|
+
* The name of the loaded function tool.
|
|
11296
|
+
*/
|
|
11297
|
+
name: string;
|
|
11298
|
+
|
|
11299
|
+
type: 'function';
|
|
11300
|
+
|
|
11301
|
+
/**
|
|
11302
|
+
* The tool invocation context(s).
|
|
11303
|
+
*/
|
|
11304
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
11305
|
+
|
|
11306
|
+
/**
|
|
11307
|
+
* Whether the tool response can be returned asynchronously versus immediately
|
|
11308
|
+
* returned on next response creation.
|
|
11309
|
+
*/
|
|
11310
|
+
async?: boolean;
|
|
11311
|
+
|
|
11312
|
+
/**
|
|
11313
|
+
* Whether this function should be deferred and discovered via tool search.
|
|
11314
|
+
*/
|
|
11315
|
+
defer_loading?: boolean;
|
|
11316
|
+
|
|
11317
|
+
description?: string | null;
|
|
11318
|
+
|
|
11319
|
+
/**
|
|
11320
|
+
* A JSON Schema describing the JSON value encoded in string outputs for this
|
|
11321
|
+
* function tool. This does not describe content-array outputs.
|
|
11322
|
+
*/
|
|
11323
|
+
output_schema?: { [key: string]: unknown } | null;
|
|
11324
|
+
|
|
11325
|
+
parameters?: unknown | null;
|
|
11326
|
+
|
|
11327
|
+
/**
|
|
11328
|
+
* Whether to enforce strict parameter validation. If omitted, Responses attempts
|
|
11329
|
+
* to use strict validation when the schema is compatible, and falls back to
|
|
11330
|
+
* non-strict validation otherwise.
|
|
11331
|
+
*/
|
|
11332
|
+
strict?: boolean | null;
|
|
11333
|
+
}
|
|
11334
|
+
}
|
|
11335
|
+
|
|
10870
11336
|
/**
|
|
10871
11337
|
* Hosted or BYOT tool search configuration for deferred tools.
|
|
10872
11338
|
*/
|
|
@@ -11993,6 +12459,7 @@ export declare namespace Responses {
|
|
|
11993
12459
|
type ToolChoiceOptions as ToolChoiceOptions,
|
|
11994
12460
|
type ToolChoiceShell as ToolChoiceShell,
|
|
11995
12461
|
type ToolChoiceTypes as ToolChoiceTypes,
|
|
12462
|
+
type ToolSearchOutputNamespaceTool as ToolSearchOutputNamespaceTool,
|
|
11996
12463
|
type ToolSearchTool as ToolSearchTool,
|
|
11997
12464
|
type WebSearchPreviewTool as WebSearchPreviewTool,
|
|
11998
12465
|
type WebSearchTool as WebSearchTool,
|
package/src/resources/shared.ts
CHANGED
|
@@ -293,6 +293,12 @@ export namespace ErrorObject {
|
|
|
293
293
|
| 'potentially_unintended_destructive_activity'
|
|
294
294
|
| 'other';
|
|
295
295
|
|
|
296
|
+
/**
|
|
297
|
+
* An opaque target for explicitly continuing this review, or null when
|
|
298
|
+
* unavailable.
|
|
299
|
+
*/
|
|
300
|
+
review_target?: string | null;
|
|
301
|
+
|
|
296
302
|
/**
|
|
297
303
|
* An optional public continuation instruction.
|
|
298
304
|
*/
|
package/src/resources/videos.ts
CHANGED
|
@@ -593,6 +593,12 @@ export namespace VideoCreateError {
|
|
|
593
593
|
| 'potentially_unintended_destructive_activity'
|
|
594
594
|
| 'other';
|
|
595
595
|
|
|
596
|
+
/**
|
|
597
|
+
* An opaque target for explicitly continuing this review, or null when
|
|
598
|
+
* unavailable.
|
|
599
|
+
*/
|
|
600
|
+
review_target?: string | null;
|
|
601
|
+
|
|
596
602
|
/**
|
|
597
603
|
* An optional public continuation instruction.
|
|
598
604
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Version of the installed OpenAI SDK package. */
|
|
2
|
-
export const VERSION = '7.
|
|
2
|
+
export const VERSION = '7.30.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
/** Version of the installed OpenAI SDK package. */
|
|
5
|
-
exports.VERSION = '7.
|
|
5
|
+
exports.VERSION = '7.30.0'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED