@openrouter/sdk 1.5.56 → 1.5.57

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.
Files changed (103) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/additionaltoolsitem.d.ts +5 -4
  4. package/esm/models/additionaltoolsitem.js +3 -0
  5. package/esm/models/alignmentresponsesrejected.d.ts +4 -1
  6. package/esm/models/alignmentresponsesrejected.js +6 -0
  7. package/esm/models/byokproviderslug.d.ts +1 -0
  8. package/esm/models/byokproviderslug.js +1 -0
  9. package/esm/models/createworkspacerequest.d.ts +1 -0
  10. package/esm/models/createworkspacerequest.js +1 -0
  11. package/esm/models/decisionschoicequestion.d.ts +4 -4
  12. package/esm/models/decisionschoicequestion.js +1 -5
  13. package/esm/models/decisionsnoulquestion.d.ts +12 -12
  14. package/esm/models/decisionsnoulquestion.js +3 -7
  15. package/esm/models/decisionsscorequestion.d.ts +4 -4
  16. package/esm/models/decisionsscorequestion.js +1 -5
  17. package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
  18. package/esm/models/imagegenerationproviderpreferences.js +1 -0
  19. package/esm/models/imagegenerationrequest.d.ts +1 -1
  20. package/esm/models/index.d.ts +6 -0
  21. package/esm/models/index.js +6 -0
  22. package/esm/models/mcpapprovalrequestitem.d.ts +7 -0
  23. package/esm/models/mcpapprovalrequestitem.js +19 -1
  24. package/esm/models/mcpcallitem.d.ts +17 -1
  25. package/esm/models/mcpcallitem.js +18 -0
  26. package/esm/models/mcpservertool.d.ts +78 -69
  27. package/esm/models/mcpservertool.js +135 -105
  28. package/esm/models/mcpservertoolopenrouter.d.ts +28 -0
  29. package/esm/models/mcpservertoolopenrouter.js +20 -0
  30. package/esm/models/mcpservertoolparameters.d.ts +152 -0
  31. package/esm/models/mcpservertoolparameters.js +134 -0
  32. package/esm/models/openairesponsestoolchoiceunion.d.ts +3 -2
  33. package/esm/models/openairesponsestoolchoiceunion.js +3 -0
  34. package/esm/models/operations/listbyokkeys.d.ts +1 -0
  35. package/esm/models/operations/listbyokkeys.js +1 -0
  36. package/esm/models/outputitemmcpapprovalrequest.d.ts +14 -0
  37. package/esm/models/outputitemmcpapprovalrequest.js +23 -0
  38. package/esm/models/outputitemmcpcall.d.ts +74 -0
  39. package/esm/models/outputitemmcpcall.js +94 -0
  40. package/esm/models/outputitemmcplisttools.d.ts +25 -0
  41. package/esm/models/outputitemmcplisttools.js +37 -0
  42. package/esm/models/outputitems.d.ts +3 -0
  43. package/esm/models/outputitems.js +2 -0
  44. package/esm/models/providername.d.ts +1 -0
  45. package/esm/models/providername.js +1 -0
  46. package/esm/models/provideroptions.d.ts +6 -0
  47. package/esm/models/provideroptions.js +1 -0
  48. package/esm/models/providerresponse.d.ts +1 -0
  49. package/esm/models/providerresponse.js +1 -0
  50. package/esm/models/responsesrequest.d.ts +9 -0
  51. package/esm/models/responsesrequest.js +3 -0
  52. package/esm/models/toolchoicemcp.d.ts +33 -0
  53. package/esm/models/toolchoicemcp.js +42 -0
  54. package/esm/models/toolsearchoutputitem.d.ts +5 -4
  55. package/esm/models/toolsearchoutputitem.js +3 -0
  56. package/esm/models/updateworkspacerequest.d.ts +1 -0
  57. package/esm/models/updateworkspacerequest.js +1 -0
  58. package/esm/models/videogenerationrequest.d.ts +6 -0
  59. package/esm/models/videogenerationrequest.js +1 -0
  60. package/esm/sdk/sdk.d.ts +0 -9
  61. package/esm/sdk/sdk.js +1 -7
  62. package/jsr.json +1 -1
  63. package/package.json +7 -7
  64. package/esm/funcs/call-model.d.ts +0 -67
  65. package/esm/funcs/call-model.js +0 -98
  66. package/esm/lib/anthropic-compat.d.ts +0 -51
  67. package/esm/lib/anthropic-compat.js +0 -222
  68. package/esm/lib/async-params.d.ts +0 -107
  69. package/esm/lib/async-params.js +0 -88
  70. package/esm/lib/chat-compat.d.ts +0 -47
  71. package/esm/lib/chat-compat.js +0 -111
  72. package/esm/lib/claude-constants.d.ts +0 -22
  73. package/esm/lib/claude-constants.js +0 -20
  74. package/esm/lib/claude-type-guards.d.ts +0 -10
  75. package/esm/lib/claude-type-guards.js +0 -70
  76. package/esm/lib/conversation-state.d.ts +0 -63
  77. package/esm/lib/conversation-state.js +0 -210
  78. package/esm/lib/model-result.d.ts +0 -373
  79. package/esm/lib/model-result.js +0 -1414
  80. package/esm/lib/next-turn-params.d.ts +0 -30
  81. package/esm/lib/next-turn-params.js +0 -135
  82. package/esm/lib/reusable-stream.d.ts +0 -39
  83. package/esm/lib/reusable-stream.js +0 -192
  84. package/esm/lib/stop-conditions.d.ts +0 -80
  85. package/esm/lib/stop-conditions.js +0 -104
  86. package/esm/lib/stream-transformers.d.ts +0 -118
  87. package/esm/lib/stream-transformers.js +0 -852
  88. package/esm/lib/stream-type-guards.d.ts +0 -49
  89. package/esm/lib/stream-type-guards.js +0 -85
  90. package/esm/lib/tool-context.d.ts +0 -68
  91. package/esm/lib/tool-context.js +0 -175
  92. package/esm/lib/tool-event-broadcaster.d.ts +0 -44
  93. package/esm/lib/tool-event-broadcaster.js +0 -146
  94. package/esm/lib/tool-executor.d.ts +0 -74
  95. package/esm/lib/tool-executor.js +0 -267
  96. package/esm/lib/tool-orchestrator.d.ts +0 -52
  97. package/esm/lib/tool-orchestrator.js +0 -180
  98. package/esm/lib/tool-types.d.ts +0 -573
  99. package/esm/lib/tool-types.js +0 -80
  100. package/esm/lib/tool.d.ts +0 -108
  101. package/esm/lib/tool.js +0 -74
  102. package/esm/lib/turn-context.d.ts +0 -52
  103. package/esm/lib/turn-context.js +0 -59
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.5.56";
53
+ readonly sdkVersion: "1.5.57";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.56 2.950.13 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.57 2.950.13 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.5.56",
32
+ sdkVersion: "1.5.57",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.56 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.57 2.950.13 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -16,6 +16,7 @@ import { ImageGenerationServerTool, ImageGenerationServerTool$Outbound } from ".
16
16
  import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
