@openrouter/sdk 1.2.103 → 1.2.105

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 (46) hide show
  1. package/esm/funcs/scimCreateSyncJob.d.ts +18 -0
  2. package/esm/funcs/scimCreateSyncJob.js +99 -0
  3. package/esm/funcs/scimGetSyncJob.d.ts +19 -0
  4. package/esm/funcs/scimGetSyncJob.js +103 -0
  5. package/esm/lib/config.d.ts +2 -2
  6. package/esm/lib/config.js +2 -2
  7. package/esm/models/baseinputsunion.d.ts +3 -2
  8. package/esm/models/baseinputsunion.js +3 -0
  9. package/esm/models/chatsystemmessage.d.ts +22 -0
  10. package/esm/models/chatsystemmessage.js +14 -0
  11. package/esm/models/configurationupdateitem.d.ts +37 -0
  12. package/esm/models/configurationupdateitem.js +33 -0
  13. package/esm/models/configurationupdatereasoning.d.ts +44 -0
  14. package/esm/models/configurationupdatereasoning.js +38 -0
  15. package/esm/models/createscimsyncjobresponse.d.ts +11 -0
  16. package/esm/models/createscimsyncjobresponse.js +15 -0
  17. package/esm/models/getscimsyncjobresponse.d.ts +11 -0
  18. package/esm/models/getscimsyncjobresponse.js +15 -0
  19. package/esm/models/index.d.ts +9 -0
  20. package/esm/models/index.js +9 -0
  21. package/esm/models/inputsunion.d.ts +5 -4
  22. package/esm/models/inputsunion.js +3 -0
  23. package/esm/models/mcpcallitem.d.ts +6 -2
  24. package/esm/models/mcpcallitem.js +2 -1
  25. package/esm/models/mcphttperror.d.ts +26 -0
  26. package/esm/models/mcphttperror.js +20 -0
  27. package/esm/models/mcpprotocolerror.d.ts +26 -0
  28. package/esm/models/mcpprotocolerror.js +20 -0
  29. package/esm/models/mcptoolcallerror.d.ts +14 -0
  30. package/esm/models/mcptoolcallerror.js +19 -0
  31. package/esm/models/mcptoolexecutionerror.d.ts +24 -0
  32. package/esm/models/mcptoolexecutionerror.js +19 -0
  33. package/esm/models/operations/createscimsyncjob.d.ts +65 -0
  34. package/esm/models/operations/createscimsyncjob.js +35 -0
  35. package/esm/models/operations/getscimsyncjob.d.ts +55 -0
  36. package/esm/models/operations/getscimsyncjob.js +21 -0
  37. package/esm/models/operations/index.d.ts +2 -0
  38. package/esm/models/operations/index.js +2 -0
  39. package/esm/models/responseserrorfield.d.ts +1 -0
  40. package/esm/models/responseserrorfield.js +1 -0
  41. package/esm/models/scimsyncjob.d.ts +57 -0
  42. package/esm/models/scimsyncjob.js +44 -0
  43. package/esm/sdk/scim.d.ts +14 -0
  44. package/esm/sdk/scim.js +20 -0
  45. package/jsr.json +1 -1
  46. package/package.json +4 -4
@@ -150,6 +150,8 @@ export * from "./codexlocalshelltool.js";
150
150
  export * from "./compactionitem.js";
151
151
  export * from "./compoundfilter.js";
152
152
  export * from "./computeruseservertool.js";
153
+ export * from "./configurationupdateitem.js";
154
+ export * from "./configurationupdatereasoning.js";
153
155
  export * from "./conflictresponseerrordata.js";
154
156
  export * from "./containerautoenvironment.js";
155
157
  export * from "./containerfile.js";
@@ -183,6 +185,7 @@ export * from "./createobservabilitydestinationresponse.js";
183
185
  export * from "./createpresetfrominferenceresponse.js";
184
186
  export * from "./createscimgroupmappingrequest.js";
185
187
  export * from "./createscimgroupmappingresponse.js";
188
+ export * from "./createscimsyncjobresponse.js";
186
189
  export * from "./createworkspacerequest.js";
187
190
  export * from "./createworkspaceresponse.js";
188
191
  export * from "./customtool.js";
@@ -254,6 +257,7 @@ export * from "./getobservabilitydestinationresponse.js";
254
257
  export * from "./getpresetresponse.js";
