@@ -108,6 +108,7 @@ export interface ResponseObject {
108108 | ResponseObject . OpenAIResponseOutputMessageFunctionToolCall
109109 | ResponseObject . OpenAIResponseOutputMessageMcpCall
110110 | ResponseObject . OpenAIResponseOutputMessageMcpListTools
111+ | ResponseObject . OpenAIResponseMcpApprovalRequest
111112 > ;
112113
113114 /**
@@ -508,6 +509,21 @@ export namespace ResponseObject {
508509 }
509510 }
510511
512+ /**
513+ * A request for human approval of a tool invocation.
514+ */
515+ export interface OpenAIResponseMcpApprovalRequest {
516+ id : string ;
517+
518+ arguments : string ;
519+
520+ name : string ;
521+
522+ server_label : string ;
523+
524+ type : 'mcp_approval_request' ;
525+ }
526+
511527 /**
512528 * Text formatting configuration for the response
513529 */
@@ -623,7 +639,8 @@ export namespace ResponseObjectStream {
623639 | OpenAIResponseObjectStreamResponseOutputItemAdded . OpenAIResponseOutputMessageFileSearchToolCall
624640 | OpenAIResponseObjectStreamResponseOutputItemAdded . OpenAIResponseOutputMessageFunctionToolCall
625641 | OpenAIResponseObjectStreamResponseOutputItemAdded . OpenAIResponseOutputMessageMcpCall
626- | OpenAIResponseObjectStreamResponseOutputItemAdded . OpenAIResponseOutputMessageMcpListTools ;
642+ | OpenAIResponseObjectStreamResponseOutputItemAdded . OpenAIResponseOutputMessageMcpListTools
643+ | OpenAIResponseObjectStreamResponseOutputItemAdded . OpenAIResponseMcpApprovalRequest ;
627644
628645 /**
629646 * Index position of this item in the output list
@@ -1002,6 +1019,21 @@ export namespace ResponseObjectStream {
10021019 description ?: string ;
10031020 }
10041021 }
1022+
1023+ /**
1024+ * A request for human approval of a tool invocation.
1025+ */
1026+ export interface OpenAIResponseMcpApprovalRequest {
1027+ id : string ;
1028+
1029+ arguments : string ;
1030+
1031+ name : string ;
1032+
1033+ server_label : string ;
1034+
1035+ type : 'mcp_approval_request' ;
1036+ }
10051037 }
10061038
10071039 /**
@@ -1017,7 +1049,8 @@ export namespace ResponseObjectStream {
10171049 | OpenAIResponseObjectStreamResponseOutputItemDone . OpenAIResponseOutputMessageFileSearchToolCall
10181050 | OpenAIResponseObjectStreamResponseOutputItemDone . OpenAIResponseOutputMessageFunctionToolCall
10191051 | OpenAIResponseObjectStreamResponseOutputItemDone . OpenAIResponseOutputMessageMcpCall
1020- | OpenAIResponseObjectStreamResponseOutputItemDone . OpenAIResponseOutputMessageMcpListTools ;
1052+ | OpenAIResponseObjectStreamResponseOutputItemDone . OpenAIResponseOutputMessageMcpListTools
1053+ | OpenAIResponseObjectStreamResponseOutputItemDone . OpenAIResponseMcpApprovalRequest ;
10211054
10221055 /**
10231056 * Index position of this item in the output list
@@ -1396,6 +1429,21 @@ export namespace ResponseObjectStream {
13961429 description ?: string ;
13971430 }
13981431 }
1432+
1433+ /**
1434+ * A request for human approval of a tool invocation.
1435+ */
1436+ export interface OpenAIResponseMcpApprovalRequest {
1437+ id : string ;
1438+
1439+ arguments : string ;
1440+
1441+ name : string ;
1442+
1443+ server_label : string ;
1444+
1445+ type : 'mcp_approval_request' ;
1446+ }
13991447 }
14001448
14011449 /**
@@ -1815,6 +1863,8 @@ export interface ResponseListResponse {
18151863 | ResponseListResponse . OpenAIResponseOutputMessageFileSearchToolCall
18161864 | ResponseListResponse . OpenAIResponseOutputMessageFunctionToolCall
18171865 | ResponseListResponse . OpenAIResponseInputFunctionToolCallOutput
1866+ | ResponseListResponse . OpenAIResponseMcpApprovalRequest
1867+ | ResponseListResponse . OpenAIResponseMcpApprovalResponse
18181868 | ResponseListResponse . OpenAIResponseMessage
18191869 > ;
18201870
@@ -1838,6 +1888,7 @@ export interface ResponseListResponse {
18381888 | ResponseListResponse . OpenAIResponseOutputMessageFunctionToolCall
18391889 | ResponseListResponse . OpenAIResponseOutputMessageMcpCall
18401890 | ResponseListResponse . OpenAIResponseOutputMessageMcpListTools
1891+ | ResponseListResponse . OpenAIResponseMcpApprovalRequest
18411892 > ;
18421893
18431894 /**
@@ -2015,6 +2066,36 @@ export namespace ResponseListResponse {
20152066 status ?: string ;
20162067 }
20172068
2069+ /**
2070+ * A request for human approval of a tool invocation.
2071+ */
2072+ export interface OpenAIResponseMcpApprovalRequest {
2073+ id : string ;
2074+
2075+ arguments : string ;
2076+
2077+ name : string ;
2078+
2079+ server_label : string ;
2080+
2081+ type : 'mcp_approval_request' ;
2082+ }
2083+
2084+ /**
2085+ * A response to an MCP approval request.
2086+ */
2087+ export interface OpenAIResponseMcpApprovalResponse {
2088+ approval_request_id : string ;
2089+
2090+ approve : boolean ;
2091+
2092+ type : 'mcp_approval_response' ;
2093+
2094+ id ?: string ;
2095+
2096+ reason ?: string ;
2097+ }
2098+
20182099 /**
20192100 * Corresponds to the various Message types in the Responses API. They are all
20202101 * under one type because the Responses API gives them all the same "type" value,
@@ -2523,6 +2604,21 @@ export namespace ResponseListResponse {
25232604 }
25242605 }
25252606
2607+ /**
2608+ * A request for human approval of a tool invocation.
2609+ */
2610+ export interface OpenAIResponseMcpApprovalRequest {
2611+ id : string ;
2612+
2613+ arguments : string ;
2614+
2615+ name : string ;
2616+
2617+ server_label : string ;
2618+
2619+ type : 'mcp_approval_request' ;
2620+ }
2621+
25262622 /**
25272623 * Text formatting configuration for the response
25282624 */
@@ -2616,6 +2712,8 @@ export interface ResponseCreateParamsBase {
26162712 | ResponseCreateParams . OpenAIResponseOutputMessageFileSearchToolCall
26172713 | ResponseCreateParams . OpenAIResponseOutputMessageFunctionToolCall
26182714 | ResponseCreateParams . OpenAIResponseInputFunctionToolCallOutput
2715+ | ResponseCreateParams . OpenAIResponseMcpApprovalRequest
2716+ | ResponseCreateParams . OpenAIResponseMcpApprovalResponse
26192717 | ResponseCreateParams . OpenAIResponseMessage
26202718 > ;
26212719
@@ -2793,6 +2891,36 @@ export namespace ResponseCreateParams {
27932891 status ?: string ;
27942892 }
27952893
2894+ /**
2895+ * A request for human approval of a tool invocation.
2896+ */
2897+ export interface OpenAIResponseMcpApprovalRequest {
2898+ id : string ;
2899+
2900+ arguments : string ;
2901+
2902+ name : string ;
2903+
2904+ server_label : string ;
2905+
2906+ type : 'mcp_approval_request' ;
2907+ }
2908+
2909+ /**
2910+ * A response to an MCP approval request.
2911+ */
2912+ export interface OpenAIResponseMcpApprovalResponse {
2913+ approval_request_id : string ;
2914+
2915+ approve : boolean ;
2916+
2917+ type : 'mcp_approval_response' ;
2918+
2919+ id ?: string ;
2920+
2921+ reason ?: string ;
2922+ }
2923+
27962924 /**
27972925 * Corresponds to the various Message types in the Responses API. They are all
27982926 * under one type because the Responses API gives them all the same "type" value,
0 commit comments