@openrouter/sdk 0.13.58 → 0.13.60

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 (232) hide show
  1. package/esm/funcs/betaResponsesSend.d.ts +2 -4
  2. package/esm/funcs/byokList.js +1 -2
  3. package/esm/funcs/chatSend.d.ts +2 -4
  4. package/esm/funcs/datasetsGetAppRankings.js +1 -2
  5. package/esm/funcs/embeddingsListModels.js +1 -2
  6. package/esm/funcs/filesList.js +2 -3
  7. package/esm/funcs/guardrailsList.js +1 -2
  8. package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +1 -2
  9. package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +1 -2
  10. package/esm/funcs/guardrailsListKeyAssignments.js +1 -2
  11. package/esm/funcs/guardrailsListMemberAssignments.js +1 -2
  12. package/esm/funcs/imagesGenerate.d.ts +2 -4
  13. package/esm/funcs/modelsList.js +1 -2
  14. package/esm/funcs/modelsListForUser.js +1 -2
  15. package/esm/funcs/observabilityList.js +1 -2
  16. package/esm/funcs/organizationListMembers.js +1 -2
  17. package/esm/funcs/presetsList.js +1 -2
  18. package/esm/funcs/presetsListVersions.js +1 -2
  19. package/esm/funcs/workspacesList.js +1 -2
  20. package/esm/funcs/workspacesListMembers.js +1 -2
  21. package/esm/hooks/types.d.ts +1 -0
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/lib/encodings.js +1 -1
  25. package/esm/lib/env.js +3 -3
  26. package/esm/lib/event-streams.d.ts +7 -2
  27. package/esm/lib/event-streams.js +30 -14
  28. package/esm/lib/matchers.js +1 -1
  29. package/esm/lib/primitives.d.ts +1 -0
  30. package/esm/lib/primitives.js +17 -0
  31. package/esm/lib/retries.js +7 -0
  32. package/esm/lib/sdks.js +50 -16
  33. package/esm/models/additionaltoolsitem.d.ts +7 -7
  34. package/esm/models/additionaltoolsitem.js +5 -5
  35. package/esm/models/advisornestedtool.d.ts +3 -3
  36. package/esm/models/advisornestedtool.js +2 -2
  37. package/esm/models/agentmessageitem.d.ts +3 -3
  38. package/esm/models/agentmessageitem.js +3 -3
  39. package/esm/models/badgatewayresponseerrordata.d.ts +1 -1
  40. package/esm/models/badgatewayresponseerrordata.js +1 -1
  41. package/esm/models/badrequestresponseerrordata.d.ts +1 -1
  42. package/esm/models/badrequestresponseerrordata.js +1 -1
  43. package/esm/models/baseinputsunion.d.ts +3 -3
  44. package/esm/models/baseinputsunion.js +0 -3
  45. package/esm/models/byokproviderslug.d.ts +1 -0
  46. package/esm/models/byokproviderslug.js +1 -0
  47. package/esm/models/chatassistantmessage.d.ts +4 -4
  48. package/esm/models/chatassistantmessage.js +4 -4
  49. package/esm/models/chatfunctiontool.d.ts +2 -2
  50. package/esm/models/chatfunctiontool.js +1 -1
  51. package/esm/models/chatjsonschemaconfig.d.ts +2 -2
  52. package/esm/models/chatjsonschemaconfig.js +1 -1
  53. package/esm/models/chatrequest.d.ts +4 -4
  54. package/esm/models/chatrequest.js +1 -3
  55. package/esm/models/chatstreamingresponse.js +3 -1
  56. package/esm/models/compactionitem.d.ts +1 -1
  57. package/esm/models/compactionitem.js +1 -1
  58. package/esm/models/compoundfilter.d.ts +2 -2
  59. package/esm/models/compoundfilter.js +2 -2
  60. package/esm/models/conflictresponseerrordata.d.ts +1 -1
  61. package/esm/models/conflictresponseerrordata.js +1 -1
  62. package/esm/models/contextcompactionitem.d.ts +1 -1
  63. package/esm/models/contextcompactionitem.js +1 -1
  64. package/esm/models/createobservabilitydestinationrequest.d.ts +2 -2
  65. package/esm/models/createobservabilitydestinationrequest.js +1 -1
  66. package/esm/models/debugevent.d.ts +1 -1
  67. package/esm/models/debugevent.js +1 -1
  68. package/esm/models/easyinputmessage.d.ts +8 -8
  69. package/esm/models/easyinputmessage.js +0 -4
  70. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +1 -1
  71. package/esm/models/edgenetworktimeoutresponseerrordata.js +1 -1
  72. package/esm/models/errors/badgatewayresponseerror.d.ts +2 -2
  73. package/esm/models/errors/badgatewayresponseerror.js +1 -2
  74. package/esm/models/errors/badrequestresponseerror.d.ts +2 -2
  75. package/esm/models/errors/badrequestresponseerror.js +1 -2
  76. package/esm/models/errors/conflictresponseerror.d.ts +2 -2
  77. package/esm/models/errors/conflictresponseerror.js +1 -2
  78. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +2 -2
  79. package/esm/models/errors/edgenetworktimeoutresponseerror.js +1 -2
  80. package/esm/models/errors/forbiddenresponseerror.d.ts +2 -2
  81. package/esm/models/errors/forbiddenresponseerror.js +1 -2
  82. package/esm/models/errors/internalserverresponseerror.d.ts +2 -2
  83. package/esm/models/errors/internalserverresponseerror.js +1 -2
  84. package/esm/models/errors/notfoundresponseerror.d.ts +2 -2
  85. package/esm/models/errors/notfoundresponseerror.js +1 -2
  86. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +2 -2
  87. package/esm/models/errors/payloadtoolargeresponseerror.js +1 -2
  88. package/esm/models/errors/paymentrequiredresponseerror.d.ts +2 -2
  89. package/esm/models/errors/paymentrequiredresponseerror.js +1 -2
  90. package/esm/models/errors/provideroverloadedresponseerror.d.ts +2 -2
  91. package/esm/models/errors/provideroverloadedresponseerror.js +1 -2
  92. package/esm/models/errors/requesttimeoutresponseerror.d.ts +2 -2
  93. package/esm/models/errors/requesttimeoutresponseerror.js +1 -2
  94. package/esm/models/errors/serviceunavailableresponseerror.d.ts +2 -2
  95. package/esm/models/errors/serviceunavailableresponseerror.js +1 -2
  96. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +2 -2
  97. package/esm/models/errors/toomanyrequestsresponseerror.js +1 -2
  98. package/esm/models/errors/unauthorizedresponseerror.d.ts +2 -2
  99. package/esm/models/errors/unauthorizedresponseerror.js +1 -2
  100. package/esm/models/errors/unprocessableentityresponseerror.d.ts +2 -2
  101. package/esm/models/errors/unprocessableentityresponseerror.js +1 -2
  102. package/esm/models/filesearchservertool.d.ts +4 -4
  103. package/esm/models/filesearchservertool.js +1 -8
  104. package/esm/models/forbiddenresponseerrordata.d.ts +1 -1
  105. package/esm/models/forbiddenresponseerrordata.js +1 -1
  106. package/esm/models/formatjsonschemaconfig.d.ts +2 -2
  107. package/esm/models/formatjsonschemaconfig.js +2 -2
  108. package/esm/models/functioncalloutputitem.d.ts +2 -9
  109. package/esm/models/functioncalloutputitem.js +2 -8
  110. package/esm/models/fusionplugin.d.ts +28 -2
  111. package/esm/models/fusionplugin.js +28 -1
  112. package/esm/models/fusionservertoolconfig.d.ts +2 -2
  113. package/esm/models/fusionservertoolconfig.js +1 -1
  114. package/esm/models/generationcontentdata.d.ts +1 -1
  115. package/esm/models/generationcontentdata.js +1 -1
  116. package/esm/models/imageconfig.d.ts +2 -2
  117. package/esm/models/imageconfig.js +1 -1
  118. package/esm/models/imagegenerationproviderpreferences.d.ts +256 -250
  119. package/esm/models/imagegenerationproviderpreferences.js +126 -133
  120. package/esm/models/imagegenerationservertoolconfigunion.d.ts +2 -2
  121. package/esm/models/imagegenerationservertoolconfigunion.js +1 -1
  122. package/esm/models/imagestreamingresponse.js +3 -1
  123. package/esm/models/index.d.ts +0 -2
  124. package/esm/models/index.js +0 -2
  125. package/esm/models/inputsunion.d.ts +8 -8
  126. package/esm/models/inputsunion.js +0 -4
  127. package/esm/models/internalserverresponseerrordata.d.ts +1 -1
  128. package/esm/models/internalserverresponseerrordata.js +1 -1
  129. package/esm/models/listendpointsresponse.d.ts +2 -33
  130. package/esm/models/listendpointsresponse.js +2 -30
  131. package/esm/models/localshellcalloutputitem.d.ts +3 -10
  132. package/esm/models/localshellcalloutputitem.js +2 -9
  133. package/esm/models/mcplisttoolsitem.d.ts +4 -4
  134. package/esm/models/mcplisttoolsitem.js +2 -2
  135. package/esm/models/mcpservertool.d.ts +8 -8
  136. package/esm/models/mcpservertool.js +4 -24
  137. package/esm/models/messagesadvisortoolresultblock.d.ts +2 -2
  138. package/esm/models/messagesadvisortoolresultblock.js +1 -1
  139. package/esm/models/messagesfallbackparam.d.ts +1 -1
  140. package/esm/models/messagesfallbackparam.js +1 -1
  141. package/esm/models/messagesmessageparam.d.ts +4 -4
  142. package/esm/models/messagesmessageparam.js +2 -2
  143. package/esm/models/messagesoutputconfig.d.ts +2 -2
  144. package/esm/models/messagesoutputconfig.js +1 -1
  145. package/esm/models/messagesrequest.d.ts +10 -32
  146. package/esm/models/messagesrequest.js +7 -21
  147. package/esm/models/namespacefunctiontool.d.ts +4 -4
  148. package/esm/models/namespacefunctiontool.js +4 -6
  149. package/esm/models/notfoundresponseerrordata.d.ts +1 -1
  150. package/esm/models/notfoundresponseerrordata.js +1 -1
  151. package/esm/models/openairesponsefunctiontoolcalloutput.d.ts +3 -10
  152. package/esm/models/openairesponsefunctiontoolcalloutput.js +2 -11
  153. package/esm/models/openresponsesresult.d.ts +46 -2
  154. package/esm/models/openresponsesresult.js +69 -3
  155. package/esm/models/operations/listbyokkeys.d.ts +1 -0
  156. package/esm/models/operations/listbyokkeys.js +1 -0
  157. package/esm/models/outputcomputercallitem.d.ts +2 -2
  158. package/esm/models/outputcomputercallitem.js +2 -2
  159. package/esm/models/outputmemoryservertoolitem.d.ts +2 -2
  160. package/esm/models/outputmemoryservertoolitem.js +2 -2
  161. package/esm/models/outputmessage.d.ts +2 -2
  162. package/esm/models/outputmessage.js +0 -2
  163. package/esm/models/outputmessageitem.d.ts +2 -2
  164. package/esm/models/outputmessageitem.js +0 -2
  165. package/esm/models/payloadtoolargeresponseerrordata.d.ts +1 -1
  166. package/esm/models/payloadtoolargeresponseerrordata.js +1 -1
  167. package/esm/models/paymentrequiredresponseerrordata.d.ts +1 -1
  168. package/esm/models/paymentrequiredresponseerrordata.js +1 -1
  169. package/esm/models/pipelinestage.d.ts +1 -1
  170. package/esm/models/pipelinestage.js +1 -1
  171. package/esm/models/preferredmaxlatency.d.ts +2 -2
  172. package/esm/models/preferredmaxlatency.js +1 -1
  173. package/esm/models/preferredminthroughput.d.ts +2 -2
  174. package/esm/models/preferredminthroughput.js +1 -1
  175. package/esm/models/presetdesignatedversion.d.ts +1 -1
  176. package/esm/models/presetdesignatedversion.js +1 -1
  177. package/esm/models/providername.d.ts +2 -1
  178. package/esm/models/providername.js +2 -1
  179. package/esm/models/provideroptions.d.ts +252 -246
  180. package/esm/models/provideroptions.js +124 -123
  181. package/esm/models/provideroverloadedresponseerrordata.d.ts +1 -1
  182. package/esm/models/provideroverloadedresponseerrordata.js +1 -1
  183. package/esm/models/providerpreferences.d.ts +4 -4
  184. package/esm/models/providerpreferences.js +2 -10
  185. package/esm/models/providerresponse.d.ts +2 -1
  186. package/esm/models/providerresponse.js +2 -1
  187. package/esm/models/publicendpoint.d.ts +2 -16
  188. package/esm/models/publicendpoint.js +2 -15
  189. package/esm/models/quantization.d.ts +2 -0
  190. package/esm/models/quantization.js +2 -0
  191. package/esm/models/requesttimeoutresponseerrordata.d.ts +1 -1
  192. package/esm/models/requesttimeoutresponseerrordata.js +1 -1
  193. package/esm/models/responsesrequest.d.ts +37 -5
  194. package/esm/models/responsesrequest.js +24 -4
  195. package/esm/models/responsesstreamingresponse.js +3 -1
  196. package/esm/models/routerparams.d.ts +1 -1
  197. package/esm/models/serviceunavailableresponseerrordata.d.ts +1 -1
  198. package/esm/models/serviceunavailableresponseerrordata.js +1 -1
  199. package/esm/models/shellcallitem.d.ts +5 -12
  200. package/esm/models/shellcallitem.js +3 -10
  201. package/esm/models/shellcalloutputitem.d.ts +4 -11
  202. package/esm/models/shellcalloutputitem.js +3 -10
  203. package/esm/models/subagentnestedtool.d.ts +3 -3
  204. package/esm/models/subagentnestedtool.js +2 -2
  205. package/esm/models/toolchoiceallowed.d.ts +2 -2
  206. package/esm/models/toolchoiceallowed.js +2 -2
  207. package/esm/models/toomanyrequestsresponseerrordata.d.ts +1 -1
  208. package/esm/models/toomanyrequestsresponseerrordata.js +1 -1
  209. package/esm/models/traceconfig.d.ts +1 -1
  210. package/esm/models/traceconfig.js +1 -1
  211. package/esm/models/unauthorizedresponseerrordata.d.ts +1 -1
  212. package/esm/models/unauthorizedresponseerrordata.js +1 -1
  213. package/esm/models/unprocessableentityresponseerrordata.d.ts +1 -1
  214. package/esm/models/unprocessableentityresponseerrordata.js +1 -1
  215. package/esm/models/updateobservabilitydestinationrequest.d.ts +2 -2
  216. package/esm/models/updateobservabilitydestinationrequest.js +1 -1
  217. package/esm/models/videogenerationrequest.d.ts +252 -246
  218. package/esm/models/videogenerationrequest.js +124 -123
  219. package/esm/sdk/chat.d.ts +2 -4
  220. package/esm/sdk/images.d.ts +2 -3
  221. package/esm/sdk/responses.d.ts +2 -4
  222. package/esm/types/async.js +8 -7
  223. package/jsr.json +1 -1
  224. package/package.json +4 -4
  225. package/esm/lib/dlv.d.ts +0 -14
  226. package/esm/lib/dlv.js +0 -47
  227. package/esm/lib/is-plain-object.d.ts +0 -2
  228. package/esm/lib/is-plain-object.js +0 -39
  229. package/esm/models/reasoningconfig.d.ts +0 -35
  230. package/esm/models/reasoningconfig.js +0 -27
  231. package/esm/models/usage.d.ts +0 -52
  232. package/esm/models/usage.js +0 -75