255
258
  export * from "./getpresetversionresponse.js";
256
259
  export * from "./getscimgroupmappingresponse.js";
260
+ export * from "./getscimsyncjobresponse.js";
257
261
  export * from "./getworkspacebudgetresponse.js";
258
262
  export * from "./getworkspaceresponse.js";
259
263
  export * from "./guardrail.js";
@@ -321,8 +325,12 @@ export * from "./localshellcalloutputitem.js";
321
325
  export * from "./mcpapprovalrequestitem.js";
322
326
  export * from "./mcpapprovalresponseitem.js";
323
327
  export * from "./mcpcallitem.js";
328
+ export * from "./mcphttperror.js";
324
329
  export * from "./mcplisttoolsitem.js";
330
+ export * from "./mcpprotocolerror.js";
325
331
  export * from "./mcpservertool.js";
332
+ export * from "./mcptoolcallerror.js";
333
+ export * from "./mcptoolexecutionerror.js";
326
334
  export * from "./memberassignment.js";
327
335
  export * from "./messagesadvisortoolresultblock.js";
328
336
  export * from "./messagesbashtoolresultblock.js";
@@ -504,6 +512,7 @@ export * from "./routerparams.js";
504
512
  export * from "./routingstrategy.js";
505
513
  export * from "./scimgroup.js";
506
514
  export * from "./scimgroupmapping.js";
515
+ export * from "./scimsyncjob.js";
507
516
  export * from "./searchcontextsizeenum.js";
508
517
  export * from "./searchmodelsservertoolconfig.js";
509
518
  export * from "./searchmodelsservertoolopenrouter.js";
@@ -154,6 +154,8 @@ export * from "./codexlocalshelltool.js";
154
154
  export * from "./compactionitem.js";
155
155
  export * from "./compoundfilter.js";
156
156
  export * from "./computeruseservertool.js";
157
+ export * from "./configurationupdateitem.js";
158
+ export * from "./configurationupdatereasoning.js";
157
159
  export * from "./conflictresponseerrordata.js";
158
160
  export * from "./containerautoenvironment.js";
159
161
  export * from "./containerfile.js";
@@ -187,6 +189,7 @@ export * from "./createobservabilitydestinationresponse.js";
187
189
  export * from "./createpresetfrominferenceresponse.js";
188
190
  export * from "./createscimgroupmappingrequest.js";
189
191
  export * from "./createscimgroupmappingresponse.js";
192
+ export * from "./createscimsyncjobresponse.js";
190
193
  export * from "./createworkspacerequest.js";
191
194
  export * from "./createworkspaceresponse.js";
192
195
  export * from "./customtool.js";
@@ -258,6 +261,7 @@ export * from "./getobservabilitydestinationresponse.js";
258
261
  export * from "./getpresetresponse.js";
259
262
  export * from "./getpresetversionresponse.js";
260
263
  export * from "./getscimgroupmappingresponse.js";
264
+ export * from "./getscimsyncjobresponse.js";
261
265
  export * from "./getworkspacebudgetresponse.js";
262
266
  export * from "./getworkspaceresponse.js";
263
267
  export * from "./guardrail.js";
@@ -325,8 +329,12 @@ export * from "./localshellcalloutputitem.js";
325
329
  export * from "./mcpapprovalrequestitem.js";
326
330
  export * from "./mcpapprovalresponseitem.js";
327
331
  export * from "./mcpcallitem.js";
332
+ export * from "./mcphttperror.js";
328
333
  export * from "./mcplisttoolsitem.js";
334
+ export * from "./mcpprotocolerror.js";
329
335
  export * from "./mcpservertool.js";
336
+ export * from "./mcptoolcallerror.js";
337
+ export * from "./mcptoolexecutionerror.js";
330
338
  export * from "./memberassignment.js";
331
339
  export * from "./messagesadvisortoolresultblock.js";
332
340
  export * from "./messagesbashtoolresultblock.js";
@@ -508,6 +516,7 @@ export * from "./routerparams.js";
508
516
  export * from "./routingstrategy.js";
509
517
  export * from "./scimgroup.js";
510
518
  export * from "./scimgroupmapping.js";
519
+ export * from "./scimsyncjob.js";
511
520
  export * from "./searchcontextsizeenum.js";
