@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
@@ -19,129 +19,130 @@ export function imageGenerationProviderPreferencesOnlyToJSON(imageGenerationProv
19
19
  }
20
20
  /** @internal */
21
21
  export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object({
22
- oneai: z.record(z.string(), z.nullable(z.any())).optional(),
23
- ai21: z.record(z.string(), z.nullable(z.any())).optional(),
24
- aionLabs: z.record(z.string(), z.nullable(z.any())).optional(),
25
- akashml: z.record(z.string(), z.nullable(z.any())).optional(),
26
- alibaba: z.record(z.string(), z.nullable(z.any())).optional(),
27
- amazonBedrock: z.record(z.string(), z.nullable(z.any())).optional(),
28
- amazonNova: z.record(z.string(), z.nullable(z.any())).optional(),
29
- ambient: z.record(z.string(), z.nullable(z.any())).optional(),
30
- anthropic: z.record(z.string(), z.nullable(z.any())).optional(),
31
- anyscale: z.record(z.string(), z.nullable(z.any())).optional(),
32
- arceeAi: z.record(z.string(), z.nullable(z.any())).optional(),
33
- atlasCloud: z.record(z.string(), z.nullable(z.any())).optional(),
34
- atoma: z.record(z.string(), z.nullable(z.any())).optional(),
35
- avian: z.record(z.string(), z.nullable(z.any())).optional(),
36
- azure: z.record(z.string(), z.nullable(z.any())).optional(),
37
- baidu: z.record(z.string(), z.nullable(z.any())).optional(),
38
- baseten: z.record(z.string(), z.nullable(z.any())).optional(),
39
- blackForestLabs: z.record(z.string(), z.nullable(z.any())).optional(),
40
- byteplus: z.record(z.string(), z.nullable(z.any())).optional(),
41
- centml: z.record(z.string(), z.nullable(z.any())).optional(),
42
- cerebras: z.record(z.string(), z.nullable(z.any())).optional(),
43
- chutes: z.record(z.string(), z.nullable(z.any())).optional(),
44
- cirrascale: z.record(z.string(), z.nullable(z.any())).optional(),
45
- clarifai: z.record(z.string(), z.nullable(z.any())).optional(),
46
- cloudflare: z.record(z.string(), z.nullable(z.any())).optional(),
47
- cohere: z.record(z.string(), z.nullable(z.any())).optional(),
48
- crofai: z.record(z.string(), z.nullable(z.any())).optional(),
49
- crucible: z.record(z.string(), z.nullable(z.any())).optional(),
50
- crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
51
- darkbloom: z.record(z.string(), z.nullable(z.any())).optional(),
52
- decart: z.record(z.string(), z.nullable(z.any())).optional(),
53
- deepgram: z.record(z.string(), z.nullable(z.any())).optional(),
54
- deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
55
- deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
56
- dekallm: z.record(z.string(), z.nullable(z.any())).optional(),
57
- digitalocean: z.record(z.string(), z.nullable(z.any())).optional(),
58
- enfer: z.record(z.string(), z.nullable(z.any())).optional(),
59
- fakeProvider: z.record(z.string(), z.nullable(z.any())).optional(),
60
- featherless: z.record(z.string(), z.nullable(z.any())).optional(),
61
- fireworks: z.record(z.string(), z.nullable(z.any())).optional(),
62
- friendli: z.record(z.string(), z.nullable(z.any())).optional(),
63
- gmicloud: z.record(z.string(), z.nullable(z.any())).optional(),
64
- googleAiStudio: z.record(z.string(), z.nullable(z.any())).optional(),
65
- googleVertex: z.record(z.string(), z.nullable(z.any())).optional(),
66
- gopomelo: z.record(z.string(), z.nullable(z.any())).optional(),
67
- groq: z.record(z.string(), z.nullable(z.any())).optional(),
68
- heygen: z.record(z.string(), z.nullable(z.any())).optional(),
69
- huggingface: z.record(z.string(), z.nullable(z.any())).optional(),
70
- hyperbolic: z.record(z.string(), z.nullable(z.any())).optional(),
71
- hyperbolicQuantized: z.record(z.string(), z.nullable(z.any())).optional(),
72
- inception: z.record(z.string(), z.nullable(z.any())).optional(),
73
- inceptron: z.record(z.string(), z.nullable(z.any())).optional(),
74
- inferactVllm: z.record(z.string(), z.nullable(z.any())).optional(),
75
- inferenceNet: z.record(z.string(), z.nullable(z.any())).optional(),
76
- infermatic: z.record(z.string(), z.nullable(z.any())).optional(),
77
- inflection: z.record(z.string(), z.nullable(z.any())).optional(),
78
- inocloud: z.record(z.string(), z.nullable(z.any())).optional(),
79
- ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
80
- ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
81
- klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
82
- krea: z.record(z.string(), z.nullable(z.any())).optional(),
83
- lambda: z.record(z.string(), z.nullable(z.any())).optional(),
84
- lepton: z.record(z.string(), z.nullable(z.any())).optional(),
85
- liquid: z.record(z.string(), z.nullable(z.any())).optional(),
86
- lynn: z.record(z.string(), z.nullable(z.any())).optional(),
87
- lynnPrivate: z.record(z.string(), z.nullable(z.any())).optional(),
88
- mancer: z.record(z.string(), z.nullable(z.any())).optional(),
89
- mancerOld: z.record(z.string(), z.nullable(z.any())).optional(),
90
- mara: z.record(z.string(), z.nullable(z.any())).optional(),
91
- meta: z.record(z.string(), z.nullable(z.any())).optional(),
92
- minimax: z.record(z.string(), z.nullable(z.any())).optional(),
93
- mistral: z.record(z.string(), z.nullable(z.any())).optional(),
94
- modal: z.record(z.string(), z.nullable(z.any())).optional(),
95
- modelrun: z.record(z.string(), z.nullable(z.any())).optional(),
96
- modular: z.record(z.string(), z.nullable(z.any())).optional(),
97
- moonshotai: z.record(z.string(), z.nullable(z.any())).optional(),
98
- morph: z.record(z.string(), z.nullable(z.any())).optional(),
99
- ncompass: z.record(z.string(), z.nullable(z.any())).optional(),
100
- nebius: z.record(z.string(), z.nullable(z.any())).optional(),
101
- nexAgi: z.record(z.string(), z.nullable(z.any())).optional(),
102
- nextbit: z.record(z.string(), z.nullable(z.any())).optional(),
103
- nineteen: z.record(z.string(), z.nullable(z.any())).optional(),
104
- novita: z.record(z.string(), z.nullable(z.any())).optional(),
105
- nvidia: z.record(z.string(), z.nullable(z.any())).optional(),
106
- octoai: z.record(z.string(), z.nullable(z.any())).optional(),
107
- openInference: z.record(z.string(), z.nullable(z.any())).optional(),
108
- openai: z.record(z.string(), z.nullable(z.any())).optional(),
109
- parasail: z.record(z.string(), z.nullable(z.any())).optional(),
110
- perceptron: z.record(z.string(), z.nullable(z.any())).optional(),
111
- perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
112
- phala: z.record(z.string(), z.nullable(z.any())).optional(),
113
- poolside: z.record(z.string(), z.nullable(z.any())).optional(),
114
- quiver: z.record(z.string(), z.nullable(z.any())).optional(),
115
- recraft: z.record(z.string(), z.nullable(z.any())).optional(),
116
- recursal: z.record(z.string(), z.nullable(z.any())).optional(),
117
- reflection: z.record(z.string(), z.nullable(z.any())).optional(),
118
- reka: z.record(z.string(), z.nullable(z.any())).optional(),
119
- relace: z.record(z.string(), z.nullable(z.any())).optional(),
120
- replicate: z.record(z.string(), z.nullable(z.any())).optional(),
121
- sailResearch: z.record(z.string(), z.nullable(z.any())).optional(),
122
- sakana: z.record(z.string(), z.nullable(z.any())).optional(),
123
- sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
124
- sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
125
- seed: z.record(z.string(), z.nullable(z.any())).optional(),
126
- sfCompute: z.record(z.string(), z.nullable(z.any())).optional(),
127
- siliconflow: z.record(z.string(), z.nullable(z.any())).optional(),
128
- sourceful: z.record(z.string(), z.nullable(z.any())).optional(),
129
- stealth: z.record(z.string(), z.nullable(z.any())).optional(),
130
- stepfun: z.record(z.string(), z.nullable(z.any())).optional(),
131
- streamlake: z.record(z.string(), z.nullable(z.any())).optional(),
132
- switchpoint: z.record(z.string(), z.nullable(z.any())).optional(),
133
- targon: z.record(z.string(), z.nullable(z.any())).optional(),
134
- tenstorrent: z.record(z.string(), z.nullable(z.any())).optional(),
135
- together: z.record(z.string(), z.nullable(z.any())).optional(),
136
- togetherLite: z.record(z.string(), z.nullable(z.any())).optional(),
137
- ubicloud: z.record(z.string(), z.nullable(z.any())).optional(),
138
- upstage: z.record(z.string(), z.nullable(z.any())).optional(),
139
- venice: z.record(z.string(), z.nullable(z.any())).optional(),
140
- wafer: z.record(z.string(), z.nullable(z.any())).optional(),
141
- wandb: z.record(z.string(), z.nullable(z.any())).optional(),
142
- xai: z.record(z.string(), z.nullable(z.any())).optional(),
143
- xiaomi: z.record(z.string(), z.nullable(z.any())).optional(),
144
- zAi: z.record(z.string(), z.nullable(z.any())).optional(),
22
+ oneai: z.record(z.string(), z.any()).optional(),
23
+ ai21: z.record(z.string(), z.any()).optional(),
24
+ aionLabs: z.record(z.string(), z.any()).optional(),
25
+ akashml: z.record(z.string(), z.any()).optional(),
26
+ alibaba: z.record(z.string(), z.any()).optional(),
27
+ amazonBedrock: z.record(z.string(), z.any()).optional(),
28
+ amazonNova: z.record(z.string(), z.any()).optional(),
29
+ ambient: z.record(z.string(), z.any()).optional(),
30
+ anthropic: z.record(z.string(), z.any()).optional(),
31
+ anyscale: z.record(z.string(), z.any()).optional(),
32
+ arceeAi: z.record(z.string(), z.any()).optional(),
33
+ atlasCloud: z.record(z.string(), z.any()).optional(),
34
+ atoma: z.record(z.string(), z.any()).optional(),
35
+ avian: z.record(z.string(), z.any()).optional(),
36
+ azure: z.record(z.string(), z.any()).optional(),
37
+ baidu: z.record(z.string(), z.any()).optional(),
38
+ baseten: z.record(z.string(), z.any()).optional(),
39
+ blackForestLabs: z.record(z.string(), z.any()).optional(),
40
+ byteplus: z.record(z.string(), z.any()).optional(),
41
+ centml: z.record(z.string(), z.any()).optional(),
42
+ cerebras: z.record(z.string(), z.any()).optional(),
43
+ chutes: z.record(z.string(), z.any()).optional(),
44
+ cirrascale: z.record(z.string(), z.any()).optional(),
45
+ clarifai: z.record(z.string(), z.any()).optional(),
46
+ cloudflare: z.record(z.string(), z.any()).optional(),
47
+ cohere: z.record(z.string(), z.any()).optional(),
48
+ crofai: z.record(z.string(), z.any()).optional(),
49
+ crucible: z.record(z.string(), z.any()).optional(),
50
+ crusoe: z.record(z.string(), z.any()).optional(),
51
+ darkbloom: z.record(z.string(), z.any()).optional(),
52
+ decart: z.record(z.string(), z.any()).optional(),
53
+ deepgram: z.record(z.string(), z.any()).optional(),
54
+ deepinfra: z.record(z.string(), z.any()).optional(),
55
+ deepseek: z.record(z.string(), z.any()).optional(),
56
+ dekallm: z.record(z.string(), z.any()).optional(),
57
+ digitalocean: z.record(z.string(), z.any()).optional(),
58
+ enfer: z.record(z.string(), z.any()).optional(),
59
+ fakeProvider: z.record(z.string(), z.any()).optional(),
60
+ featherless: z.record(z.string(), z.any()).optional(),
61
+ fireworks: z.record(z.string(), z.any()).optional(),
62
+ friendli: z.record(z.string(), z.any()).optional(),
63
+ gmicloud: z.record(z.string(), z.any()).optional(),
64
+ googleAiStudio: z.record(z.string(), z.any()).optional(),
65
+ googleVertex: z.record(z.string(), z.any()).optional(),
66
+ gopomelo: z.record(z.string(), z.any()).optional(),
67
+ groq: z.record(z.string(), z.any()).optional(),
68
+ heygen: z.record(z.string(), z.any()).optional(),
69
+ huggingface: z.record(z.string(), z.any()).optional(),
70
+ hyperbolic: z.record(z.string(), z.any()).optional(),
71
+ hyperbolicQuantized: z.record(z.string(), z.any()).optional(),
72
+ inception: z.record(z.string(), z.any()).optional(),
73
+ inceptron: z.record(z.string(), z.any()).optional(),
74
+ inferactVllm: z.record(z.string(), z.any()).optional(),
75
+ inferenceNet: z.record(z.string(), z.any()).optional(),
76
+ infermatic: z.record(z.string(), z.any()).optional(),
77
+ inflection: z.record(z.string(), z.any()).optional(),
78
+ inocloud: z.record(z.string(), z.any()).optional(),
79
+ ioNet: z.record(z.string(), z.any()).optional(),
80
+ ionstream: z.record(z.string(), z.any()).optional(),
81
+ klusterai: z.record(z.string(), z.any()).optional(),
82
+ krea: z.record(z.string(), z.any()).optional(),
83
+ lambda: z.record(z.string(), z.any()).optional(),
84
+ lepton: z.record(z.string(), z.any()).optional(),
85
+ liquid: z.record(z.string(), z.any()).optional(),
86
+ lynn: z.record(z.string(), z.any()).optional(),
87
+ lynnPrivate: z.record(z.string(), z.any()).optional(),
88
+ mancer: z.record(z.string(), z.any()).optional(),
89
+ mancerOld: z.record(z.string(), z.any()).optional(),
90
+ mara: z.record(z.string(), z.any()).optional(),
91
+ meta: z.record(z.string(), z.any()).optional(),
92
+ minimax: z.record(z.string(), z.any()).optional(),
93
+ mistral: z.record(z.string(), z.any()).optional(),
94
+ modal: z.record(z.string(), z.any()).optional(),
95
+ modelrun: z.record(z.string(), z.any()).optional(),
96
+ modular: z.record(z.string(), z.any()).optional(),
97
+ moonshotai: z.record(z.string(), z.any()).optional(),
98
+ morph: z.record(z.string(), z.any()).optional(),
99
+ ncompass: z.record(z.string(), z.any()).optional(),
100
+ nebius: z.record(z.string(), z.any()).optional(),
101
+ nexAgi: z.record(z.string(), z.any()).optional(),
102
+ nextbit: z.record(z.string(), z.any()).optional(),
103
+ nineteen: z.record(z.string(), z.any()).optional(),
104
+ novita: z.record(z.string(), z.any()).optional(),
105
+ nvidia: z.record(z.string(), z.any()).optional(),
106
+ octoai: z.record(z.string(), z.any()).optional(),
107
+ openInference: z.record(z.string(), z.any()).optional(),
108
+ openai: z.record(z.string(), z.any()).optional(),
109
+ parasail: z.record(z.string(), z.any()).optional(),
110
+ perceptron: z.record(z.string(), z.any()).optional(),
111
+ perplexity: z.record(z.string(), z.any()).optional(),
112
+ phala: z.record(z.string(), z.any()).optional(),
113
+ poolside: z.record(z.string(), z.any()).optional(),
114
+ quiver: z.record(z.string(), z.any()).optional(),
115
+ recraft: z.record(z.string(), z.any()).optional(),
116
+ recursal: z.record(z.string(), z.any()).optional(),
117
+ reflection: z.record(z.string(), z.any()).optional(),
118
+ reka: z.record(z.string(), z.any()).optional(),
119
+ relace: z.record(z.string(), z.any()).optional(),
120
+ replicate: z.record(z.string(), z.any()).optional(),
121
+ sailResearch: z.record(z.string(), z.any()).optional(),
122
+ sakana: z.record(z.string(), z.any()).optional(),
123
+ sambanova: z.record(z.string(), z.any()).optional(),
124
+ sambanovaCloaked: z.record(z.string(), z.any()).optional(),
125
+ seed: z.record(z.string(), z.any()).optional(),
126
+ sfCompute: z.record(z.string(), z.any()).optional(),
127
+ siliconflow: z.record(z.string(), z.any()).optional(),
128
+ sourceful: z.record(z.string(), z.any()).optional(),
129
+ stealth: z.record(z.string(), z.any()).optional(),
130
+ stepfun: z.record(z.string(), z.any()).optional(),
131
+ streamlake: z.record(z.string(), z.any()).optional(),
132
+ switchpoint: z.record(z.string(), z.any()).optional(),
133
+ targon: z.record(z.string(), z.any()).optional(),
134
+ tencent: z.record(z.string(), z.any()).optional(),
135
+ tenstorrent: z.record(z.string(), z.any()).optional(),
136
+ together: z.record(z.string(), z.any()).optional(),
137
+ togetherLite: z.record(z.string(), z.any()).optional(),
138
+ ubicloud: z.record(z.string(), z.any()).optional(),
139
+ upstage: z.record(z.string(), z.any()).optional(),
140
+ venice: z.record(z.string(), z.any()).optional(),
141
+ wafer: z.record(z.string(), z.any()).optional(),
142
+ wandb: z.record(z.string(), z.any()).optional(),
143
+ xai: z.record(z.string(), z.any()).optional(),
144
+ xiaomi: z.record(z.string(), z.any()).optional(),
145
+ zAi: z.record(z.string(), z.any()).optional(),
145
146
  }).transform((v) => {
146
147
  return remap$(v, {
147
148
  oneai: "01ai",
@@ -178,11 +179,7 @@ export function imageGenerationProviderPreferencesOrderToJSON(imageGenerationPro
178
179
  return JSON.stringify(ImageGenerationProviderPreferencesOrder$outboundSchema.parse(imageGenerationProviderPreferencesOrder));
179
180
  }
180
181
  /** @internal */
181
- export const ImageGenerationProviderPreferencesSort$outboundSchema = z.union([
182
- ProviderSort$outboundSchema,
183
- ProviderSortConfig$outboundSchema,
184
- z.any(),
185
- ]);
182
+ export const ImageGenerationProviderPreferencesSort$outboundSchema = z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema]);
186
183
  export function imageGenerationProviderPreferencesSortToJSON(imageGenerationProviderPreferencesSort) {
187
184
  return JSON.stringify(ImageGenerationProviderPreferencesSort$outboundSchema.parse(imageGenerationProviderPreferencesSort));
188
185
  }
@@ -195,11 +192,7 @@ export const ImageGenerationProviderPreferences$outboundSchema = z.object({
195
192
  options: z.lazy(() => ImageGenerationProviderPreferencesOptions$outboundSchema).optional(),
196
193
  order: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()])))