17
17
  import { LegacyWebSearchServerTool, LegacyWebSearchServerTool$Outbound } from "./legacywebsearchservertool.js";
18
18
  import { McpServerTool, McpServerTool$Outbound } from "./mcpservertool.js";
19
+ import { McpServerToolOpenRouter, McpServerToolOpenRouter$Outbound } from "./mcpservertoolopenrouter.js";
19
20
  import { NamespaceTool, NamespaceTool$Outbound } from "./namespacetool.js";
20
21
  import { Preview20250311WebSearchServerTool, Preview20250311WebSearchServerTool$Outbound } from "./preview20250311websearchservertool.js";
21
22
  import { PreviewWebSearchServerTool, PreviewWebSearchServerTool$Outbound } from "./previewwebsearchservertool.js";
@@ -77,7 +78,7 @@ export type AdditionalToolsItemToolFunction = {
77
78
  [k: string]: any;
78
79
  } | null | undefined;
79
80
  };
80
- export type AdditionalToolsItemToolUnion = ComputerUseServerTool | NamespaceTool | AdditionalToolsItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | AdditionalToolsItemTool;
81
+ export type AdditionalToolsItemToolUnion = ComputerUseServerTool | NamespaceTool | AdditionalToolsItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | McpServerToolOpenRouter | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | AdditionalToolsItemTool;
81
82
  export declare const TypeAdditionalTools: {
82
83
  readonly AdditionalTools: "additional_tools";
83
84
  };
@@ -88,7 +89,7 @@ export type TypeAdditionalTools = ClosedEnum<typeof TypeAdditionalTools>;
88
89
  export type AdditionalToolsItem = {
89
90
  id?: string | null | undefined;
90
91
  role: AdditionalToolsItemRole;
91
- tools: Array<ComputerUseServerTool | NamespaceTool | AdditionalToolsItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | AdditionalToolsItemTool>;
92
+ tools: Array<ComputerUseServerTool | NamespaceTool | AdditionalToolsItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | McpServerToolOpenRouter | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | AdditionalToolsItemTool>;
92
93
  type: TypeAdditionalTools;
93
94
  };
94
95
  /** @internal */