512
521
  export * from "./searchmodelsservertoolconfig.js";
513
522
  export * from "./searchmodelsservertoolopenrouter.js";
@@ -5,6 +5,7 @@ import { AgentMessageItem, AgentMessageItem$Outbound } from "./agentmessageitem.
5
5
  import { ApplyPatchCallItem, ApplyPatchCallItem$Outbound } from "./applypatchcallitem.js";
6
6
  import { ApplyPatchCallOutputItem, ApplyPatchCallOutputItem$Outbound } from "./applypatchcalloutputitem.js";
7
7
  import { CompactionItem, CompactionItem$Outbound } from "./compactionitem.js";
8
+ import { ConfigurationUpdateItem, ConfigurationUpdateItem$Outbound } from "./configurationupdateitem.js";
8
9
  import { ContextCompactionItem, ContextCompactionItem$Outbound } from "./contextcompactionitem.js";
9
10
  import { CustomToolCallItem, CustomToolCallItem$Outbound } from "./customtoolcallitem.js";
10
11
  import { CustomToolCallOutputItem, CustomToolCallOutputItem$Outbound } from "./customtoolcalloutputitem.js";
@@ -135,11 +136,11 @@ export type InputsMessage = {
135
136
  status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
136
137
  type?: InputsTypeMessage | undefined;
137
138
  };
138
- export type InputsUnion1 = FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem | ContextCompactionItem;
139
+ export type InputsUnion1 = FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem;
139
140
  /**
140
141
  * Input for a response request - can be a string or array of items
141
142
  */
142
- export type InputsUnion = string | Array<FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem | ContextCompactionItem>;
143
+ export type InputsUnion = string | Array<FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsMessage | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | OutputCodeInterpreterCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | OutputShellServerToolItem | CompactionItem | ItemReferenceItem | ConfigurationUpdateItem | EasyInputMessage | InputMessageItem | ContextCompactionItem>;
143
144
  /** @internal */
144
145
  export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
145
146
  /** @internal */
