@openrouter/sdk 1.3.21 → 1.3.22

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 (240) hide show
  1. package/esm/funcs/alphaDecisionsCreate.js +5 -5
  2. package/esm/funcs/analyticsGetAnalyticsMeta.js +4 -4
  3. package/esm/funcs/analyticsGetUserActivity.js +5 -5
  4. package/esm/funcs/analyticsQueryAnalytics.js +4 -4
  5. package/esm/funcs/apiKeysCreate.js +4 -4
  6. package/esm/funcs/apiKeysDelete.js +4 -4
  7. package/esm/funcs/apiKeysGet.js +4 -4
  8. package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +4 -4
  9. package/esm/funcs/apiKeysList.js +4 -4
  10. package/esm/funcs/apiKeysUpdate.js +4 -4
  11. package/esm/funcs/benchmarksGetBenchmarks.js +5 -5
  12. package/esm/funcs/byokCreate.js +5 -5
  13. package/esm/funcs/byokDelete.js +5 -5
  14. package/esm/funcs/byokGet.js +5 -5
  15. package/esm/funcs/byokList.js +5 -5
  16. package/esm/funcs/byokUpdate.js +5 -5
  17. package/esm/funcs/chatSend.js +4 -4
  18. package/esm/funcs/classificationsGetTaskClassifications.js +5 -5
  19. package/esm/funcs/containersDownloadContainerFileContent.js +4 -4
  20. package/esm/funcs/containersGetContainerFile.js +5 -5
  21. package/esm/funcs/containersListContainerFiles.js +5 -5
  22. package/esm/funcs/containersPromoteContainerFile.js +5 -5
  23. package/esm/funcs/creditsGetCredits.js +4 -4
  24. package/esm/funcs/datasetsGetAppRankings.js +5 -5
  25. package/esm/funcs/datasetsGetRankingsDaily.js +5 -5
  26. package/esm/funcs/datasetsGetSessionCost.js +5 -5
  27. package/esm/funcs/embeddingsGenerate.js +5 -5
  28. package/esm/funcs/embeddingsListModels.js +5 -5
  29. package/esm/funcs/endpointsList.js +4 -4
  30. package/esm/funcs/endpointsListZdrEndpoints.js +4 -4
  31. package/esm/funcs/filesDelete.js +5 -5
  32. package/esm/funcs/filesDownload.js +4 -4
  33. package/esm/funcs/filesList.js +4 -4
  34. package/esm/funcs/filesRetrieve.js +5 -5
  35. package/esm/funcs/filesUpload.js +5 -5
  36. package/esm/funcs/generationsGetGeneration.js +5 -5
  37. package/esm/funcs/generationsListGenerationContent.js +5 -5
  38. package/esm/funcs/generationsSubmitFeedback.js +5 -5
  39. package/esm/funcs/guardrailsBulkAssignKeys.js +5 -5
  40. package/esm/funcs/guardrailsBulkAssignMembers.js +5 -5
  41. package/esm/funcs/guardrailsBulkUnassignKeys.js +5 -5
  42. package/esm/funcs/guardrailsBulkUnassignMembers.js +5 -5
  43. package/esm/funcs/guardrailsCreate.js +5 -5
  44. package/esm/funcs/guardrailsDelete.js +5 -5
  45. package/esm/funcs/guardrailsGet.js +5 -5
  46. package/esm/funcs/guardrailsList.js +5 -5
  47. package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +5 -5
  48. package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +4 -4
  49. package/esm/funcs/guardrailsListKeyAssignments.js +5 -5
  50. package/esm/funcs/guardrailsListMemberAssignments.js +5 -5
  51. package/esm/funcs/guardrailsUpdate.js +5 -5
  52. package/esm/funcs/imagesGenerate.js +4 -4
  53. package/esm/funcs/imagesListModelEndpoints.js +5 -5
  54. package/esm/funcs/imagesListModels.js +5 -5
  55. package/esm/funcs/internsChat.js +8 -8
  56. package/esm/funcs/internsCreateIntern.js +5 -5
  57. package/esm/funcs/internsDeleteIntern.js +5 -5
  58. package/esm/funcs/internsGetIntern.js +5 -5
  59. package/esm/funcs/internsInvoke.js +7 -7
  60. package/esm/funcs/internsListInterns.js +5 -5
  61. package/esm/funcs/internsProvisionIntern.js +5 -5
  62. package/esm/funcs/internsSuspendIntern.js +5 -5
  63. package/esm/funcs/internsUpdateIntern.js +5 -5
  64. package/esm/funcs/modelsCount.js +5 -5
  65. package/esm/funcs/modelsGet.js +5 -5
  66. package/esm/funcs/modelsList.js +4 -4
  67. package/esm/funcs/modelsListForUser.js +5 -5
  68. package/esm/funcs/oAuthCreateAuthCode.js +4 -4
  69. package/esm/funcs/oAuthCreateOauthToken.js +5 -5
  70. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +4 -4
  71. package/esm/funcs/oAuthListOauthJwks.js +5 -5
  72. package/esm/funcs/observabilityCreate.js +5 -5
  73. package/esm/funcs/observabilityDelete.js +5 -5
  74. package/esm/funcs/observabilityGet.js +5 -5
  75. package/esm/funcs/observabilityList.js +4 -4
  76. package/esm/funcs/observabilityUpdate.js +5 -5
  77. package/esm/funcs/organizationListMembers.js +5 -5
  78. package/esm/funcs/presetsCreatePresetsChatCompletions.js +5 -5
  79. package/esm/funcs/presetsCreatePresetsMessages.js +5 -5
  80. package/esm/funcs/presetsCreatePresetsResponses.js +5 -5
  81. package/esm/funcs/presetsGet.js +5 -5
  82. package/esm/funcs/presetsGetVersion.js +5 -5
  83. package/esm/funcs/presetsList.js +5 -5
  84. package/esm/funcs/presetsListVersions.js +5 -5
  85. package/esm/funcs/providersList.js +4 -4
  86. package/esm/funcs/rerankRerank.js +5 -5
  87. package/esm/funcs/responsesSend.js +4 -4
  88. package/esm/funcs/scimCreate.js +5 -5
  89. package/esm/funcs/scimCreateSyncJob.js +5 -5
  90. package/esm/funcs/scimDelete.js +5 -5
  91. package/esm/funcs/scimGetSyncJob.js +5 -5
  92. package/esm/funcs/scimListGroups.js +5 -5
  93. package/esm/funcs/scimListMappings.js +5 -5
  94. package/esm/funcs/scimRead.js +5 -5
  95. package/esm/funcs/scimUpdate.js +5 -5
  96. package/esm/funcs/sttCreateTranscription.js +5 -5
  97. package/esm/funcs/sttCreateTranscriptionMultipart.js +5 -5
  98. package/esm/funcs/systemOneCreate.js +5 -5
  99. package/esm/funcs/ttsCreateSpeech.js +4 -4
  100. package/esm/funcs/vaultCopyVaultSecretsToIntern.js +5 -5
  101. package/esm/funcs/vaultDeleteInternVaultSecret.js +4 -4
  102. package/esm/funcs/vaultDeleteVaultSecret.js +4 -4
  103. package/esm/funcs/vaultListInternVaultSecrets.js +5 -5
  104. package/esm/funcs/vaultListVaultSecrets.js +5 -5
  105. package/esm/funcs/vaultStoreInternVaultSecret.js +5 -5
  106. package/esm/funcs/vaultStoreVaultSecret.js +5 -5
  107. package/esm/funcs/videoGenerationGenerate.js +5 -5
  108. package/esm/funcs/videoGenerationGetGeneration.js +5 -5
  109. package/esm/funcs/videoGenerationGetVideoContent.js +4 -4
  110. package/esm/funcs/videoGenerationListVideosModels.js +5 -5
  111. package/esm/funcs/workspacesBulkAddMembers.js +5 -5
  112. package/esm/funcs/workspacesBulkRemoveMembers.js +5 -5
  113. package/esm/funcs/workspacesCreate.js +5 -5
  114. package/esm/funcs/workspacesDelete.js +5 -5
  115. package/esm/funcs/workspacesDeleteBudget.js +5 -5
  116. package/esm/funcs/workspacesGet.js +5 -5
  117. package/esm/funcs/workspacesGetBudget.js +5 -5
  118. package/esm/funcs/workspacesList.js +5 -5
  119. package/esm/funcs/workspacesListBudgets.js +5 -5
  120. package/esm/funcs/workspacesListMembers.js +5 -5
  121. package/esm/funcs/workspacesSetBudget.js +5 -5
  122. package/esm/funcs/workspacesUpdate.js +5 -5
  123. package/esm/lib/anthropic-compat.d.ts +2 -2
  124. package/esm/lib/async-params.d.ts +4 -4
  125. package/esm/lib/chat-compat.d.ts +3 -2
  126. package/esm/lib/config.d.ts +2 -2
  127. package/esm/lib/config.js +2 -2
  128. package/esm/lib/conversation-state.d.ts +7 -5
  129. package/esm/lib/model-result.d.ts +7 -4
  130. package/esm/lib/next-turn-params.d.ts +4 -4
  131. package/esm/lib/stream-transformers.d.ts +26 -17
  132. package/esm/lib/stream-type-guards.d.ts +41 -21
  133. package/esm/lib/tool-orchestrator.d.ts +7 -5
  134. package/esm/lib/tool-types.d.ts +14 -10
  135. package/esm/lib/turn-context.d.ts +6 -4
  136. package/esm/lib/turn-context.js +2 -2
  137. package/esm/models/customtoolcallitem.d.ts +8 -8
  138. package/esm/models/customtoolcallitem.js +4 -4
  139. package/esm/models/errors/badgatewayresponseerror.js +2 -2
  140. package/esm/models/errors/badrequestresponseerror.js +2 -2
  141. package/esm/models/errors/conflictresponseerror.js +2 -2
  142. package/esm/models/errors/edgenetworktimeoutresponseerror.js +2 -2
  143. package/esm/models/errors/forbiddenresponseerror.js +2 -2
  144. package/esm/models/errors/gatewaytimeoutresponseerror.js +2 -2
  145. package/esm/models/errors/goneresponseerror.js +2 -2
  146. package/esm/models/errors/internalserverresponseerror.js +2 -2
  147. package/esm/models/errors/internchaterrorresponse.js +2 -2
  148. package/esm/models/errors/internlifecycleerror.js +2 -2
  149. package/esm/models/errors/notfoundresponseerror.js +2 -2
  150. package/esm/models/errors/oautherrorresponse.js +2 -2
  151. package/esm/models/errors/payloadtoolargeresponseerror.js +2 -2
  152. package/esm/models/errors/paymentrequiredresponseerror.js +2 -2
  153. package/esm/models/errors/provideroverloadedresponseerror.js +2 -2
  154. package/esm/models/errors/requesttimeoutresponseerror.js +2 -2
  155. package/esm/models/errors/serviceunavailableresponseerror.js +2 -2
  156. package/esm/models/errors/toomanyrequestsresponseerror.js +2 -2
  157. package/esm/models/errors/unauthorizedresponseerror.js +2 -2
  158. package/esm/models/errors/unprocessableentityresponseerror.js +2 -2
  159. package/esm/models/functioncallitem.d.ts +12 -12
  160. package/esm/models/functioncallitem.js +6 -6
  161. package/esm/models/inputsunion.d.ts +4 -6
  162. package/esm/models/inputsunion.js +2 -8
  163. package/esm/models/operations/bulkaddworkspacemembers.js +2 -2
  164. package/esm/models/operations/bulkassignkeystoguardrail.js +2 -2
  165. package/esm/models/operations/bulkassignmemberstoguardrail.js +2 -2
  166. package/esm/models/operations/bulkremoveworkspacemembers.js +2 -2
  167. package/esm/models/operations/bulkunassignkeysfromguardrail.js +2 -2
  168. package/esm/models/operations/bulkunassignmembersfromguardrail.js +2 -2
  169. package/esm/models/operations/copyvaultsecretstointern.js +2 -2
  170. package/esm/models/operations/createapialphadecisions.js +2 -2
  171. package/esm/models/operations/createaudiospeech.js +2 -2
  172. package/esm/models/operations/createaudiotranscriptions.js +2 -2
  173. package/esm/models/operations/createbyokkey.js +2 -2
  174. package/esm/models/operations/createembeddings.js +10 -10
  175. package/esm/models/operations/createguardrail.js +2 -2
  176. package/esm/models/operations/createimages.js +4 -4
  177. package/esm/models/operations/createintern.js +2 -2
  178. package/esm/models/operations/createinternchatcompletion.js +6 -6
  179. package/esm/models/operations/createoauthtoken.js +2 -2
  180. package/esm/models/operations/createobservabilitydestination.js +2 -2
  181. package/esm/models/operations/createpresetschatcompletions.js +2 -2
  182. package/esm/models/operations/createpresetsmessages.js +2 -2
  183. package/esm/models/operations/createpresetsresponses.js +2 -2
  184. package/esm/models/operations/creatererank.js +3 -3
  185. package/esm/models/operations/createresponses.js +5 -5
  186. package/esm/models/operations/createscimgroupmapping.js +2 -2
  187. package/esm/models/operations/createscimsyncjob.js +2 -2
  188. package/esm/models/operations/createsystemone.js +2 -2
  189. package/esm/models/operations/createvideos.js +2 -2
  190. package/esm/models/operations/createworkspace.js +2 -2
  191. package/esm/models/operations/deletefile.js +2 -2
  192. package/esm/models/operations/deleteintern.js +2 -2
  193. package/esm/models/operations/deleteworkspacebudget.js +2 -2
  194. package/esm/models/operations/downloadfilecontent.js +2 -2
  195. package/esm/models/operations/getapprankings.js +2 -2
  196. package/esm/models/operations/getcurrentkey.js +2 -2
  197. package/esm/models/operations/getfilemetadata.js +2 -2
  198. package/esm/models/operations/getmodels.js +2 -2
  199. package/esm/models/operations/getsessioncost.js +2 -2
  200. package/esm/models/operations/getworkspacebudget.js +2 -2
  201. package/esm/models/operations/invokeintern.js +3 -3
  202. package/esm/models/operations/listbyokkeys.js +2 -2
  203. package/esm/models/operations/listembeddingsmodels.js +2 -2
  204. package/esm/models/operations/listendpoints.js +2 -2
  205. package/esm/models/operations/listendpointszdr.js +2 -2
  206. package/esm/models/operations/listfiles.js +3 -3
  207. package/esm/models/operations/listguardrailkeyassignments.js +2 -2
  208. package/esm/models/operations/listguardrailmemberassignments.js +2 -2
  209. package/esm/models/operations/listguardrails.js +2 -2
  210. package/esm/models/operations/listkeyassignments.js +2 -2
  211. package/esm/models/operations/listmemberassignments.js +2 -2
  212. package/esm/models/operations/listmodelsuser.js +2 -2
  213. package/esm/models/operations/listobservabilitydestinations.js +2 -2
  214. package/esm/models/operations/listpresets.js +2 -2
  215. package/esm/models/operations/listpresetversions.js +2 -2
  216. package/esm/models/operations/listscimgroupmappings.js +2 -2
  217. package/esm/models/operations/listscimgroups.js +2 -2
  218. package/esm/models/operations/listworkspacemembers.js +2 -2
  219. package/esm/models/operations/listworkspaces.js +2 -2
  220. package/esm/models/operations/sendchatcompletionrequest.js +5 -5
  221. package/esm/models/operations/storeinternvaultsecret.js +2 -2
  222. package/esm/models/operations/storevaultsecret.js +2 -2
  223. package/esm/models/operations/submitgenerationfeedback.js +2 -2
  224. package/esm/models/operations/updatebyokkey.js +2 -2
  225. package/esm/models/operations/updateguardrail.js +2 -2
  226. package/esm/models/operations/updateintern.js +2 -2
  227. package/esm/models/operations/updateobservabilitydestination.js +2 -2
  228. package/esm/models/operations/updatescimgroupmapping.js +2 -2
  229. package/esm/models/operations/updateworkspace.js +2 -2
  230. package/esm/models/operations/uploadfile.js +2 -2
  231. package/esm/models/operations/upsertworkspacebudget.js +3 -3
  232. package/esm/models/outputcustomtoolcallitem.d.ts +2 -26
  233. package/esm/models/outputcustomtoolcallitem.js +1 -28
  234. package/esm/models/outputfunctioncallitem.d.ts +1 -44
  235. package/esm/models/outputfunctioncallitem.js +1 -64
  236. package/esm/models/outputitems.d.ts +2 -6
  237. package/esm/models/outputitems.js +2 -2
  238. package/jsr.json +1 -1
  239. package/package.json +11 -9
  240. package/scripts/unbarrel-imports.js +296 -0