@@ -125,7 +126,7 @@ export type AdditionalToolsItemToolFunction$Outbound = {
125
126
  export declare const AdditionalToolsItemToolFunction$outboundSchema: z.ZodType<AdditionalToolsItemToolFunction$Outbound, AdditionalToolsItemToolFunction>;
126
127
  export declare function additionalToolsItemToolFunctionToJSON(additionalToolsItemToolFunction: AdditionalToolsItemToolFunction): string;
127
128
  /** @internal */
128
- export type AdditionalToolsItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | AdditionalToolsItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | AdditionalToolsItemTool$Outbound;
129
+ export type AdditionalToolsItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | AdditionalToolsItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | McpServerToolOpenRouter$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | AdditionalToolsItemTool$Outbound;
129
130
  /** @internal */
130
131
  export declare const AdditionalToolsItemToolUnion$outboundSchema: z.ZodType<AdditionalToolsItemToolUnion$Outbound, AdditionalToolsItemToolUnion>;
131
132
  export declare function additionalToolsItemToolUnionToJSON(additionalToolsItemToolUnion: AdditionalToolsItemToolUnion): string;
@@ -135,7 +136,7 @@ export declare const TypeAdditionalTools$outboundSchema: z.ZodEnum<typeof TypeAd
135
136
  export type AdditionalToolsItem$Outbound = {
136
137
  id?: string | null | undefined;
137
138
  role: string;
138
- tools: Array<ComputerUseServerTool$Outbound | NamespaceTool$Outbound | AdditionalToolsItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | AdditionalToolsItemTool$Outbound>;
139
+ tools: Array<ComputerUseServerTool$Outbound | NamespaceTool$Outbound | AdditionalToolsItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | McpServerToolOpenRouter$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | AdditionalToolsItemTool$Outbound>;
139
140
  type: string;
140
141
  };
141
142
  /** @internal */
@@ -21,6 +21,7 @@ import { ImageGenerationServerTool$outboundSchema, } from "./imagegenerationserv
21
21
  import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
22
22
  import { LegacyWebSearchServerTool$outboundSchema, } from "./legacywebsearchservertool.js";
23
23
  import { McpServerTool$outboundSchema, } from "./mcpservertool.js";
24
+ import { McpServerToolOpenRouter$outboundSchema, } from "./mcpservertoolopenrouter.js";
24
25
  import { NamespaceTool$outboundSchema, } from "./namespacetool.js";
25
26
  import { Preview20250311WebSearchServerTool$outboundSchema, } from "./preview20250311websearchservertool.js";
26
27
  import { PreviewWebSearchServerTool$outboundSchema, } from "./previewwebsearchservertool.js";
@@ -103,6 +104,7 @@ export const AdditionalToolsItemToolUnion$outboundSchema = z.union([
103
104
  CodeInterpreterServerTool$outboundSchema,
104
105
  McpServerTool$outboundSchema,
105
106
  CustomTool$outboundSchema,
107
+ McpServerToolOpenRouter$outboundSchema,
106
108
  PreviewWebSearchServerTool$outboundSchema,
107
109
  Preview20250311WebSearchServerTool$outboundSchema,
108
110
  LegacyWebSearchServerTool$outboundSchema,
@@ -143,6 +145,7 @@ export const AdditionalToolsItem$outboundSchema = z.object({
143
145
  CodeInterpreterServerTool$outboundSchema,
144
146
  McpServerTool$outboundSchema,
145
147
  CustomTool$outboundSchema,
148
+ McpServerToolOpenRouter$outboundSchema,
146
149
  PreviewWebSearchServerTool$outboundSchema,
147
150
  Preview20250311WebSearchServerTool$outboundSchema,
148
151
  LegacyWebSearchServerTool$outboundSchema,
@@ -9,10 +9,13 @@ import { OutputItemCustomToolCall } from "./outputitemcustomtoolcall.js";
9
9
  import { OutputItemFileSearchCall } from "./outputitemfilesearchcall.js";
10
10
  import { OutputItemFunctionCall } from "./outputitemfunctioncall.js";
11
11
  import { OutputItemImageGenerationCall } from "./outputitemimagegenerationcall.js";
12
+ import { OutputItemMcpApprovalRequest } from "./outputitemmcpapprovalrequest.js";
13
+ import { OutputItemMcpCall } from "./outputitemmcpcall.js";
14
+ import { OutputItemMcpListTools } from "./outputitemmcplisttools.js";
12
15
  import { OutputItemReasoning } from "./outputitemreasoning.js";
13
16
  import { OutputItemWebSearchCall } from "./outputitemwebsearchcall.js";
14
17
  import { OutputMessage } from "./outputmessage.js";
15
- export type AlignmentResponsesRejected = OutputItemApplyPatchCall | OutputItemCodeInterpreterCall | OutputItemCompaction | OutputItemCustomToolCall | OutputItemFileSearchCall | OutputItemFunctionCall | OutputItemImageGenerationCall | OutputMessage | OutputItemReasoning | OutputItemWebSearchCall | discriminatedUnionTypes.Unknown<"type">;
18
+ export type AlignmentResponsesRejected = OutputItemApplyPatchCall | OutputItemCodeInterpreterCall | OutputItemCompaction | OutputItemCustomToolCall | OutputItemFileSearchCall | OutputItemFunctionCall | OutputItemImageGenerationCall | OutputItemMcpApprovalRequest | OutputItemMcpCall | OutputItemMcpListTools | OutputMessage | OutputItemReasoning | OutputItemWebSearchCall | discriminatedUnionTypes.Unknown<"type">;
16
19
  /** @internal */
17
20
  export declare const AlignmentResponsesRejected$inboundSchema: z.ZodType<AlignmentResponsesRejected, unknown>;
18
21
  export declare function alignmentResponsesRejectedFromJSON(jsonString: string): SafeParseResult<AlignmentResponsesRejected, SDKValidationError>;
@@ -11,6 +11,9 @@ import { OutputItemCustomToolCall$inboundSchema, } from "./outputitemcustomtoolc
11
11
  import { OutputItemFileSearchCall$inboundSchema, } from "./outputitemfilesearchcall.js";
12
12
  import { OutputItemFunctionCall$inboundSchema, } from "./outputitemfunctioncall.js";
13
13
  import { OutputItemImageGenerationCall$inboundSchema, } from "./outputitemimagegenerationcall.js";
14
+ import { OutputItemMcpApprovalRequest$inboundSchema, } from "./outputitemmcpapprovalrequest.js";
15
+ import { OutputItemMcpCall$inboundSchema, } from "./outputitemmcpcall.js";
16
+ import { OutputItemMcpListTools$inboundSchema, } from "./outputitemmcplisttools.js";
14
17
  import { OutputItemReasoning$inboundSchema, } from "./outputitemreasoning.js";
15
18
  import { OutputItemWebSearchCall$inboundSchema, } from "./outputitemwebsearchcall.js";
16
19
  import { OutputMessage$inboundSchema } from "./outputmessage.js";
@@ -23,6 +26,9 @@ export const AlignmentResponsesRejected$inboundSchema = discriminatedUnion("type
23
26
  file_search_call: OutputItemFileSearchCall$inboundSchema,
24
27
  function_call: OutputItemFunctionCall$inboundSchema,
25
28
  image_generation_call: OutputItemImageGenerationCall$inboundSchema,
29
+ mcp_approval_request: OutputItemMcpApprovalRequest$inboundSchema,
30
+ mcp_call: OutputItemMcpCall$inboundSchema,
31
+ mcp_list_tools: OutputItemMcpListTools$inboundSchema,
26
32
  message: OutputMessage$inboundSchema,
27
33
  reasoning: OutputItemReasoning$inboundSchema,
28
34
  web_search_call: OutputItemWebSearchCall$inboundSchema,
@@ -100,6 +100,7 @@ export declare const BYOKProviderSlug: {
100
100
  readonly Reka: "reka";
101
101
  readonly Relace: "relace";
102
102
  readonly Respan: "respan";
103
+ readonly River: "river";
103
104
  readonly Runway: "runway";
104
105
  readonly SailResearch: "sail-research";
105
106
  readonly Sakana: "sakana";
@@ -103,6 +103,7 @@ export const BYOKProviderSlug = {
103
103
  Reka: "reka",
104
104
  Relace: "relace",
105
105
  Respan: "respan",
106
+ River: "river",
106
107
  Runway: "runway",
107
108
  SailResearch: "sail-research",
108
109
  Sakana: "sakana",
@@ -7,6 +7,7 @@ export declare const CreateWorkspaceRequestDisabledServerTool: {
7
7
  readonly OpenrouterDatetime: "openrouter:datetime";
8
8
  readonly OpenrouterFusion: "openrouter:fusion";
9
9
  readonly OpenrouterImageGeneration: "openrouter:image_generation";
10
+ readonly OpenrouterMcp: "openrouter:mcp";
10
11
  readonly OpenrouterExperimentalSearchModels: "openrouter:experimental__search_models";
11
12
  readonly OpenrouterShell: "openrouter:shell";
12
13
  readonly OpenrouterSubagent: "openrouter:subagent";
@@ -12,6 +12,7 @@ export const CreateWorkspaceRequestDisabledServerTool = {
12
12
  OpenrouterDatetime: "openrouter:datetime",
13
13
  OpenrouterFusion: "openrouter:fusion",
14
14
  OpenrouterImageGeneration: "openrouter:image_generation",
15
+ OpenrouterMcp: "openrouter:mcp",
15
16
  OpenrouterExperimentalSearchModels: "openrouter:experimental__search_models",
16
17
  OpenrouterShell: "openrouter:shell",
17
18
  OpenrouterSubagent: "openrouter:subagent",
@@ -20,9 +20,9 @@ export type DecisionsChoiceQuestion = {
20
20
  /**
21
21
  * A plain string, or a JSON object or array of structured guidance.
22
22
  */
23
- instructions: string | {
23
+ instructions?: string | {
24
24
  [k: string]: any;
25
- } | Array<any>;
25
+ } | Array<any> | null | undefined;
26
26
  type: "choice";
27
27
  };
28
28
  /** @internal */
@@ -46,9 +46,9 @@ export type DecisionsChoiceQuestion$Outbound = {
46
46
  [k: string]: any;
47
47
  } | Array<any> | null;
48
48
  };
49
- instructions: string | {
49
+ instructions?: string | {
50
50
  [k: string]: any;
51
- } | Array<any>;
51
+ } | Array<any> | null | undefined;
52
52
  type: "choice";
53
53
  };
54
54
  /** @internal */
@@ -17,11 +17,7 @@ export function decisionsChoiceQuestionInstructionsToJSON(decisionsChoiceQuestio
17
17
  /** @internal */
18
18
  export const DecisionsChoiceQuestion$outboundSchema = z.object({
19
19
  criteria: z.record(z.string(), z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]))),
20
- instructions: z.union([
21
- z.string(),
22
- z.record(z.string(), z.any()),
23
- z.array(z.any()),
24
- ]),
20
+ instructions: z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])).optional(),
25
21
  type: z.literal("choice"),
26
22
  });
27
23
  export function decisionsChoiceQuestionToJSON(decisionsChoiceQuestion) {
@@ -15,15 +15,15 @@ export type DecisionsNoulQuestionCriteria = {
15
15
  /**
16
16
  * A plain string, or a JSON object or array of structured guidance.
17
17
  */
18
- false: string | {
18
+ false?: string | {
19
19
  [k: string]: any;
20
- } | Array<any>;
20
+ } | Array<any> | null | undefined;
21
21
  /**
22
22
  * A plain string, or a JSON object or array of structured guidance.
23
23
  */
24
- true: string | {
24
+ true?: string | {
25
25
  [k: string]: any;
26
- } | Array<any>;
26
+ } | Array<any> | null | undefined;
27
27
  };
28
28
  /**
29
29
  * A plain string, or a JSON object or array of structured guidance.
@@ -36,9 +36,9 @@ export type DecisionsNoulQuestion = {
36
36
  /**
37
37
  * A plain string, or a JSON object or array of structured guidance.
38
38
  */
39
- instructions: string | {
39
+ instructions?: string | {
40
40
  [k: string]: any;
41
- } | Array<any>;
41
+ } | Array<any> | null | undefined;
42
42
  type: "noul";
43
43
  };
44
44
  /** @internal */
@@ -57,12 +57,12 @@ export declare const True$outboundSchema: z.ZodType<True$Outbound, True>;
57
57
  export declare function trueToJSON(value: True): string;
58
58
  /** @internal */
59
59
  export type DecisionsNoulQuestionCriteria$Outbound = {
60
- false: string | {
60
+ false?: string | {
61
61
  [k: string]: any;
62
- } | Array<any>;
63
- true: string | {
62
+ } | Array<any> | null | undefined;
63
+ true?: string | {
64
64
  [k: string]: any;
65
- } | Array<any>;
65
+ } | Array<any> | null | undefined;
66
66
  };
67
67
  /** @internal */
68
68
  export declare const DecisionsNoulQuestionCriteria$outboundSchema: z.ZodType<DecisionsNoulQuestionCriteria$Outbound, DecisionsNoulQuestionCriteria>;
@@ -77,9 +77,9 @@ export declare function decisionsNoulQuestionInstructionsToJSON(decisionsNoulQue
77
77
  /** @internal */
78
78
  export type DecisionsNoulQuestion$Outbound = {
79
79
  criteria?: DecisionsNoulQuestionCriteria$Outbound | undefined;
80
- instructions: string | {
80
+ instructions?: string | {
81
81
  [k: string]: any;
82
- } | Array<any>;
82
+ } | Array<any> | null | undefined;
83
83
  type: "noul";
84
84
  };
85
85
  /** @internal */
@@ -23,8 +23,8 @@ export function trueToJSON(value) {
23
23
  }
24
24
  /** @internal */
25
25
  export const DecisionsNoulQuestionCriteria$outboundSchema = z.object({
26
- false: z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]),
27
- true: z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]),
26
+ false: z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])).optional(),
27
+ true: z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])).optional(),
28
28
  });