@@ -214,12 +215,12 @@ export type InputsMessage$Outbound = {
214
215
  export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
215
216
  export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
216
217
  /** @internal */
217
- export type InputsUnion1$Outbound = FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound;
218
+ export type InputsUnion1$Outbound = FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound;
218
219
  /** @internal */
219
220
  export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
220
221
  export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
221
222
  /** @internal */
222
- export type InputsUnion$Outbound = string | Array<FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound>;
223
+ export type InputsUnion$Outbound = string | Array<FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsMessage$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | OutputCodeInterpreterCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | OutputShellServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | ConfigurationUpdateItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound>;
223
224
  /** @internal */
224
225
  export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
225
226
  export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
@@ -9,6 +9,7 @@ import { AgentMessageItem$outboundSchema, } from "./agentmessageitem.js";
9
9
  import { ApplyPatchCallItem$outboundSchema, } from "./applypatchcallitem.js";
10
10
  import { ApplyPatchCallOutputItem$outboundSchema, } from "./applypatchcalloutputitem.js";
11
11
  import { CompactionItem$outboundSchema, } from "./compactionitem.js";
12
+ import { ConfigurationUpdateItem$outboundSchema, } from "./configurationupdateitem.js";
12
13
  import { ContextCompactionItem$outboundSchema, } from "./contextcompactionitem.js";
13
14
  import { CustomToolCallItem$outboundSchema, } from "./customtoolcallitem.js";
14
15
  import { CustomToolCallOutputItem$outboundSchema, } from "./customtoolcalloutputitem.js";
@@ -253,6 +254,7 @@ export const InputsUnion1$outboundSchema = z.union([
253
254
  OutputShellServerToolItem$outboundSchema,
254
255
  CompactionItem$outboundSchema,
255
256
  ItemReferenceItem$outboundSchema,
257
+ ConfigurationUpdateItem$outboundSchema,
256
258
  EasyInputMessage$outboundSchema,
257
259
  InputMessageItem$outboundSchema,
258
260
  ContextCompactionItem$outboundSchema,
@@ -311,6 +313,7 @@ export const InputsUnion$outboundSchema = z.union([
311
313
  OutputShellServerToolItem$outboundSchema,
312
314
  CompactionItem$outboundSchema,
313
315
  ItemReferenceItem$outboundSchema,
316
+ ConfigurationUpdateItem$outboundSchema,
314
317
  EasyInputMessage$outboundSchema,
315
318
  InputMessageItem$outboundSchema,
316
319
  ContextCompactionItem$outboundSchema,
@@ -1,5 +1,6 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ClosedEnum } from "../types/enums.js";
3
+ import { McpToolCallError, McpToolCallError$Outbound } from "./mcptoolcallerror.js";
3
4
  export declare const McpCallItemType: {
4
5
  readonly McpCall: "mcp_call";
5
6
  };
@@ -9,7 +10,10 @@ export type McpCallItemType = ClosedEnum<typeof McpCallItemType>;
9
10
  */
10
11
  export type McpCallItem = {
11
12
  arguments: string;
12
- error?: string | null | undefined;
13
+ /**
14
+ * Error from an MCP tool call, either a plain message or a structured error
15
+ */
16
+ error?: McpToolCallError | null | undefined;
13
17
  id: string;
14
18
  name: string;
15
19
  output?: string | null | undefined;
@@ -21,7 +25,7 @@ export declare const McpCallItemType$outboundSchema: z.ZodEnum<typeof McpCallIte
21
25
  /** @internal */
22
26
  export type McpCallItem$Outbound = {
23
27
  arguments: string;
24
- error?: string | null | undefined;
28
+ error?: McpToolCallError$Outbound | null | undefined;
25
29
  id: string;
26
30
  name: string;
27
31
  output?: string | null | undefined;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
+ import { McpToolCallError$outboundSchema, } from "./mcptoolcallerror.js";
7
8
  export const McpCallItemType = {
8
9
  McpCall: "mcp_call",
9
10
  };
@@ -12,7 +13,7 @@ export const McpCallItemType$outboundSchema = z.enum(McpCallItemType);
12
13
  /** @internal */
13
14
  export const McpCallItem$outboundSchema = z.object({
14
15
  arguments: z.string(),
15
- error: z.nullable(z.string()).optional(),
16
+ error: z.nullable(McpToolCallError$outboundSchema).optional(),
16
17
  id: z.string(),
17
18
  name: z.string(),
18
19
  output: z.nullable(z.string()).optional(),
@@ -0,0 +1,26 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ export declare const McpHttpErrorType: {
4
+ readonly HttpError: "http_error";
5
+ };
6
+ export type McpHttpErrorType = ClosedEnum<typeof McpHttpErrorType>;
7
+ /**
8
+ * The MCP server request failed at the HTTP layer
9
+ */
10
+ export type McpHttpError = {
11
+ code: number;
12
+ message: string;
13
+ type: McpHttpErrorType;
14
+ };
15
+ /** @internal */
16
+ export declare const McpHttpErrorType$outboundSchema: z.ZodEnum<typeof McpHttpErrorType>;
17
+ /** @internal */
18
+ export type McpHttpError$Outbound = {
19
+ code: number;
20
+ message: string;
21
+ type: string;
22
+ };
23
+ /** @internal */
24
+ export declare const McpHttpError$outboundSchema: z.ZodType<McpHttpError$Outbound, McpHttpError>;
25
+ export declare function mcpHttpErrorToJSON(mcpHttpError: McpHttpError): string;
26
+ //# sourceMappingURL=mcphttperror.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: afc8132b7d81
4
+ */
5
+ import * as z from "zod/v4";
6
+ export const McpHttpErrorType = {
7
+ HttpError: "http_error",
8
+ };
9
+ /** @internal */
10
+ export const McpHttpErrorType$outboundSchema = z.enum(McpHttpErrorType);
11
+ /** @internal */
12
+ export const McpHttpError$outboundSchema = z.object({
13
+ code: z.int(),
14
+ message: z.string(),
15
+ type: McpHttpErrorType$outboundSchema,
16
+ });
17
+ export function mcpHttpErrorToJSON(mcpHttpError) {
18
+ return JSON.stringify(McpHttpError$outboundSchema.parse(mcpHttpError));
19
+ }
20
+ //# sourceMappingURL=mcphttperror.js.map
@@ -0,0 +1,26 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ export declare const McpProtocolErrorType: {
4
+ readonly McpProtocolError: "mcp_protocol_error";
5
+ };
6
+ export type McpProtocolErrorType = ClosedEnum<typeof McpProtocolErrorType>;
7
+ /**
8
+ * The MCP server returned a protocol-level error
9
+ */
10
+ export type McpProtocolError = {
11
+ code: number;
12
+ message: string;
13
+ type: McpProtocolErrorType;
14
+ };
15
+ /** @internal */
16
+ export declare const McpProtocolErrorType$outboundSchema: z.ZodEnum<typeof McpProtocolErrorType>;
17
+ /** @internal */
18
+ export type McpProtocolError$Outbound = {
19
+ code: number;
20
+ message: string;
21
+ type: string;
22
+ };
23
+ /** @internal */
24
+ export declare const McpProtocolError$outboundSchema: z.ZodType<McpProtocolError$Outbound, McpProtocolError>;
25
+ export declare function mcpProtocolErrorToJSON(mcpProtocolError: McpProtocolError): string;
26
+ //# sourceMappingURL=mcpprotocolerror.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b13cde8f9b88
4
+ */
5
+ import * as z from "zod/v4";
6
+ export const McpProtocolErrorType = {
7
+ McpProtocolError: "mcp_protocol_error",
8
+ };
9
+ /** @internal */
10
+ export const McpProtocolErrorType$outboundSchema = z.enum(McpProtocolErrorType);
11
+ /** @internal */
12
+ export const McpProtocolError$outboundSchema = z.object({
13
+ code: z.int(),
14
+ message: z.string(),
15
+ type: McpProtocolErrorType$outboundSchema,
16
+ });
17
+ export function mcpProtocolErrorToJSON(mcpProtocolError) {
18
+ return JSON.stringify(McpProtocolError$outboundSchema.parse(mcpProtocolError));
19
+ }
20
+ //# sourceMappingURL=mcpprotocolerror.js.map
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4";
2
+ import { McpHttpError, McpHttpError$Outbound } from "./mcphttperror.js";
3
+ import { McpProtocolError, McpProtocolError$Outbound } from "./mcpprotocolerror.js";
4
+ import { McpToolExecutionError, McpToolExecutionError$Outbound } from "./mcptoolexecutionerror.js";
5
+ /**
6
+ * Error from an MCP tool call, either a plain message or a structured error
7
+ */
8
+ export type McpToolCallError = McpProtocolError | McpHttpError | McpToolExecutionError | string;
9
+ /** @internal */
10
+ export type McpToolCallError$Outbound = McpProtocolError$Outbound | McpHttpError$Outbound | McpToolExecutionError$Outbound | string;
11
+ /** @internal */
12
+ export declare const McpToolCallError$outboundSchema: z.ZodType<McpToolCallError$Outbound, McpToolCallError>;
13
+ export declare function mcpToolCallErrorToJSON(mcpToolCallError: McpToolCallError): string;
14
+ //# sourceMappingURL=mcptoolcallerror.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ce8691448f5c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { McpHttpError$outboundSchema, } from "./mcphttperror.js";
7
+ import { McpProtocolError$outboundSchema, } from "./mcpprotocolerror.js";
8
+ import { McpToolExecutionError$outboundSchema, } from "./mcptoolexecutionerror.js";
9
+ /** @internal */
10
+ export const McpToolCallError$outboundSchema = z.union([
11
+ McpProtocolError$outboundSchema,
12
+ McpHttpError$outboundSchema,
13
+ McpToolExecutionError$outboundSchema,
14
+ z.string(),
15
+ ]);
16
+ export function mcpToolCallErrorToJSON(mcpToolCallError) {
17
+ return JSON.stringify(McpToolCallError$outboundSchema.parse(mcpToolCallError));
18
+ }
19
+ //# sourceMappingURL=mcptoolcallerror.js.map
@@ -0,0 +1,24 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ export declare const McpToolExecutionErrorType: {
4
+ readonly McpToolExecutionError: "mcp_tool_execution_error";
5
+ };
6
+ export type McpToolExecutionErrorType = ClosedEnum<typeof McpToolExecutionErrorType>;
7
+ /**
8
+ * The MCP tool ran but reported a failure
9
+ */
10
+ export type McpToolExecutionError = {
11
+ content?: any | undefined;
12
+ type: McpToolExecutionErrorType;
13
+ };
14
+ /** @internal */
15
+ export declare const McpToolExecutionErrorType$outboundSchema: z.ZodEnum<typeof McpToolExecutionErrorType>;
16
+ /** @internal */
17
+ export type McpToolExecutionError$Outbound = {
18
+ content?: any | undefined;
19
+ type: string;
20
+ };
21
+ /** @internal */
22
+ export declare const McpToolExecutionError$outboundSchema: z.ZodType<McpToolExecutionError$Outbound, McpToolExecutionError>;
23
+ export declare function mcpToolExecutionErrorToJSON(mcpToolExecutionError: McpToolExecutionError): string;
24
+ //# sourceMappingURL=mcptoolexecutionerror.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0e07ebbb9169
4
+ */
5
+ import * as z from "zod/v4";
6
+ export const McpToolExecutionErrorType = {
7
+ McpToolExecutionError: "mcp_tool_execution_error",
8
+ };
9
+ /** @internal */
10
+ export const McpToolExecutionErrorType$outboundSchema = z.enum(McpToolExecutionErrorType);
11
+ /** @internal */
12
+ export const McpToolExecutionError$outboundSchema = z.object({
13
+ content: z.any().optional(),
14
+ type: McpToolExecutionErrorType$outboundSchema,
15
+ });
16
+ export function mcpToolExecutionErrorToJSON(mcpToolExecutionError) {
17
+ return JSON.stringify(McpToolExecutionError$outboundSchema.parse(mcpToolExecutionError));
18
+ }
19
+ //# sourceMappingURL=mcptoolexecutionerror.js.map
@@ -0,0 +1,65 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as models from "../index.js";
5
+ export type CreateScimSyncJobGlobals = {
6
+ /**
7
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
+ *
9
+ * @remarks
10
+ * This is used to track API usage per application.
11
+ */
12
+ httpReferer?: string | undefined;
13
+ /**
14
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
+ *
16
+ * @remarks
17
+ */
18
+ appTitle?: string | undefined;
19
+ /**
20
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
+ *
22
+ * @remarks
23
+ */
24
+ appCategories?: string | undefined;
25
+ };
26
+ export type CreateScimSyncJobRequest = {
27
+ /**
28
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
+ *
30
+ * @remarks
31
+ * This is used to track API usage per application.
32
+ */
33
+ httpReferer?: string | undefined;
34
+ /**
35
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
+ *
37
+ * @remarks
38
+ */
39
+ appTitle?: string | undefined;
40
+ /**
41
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
+ *
43
+ * @remarks
44
+ */
45
+ appCategories?: string | undefined;
46
+ };
47
+ export type CreateScimSyncJobResponse = {
48
+ headers: {
49
+ [k: string]: Array<string>;
50
+ };
51
+ result: models.CreateScimSyncJobResponse;
52
+ };
53
+ /** @internal */
54
+ export type CreateScimSyncJobRequest$Outbound = {
55
+ "HTTP-Referer"?: string | undefined;
56
+ appTitle?: string | undefined;
57
+ appCategories?: string | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const CreateScimSyncJobRequest$outboundSchema: z.ZodType<CreateScimSyncJobRequest$Outbound, CreateScimSyncJobRequest>;
61
+ export declare function createScimSyncJobRequestToJSON(createScimSyncJobRequest: CreateScimSyncJobRequest): string;
62
+ /** @internal */
63
+ export declare const CreateScimSyncJobResponse$inboundSchema: z.ZodType<CreateScimSyncJobResponse, unknown>;
64
+ export declare function createScimSyncJobResponseFromJSON(jsonString: string): SafeParseResult<CreateScimSyncJobResponse, SDKValidationError>;
65
+ //# sourceMappingURL=createscimsyncjob.d.ts.map
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ebd7800a291d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import * as models from "../index.js";
9
+ /** @internal */
10
+ export const CreateScimSyncJobRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function createScimSyncJobRequestToJSON(createScimSyncJobRequest) {
20
+ return JSON.stringify(CreateScimSyncJobRequest$outboundSchema.parse(createScimSyncJobRequest));
21
+ }
22
+ /** @internal */
23
+ export const CreateScimSyncJobResponse$inboundSchema = z.object({
24
+ Headers: z.record(z.string(), z.array(z.string())).default({}),
25
+ Result: models.CreateScimSyncJobResponse$inboundSchema,
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "Headers": "headers",
29
+ "Result": "result",
30
+ });
31
+ });
32
+ export function createScimSyncJobResponseFromJSON(jsonString) {
33
+ return safeParse(jsonString, (x) => CreateScimSyncJobResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScimSyncJobResponse' from JSON`);
34
+ }
35
+ //# sourceMappingURL=createscimsyncjob.js.map
@@ -0,0 +1,55 @@
1
+ import * as z from "zod/v4";
2
+ export type GetScimSyncJobGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type GetScimSyncJobRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ id: string;
44
+ };
45
+ /** @internal */
46
+ export type GetScimSyncJobRequest$Outbound = {
47
+ "HTTP-Referer"?: string | undefined;
48
+ appTitle?: string | undefined;
49
+ appCategories?: string | undefined;
50
+ id: string;
51
+ };
52
+ /** @internal */
53
+ export declare const GetScimSyncJobRequest$outboundSchema: z.ZodType<GetScimSyncJobRequest$Outbound, GetScimSyncJobRequest>;
54
+ export declare function getScimSyncJobRequestToJSON(getScimSyncJobRequest: GetScimSyncJobRequest): string;
55
+ //# sourceMappingURL=getscimsyncjob.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7ab3b0cef3ee
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const GetScimSyncJobRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ id: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function getScimSyncJobRequestToJSON(getScimSyncJobRequest) {
19
+ return JSON.stringify(GetScimSyncJobRequest$outboundSchema.parse(getScimSyncJobRequest));
20
+ }
21
+ //# sourceMappingURL=getscimsyncjob.js.map
@@ -21,6 +21,7 @@ export * from "./createpresetsresponses.js";
21
21
  export * from "./creatererank.js";
22
22
  export * from "./createresponses.js";
23
23
  export * from "./createscimgroupmapping.js";
24
+ export * from "./createscimsyncjob.js";
24
25
  export * from "./createvideos.js";
25
26
  export * from "./createworkspace.js";
26
27
  export * from "./deletebyokkey.js";
@@ -52,6 +53,7 @@ export * from "./getpreset.js";
52
53
  export * from "./getpresetversion.js";
53
54
  export * from "./getrankingsdaily.js";
54
55
  export * from "./getscimgroupmapping.js";
56
+ export * from "./getscimsyncjob.js";
55
57
  export * from "./getsessioncost.js";
56
58
  export * from "./gettaskclassifications.js";
57
59
  export * from "./getuseractivity.js";
@@ -25,6 +25,7 @@ export * from "./createpresetsresponses.js";
25
25
  export * from "./creatererank.js";
26
26
  export * from "./createresponses.js";
27
27
  export * from "./createscimgroupmapping.js";
28
+ export * from "./createscimsyncjob.js";
28
29
  export * from "./createvideos.js";
29
30
  export * from "./createworkspace.js";
30
31
  export * from "./deletebyokkey.js";
@@ -56,6 +57,7 @@ export * from "./getpreset.js";
56
57
  export * from "./getpresetversion.js";
57
58
  export * from "./getrankingsdaily.js";
58
59
  export * from "./getscimgroupmapping.js";
60
+ export * from "./getscimsyncjob.js";
59
61
  export * from "./getsessioncost.js";
60
62
  export * from "./gettaskclassifications.js";
61
63
  export * from "./getuseractivity.js";
@@ -22,6 +22,7 @@ export declare const Code: {
22
22
  readonly FailedToDownloadImage: "failed_to_download_image";
23
23
  readonly ImageFileNotFound: "image_file_not_found";
24
24
  readonly BioPolicy: "bio_policy";
25
+ readonly MisalignmentPolicyViolation: "misalignment_policy_violation";
25
26
  readonly DataResidencyMismatch: "data_residency_mismatch";
26
27
  };
27
28
  export type Code = OpenEnum<typeof Code>;
@@ -25,6 +25,7 @@ export const Code = {
25
25
  FailedToDownloadImage: "failed_to_download_image",
26
26
  ImageFileNotFound: "image_file_not_found",
27
27
  BioPolicy: "bio_policy",
28
+ MisalignmentPolicyViolation: "misalignment_policy_violation",
28
29
  DataResidencyMismatch: "data_residency_mismatch",
29
30
  };
30
31
  /** @internal */