From 5b9f36086d1e803579c707d4811488a5b7e70b19 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:45:32 +0000 Subject: [PATCH 1/2] fix(api): add status, approval_request_id to MCP tool call --- .stats.yml | 6 ++--- src/resources/conversations/items.ts | 13 ++++++++++ src/resources/responses/responses.ts | 39 ++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 10c939b22..27f2ffc6d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-49233088b5e73dbb96bf7af27be3d4547632e3db1c2b00f14184900613325bbc.yml -openapi_spec_hash: b34f14b141d5019244112901c5c7c2d8 -config_hash: 94e9ba08201c3d1ca46e093e6a0138fa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-e205b1f2da6a1f2caa229efa9ede63f2d3d2fedeeb2dd6ed3d880bafdcb0ab88.yml +openapi_spec_hash: c8aee2469a749f6a838b40c57e4b7b06 +config_hash: 45dcba51451ba532959c020a0ddbf23c diff --git a/src/resources/conversations/items.ts b/src/resources/conversations/items.ts index d47e0109e..dc660573b 100644 --- a/src/resources/conversations/items.ts +++ b/src/resources/conversations/items.ts @@ -360,6 +360,13 @@ export namespace ConversationItem { */ type: 'mcp_call'; + /** + * Unique identifier for the MCP tool call approval request. Include this value in + * a subsequent `mcp_approval_response` input to approve or reject the + * corresponding tool call. + */ + approval_request_id?: string | null; + /** * The error from the tool call, if any. */ @@ -369,6 +376,12 @@ export namespace ConversationItem { * The output from the tool call. */ output?: string | null; + + /** + * The status of the tool call. One of `in_progress`, `completed`, `incomplete`, + * `calling`, or `failed`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed'; } } diff --git a/src/resources/responses/responses.ts b/src/resources/responses/responses.ts index 01f3ca399..14069f9fa 100644 --- a/src/resources/responses/responses.ts +++ b/src/resources/responses/responses.ts @@ -2836,6 +2836,13 @@ export namespace ResponseInputItem { */ type: 'mcp_call'; + /** + * Unique identifier for the MCP tool call approval request. Include this value in + * a subsequent `mcp_approval_response` input to approve or reject the + * corresponding tool call. + */ + approval_request_id?: string | null; + /** * The error from the tool call, if any. */ @@ -2845,6 +2852,12 @@ export namespace ResponseInputItem { * The output from the tool call. */ output?: string | null; + + /** + * The status of the tool call. One of `in_progress`, `completed`, `incomplete`, + * `calling`, or `failed`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed'; } /** @@ -3213,6 +3226,13 @@ export namespace ResponseItem { */ type: 'mcp_call'; + /** + * Unique identifier for the MCP tool call approval request. Include this value in + * a subsequent `mcp_approval_response` input to approve or reject the + * corresponding tool call. + */ + approval_request_id?: string | null; + /** * The error from the tool call, if any. */ @@ -3222,6 +3242,12 @@ export namespace ResponseItem { * The output from the tool call. */ output?: string | null; + + /** + * The status of the tool call. One of `in_progress`, `completed`, `incomplete`, + * `calling`, or `failed`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed'; } } @@ -3598,6 +3624,13 @@ export namespace ResponseOutputItem { */ type: 'mcp_call'; + /** + * Unique identifier for the MCP tool call approval request. Include this value in + * a subsequent `mcp_approval_response` input to approve or reject the + * corresponding tool call. + */ + approval_request_id?: string | null; + /** * The error from the tool call, if any. */ @@ -3607,6 +3640,12 @@ export namespace ResponseOutputItem { * The output from the tool call. */ output?: string | null; + + /** + * The status of the tool call. One of `in_progress`, `completed`, `incomplete`, + * `calling`, or `failed`. + */ + status?: 'in_progress' | 'completed' | 'incomplete' | 'calling' | 'failed'; } /** From a78c2b8806313f6ab04394a142f0340ac73cc5af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:46:02 +0000 Subject: [PATCH 2/2] release: 6.0.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ jsr.json | 2 +- package.json | 2 +- src/version.ts | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a3a12f494..601e9bed3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.0.0" + ".": "6.0.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index e1b1e3d3e..fdeefbe85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 6.0.1 (2025-10-01) + +Full Changelog: [v6.0.0...v6.0.1](https://github.com/openai/openai-node/compare/v6.0.0...v6.0.1) + +### Bug Fixes + +* **api:** add status, approval_request_id to MCP tool call ([498c6a5](https://github.com/openai/openai-node/commit/498c6a5d4cab7ad10e31acd01cb49915a70e576a)) + ## 6.0.0 (2025-09-30) Full Changelog: [v5.23.2...v6.0.0](https://github.com/openai/openai-node/compare/v5.23.2...v6.0.0) diff --git a/jsr.json b/jsr.json index 243fc71b7..0a4195e83 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@openai/openai", - "version": "6.0.0", + "version": "6.0.1", "exports": { ".": "./index.ts", "./helpers/zod": "./helpers/zod.ts", diff --git a/package.json b/package.json index b5e07eeee..892c6f29d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "6.0.0", + "version": "6.0.1", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 1fbec37ea..be1e964c4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '6.0.0'; // x-release-please-version +export const VERSION = '6.0.1'; // x-release-please-version