@@ -12,30 +12,30 @@ export type CustomToolCallItem = {
12
12
  /**
13
13
  * True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.
14
14
  */
15
- async?: boolean | undefined;
15
+ async?: boolean | null | undefined;
16
16
  callId: string;
17
- id?: string | undefined;
17
+ id?: string | null | undefined;
18
18
  input: string;
19
19
  name: string;
20
20
  /**
21
21
  * Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
22
22
  */
23
- namespace?: string | undefined;
23
+ namespace?: string | null | undefined;
24
+ status?: ToolCallStatus | null | undefined;
24
25
  type: CustomToolCallItemType;
25
- status?: ToolCallStatus | undefined;
26
26
  };
27
27
  /** @internal */
28
28
  export declare const CustomToolCallItemType$outboundSchema: z.ZodEnum<typeof CustomToolCallItemType>;
29
29
  /** @internal */
30
30
  export type CustomToolCallItem$Outbound = {
31
- async?: boolean | undefined;
31
+ async?: boolean | null | undefined;
32
32
  call_id: string;
33
- id?: string | undefined;
33
+ id?: string | null | undefined;
34
34
  input: string;
35
35
  name: string;
36
- namespace?: string | undefined;
36
+ namespace?: string | null | undefined;
37
+ status?: string | null | undefined;
37
38
  type: string;
38
- status?: string | undefined;
39
39
  };