197
194
  .optional(),
198
- sort: z.nullable(z.union([
199
- ProviderSort$outboundSchema,
200
- ProviderSortConfig$outboundSchema,
201
- z.any(),
202
- ])).optional(),
195
+ sort: z.nullable(z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema])).optional(),
203
196
  }).transform((v) => {
204
197
  return remap$(v, {
205
198
  allowFallbacks: "allow_fallbacks",
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
- export type ImageGenerationServerToolConfigUnion = string | number | Array<any | null>;
2
+ export type ImageGenerationServerToolConfigUnion = string | number | Array<any>;
3
3
  /** @internal */
4
- export type ImageGenerationServerToolConfigUnion$Outbound = string | number | Array<any | null>;
4
+ export type ImageGenerationServerToolConfigUnion$Outbound = string | number | Array<any>;
5
5
  /** @internal */
6
6
  export declare const ImageGenerationServerToolConfigUnion$outboundSchema: z.ZodType<ImageGenerationServerToolConfigUnion$Outbound, ImageGenerationServerToolConfigUnion>;
7
7
  export declare function imageGenerationServerToolConfigUnionToJSON(imageGenerationServerToolConfigUnion: ImageGenerationServerToolConfigUnion): string;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  /** @internal */
7
- export const ImageGenerationServerToolConfigUnion$outboundSchema = z.union([z.string(), z.number(), z.array(z.nullable(z.any()))]);
7
+ export const ImageGenerationServerToolConfigUnion$outboundSchema = z.union([z.string(), z.number(), z.array(z.any())]);
8
8
  export function imageGenerationServerToolConfigUnionToJSON(imageGenerationServerToolConfigUnion) {
9
9
  return JSON.stringify(ImageGenerationServerToolConfigUnion$outboundSchema.parse(imageGenerationServerToolConfigUnion));
10
10
  }
@@ -21,7 +21,9 @@ export function imageStreamingResponseDataFromJSON(jsonString) {
21
21
  }
22
22
  /** @internal */
23
23
  export const ImageStreamingResponse$inboundSchema = z.object({
24
- data: z.string().transform((v, ctx) => {
24
+ data: z.unknown().transform((v, ctx) => {
25
+ if (typeof v !== "string")
26
+ return v;
25
27
  try {
26
28
  return JSON.parse(v);
27
29
  }
@@ -425,7 +425,6 @@ export * from "./rangecapability.js";
425
425
  export * from "./rankingsdailyitem.js";
426
426
  export * from "./rankingsdailymeta.js";
427
427
  export * from "./rankingsdailyresponse.js";
428
- export * from "./reasoningconfig.js";
429
428
  export * from "./reasoningcontext.js";
430
429
  export * from "./reasoningdeltaevent.js";
431
430
  export * from "./reasoningdetailencrypted.js";
@@ -532,7 +531,6 @@ export * from "./updateworkspaceresponse.js";
532
531
  export * from "./upsertworkspacebudgetrequest.js";
533
532
  export * from "./upsertworkspacebudgetresponse.js";
534
533
  export * from "./urlcitation.js";
535
- export * from "./usage.js";
536
534
  export * from "./videogenerationrequest.js";
537
535
  export * from "./videogenerationresponse.js";
538
536
  export * from "./videogenerationusage.js";
@@ -429,7 +429,6 @@ export * from "./rangecapability.js";
429
429
  export * from "./rankingsdailyitem.js";
430
430
  export * from "./rankingsdailymeta.js";
431
431
  export * from "./rankingsdailyresponse.js";
432
- export * from "./reasoningconfig.js";
433
432
  export * from "./reasoningcontext.js";
434
433
  export * from "./reasoningdeltaevent.js";
435
434
  export * from "./reasoningdetailencrypted.js";
@@ -536,7 +535,6 @@ export * from "./updateworkspaceresponse.js";
536
535
  export * from "./upsertworkspacebudgetrequest.js";
537
536
  export * from "./upsertworkspacebudgetresponse.js";
538
537
  export * from "./urlcitation.js";
539
- export * from "./usage.js";
540
538
  export * from "./videogenerationrequest.js";
541
539
  export * from "./videogenerationresponse.js";
542
540
  export * from "./videogenerationusage.js";
@@ -86,7 +86,7 @@ export type InputsReasoning = {
86
86
  signature?: string | null | undefined;
87
87
  };
88
88
  export type InputsContent1 = ResponseOutputText | OpenAIResponsesRefusalContent;
89
- export type InputsContent2 = Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string | any;
89
+ export type InputsContent2 = Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string;
90
90
  export declare const InputsPhaseFinalAnswer: {
91
91
  readonly FinalAnswer: "final_answer";
92
92
  };
@@ -98,7 +98,7 @@ export type InputsPhaseCommentary = ClosedEnum<typeof InputsPhaseCommentary>;
98
98
  /**
99
99
  * 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.
100
100
  */
101
- export type InputsPhaseUnion = InputsPhaseCommentary | InputsPhaseFinalAnswer | any;
101
+ export type InputsPhaseUnion = InputsPhaseCommentary | InputsPhaseFinalAnswer;
102
102
  export declare const InputsRole: {
103
103
  readonly Assistant: "assistant";
104
104
  };
@@ -124,12 +124,12 @@ export type InputsTypeMessage = ClosedEnum<typeof InputsTypeMessage>;
124
124
  * An output message item
125
125
  */
126
126
  export type InputsMessage = {
127
- content: Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string | any | null;
127
+ content: Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string | null;
128
128
  id: string;
129
129
  /**
130
130
  * 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.
131
131
  */
132
- phase?: InputsPhaseCommentary | InputsPhaseFinalAnswer | any | null | undefined;
132
+ phase?: InputsPhaseCommentary | InputsPhaseFinalAnswer | null | undefined;
133
133
  role: InputsRole;
134
134
  status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
135
135
  type: InputsTypeMessage;
@@ -172,7 +172,7 @@ export type InputsContent1$Outbound = ResponseOutputText$Outbound | OpenAIRespon
172
172
  export declare const InputsContent1$outboundSchema: z.ZodType<InputsContent1$Outbound, InputsContent1>;
173
173
  export declare function inputsContent1ToJSON(inputsContent1: InputsContent1): string;
174
174
  /** @internal */
175
- export type InputsContent2$Outbound = Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string | any;
175
+ export type InputsContent2$Outbound = Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string;
176
176
  /** @internal */
177
177
  export declare const InputsContent2$outboundSchema: z.ZodType<InputsContent2$Outbound, InputsContent2>;
178
178
  export declare function inputsContent2ToJSON(inputsContent2: InputsContent2): string;
@@ -181,7 +181,7 @@ export declare const InputsPhaseFinalAnswer$outboundSchema: z.ZodEnum<typeof Inp
181
181
  /** @internal */
182
182
  export declare const InputsPhaseCommentary$outboundSchema: z.ZodEnum<typeof InputsPhaseCommentary>;
183
183
  /** @internal */
184
- export type InputsPhaseUnion$Outbound = string | string | any;
184
+ export type InputsPhaseUnion$Outbound = string | string;
185
185
  /** @internal */
186
186
  export declare const InputsPhaseUnion$outboundSchema: z.ZodType<InputsPhaseUnion$Outbound, InputsPhaseUnion>;
187
187
  export declare function inputsPhaseUnionToJSON(inputsPhaseUnion: InputsPhaseUnion): string;
@@ -202,9 +202,9 @@ export declare function inputsStatusUnion1ToJSON(inputsStatusUnion1: InputsStatu
202
202
  export declare const InputsTypeMessage$outboundSchema: z.ZodEnum<typeof InputsTypeMessage>;
203
203
  /** @internal */
204
204
  export type InputsMessage$Outbound = {
205
- content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string | any | null;
205
+ content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string | null;
206
206
  id: string;
207
- phase?: string | string | any | null | undefined;
207
+ phase?: string | string | null | undefined;
208
208
  role: string;
209
209
  status?: string | string | string | undefined;
210
210
  type: string;
@@ -143,7 +143,6 @@ export const InputsContent2$outboundSchema = z.union([
143
143
  OpenAIResponsesRefusalContent$outboundSchema,
144
144
  ])),
145
145
  z.string(),
146
- z.any(),
147
146
  ]);
148
147
  export function inputsContent2ToJSON(inputsContent2) {
149
148
  return JSON.stringify(InputsContent2$outboundSchema.parse(inputsContent2));
@@ -156,7 +155,6 @@ export const InputsPhaseCommentary$outboundSchema = z.enum(InputsPhaseCommentary
156
155
  export const InputsPhaseUnion$outboundSchema = z.union([
157
156
  InputsPhaseCommentary$outboundSchema,
158
157
  InputsPhaseFinalAnswer$outboundSchema,
159
- z.any(),
160
158
  ]);
161
159
  export function inputsPhaseUnionToJSON(inputsPhaseUnion) {
162
160
  return JSON.stringify(InputsPhaseUnion$outboundSchema.parse(inputsPhaseUnion));
@@ -188,13 +186,11 @@ export const InputsMessage$outboundSchema = z.object({
188
186
  OpenAIResponsesRefusalContent$outboundSchema,
189
187
  ])),
190
188
  z.string(),
191
- z.any(),
192
189
  ])),
193
190
  id: z.string(),
194
191
  phase: z.nullable(z.union([
195
192
  InputsPhaseCommentary$outboundSchema,
196
193
  InputsPhaseFinalAnswer$outboundSchema,
197
- z.any(),
198
194
  ])).optional(),
199
195
  role: InputsRole$outboundSchema,
200
196
  status: z.union([
@@ -8,7 +8,7 @@ export type InternalServerResponseErrorData = {
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 InternalServerResponseErrorData$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 internalServerResponseErrorDataFromJSON(jsonString) {
14
14
  return safeParse(jsonString, (x) => InternalServerResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternalServerResponseErrorData' from JSON`);
@@ -1,40 +1,11 @@
1
1
  import * as z from "zod/v4";
2
- import { OpenEnum } from "../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../types/fp.js";
4
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
4
  import { InputModality } from "./inputmodality.js";
6
5
  import { InstructType } from "./instructtype.js";
6
+ import { ModelGroup } from "./modelgroup.js";
7
7
  import { OutputModality } from "./outputmodality.js";
8
8
  import { PublicEndpoint } from "./publicendpoint.js";
9
- /**
10
- * Tokenizer type used by the model
11
- */
12
- export declare const Tokenizer: {
13
- readonly Router: "Router";
14
- readonly Media: "Media";
15
- readonly Other: "Other";
16
- readonly Gpt: "GPT";
17
- readonly Claude: "Claude";
18
- readonly Gemini: "Gemini";
19
- readonly Gemma: "Gemma";
20
- readonly Grok: "Grok";
21
- readonly Cohere: "Cohere";
22
- readonly Nova: "Nova";
23
- readonly Qwen: "Qwen";
24
- readonly Yi: "Yi";
25
- readonly DeepSeek: "DeepSeek";
26
- readonly Mistral: "Mistral";
27
- readonly Llama2: "Llama2";
28
- readonly Llama3: "Llama3";
29
- readonly Llama4: "Llama4";
30
- readonly PaLM: "PaLM";
31
- readonly Rwkv: "RWKV";
32
- readonly Qwen3: "Qwen3";
33
- };
34
- /**
35
- * Tokenizer type used by the model
36
- */
37
- export type Tokenizer = OpenEnum<typeof Tokenizer>;
38
9
  /**
39
10
  * Model architecture information
40
11
  */
@@ -55,7 +26,7 @@ export type Architecture = {
55
26
  * Supported output modalities
56
27
  */
57
28
  outputModalities: Array<OutputModality>;
58
- tokenizer: Tokenizer | null;
29
+ tokenizer: ModelGroup | null;
59
30
  };
60
31
  /**
61
32
  * List of available endpoints for a model
@@ -84,8 +55,6 @@ export type ListEndpointsResponse = {
84
55
  name: string;
85
56
  };
86
57
  /** @internal */
87
- export declare const Tokenizer$inboundSchema: z.ZodType<Tokenizer, unknown>;
88
- /** @internal */
89
58
  export declare const Architecture$inboundSchema: z.ZodType<Architecture, unknown>;
90
59
  export declare function architectureFromJSON(jsonString: string): SafeParseResult<Architecture, SDKValidationError>;
91
60
  /** @internal */
@@ -5,39 +5,11 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
- import * as openEnums from "../types/enums.js";
9
8
  import { InputModality$inboundSchema } from "./inputmodality.js";
10
9
  import { InstructType$inboundSchema } from "./instructtype.js";
10
+ import { ModelGroup$inboundSchema } from "./modelgroup.js";
11
11
  import { OutputModality$inboundSchema, } from "./outputmodality.js";
12
12
  import { PublicEndpoint$inboundSchema, } from "./publicendpoint.js";
13
- /**
14
- * Tokenizer type used by the model
15
- */
16
- export const Tokenizer = {
17
- Router: "Router",
18
- Media: "Media",
19
- Other: "Other",
20
- Gpt: "GPT",
21
- Claude: "Claude",
22
- Gemini: "Gemini",
23
- Gemma: "Gemma",
24
- Grok: "Grok",
25
- Cohere: "Cohere",
26
- Nova: "Nova",
27
- Qwen: "Qwen",
28
- Yi: "Yi",
29
- DeepSeek: "DeepSeek",
30
- Mistral: "Mistral",
31
- Llama2: "Llama2",
32
- Llama3: "Llama3",
33
- Llama4: "Llama4",
34
- PaLM: "PaLM",
35
- Rwkv: "RWKV",
36
- Qwen3: "Qwen3",
37
- };
38
- /** @internal */
39
- export const Tokenizer$inboundSchema = openEnums
40
- .inboundSchema(Tokenizer);
41
13
  /** @internal */
42
14
  export const Architecture$inboundSchema = z
43
15
  .object({
@@ -45,7 +17,7 @@ export const Architecture$inboundSchema = z
45
17
  instruct_type: z.nullable(InstructType$inboundSchema),
46
18
  modality: z.nullable(z.string()),
47
19
  output_modalities: z.array(OutputModality$inboundSchema),
48
- tokenizer: z.nullable(Tokenizer$inboundSchema),
20
+ tokenizer: z.nullable(ModelGroup$inboundSchema),
49
21
  }).transform((v) => {
50
22
  return remap$(v, {
51
23
  "input_modalities": "inputModalities",
@@ -1,11 +1,6 @@
1
1
  import * as z from "zod/v4";
2
- import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
- export declare const LocalShellCallOutputItemStatus: {
4
- readonly InProgress: "in_progress";
5
- readonly Completed: "completed";
6
- readonly Incomplete: "incomplete";
7
- };
8
- export type LocalShellCallOutputItemStatus = OpenEnum<typeof LocalShellCallOutputItemStatus>;
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { ToolCallStatus } from "./toolcallstatus.js";
9
4
  export declare const LocalShellCallOutputItemType: {
10
5
  readonly LocalShellCallOutput: "local_shell_call_output";
11
6
  };
@@ -16,12 +11,10 @@ export type LocalShellCallOutputItemType = ClosedEnum<typeof LocalShellCallOutpu
16
11
  export type LocalShellCallOutputItem = {
17
12
  id: string;
18
13
  output: string;
19
- status?: LocalShellCallOutputItemStatus | null | undefined;
14
+ status?: ToolCallStatus | null | undefined;
20
15
  type: LocalShellCallOutputItemType;
21
16
  };
22
17
  /** @internal */
23
- export declare const LocalShellCallOutputItemStatus$outboundSchema: z.ZodType<string, LocalShellCallOutputItemStatus>;
24
- /** @internal */
25
18
  export declare const LocalShellCallOutputItemType$outboundSchema: z.ZodEnum<typeof LocalShellCallOutputItemType>;
26
19
  /** @internal */
27
20
  export type LocalShellCallOutputItem$Outbound = {
@@ -3,24 +3,17 @@
3
3
  * @generated-id: 07d6199bf63f
4
4
  */
5
5
  import * as z from "zod/v4";
6
- import * as openEnums from "../types/enums.js";
7
- export const LocalShellCallOutputItemStatus = {
8
- InProgress: "in_progress",
9
- Completed: "completed",
10
- Incomplete: "incomplete",
11
- };
6
+ import { ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
12
7
  export const LocalShellCallOutputItemType = {
13
8
  LocalShellCallOutput: "local_shell_call_output",
14
9
  };
15
10
  /** @internal */
16
- export const LocalShellCallOutputItemStatus$outboundSchema = openEnums.outboundSchema(LocalShellCallOutputItemStatus);
17
- /** @internal */
18
11
  export const LocalShellCallOutputItemType$outboundSchema = z.enum(LocalShellCallOutputItemType);
19
12
  /** @internal */
20
13
  export const LocalShellCallOutputItem$outboundSchema = z.object({
21
14
  id: z.string(),
22
15
  output: z.string(),
23
- status: z.nullable(LocalShellCallOutputItemStatus$outboundSchema).optional(),
16
+ status: z.nullable(ToolCallStatus$outboundSchema).optional(),
24
17
  type: LocalShellCallOutputItemType$outboundSchema,
25
18
  });
26
19
  export function localShellCallOutputItemToJSON(localShellCallOutputItem) {