@@ -8,7 +8,7 @@ export type ConflictResponseErrorData = {
8
8
  code: number;
9
9
  message: string;
10
10
  metadata?: {
11
- [k: string]: any | null;
11
+ [k: string]: any;
12
12
  } | null | undefined;
13
13
  };
14
14
  /** @internal */
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
8
8
  export const ConflictResponseErrorData$inboundSchema = z.object({
9
9
  code: z.int(),
10
10
  message: z.string(),
11
- metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
11
+ metadata: z.nullable(z.record(z.string(), z.any())).optional(),
12
12
  });
13
13
  export function conflictResponseErrorDataFromJSON(jsonString) {
14
14
  return safeParse(jsonString, (x) => ConflictResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConflictResponseErrorData' from JSON`);
@@ -12,7 +12,7 @@ export type ContextCompactionItem = {
12
12
  id?: string | null | undefined;
13
13
  type: ContextCompactionItemType;
14
14
  additionalProperties?: {
15
- [k: string]: any | null;
15
+ [k: string]: any;
16
16
  } | undefined;
17
17
  };
18
18
  /** @internal */
@@ -14,7 +14,7 @@ export const ContextCompactionItem$outboundSchema = z.object({
14
14
  encryptedContent: z.nullable(z.string()).optional(),
15
15
  id: z.nullable(z.string()).optional(),
16
16
  type: ContextCompactionItemType$outboundSchema,
17
- additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
17
+ additionalProperties: z.record(z.string(), z.any()).optional(),
18
18
  }).transform((v) => {
19
19
  return {
20
20
  ...v.additionalProperties,
@@ -36,7 +36,7 @@ export type CreateObservabilityDestinationRequest = {
36
36
  * Provider-specific configuration. The shape depends on `type` and is validated server-side.
37
37
  */
38
38
  config: {
39
- [k: string]: any | null;
39
+ [k: string]: any;
40
40
  };
41
41
  /**
42
42
  * Whether this destination should be enabled immediately.
@@ -73,7 +73,7 @@ export declare const CreateObservabilityDestinationRequestType$outboundSchema: z
73
73
  export type CreateObservabilityDestinationRequest$Outbound = {
74
74
  api_key_hashes?: Array<string> | null | undefined;
75
75
  config: {
76
- [k: string]: any | null;
76
+ [k: string]: any;
77
77
  };
78
78
  enabled: boolean;
79
79
  filter_rules?: ObservabilityFilterRulesConfigNullable$Outbound | null | undefined;
@@ -34,7 +34,7 @@ export const CreateObservabilityDestinationRequestType$outboundSchema = openEnum
34
34
  /** @internal */
35
35
  export const CreateObservabilityDestinationRequest$outboundSchema = z.object({
36
36
  apiKeyHashes: z.nullable(z.array(z.string())).optional(),
37
- config: z.record(z.string(), z.nullable(z.any())),
37
+ config: z.record(z.string(), z.any()),
38
38
  enabled: z.boolean().default(true),
39
39
  filterRules: z.nullable(ObservabilityFilterRulesConfigNullable$outboundSchema)
40
40
  .optional(),
@@ -16,7 +16,7 @@ export type Timings = {
16
16
  };
17
17
  export type Debug = {
18
18
  echoUpstreamBody?: {
19
- [k: string]: any | null;
19
+ [k: string]: any;
20
20
  } | undefined;
21
21
  timings?: Timings | undefined;
22
22
  };
@@ -31,7 +31,7 @@ export function timingsFromJSON(jsonString) {
31
31
  }
32
32
  /** @internal */
33
33
  export const Debug$inboundSchema = z.object({
34
- echo_upstream_body: z.record(z.string(), z.nullable(z.any())).optional(),
34
+ echo_upstream_body: z.record(z.string(), z.any()).optional(),
35
35
  timings: z.lazy(() => Timings$inboundSchema).optional(),
36
36
  }).transform((v) => {
37
37
  return remap$(v, {
@@ -20,7 +20,7 @@ export type EasyInputMessageContentInputImage = {
20
20
  type: "input_image";
21
21
  };
22
22
  export type EasyInputMessageContentUnion1 = InputText | EasyInputMessageContentInputImage | InputFile | InputAudio | InputVideo;
23
- export type EasyInputMessageContentUnion2 = Array<InputText | EasyInputMessageContentInputImage | InputFile | InputAudio | InputVideo> | string | any;
23
+ export type EasyInputMessageContentUnion2 = Array<InputText | EasyInputMessageContentInputImage | InputFile | InputAudio | InputVideo> | string;
24
24
  export declare const EasyInputMessagePhaseFinalAnswer: {
25
25
  readonly FinalAnswer: "final_answer";
26
26
  };
@@ -32,7 +32,7 @@ export type EasyInputMessagePhaseCommentary = ClosedEnum<typeof EasyInputMessage
32
32
  /**
33
33
  * The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
34
34
  */
35
- export type EasyInputMessagePhaseUnion = EasyInputMessagePhaseCommentary | EasyInputMessagePhaseFinalAnswer | any;
35
+ export type EasyInputMessagePhaseUnion = EasyInputMessagePhaseCommentary | EasyInputMessagePhaseFinalAnswer;
36
36
  export declare const EasyInputMessageRoleDeveloper: {
37
37
  readonly Developer: "developer";
38
38
  };
@@ -55,11 +55,11 @@ export declare const EasyInputMessageTypeMessage: {
55
55
  };
56
56
  export type EasyInputMessageTypeMessage = ClosedEnum<typeof EasyInputMessageTypeMessage>;
57
57
  export type EasyInputMessage = {
58
- content?: Array<InputText | EasyInputMessageContentInputImage | InputFile | InputAudio | InputVideo> | string | any | null | undefined;
58
+ content?: Array<InputText | EasyInputMessageContentInputImage | InputFile | InputAudio | InputVideo> | string | null | undefined;
59
59
  /**
60
60
  * The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
61
61
  */
62
- phase?: EasyInputMessagePhaseCommentary | EasyInputMessagePhaseFinalAnswer | any | null | undefined;
62
+ phase?: EasyInputMessagePhaseCommentary | EasyInputMessagePhaseFinalAnswer | null | undefined;
63
63
  role: EasyInputMessageRoleUser | EasyInputMessageRoleSystem | EasyInputMessageRoleAssistant | EasyInputMessageRoleDeveloper;
64
64
  type?: EasyInputMessageTypeMessage | undefined;
65
65
  };
@@ -80,7 +80,7 @@ export type EasyInputMessageContentUnion1$Outbound = InputText$Outbound | EasyIn
80
80
  export declare const EasyInputMessageContentUnion1$outboundSchema: z.ZodType<EasyInputMessageContentUnion1$Outbound, EasyInputMessageContentUnion1>;
81
81
  export declare function easyInputMessageContentUnion1ToJSON(easyInputMessageContentUnion1: EasyInputMessageContentUnion1): string;
82
82
  /** @internal */
83
- export type EasyInputMessageContentUnion2$Outbound = Array<InputText$Outbound | EasyInputMessageContentInputImage$Outbound | InputFile$Outbound | InputAudio$Outbound | InputVideo$Outbound> | string | any;
83
+ export type EasyInputMessageContentUnion2$Outbound = Array<InputText$Outbound | EasyInputMessageContentInputImage$Outbound | InputFile$Outbound | InputAudio$Outbound | InputVideo$Outbound> | string;
84
84
  /** @internal */
85
85
  export declare const EasyInputMessageContentUnion2$outboundSchema: z.ZodType<EasyInputMessageContentUnion2$Outbound, EasyInputMessageContentUnion2>;
86
86
  export declare function easyInputMessageContentUnion2ToJSON(easyInputMessageContentUnion2: EasyInputMessageContentUnion2): string;
@@ -89,7 +89,7 @@ export declare const EasyInputMessagePhaseFinalAnswer$outboundSchema: z.ZodEnum<
89
89
  /** @internal */
90
90
  export declare const EasyInputMessagePhaseCommentary$outboundSchema: z.ZodEnum<typeof EasyInputMessagePhaseCommentary>;
91
91
  /** @internal */
92
- export type EasyInputMessagePhaseUnion$Outbound = string | string | any;
92
+ export type EasyInputMessagePhaseUnion$Outbound = string | string;
93
93
  /** @internal */
94
94
  export declare const EasyInputMessagePhaseUnion$outboundSchema: z.ZodType<EasyInputMessagePhaseUnion$Outbound, EasyInputMessagePhaseUnion>;
95
95
  export declare function easyInputMessagePhaseUnionToJSON(easyInputMessagePhaseUnion: EasyInputMessagePhaseUnion): string;
@@ -110,8 +110,8 @@ export declare function easyInputMessageRoleUnionToJSON(easyInputMessageRoleUnio
110
110
  export declare const EasyInputMessageTypeMessage$outboundSchema: z.ZodEnum<typeof EasyInputMessageTypeMessage>;
111
111
  /** @internal */
112
112
  export type EasyInputMessage$Outbound = {
113
- content?: Array<InputText$Outbound | EasyInputMessageContentInputImage$Outbound | InputFile$Outbound | InputAudio$Outbound | InputVideo$Outbound> | string | any | null | undefined;
114
- phase?: string | string | any | null | undefined;
113
+ content?: Array<InputText$Outbound | EasyInputMessageContentInputImage$Outbound | InputFile$Outbound | InputAudio$Outbound | InputVideo$Outbound> | string | null | undefined;
114
+ phase?: string | string | null | undefined;
115
115
  role: string | string | string | string;
116
116
  type?: string | undefined;
117
117
  };
@@ -72,7 +72,6 @@ export const EasyInputMessageContentUnion2$outboundSchema = z.union([
72
72
  InputVideo$outboundSchema,
73
73
  ])),
74
74
  z.string(),
75
- z.any(),
76
75
  ]);
77
76
  export function easyInputMessageContentUnion2ToJSON(easyInputMessageContentUnion2) {
78
77
  return JSON.stringify(EasyInputMessageContentUnion2$outboundSchema.parse(easyInputMessageContentUnion2));
@@ -85,7 +84,6 @@ export const EasyInputMessagePhaseCommentary$outboundSchema = z.enum(EasyInputMe
85
84
  export const EasyInputMessagePhaseUnion$outboundSchema = z.union([
86
85
  EasyInputMessagePhaseCommentary$outboundSchema,
87
86
  EasyInputMessagePhaseFinalAnswer$outboundSchema,
88
- z.any(),
89
87
  ]);
90
88
  export function easyInputMessagePhaseUnionToJSON(easyInputMessagePhaseUnion) {
91
89
  return JSON.stringify(EasyInputMessagePhaseUnion$outboundSchema.parse(easyInputMessagePhaseUnion));
@@ -121,12 +119,10 @@ export const EasyInputMessage$outboundSchema = z.object({
121
119
  InputVideo$outboundSchema,
122
120
  ])),
123
121
  z.string(),
124
- z.any(),
125
122
  ])).optional(),
126
123
  phase: z.nullable(z.union([
127
124
  EasyInputMessagePhaseCommentary$outboundSchema,
128
125
  EasyInputMessagePhaseFinalAnswer$outboundSchema,
129
- z.any(),
130
126
  ])).optional(),
131
127
  role: z.union([
132
128
  EasyInputMessageRoleUser$outboundSchema,
@@ -8,7 +8,7 @@ export type EdgeNetworkTimeoutResponseErrorData = {
8
8
  code: number;
9
9
  message: string;
10
10
  metadata?: {
11
- [k: string]: any | null;
11
+ [k: string]: any;
12
12
  } | null | undefined;
13
13
  };
14
14
  /** @internal */
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
8
8
  export const EdgeNetworkTimeoutResponseErrorData$inboundSchema = z.object({
9
9
  code: z.int(),
10
10
  message: z.string(),
11
- metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
11
+ metadata: z.nullable(z.record(z.string(), z.any())).optional(),
12
12
  });
13
13
  export function edgeNetworkTimeoutResponseErrorDataFromJSON(jsonString) {
14
14
  return safeParse(jsonString, (x) => EdgeNetworkTimeoutResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeNetworkTimeoutResponseErrorData' from JSON`);
@@ -10,7 +10,7 @@ export type BadGatewayResponseErrorData = {
10
10
  */
11
11
  error: models.BadGatewayResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class BadGatewayResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.BadGatewayResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class BadGatewayResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const BadGatewayResponseError$inboundSchema = z.object({
29
29
  error: models.BadGatewayResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type BadRequestResponseErrorData = {
10
10
  */
11
11
  error: models.BadRequestResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class BadRequestResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.BadRequestResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class BadRequestResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const BadRequestResponseError$inboundSchema = z.object({
29
29
  error: models.BadRequestResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type ConflictResponseErrorData = {
10
10
  */
11
11
  error: models.ConflictResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class ConflictResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.ConflictResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class ConflictResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const ConflictResponseError$inboundSchema = z.object({
29
29
  error: models.ConflictResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type EdgeNetworkTimeoutResponseErrorData = {
10
10
  */
11
11
  error: models.EdgeNetworkTimeoutResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class EdgeNetworkTimeoutResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.EdgeNetworkTimeoutResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class EdgeNetworkTimeoutResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const EdgeNetworkTimeoutResponseError$inboundSchema = z.object({
29
29
  error: models.EdgeNetworkTimeoutResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type ForbiddenResponseErrorData = {
10
10
  */
11
11
  error: models.ForbiddenResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class ForbiddenResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.ForbiddenResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class ForbiddenResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const ForbiddenResponseError$inboundSchema = z.object({
29
29
  error: models.ForbiddenResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type InternalServerResponseErrorData = {
10
10
  */
11
11
  error: models.InternalServerResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class InternalServerResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.InternalServerResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class InternalServerResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const InternalServerResponseError$inboundSchema = z.object({
29
29
  error: models.InternalServerResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type NotFoundResponseErrorData = {
10
10
  */
11
11
  error: models.NotFoundResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class NotFoundResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.NotFoundResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class NotFoundResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const NotFoundResponseError$inboundSchema = z.object({
29
29
  error: models.NotFoundResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type PayloadTooLargeResponseErrorData = {
10
10
  */
11
11
  error: models.PayloadTooLargeResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class PayloadTooLargeResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.PayloadTooLargeResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class PayloadTooLargeResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const PayloadTooLargeResponseError$inboundSchema = z.object({
29
29
  error: models.PayloadTooLargeResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type PaymentRequiredResponseErrorData = {
10
10
  */
11
11
  error: models.PaymentRequiredResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class PaymentRequiredResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.PaymentRequiredResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class PaymentRequiredResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const PaymentRequiredResponseError$inboundSchema = z.object({
29
29
  error: models.PaymentRequiredResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type ProviderOverloadedResponseErrorData = {
10
10
  */
11
11
  error: models.ProviderOverloadedResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class ProviderOverloadedResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.ProviderOverloadedResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class ProviderOverloadedResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const ProviderOverloadedResponseError$inboundSchema = z.object({
29
29
  error: models.ProviderOverloadedResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type RequestTimeoutResponseErrorData = {
10
10
  */
11
11
  error: models.RequestTimeoutResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class RequestTimeoutResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.RequestTimeoutResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class RequestTimeoutResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const RequestTimeoutResponseError$inboundSchema = z.object({
29
29
  error: models.RequestTimeoutResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type ServiceUnavailableResponseErrorData = {
10
10
  */
11
11
  error: models.ServiceUnavailableResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class ServiceUnavailableResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.ServiceUnavailableResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class ServiceUnavailableResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const ServiceUnavailableResponseError$inboundSchema = z.object({
29
29
  error: models.ServiceUnavailableResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type TooManyRequestsResponseErrorData = {
10
10
  */
11
11
  error: models.TooManyRequestsResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class TooManyRequestsResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.TooManyRequestsResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class TooManyRequestsResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const TooManyRequestsResponseError$inboundSchema = z.object({
29
29
  error: models.TooManyRequestsResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type UnauthorizedResponseErrorData = {
10
10
  */
11
11
  error: models.UnauthorizedResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class UnauthorizedResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.UnauthorizedResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */
@@ -27,8 +27,7 @@ export class UnauthorizedResponseError extends OpenRouterError {
27
27
  /** @internal */
28
28
  export const UnauthorizedResponseError$inboundSchema = z.object({
29
29
  error: models.UnauthorizedResponseErrorData$inboundSchema,
30
- openrouter_metadata: z.nullable(z.record(z.string(), z.nullable(z.any())))
31
- .optional(),
30
+ openrouter_metadata: z.nullable(z.record(z.string(), z.any())).optional(),
32
31
  user_id: z.nullable(z.string()).optional(),
33
32
  request$: z.custom(x => x instanceof Request),
34
33
  response$: z.custom(x => x instanceof Response),
@@ -10,7 +10,7 @@ export type UnprocessableEntityResponseErrorData = {
10
10
  */
11
11
  error: models.UnprocessableEntityResponseErrorData;
12
12
  openrouterMetadata?: {
13
- [k: string]: any | null;
13
+ [k: string]: any;
14
14
  } | null | undefined;
15
15
  userId?: string | null | undefined;
16
16
  };
@@ -23,7 +23,7 @@ export declare class UnprocessableEntityResponseError extends OpenRouterError {
23
23
  */
24
24
  error: models.UnprocessableEntityResponseErrorData;
25
25
  openrouterMetadata?: {
26
- [k: string]: any | null;
26
+ [k: string]: any;
27
27
  } | null | undefined;
28
28
  userId?: string | null | undefined;
29
29
  /** The original data that was passed to this error instance. */