40
40
  /** @internal */
41
41
  export declare const CustomToolCallItem$outboundSchema: z.ZodType<CustomToolCallItem$Outbound, CustomToolCallItem>;
@@ -12,14 +12,14 @@ export const CustomToolCallItemType = {
12
12
  export const CustomToolCallItemType$outboundSchema = z.enum(CustomToolCallItemType);
13
13
  /** @internal */
14
14
  export const CustomToolCallItem$outboundSchema = z.object({
15
- async: z.boolean().optional(),
15
+ async: z.nullable(z.boolean()).optional(),
16
16
  callId: z.string(),
17
- id: z.string().optional(),
17
+ id: z.nullable(z.string()).optional(),
18
18
  input: z.string(),
19
19
  name: z.string(),
20
- namespace: z.string().optional(),
20
+ namespace: z.nullable(z.string()).optional(),
21
+ status: z.nullable(ToolCallStatus$outboundSchema).optional(),
21
22
  type: CustomToolCallItemType$outboundSchema,
22
- status: ToolCallStatus$outboundSchema.optional(),
23
23
  }).transform((v) => {
24
24
  return remap$(v, {
25
25
  callId: "call_id",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { BadGatewayResponseErrorData$inboundSchema as models_BadGatewayResponseErrorData$inboundSchema } from "../badgatewayresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Bad Gateway - Provider/upstream API failure
@@ -26,7 +26,7 @@ export class BadGatewayResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const BadGatewayResponseError$inboundSchema = z.object({
29
- error: models.BadGatewayResponseErrorData$inboundSchema,
29
+ error: models_BadGatewayResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { BadRequestResponseErrorData$inboundSchema as models_BadRequestResponseErrorData$inboundSchema } from "../badrequestresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Bad Request - Invalid request parameters or malformed input
@@ -26,7 +26,7 @@ export class BadRequestResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const BadRequestResponseError$inboundSchema = z.object({
29
- error: models.BadRequestResponseErrorData$inboundSchema,
29
+ error: models_BadRequestResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ConflictResponseErrorData$inboundSchema as models_ConflictResponseErrorData$inboundSchema } from "../conflictresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Conflict - Resource conflict or concurrent modification
@@ -26,7 +26,7 @@ export class ConflictResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const ConflictResponseError$inboundSchema = z.object({
29
- error: models.ConflictResponseErrorData$inboundSchema,
29
+ error: models_ConflictResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { EdgeNetworkTimeoutResponseErrorData$inboundSchema as models_EdgeNetworkTimeoutResponseErrorData$inboundSchema } from "../edgenetworktimeoutresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Infrastructure Timeout - Provider request timed out at edge network
@@ -26,7 +26,7 @@ export class EdgeNetworkTimeoutResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const EdgeNetworkTimeoutResponseError$inboundSchema = z.object({
29
- error: models.EdgeNetworkTimeoutResponseErrorData$inboundSchema,
29
+ error: models_EdgeNetworkTimeoutResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ForbiddenResponseErrorData$inboundSchema as models_ForbiddenResponseErrorData$inboundSchema } from "../forbiddenresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Forbidden - Authentication successful but insufficient permissions
@@ -26,7 +26,7 @@ export class ForbiddenResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const ForbiddenResponseError$inboundSchema = z.object({
29
- error: models.ForbiddenResponseErrorData$inboundSchema,
29
+ error: models_ForbiddenResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { GatewayTimeoutResponseErrorData$inboundSchema as models_GatewayTimeoutResponseErrorData$inboundSchema } from "../gatewaytimeoutresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Gateway Timeout - Provider did not respond before the upstream deadline
@@ -26,7 +26,7 @@ export class GatewayTimeoutResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const GatewayTimeoutResponseError$inboundSchema = z.object({
29
- error: models.GatewayTimeoutResponseErrorData$inboundSchema,
29
+ error: models_GatewayTimeoutResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { GoneResponseErrorData$inboundSchema as models_GoneResponseErrorData$inboundSchema } from "../goneresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Gone - Endpoint has been permanently removed or deprecated
@@ -26,7 +26,7 @@ export class GoneResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const GoneResponseError$inboundSchema = z.object({
29
- error: models.GoneResponseErrorData$inboundSchema,
29
+ error: models_GoneResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { InternalServerResponseErrorData$inboundSchema as models_InternalServerResponseErrorData$inboundSchema } from "../internalserverresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Internal Server Error - Unexpected server error
@@ -26,7 +26,7 @@ export class InternalServerResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const InternalServerResponseError$inboundSchema = z.object({
29
- error: models.InternalServerResponseErrorData$inboundSchema,
29
+ error: models_InternalServerResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -3,7 +3,7 @@
3
3
  * @generated-id: bb73eae2fe73
4
4
  */
5
5
  import * as z from "zod/v4";
6
- import * as models from "../index.js";
6
+ import { InternChatError$inboundSchema as models_InternChatError$inboundSchema } from "../internchaterror.js";
7
7
  import { OpenRouterError } from "./openroutererror.js";
8
8
  /**
9
9
  * A refusal before the stream opens. Once the response is `200` and streaming, failures arrive as a chunk with `finish_reason: "error"` instead.
@@ -20,7 +20,7 @@ export class InternChatErrorResponse extends OpenRouterError {
20
20
  }
21
21
  /** @internal */
22
22
  export const InternChatErrorResponse$inboundSchema = z.object({
23
- error: models.InternChatError$inboundSchema,
23
+ error: models_InternChatError$inboundSchema,
24
24
  request$: z.custom(x => x instanceof Request),
25
25
  response$: z.custom(x => x instanceof Response),
26
26
  body$: z.string(),
@@ -3,7 +3,7 @@
3
3
  * @generated-id: 31cfc72977f7
4
4
  */
5
5
  import * as z from "zod/v4";
6
- import * as models from "../index.js";
6
+ import { InternLifecycleErrorError$inboundSchema as models_InternLifecycleErrorError$inboundSchema } from "../internlifecycleerror.js";
7
7
  import { OpenRouterError } from "./openroutererror.js";
8
8
  /**
9
9
  * Intern lifecycle request failure.
@@ -20,7 +20,7 @@ export class InternLifecycleError extends OpenRouterError {
20
20
  }
21
21
  /** @internal */
22
22
  export const InternLifecycleError$inboundSchema = z.object({
23
- error: z.lazy(() => models.InternLifecycleErrorError$inboundSchema),
23
+ error: z.lazy(() => models_InternLifecycleErrorError$inboundSchema),
24
24
  request$: z.custom(x => x instanceof Request),
25
25
  response$: z.custom(x => x instanceof Response),
26
26
  body$: z.string(),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { NotFoundResponseErrorData$inboundSchema as models_NotFoundResponseErrorData$inboundSchema } from "../notfoundresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Not Found - Resource does not exist
@@ -26,7 +26,7 @@ export class NotFoundResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const NotFoundResponseError$inboundSchema = z.object({
29
- error: models.NotFoundResponseErrorData$inboundSchema,
29
+ error: models_NotFoundResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ErrorEnum$inboundSchema as models_ErrorEnum$inboundSchema } from "../oautherrorresponse.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * RFC 6749 §5.2 error response.
@@ -23,7 +23,7 @@ export class OAuthErrorResponse extends OpenRouterError {
23
23
  }
24
24
  /** @internal */
25
25
  export const OAuthErrorResponse$inboundSchema = z.object({
26
- error: models.ErrorEnum$inboundSchema,
26
+ error: models_ErrorEnum$inboundSchema,
27
27
  error_description: z.string(),
28
28
  request$: z.custom(x => x instanceof Request),
29
29
  response$: z.custom(x => x instanceof Response),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { PayloadTooLargeResponseErrorData$inboundSchema as models_PayloadTooLargeResponseErrorData$inboundSchema } from "../payloadtoolargeresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Payload Too Large - Request payload exceeds size limits
@@ -26,7 +26,7 @@ export class PayloadTooLargeResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const PayloadTooLargeResponseError$inboundSchema = z.object({
29
- error: models.PayloadTooLargeResponseErrorData$inboundSchema,
29
+ error: models_PayloadTooLargeResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { PaymentRequiredResponseErrorData$inboundSchema as models_PaymentRequiredResponseErrorData$inboundSchema } from "../paymentrequiredresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Payment Required - Insufficient credits or quota to complete request
@@ -26,7 +26,7 @@ export class PaymentRequiredResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const PaymentRequiredResponseError$inboundSchema = z.object({
29
- error: models.PaymentRequiredResponseErrorData$inboundSchema,
29
+ error: models_PaymentRequiredResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ProviderOverloadedResponseErrorData$inboundSchema as models_ProviderOverloadedResponseErrorData$inboundSchema } from "../provideroverloadedresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Provider Overloaded - Provider is temporarily overloaded
@@ -26,7 +26,7 @@ export class ProviderOverloadedResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const ProviderOverloadedResponseError$inboundSchema = z.object({
29
- error: models.ProviderOverloadedResponseErrorData$inboundSchema,
29
+ error: models_ProviderOverloadedResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { RequestTimeoutResponseErrorData$inboundSchema as models_RequestTimeoutResponseErrorData$inboundSchema } from "../requesttimeoutresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Request Timeout - Operation exceeded time limit
@@ -26,7 +26,7 @@ export class RequestTimeoutResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const RequestTimeoutResponseError$inboundSchema = z.object({
29
- error: models.RequestTimeoutResponseErrorData$inboundSchema,
29
+ error: models_RequestTimeoutResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { ServiceUnavailableResponseErrorData$inboundSchema as models_ServiceUnavailableResponseErrorData$inboundSchema } from "../serviceunavailableresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Service Unavailable - Service temporarily unavailable
@@ -26,7 +26,7 @@ export class ServiceUnavailableResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const ServiceUnavailableResponseError$inboundSchema = z.object({
29
- error: models.ServiceUnavailableResponseErrorData$inboundSchema,
29
+ error: models_ServiceUnavailableResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { TooManyRequestsResponseErrorData$inboundSchema as models_TooManyRequestsResponseErrorData$inboundSchema } from "../toomanyrequestsresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Too Many Requests - Rate limit exceeded
@@ -26,7 +26,7 @@ export class TooManyRequestsResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const TooManyRequestsResponseError$inboundSchema = z.object({
29
- error: models.TooManyRequestsResponseErrorData$inboundSchema,
29
+ error: models_TooManyRequestsResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { UnauthorizedResponseErrorData$inboundSchema as models_UnauthorizedResponseErrorData$inboundSchema } from "../unauthorizedresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Unauthorized - Authentication required or invalid credentials
@@ -26,7 +26,7 @@ export class UnauthorizedResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const UnauthorizedResponseError$inboundSchema = z.object({
29
- error: models.UnauthorizedResponseErrorData$inboundSchema,
29
+ error: models_UnauthorizedResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as models from "../index.js";
7
+ import { UnprocessableEntityResponseErrorData$inboundSchema as models_UnprocessableEntityResponseErrorData$inboundSchema } from "../unprocessableentityresponseerrordata.js";
8
8
  import { OpenRouterError } from "./openroutererror.js";
9
9
  /**
10
10
  * Unprocessable Entity - Semantic validation failure
@@ -26,7 +26,7 @@ export class UnprocessableEntityResponseError extends OpenRouterError {
26
26
  }
27
27
  /** @internal */
28
28
  export const UnprocessableEntityResponseError$inboundSchema = z.object({
29
- error: models.UnprocessableEntityResponseErrorData$inboundSchema,
29
+ error: models_UnprocessableEntityResponseErrorData$inboundSchema,
30
30
  openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
31
31
  user_id: z.nullable(z.string()).optional(),
32
32
  request$: z.custom(x => x instanceof Request),
@@ -19,23 +19,23 @@ export type FunctionCallItem = {
19
19
  /**
20
20
  * True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.
21
21
  */
22
- async?: boolean | undefined;
22
+ async?: boolean | null | undefined;
23
23
  callId: string;
24
- id: string;
24
+ id?: string | null | undefined;
25
25
  name: string;
26
26
  /**
27
27
  * Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
28
28
  */
29
- namespace?: string | undefined;
30
- status?: ToolCallStatus | undefined;
29
+ namespace?: string | null | undefined;
30
+ status?: ToolCallStatus | null | undefined;
31
31
  /**
32
32
  * EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls.
33
33
  */
34
- subagentId?: string | undefined;
34
+ subagentId?: string | null | undefined;
35
35
  /**
36
36
  * EXPERIMENTAL — subject to change without notice. The subagent's output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool.
37
37
  */
38
- subagentItems?: Array<FunctionCallItemSubagentItem> | undefined;
38
+ subagentItems?: Array<FunctionCallItemSubagentItem> | null | undefined;
39
39
  type: FunctionCallItemType;
40
40
  };
41
41
  /** @internal */
@@ -51,14 +51,14 @@ export declare const FunctionCallItemType$outboundSchema: z.ZodEnum<typeof Funct
51
51
  /** @internal */
52
52
  export type FunctionCallItem$Outbound = {
53
53
  arguments: string;
54
- async?: boolean | undefined;
54
+ async?: boolean | null | undefined;
55
55
  call_id: string;
56
- id: string;
56
+ id?: string | null | undefined;
57
57
  name: string;
58
- namespace?: string | undefined;
59
- status?: string | undefined;
60
- subagent_id?: string | undefined;
61
- subagent_items?: Array<FunctionCallItemSubagentItem$Outbound> | undefined;
58
+ namespace?: string | null | undefined;
59
+ status?: string | null | undefined;
60
+ subagent_id?: string | null | undefined;
61
+ subagent_items?: Array<FunctionCallItemSubagentItem$Outbound> | null | undefined;
62
62
  type: string;
63
63
  };
64
64
  /** @internal */
@@ -28,14 +28,14 @@ export const FunctionCallItemType$outboundSchema = z.enum(FunctionCallItemType);
28
28
  /** @internal */
29
29
  export const FunctionCallItem$outboundSchema = z.object({
30
30
  arguments: z.string(),
31
- async: z.boolean().optional(),
31
+ async: z.nullable(z.boolean()).optional(),
32
32
  callId: z.string(),
33
- id: z.string(),
33
+ id: z.nullable(z.string()).optional(),
34
34
  name: z.string(),
35
- namespace: z.string().optional(),
36
- status: ToolCallStatus$outboundSchema.optional(),
37
- subagentId: z.string().optional(),
38
- subagentItems: z.array(z.lazy(() => FunctionCallItemSubagentItem$outboundSchema)).optional(),
35
+ namespace: z.nullable(z.string()).optional(),
36
+ status: z.nullable(ToolCallStatus$outboundSchema).optional(),
37
+ subagentId: z.nullable(z.string()).optional(),
38
+ subagentItems: z.nullable(z.array(z.lazy(() => FunctionCallItemSubagentItem$outboundSchema))).optional(),
39
39
  type: FunctionCallItemType$outboundSchema,
40
40
  }).transform((v) => {
41
41
  return remap$(v, {
@@ -28,12 +28,10 @@ import { OutputBrowserUseServerToolItem, OutputBrowserUseServerToolItem$Outbound
28
28
  import { OutputCodeInterpreterCallItem, OutputCodeInterpreterCallItem$Outbound } from "./outputcodeinterpretercallitem.js";
29
29
  import { OutputCodeInterpreterServerToolItem, OutputCodeInterpreterServerToolItem$Outbound } from "./outputcodeinterpreterservertoolitem.js";
30
30
  import { OutputComputerCallItem, OutputComputerCallItem$Outbound } from "./outputcomputercallitem.js";
31
- import { OutputCustomToolCallItem, OutputCustomToolCallItem$Outbound } from "./outputcustomtoolcallitem.js";
32
31
  import { OutputDatetimeItem, OutputDatetimeItem$Outbound } from "./outputdatetimeitem.js";
33
32
  import { OutputFileSearchCallItem, OutputFileSearchCallItem$Outbound } from "./outputfilesearchcallitem.js";
34
33
  import { OutputFileSearchServerToolItem, OutputFileSearchServerToolItem$Outbound } from "./outputfilesearchservertoolitem.js";
35
34
  import { OutputFilesServerToolItem, OutputFilesServerToolItem$Outbound } from "./outputfilesservertoolitem.js";
36
- import { OutputFunctionCallItem, OutputFunctionCallItem$Outbound } from "./outputfunctioncallitem.js";
37
35
  import { OutputFusionServerToolItem, OutputFusionServerToolItem$Outbound } from "./outputfusionservertoolitem.js";
38
36
  import { OutputImageGenerationCallItem, OutputImageGenerationCallItem$Outbound } from "./outputimagegenerationcallitem.js";
39
37
  import { OutputImageGenerationServerToolItem, OutputImageGenerationServerToolItem$Outbound } from "./outputimagegenerationservertoolitem.js";
@@ -136,11 +134,11 @@ export type InputsMessage = {
136
134
  status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
137
135
  type?: InputsTypeMessage | undefined;
138
136
  };
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;
137
+ export type InputsUnion1 = LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | 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;
140
138
  /**
141
139
  * Input for a response request - can be a string or array of items
142
140
  */
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>;
141
+ export type InputsUnion = string | Array<LocalShellCallItem | McpApprovalRequestItem | McpCallItem | FunctionCallItem | ApplyPatchCallItem | 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>;
144
142
  /** @internal */
145
143
  export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
146
144
  /** @internal */
@@ -215,12 +213,12 @@ export type InputsMessage$Outbound = {
215
213
  export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
216
214
  export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
217
215
  /** @internal */
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;
216
+ export type InputsUnion1$Outbound = LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$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;
219
217
  /** @internal */
220
218
  export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
221
219
  export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
222
220
  /** @internal */
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>;
221
+ export type InputsUnion$Outbound = string | Array<LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | FunctionCallItem$Outbound | ApplyPatchCallItem$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>;
224
222
  /** @internal */
225
223
  export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
226
224
  export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
@@ -32,12 +32,10 @@ import { OutputBrowserUseServerToolItem$outboundSchema, } from "./outputbrowseru
32
32
  import { OutputCodeInterpreterCallItem$outboundSchema, } from "./outputcodeinterpretercallitem.js";
33
33
  import { OutputCodeInterpreterServerToolItem$outboundSchema, } from "./outputcodeinterpreterservertoolitem.js";
34
34
  import { OutputComputerCallItem$outboundSchema, } from "./outputcomputercallitem.js";
35
- import { OutputCustomToolCallItem$outboundSchema, } from "./outputcustomtoolcallitem.js";
36
35
  import { OutputDatetimeItem$outboundSchema, } from "./outputdatetimeitem.js";
37
36
  import { OutputFileSearchCallItem$outboundSchema, } from "./outputfilesearchcallitem.js";
38
37
  import { OutputFileSearchServerToolItem$outboundSchema, } from "./outputfilesearchservertoolitem.js";
39
38
  import { OutputFilesServerToolItem$outboundSchema, } from "./outputfilesservertoolitem.js";
40
- import { OutputFunctionCallItem$outboundSchema, } from "./outputfunctioncallitem.js";
41
39
  import { OutputFusionServerToolItem$outboundSchema, } from "./outputfusionservertoolitem.js";
42
40
  import { OutputImageGenerationCallItem$outboundSchema, } from "./outputimagegenerationcallitem.js";
43
41
  import { OutputImageGenerationServerToolItem$outboundSchema, } from "./outputimagegenerationservertoolitem.js";
@@ -207,13 +205,11 @@ export function inputsMessageToJSON(inputsMessage) {
207
205
  }
208
206
  /** @internal */
209
207
  export const InputsUnion1$outboundSchema = z.union([
210
- FunctionCallItem$outboundSchema,
211
208
  LocalShellCallItem$outboundSchema,
212
209
  McpApprovalRequestItem$outboundSchema,
213
210
  McpCallItem$outboundSchema,
211
+ FunctionCallItem$outboundSchema,
214
212
  ApplyPatchCallItem$outboundSchema,
215
- OutputFunctionCallItem$outboundSchema,
216
- OutputCustomToolCallItem$outboundSchema,
217
213
  OutputFileSearchCallItem$outboundSchema,
218
214
  OutputComputerCallItem$outboundSchema,
219
215
  OutputDatetimeItem$outboundSchema,
@@ -266,13 +262,11 @@ export function inputsUnion1ToJSON(inputsUnion1) {
266
262
  export const InputsUnion$outboundSchema = z.union([
267
263
  z.string(),
268
264
  z.array(z.union([
269
- FunctionCallItem$outboundSchema,
270
265
  LocalShellCallItem$outboundSchema,
271
266
  McpApprovalRequestItem$outboundSchema,
272
267
  McpCallItem$outboundSchema,
268
+ FunctionCallItem$outboundSchema,
273
269
  ApplyPatchCallItem$outboundSchema,
274
- OutputFunctionCallItem$outboundSchema,
275
- OutputCustomToolCallItem$outboundSchema,
276
270
  OutputFileSearchCallItem$outboundSchema,
277
271
  OutputComputerCallItem$outboundSchema,
278
272
  OutputDatetimeItem$outboundSchema,