29
29
  export function decisionsNoulQuestionCriteriaToJSON(decisionsNoulQuestionCriteria) {
30
30
  return JSON.stringify(DecisionsNoulQuestionCriteria$outboundSchema.parse(decisionsNoulQuestionCriteria));
@@ -38,11 +38,7 @@ export function decisionsNoulQuestionInstructionsToJSON(decisionsNoulQuestionIns
38
38
  export const DecisionsNoulQuestion$outboundSchema = z.object({
39
39
  criteria: z.lazy(() => DecisionsNoulQuestionCriteria$outboundSchema)
40
40
  .optional(),
41
- instructions: z.union([
42
- z.string(),
43
- z.record(z.string(), z.any()),
44
- z.array(z.any()),
45
- ]),
41
+ instructions: z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])).optional(),
46
42
  type: z.literal("noul"),
47
43
  });
48
44
  export function decisionsNoulQuestionToJSON(decisionsNoulQuestion) {
@@ -18,9 +18,9 @@ export type DecisionsScoreQuestion = {
18
18
  /**
19
19
  * A plain string, or a JSON object or array of structured guidance.
20
20
  */
21
- instructions: string | {
21
+ instructions?: string | {
22
22
  [k: string]: any;
23
- } | Array<any>;
23
+ } | Array<any> | null | undefined;
24
24
  type: "score";
25
25
  };
26
26
  /** @internal */
@@ -42,9 +42,9 @@ export type DecisionsScoreQuestion$Outbound = {
42
42
  criteria: Array<string | {
43
43
  [k: string]: any;
44
44
  } | Array<any>>;
45
- instructions: string | {
45
+ instructions?: string | {
46
46
  [k: string]: any;
47
- } | Array<any>;
47
+ } | Array<any> | null | undefined;
48
48
  type: "score";
49
49
  };
50
50
  /** @internal */
@@ -16,11 +16,7 @@ export function decisionsScoreQuestionInstructionsToJSON(decisionsScoreQuestionI
16
16
  /** @internal */
17
17
  export const DecisionsScoreQuestion$outboundSchema = z.object({
18
18
  criteria: z.array(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])),
19
- instructions: z.union([
20
- z.string(),
21
- z.record(z.string(), z.any()),
22
- z.array(z.any()),
23
- ]),
19
+ instructions: z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])).optional(),
24
20
  type: z.literal("score"),
25
21
  });
26
22
  export function decisionsScoreQuestionToJSON(decisionsScoreQuestion) {
@@ -371,6 +371,9 @@ export type ImageGenerationProviderPreferencesOptions = {
371
371
  respan?: {
372
372
  [k: string]: any;
373
373
  } | undefined;
374
+ river?: {
375
+ [k: string]: any;
376
+ } | undefined;
374
377
  runway?: {
375
378
  [k: string]: any;
376
379
  } | undefined;
@@ -881,6 +884,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
881
884
  respan?: {
882
885
  [k: string]: any;
883
886
  } | undefined;
887
+ river?: {
888
+ [k: string]: any;
889
+ } | undefined;
884
890
  runway?: {
885
891
  [k: string]: any;
886
892
  } | undefined;
@@ -140,6 +140,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
140
140
  relace: z.record(z.string(), z.any()).optional(),
141
141
  replicate: z.record(z.string(), z.any()).optional(),
142
142
  respan: z.record(z.string(), z.any()).optional(),
143
+ river: z.record(z.string(), z.any()).optional(),
143
144
  runway: z.record(z.string(), z.any()).optional(),
144
145
  sailResearch: z.record(z.string(), z.any()).optional(),
145
146
  sakana: z.record(z.string(), z.any()).optional(),
@@ -121,7 +121,7 @@ export type ImageGenerationRequest = {
121
121
  */
122
122
  background?: ImageGenerationRequestBackground | undefined;
123
123
  /**
124
- * Number of animation frames (2-64) when `output_format` is `gif`. Only honored by models that produce animations (OpenAI gpt-image-2.6, generations only); ignored otherwise.
124
+ * Number of animation frames (2-64) when `output_format` is `gif`. Only honored by models that produce animations; each accepts its own range and rejects values outside it. Ignored otherwise.
125
125
  */
126
126
  frameCount?: number | undefined;
127
127
  /**
@@ -502,6 +502,8 @@ export * from "./mcplisttoolsinprogressevent.js";
502
502
  export * from "./mcplisttoolsitem.js";
503
503
  export * from "./mcpprotocolerror.js";
504
504
  export * from "./mcpservertool.js";
505
+ export * from "./mcpservertoolopenrouter.js";
506
+ export * from "./mcpservertoolparameters.js";
505
507
  export * from "./mcptoolcallerror.js";
506
508
  export * from "./mcptoolexecutionerror.js";
507
509
  export * from "./memberassignment.js";
@@ -616,6 +618,9 @@ export * from "./outputitemcustomtoolcall.js";
616
618
  export * from "./outputitemfilesearchcall.js";
617
619
  export * from "./outputitemfunctioncall.js";
618
620
  export * from "./outputitemimagegenerationcall.js";
621
+ export * from "./outputitemmcpapprovalrequest.js";
622
+ export * from "./outputitemmcpcall.js";
623
+ export * from "./outputitemmcplisttools.js";
619
624
  export * from "./outputitemreasoning.js";
620
625
  export * from "./outputitems.js";
621
626
  export * from "./outputitemwebsearchcall.js";
@@ -819,6 +824,7 @@ export * from "./tokenexchangerequest.js";
819
824
  export * from "./tokenexchangeresponse.js";
820
825
  export * from "./toolcallstatus.js";
821
826
  export * from "./toolchoiceallowed.js";
827
+ export * from "./toolchoicemcp.js";
822
828
  export * from "./toolchoicesupport.js";
823
829
  export * from "./toolsearchcallitem.js";
824
830
  export * from "./toolsearchoutputitem.js";
@@ -506,6 +506,8 @@ export * from "./mcplisttoolsinprogressevent.js";
506
506
  export * from "./mcplisttoolsitem.js";
507
507
  export * from "./mcpprotocolerror.js";
508
508
  export * from "./mcpservertool.js";
509
+ export * from "./mcpservertoolopenrouter.js";
510
+ export * from "./mcpservertoolparameters.js";
509
511
  export * from "./mcptoolcallerror.js";
510
512
  export * from "./mcptoolexecutionerror.js";
511
513
  export * from "./memberassignment.js";
@@ -620,6 +622,9 @@ export * from "./outputitemcustomtoolcall.js";
620
622
  export * from "./outputitemfilesearchcall.js";
621
623
  export * from "./outputitemfunctioncall.js";
622
624
  export * from "./outputitemimagegenerationcall.js";
625
+ export * from "./outputitemmcpapprovalrequest.js";
626
+ export * from "./outputitemmcpcall.js";
627
+ export * from "./outputitemmcplisttools.js";
623
628
  export * from "./outputitemreasoning.js";
624
629
  export * from "./outputitems.js";
625
630
  export * from "./outputitemwebsearchcall.js";
@@ -823,6 +828,7 @@ export * from "./tokenexchangerequest.js";
823
828
  export * from "./tokenexchangeresponse.js";
824
829
  export * from "./toolcallstatus.js";
825
830
  export * from "./toolchoiceallowed.js";
831
+ export * from "./toolchoicemcp.js";
826
832
  export * from "./toolchoicesupport.js";
827
833
  export * from "./toolsearchcallitem.js";
828
834
  export * from "./toolsearchoutputitem.js";
@@ -1,5 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
3
5
  export declare const McpApprovalRequestItemType: {
4
6
  readonly McpApprovalRequest: "mcp_approval_request";
5
7
  };
@@ -15,8 +17,12 @@ export type McpApprovalRequestItem = {
15
17
  type: McpApprovalRequestItemType;
16
18
  };
17
19
  /** @internal */
20
+ export declare const McpApprovalRequestItemType$inboundSchema: z.ZodEnum<typeof McpApprovalRequestItemType>;
21
+ /** @internal */
18
22
  export declare const McpApprovalRequestItemType$outboundSchema: z.ZodEnum<typeof McpApprovalRequestItemType>;
19
23
  /** @internal */
24
+ export declare const McpApprovalRequestItem$inboundSchema: z.ZodType<McpApprovalRequestItem, unknown>;
25
+ /** @internal */
20
26
  export type McpApprovalRequestItem$Outbound = {
21
27
  arguments: string;
22
28
  id: string;
@@ -27,4 +33,5 @@ export type McpApprovalRequestItem$Outbound = {
27
33
  /** @internal */
28
34
  export declare const McpApprovalRequestItem$outboundSchema: z.ZodType<McpApprovalRequestItem$Outbound, McpApprovalRequestItem>;
29
35
  export declare function mcpApprovalRequestItemToJSON(mcpApprovalRequestItem: McpApprovalRequestItem): string;
36
+ export declare function mcpApprovalRequestItemFromJSON(jsonString: string): SafeParseResult<McpApprovalRequestItem, SDKValidationError>;
30
37
  //# sourceMappingURL=mcpapprovalrequestitem.d.ts.map
@@ -4,11 +4,26 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
7
8
  export const McpApprovalRequestItemType = {
8
9
  McpApprovalRequest: "mcp_approval_request",
9
10
  };
10
11
  /** @internal */
11
- export const McpApprovalRequestItemType$outboundSchema = z.enum(McpApprovalRequestItemType);
12
+ export const McpApprovalRequestItemType$inboundSchema = z.enum(McpApprovalRequestItemType);
13
+ /** @internal */
14
+ export const McpApprovalRequestItemType$outboundSchema = McpApprovalRequestItemType$inboundSchema;
15
+ /** @internal */
16
+ export const McpApprovalRequestItem$inboundSchema = z.object({
17
+ arguments: z.string(),
18
+ id: z.string(),
19
+ name: z.string(),
20
+ server_label: z.string(),
21
+ type: McpApprovalRequestItemType$inboundSchema,
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "server_label": "serverLabel",
25
+ });
26
+ });
12
27
  /** @internal */
13
28
  export const McpApprovalRequestItem$outboundSchema = z.object({
14
29
  arguments: z.string(),
@@ -24,4 +39,7 @@ export const McpApprovalRequestItem$outboundSchema = z.object({
24
39
  export function mcpApprovalRequestItemToJSON(mcpApprovalRequestItem) {
25
40
  return JSON.stringify(McpApprovalRequestItem$outboundSchema.parse(mcpApprovalRequestItem));
26
41
  }
42
+ export function mcpApprovalRequestItemFromJSON(jsonString) {
43
+ return safeParse(jsonString, (x) => McpApprovalRequestItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'McpApprovalRequestItem' from JSON`);
44
+ }
27
45
  //# sourceMappingURL=mcpapprovalrequestitem.js.map
@@ -1,8 +1,16 @@
1
1
  import * as z from "zod/v4";
2
- import { ClosedEnum } from "../types/enums.js";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  import { McpToolCallError, McpToolCallError$Outbound } from "./mcptoolcallerror.js";
6
+ export declare const McpCallItemStatus: {
7
+ readonly InProgress: "in_progress";
8
+ readonly Completed: "completed";
9
+ readonly Incomplete: "incomplete";
10
+ readonly Calling: "calling";
11
+ readonly Failed: "failed";
12
+ };
13
+ export type McpCallItemStatus = OpenEnum<typeof McpCallItemStatus>;
6
14
  export declare const McpCallItemType: {
7
15
  readonly McpCall: "mcp_call";
8
16
  };
@@ -11,6 +19,7 @@ export type McpCallItemType = ClosedEnum<typeof McpCallItemType>;
11
19
  * An MCP tool call with its output or error
12
20
  */
13
21
  export type McpCallItem = {
22
+ approvalRequestId?: string | null | undefined;
14
23
  arguments: string;
15
24
  /**
16
25
  * Error from an MCP tool call, either a plain message or a structured error
@@ -20,9 +29,14 @@ export type McpCallItem = {
20
29
  name: string;
21
30
  output?: string | null | undefined;
22
31
  serverLabel: string;
32
+ status?: McpCallItemStatus | undefined;
23
33
  type: McpCallItemType;
24
34
  };
25
35
  /** @internal */
36
+ export declare const McpCallItemStatus$inboundSchema: z.ZodType<McpCallItemStatus, unknown>;
37
+ /** @internal */
38
+ export declare const McpCallItemStatus$outboundSchema: z.ZodType<string, McpCallItemStatus>;
39
+ /** @internal */
26
40
  export declare const McpCallItemType$inboundSchema: z.ZodEnum<typeof McpCallItemType>;
27
41
  /** @internal */
28
42
  export declare const McpCallItemType$outboundSchema: z.ZodEnum<typeof McpCallItemType>;
@@ -30,12 +44,14 @@ export declare const McpCallItemType$outboundSchema: z.ZodEnum<typeof McpCallIte
30
44
  export declare const McpCallItem$inboundSchema: z.ZodType<McpCallItem, unknown>;
31
45
  /** @internal */
32
46
  export type McpCallItem$Outbound = {
47
+ approval_request_id?: string | null | undefined;
33
48
  arguments: string;
34
49
  error?: McpToolCallError$Outbound | null | undefined;
35
50
  id: string;
36
51
  name: string;
37
52
  output?: string | null | undefined;
38
53
  server_label: string;
54
+ status?: string | undefined;
39
55
  type: string;
40
56
  };
41
57
  /** @internal */
@@ -5,40 +5,58 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
8
9
  import { McpToolCallError$inboundSchema, McpToolCallError$outboundSchema, } from "./mcptoolcallerror.js";
10
+ export const McpCallItemStatus = {
11
+ InProgress: "in_progress",
12
+ Completed: "completed",
13
+ Incomplete: "incomplete",
14
+ Calling: "calling",
15
+ Failed: "failed",
16
+ };
9
17
  export const McpCallItemType = {
10
18
  McpCall: "mcp_call",
11
19
  };
12
20
  /** @internal */
21
+ export const McpCallItemStatus$inboundSchema = openEnums.inboundSchema(McpCallItemStatus);
22
+ /** @internal */
23
+ export const McpCallItemStatus$outboundSchema = openEnums.outboundSchema(McpCallItemStatus);
24
+ /** @internal */
13
25
  export const McpCallItemType$inboundSchema = z.enum(McpCallItemType);
14
26
  /** @internal */
15
27
  export const McpCallItemType$outboundSchema = McpCallItemType$inboundSchema;
16
28
  /** @internal */
17
29
  export const McpCallItem$inboundSchema = z
18
30
  .object({
31
+ approval_request_id: z.nullable(z.string()).optional(),
19
32
  arguments: z.string(),
20
33
  error: z.nullable(McpToolCallError$inboundSchema).optional(),
21
34
  id: z.string(),
22
35
  name: z.string(),
23
36
  output: z.nullable(z.string()).optional(),
24
37
  server_label: z.string(),
38
+ status: McpCallItemStatus$inboundSchema.optional(),
25
39
  type: McpCallItemType$inboundSchema,
26
40
  }).transform((v) => {
27
41
  return remap$(v, {
42
+ "approval_request_id": "approvalRequestId",
28
43
  "server_label": "serverLabel",
29
44
  });
30
45
  });
31
46
  /** @internal */
32
47
  export const McpCallItem$outboundSchema = z.object({
48
+ approvalRequestId: z.nullable(z.string()).optional(),
33
49
  arguments: z.string(),
34
50
  error: z.nullable(McpToolCallError$outboundSchema).optional(),
35
51
  id: z.string(),
36
52
  name: z.string(),
37
53
  output: z.nullable(z.string()).optional(),
38
54
  serverLabel: z.string(),
55
+ status: McpCallItemStatus$outboundSchema.optional(),
39
56
  type: McpCallItemType$outboundSchema,
40
57
  }).transform((v) => {
41
58
  return remap$(v, {
59
+ approvalRequestId: "approval_request_id",
42
60
  serverLabel: "server_label",
43
61
  });
44
62
  });