@openrouter/sdk 0.13.7 → 0.13.13

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 (216) hide show
  1. package/README.md +3 -9
  2. package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
  3. package/esm/funcs/{datasetsGetBenchmarksDesignArena.js → benchmarksGetBenchmarks.js} +11 -10
  4. package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
  5. package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
  6. package/esm/funcs/imagesGenerate.d.ts +30 -0
  7. package/esm/funcs/imagesGenerate.js +95 -0
  8. package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
  9. package/esm/funcs/imagesListModelEndpoints.js +107 -0
  10. package/esm/funcs/{datasetsGetBenchmarksDesignArena.d.ts → imagesListModels.d.ts} +4 -4
  11. package/esm/funcs/{datasetsGetBenchmarksArtificialAnalysis.js → imagesListModels.js} +10 -15
  12. package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
  13. package/esm/funcs/workspacesDeleteBudget.js +107 -0
  14. package/esm/funcs/workspacesListBudgets.d.ts +19 -0
  15. package/esm/funcs/workspacesListBudgets.js +103 -0
  16. package/esm/funcs/workspacesSetBudget.d.ts +19 -0
  17. package/esm/funcs/workspacesSetBudget.js +110 -0
  18. package/esm/lib/config.d.ts +2 -2
  19. package/esm/lib/config.js +2 -2
  20. package/esm/models/advisorreasoning.d.ts +1 -0
  21. package/esm/models/advisorreasoning.js +1 -0
  22. package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
  23. package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
  24. package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
  25. package/esm/models/anthropiccompactionusageiteration.js +35 -0
  26. package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
  27. package/esm/models/anthropicdocumentblockparam.js +3 -0
  28. package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
  29. package/esm/models/anthropicfiledocumentsource.js +19 -0
  30. package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
  31. package/esm/models/anthropiciterationcachecreation.js +21 -0
  32. package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
  33. package/esm/models/anthropicmessageusageiteration.js +36 -0
  34. package/esm/models/anthropicspeed.d.ts +10 -0
  35. package/esm/models/anthropicspeed.js +12 -0
  36. package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
  37. package/esm/models/anthropicunknownusageiteration.js +30 -0
  38. package/esm/models/anthropicusageiteration.d.ts +12 -0
  39. package/esm/models/anthropicusageiteration.js +21 -0
  40. package/esm/models/apierrortype.d.ts +41 -0
  41. package/esm/models/apierrortype.js +40 -0
  42. package/esm/models/booleancapability.d.ts +13 -0
  43. package/esm/models/booleancapability.js +14 -0
  44. package/esm/models/byokproviderslug.d.ts +3 -0
  45. package/esm/models/byokproviderslug.js +3 -0
  46. package/esm/models/capabilitydescriptor.d.ts +15 -0
  47. package/esm/models/capabilitydescriptor.js +19 -0
  48. package/esm/models/chatrequest.d.ts +2 -0
  49. package/esm/models/chatrequest.js +2 -0
  50. package/esm/models/chatstreamchunk.d.ts +25 -4
  51. package/esm/models/chatstreamchunk.js +19 -4
  52. package/esm/models/chatusage.d.ts +32 -8
  53. package/esm/models/chatusage.js +25 -8
  54. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  55. package/esm/models/contentpartimage.d.ts +9 -2
  56. package/esm/models/contentpartimage.js +6 -1
  57. package/esm/models/debugevent.d.ts +42 -0
  58. package/esm/models/debugevent.js +58 -0
  59. package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
  60. package/esm/models/deleteworkspacebudgetresponse.js +14 -0
  61. package/esm/models/enumcapability.d.ts +14 -0
  62. package/esm/models/enumcapability.js +15 -0
  63. package/esm/models/fusionplugin.d.ts +1 -0
  64. package/esm/models/fusionplugin.js +1 -0
  65. package/esm/models/fusionservertoolconfig.d.ts +8 -1
  66. package/esm/models/fusionservertoolconfig.js +4 -0
  67. package/esm/models/imageendpoint.d.ts +41 -0
  68. package/esm/models/imageendpoint.js +33 -0
  69. package/esm/models/imagegencompletedevent.d.ts +29 -0
  70. package/esm/models/imagegencompletedevent.js +23 -0
  71. package/esm/models/imagegenerationrequest.d.ts +908 -0
  72. package/esm/models/imagegenerationrequest.js +266 -0
  73. package/esm/models/imagegenerationresponse.d.ts +34 -0
  74. package/esm/models/imagegenerationresponse.js +29 -0
  75. package/esm/models/imagegenerationservertool.d.ts +15 -15
  76. package/esm/models/imagegenerationservertool.js +15 -17
  77. package/esm/models/imagegenerationusage.d.ts +119 -0
  78. package/esm/models/imagegenerationusage.js +93 -0
  79. package/esm/models/imagegenpartialimageevent.d.ts +24 -0
  80. package/esm/models/imagegenpartialimageevent.js +22 -0
  81. package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
  82. package/esm/models/imagegenstreamerrorevent.js +25 -0
  83. package/esm/models/imagemodelarchitecture.d.ts +19 -0
  84. package/esm/models/imagemodelarchitecture.js +23 -0
  85. package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
  86. package/esm/models/imagemodelendpointsresponse.js +16 -0
  87. package/esm/models/imagemodellistitem.d.ts +42 -0
  88. package/esm/models/imagemodellistitem.js +29 -0
  89. package/esm/models/imagemodelslistresponse.d.ts +14 -0
  90. package/esm/models/imagemodelslistresponse.js +15 -0
  91. package/esm/models/imageoutputmodality.d.ts +16 -0
  92. package/esm/models/imageoutputmodality.js +18 -0
  93. package/esm/models/imagepricingentry.d.ts +35 -0
  94. package/esm/models/imagepricingentry.js +41 -0
  95. package/esm/models/imagestreamingresponse.d.ts +18 -0
  96. package/esm/models/imagestreamingresponse.js +43 -0
  97. package/esm/models/index.d.ts +44 -7
  98. package/esm/models/index.js +44 -7
  99. package/esm/models/inputreference.d.ts +6 -2
  100. package/esm/models/inputreference.js +1 -1
  101. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  102. package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
  103. package/esm/models/listworkspacebudgetsresponse.js +15 -0
  104. package/esm/models/messagesrequest.d.ts +6 -6
  105. package/esm/models/messagesrequest.js +4 -5
  106. package/esm/models/model.d.ts +5 -0
  107. package/esm/models/model.js +2 -0
  108. package/esm/models/modelreasoning.d.ts +49 -0
  109. package/esm/models/modelreasoning.js +42 -0
  110. package/esm/models/observabilityarizedestination.d.ts +3 -0
  111. package/esm/models/openresponsesresult.d.ts +5 -0
  112. package/esm/models/openresponsesresult.js +3 -0
  113. package/esm/models/operations/createembeddings.d.ts +19 -0
  114. package/esm/models/operations/createembeddings.js +20 -0
  115. package/esm/models/operations/createimages.d.ts +63 -0
  116. package/esm/models/operations/createimages.js +44 -0
  117. package/esm/models/operations/{getbenchmarksartificialanalysis.d.ts → deleteworkspacebudget.d.ts} +15 -9
  118. package/esm/models/operations/deleteworkspacebudget.js +23 -0
  119. package/esm/models/operations/getbenchmarks.d.ts +120 -0
  120. package/esm/models/operations/getbenchmarks.js +60 -0
  121. package/esm/models/operations/getmodels.d.ts +5 -3
  122. package/esm/models/operations/getmodels.js +3 -1
  123. package/esm/models/operations/{getbenchmarksdesignarena.d.ts → gettaskclassifications.d.ts} +16 -28
  124. package/esm/models/operations/gettaskclassifications.js +29 -0
  125. package/esm/models/operations/index.d.ts +8 -2
  126. package/esm/models/operations/index.js +8 -2
  127. package/esm/models/operations/listbyokkeys.d.ts +3 -0
  128. package/esm/models/operations/listbyokkeys.js +3 -0
  129. package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
  130. package/esm/models/operations/listimagemodelendpoints.js +22 -0
  131. package/esm/models/operations/listimagemodels.d.ts +53 -0
  132. package/esm/models/operations/listimagemodels.js +20 -0
  133. package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
  134. package/esm/models/operations/listworkspacebudgets.js +21 -0
  135. package/esm/models/operations/queryanalytics.d.ts +7 -3
  136. package/esm/models/operations/queryanalytics.js +1 -0
  137. package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
  138. package/esm/models/operations/upsertworkspacebudget.js +25 -0
  139. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  140. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  141. package/esm/models/providername.d.ts +3 -0
  142. package/esm/models/providername.js +3 -0
  143. package/esm/models/provideroptions.d.ts +19 -1
  144. package/esm/models/provideroptions.js +5 -0
  145. package/esm/models/providerresponse.d.ts +3 -0
  146. package/esm/models/providerresponse.js +3 -0
  147. package/esm/models/rangecapability.d.ts +15 -0
  148. package/esm/models/rangecapability.js +16 -0
  149. package/esm/models/reasoningeffort.d.ts +1 -0
  150. package/esm/models/reasoningeffort.js +1 -0
  151. package/esm/models/responsesrequest.d.ts +6 -0
  152. package/esm/models/responsesrequest.js +2 -0
  153. package/esm/models/speechrequest.d.ts +1 -1
  154. package/esm/models/streamevents.d.ts +2 -1
  155. package/esm/models/streamevents.js +2 -0
  156. package/esm/models/sttrequest.d.ts +1 -1
  157. package/esm/models/subagentreasoning.d.ts +1 -0
  158. package/esm/models/subagentreasoning.js +1 -0
  159. package/esm/models/taskclassificationitem.d.ts +42 -0
  160. package/esm/models/taskclassificationitem.js +32 -0
  161. package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
  162. package/esm/models/taskclassificationmacrocategory.js +23 -0
  163. package/esm/models/taskclassificationmodel.d.ts +21 -0
  164. package/esm/models/taskclassificationmodel.js +22 -0
  165. package/esm/models/taskclassificationresponse.d.ts +33 -0
  166. package/esm/models/taskclassificationresponse.js +33 -0
  167. package/esm/models/{benchmarkpricing.d.ts → unifiedbenchmarkpricing.d.ts} +4 -4
  168. package/esm/models/unifiedbenchmarkpricing.js +15 -0
  169. package/esm/models/{benchmarksaaitem.d.ts → unifiedbenchmarksaaitem.d.ts} +14 -10
  170. package/esm/models/unifiedbenchmarksaaitem.js +30 -0
  171. package/esm/models/{benchmarksdaitem.d.ts → unifiedbenchmarksdaitem.d.ts} +11 -7
  172. package/esm/models/{benchmarksdaitem.js → unifiedbenchmarksdaitem.js} +8 -7
  173. package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
  174. package/esm/models/unifiedbenchmarksmeta.js +46 -0
  175. package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
  176. package/esm/models/unifiedbenchmarksresponse.js +30 -0
  177. package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
  178. package/esm/models/upsertworkspacebudgetrequest.js +18 -0
  179. package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
  180. package/esm/models/upsertworkspacebudgetresponse.js +15 -0
  181. package/esm/models/videogenerationrequest.d.ts +33 -15
  182. package/esm/models/videogenerationrequest.js +16 -11
  183. package/esm/models/websearchconfig.d.ts +1 -1
  184. package/esm/models/websearchservertool.d.ts +1 -1
  185. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  186. package/esm/models/workspacebudget.d.ts +48 -0
  187. package/esm/models/workspacebudget.js +39 -0
  188. package/esm/models/workspacebudgetinterval.d.ts +18 -0
  189. package/esm/models/workspacebudgetinterval.js +17 -0
  190. package/esm/sdk/benchmarks.d.ts +13 -0
  191. package/esm/sdk/benchmarks.js +19 -0
  192. package/esm/sdk/classifications.d.ts +31 -0
  193. package/esm/sdk/classifications.js +37 -0
  194. package/esm/sdk/datasets.d.ts +0 -14
  195. package/esm/sdk/datasets.js +0 -20
  196. package/esm/sdk/images.d.ts +38 -0
  197. package/esm/sdk/images.js +33 -0
  198. package/esm/sdk/sdk.d.ts +9 -0
  199. package/esm/sdk/sdk.js +12 -0
  200. package/esm/sdk/workspaces.d.ts +21 -0
  201. package/esm/sdk/workspaces.js +30 -0
  202. package/jsr.json +1 -1
  203. package/package.json +5 -5
  204. package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +0 -19
  205. package/esm/models/benchmarkpricing.js +0 -15
  206. package/esm/models/benchmarksaaitem.js +0 -29
  207. package/esm/models/benchmarksaameta.d.ts +0 -70
  208. package/esm/models/benchmarksaameta.js +0 -50
  209. package/esm/models/benchmarksaaresponse.d.ts +0 -13
  210. package/esm/models/benchmarksaaresponse.js +0 -17
  211. package/esm/models/benchmarksdameta.d.ts +0 -98
  212. package/esm/models/benchmarksdameta.js +0 -62
  213. package/esm/models/benchmarksdaresponse.d.ts +0 -13
  214. package/esm/models/benchmarksdaresponse.js +0 -17
  215. package/esm/models/operations/getbenchmarksartificialanalysis.js +0 -22
  216. package/esm/models/operations/getbenchmarksdesignarena.js +0 -36
@@ -6,6 +6,7 @@ export * from "./advisorreasoning.js";
6
6
  export * from "./advisorservertoolconfig.js";
7
7
  export * from "./advisorservertoolopenrouter.js";
8
8
  export * from "./annotationaddedevent.js";
9
+ export * from "./anthropicadvisormessageusageiteration.js";
9
10
  export * from "./anthropicallowedcallers.js";
10
11
  export * from "./anthropicbase64imagesource.js";
11
12
  export * from "./anthropicbase64pdfsource.js";
@@ -16,22 +17,30 @@ export * from "./anthropiccitationcontentblocklocationparam.js";
16
17
  export * from "./anthropiccitationpagelocationparam.js";
17
18
  export * from "./anthropiccitationsearchresultlocation.js";
18
19
  export * from "./anthropiccitationwebsearchresultlocation.js";
20
+ export * from "./anthropiccompactionusageiteration.js";
19
21
  export * from "./anthropicdocumentblockparam.js";
22
+ export * from "./anthropicfiledocumentsource.js";
20
23
  export * from "./anthropicimageblockparam.js";
21
24
  export * from "./anthropicimagemimetype.js";
22
25
  export * from "./anthropicinputtokensclearatleast.js";
23
26
  export * from "./anthropicinputtokenstrigger.js";
27
+ export * from "./anthropiciterationcachecreation.js";
28
+ export * from "./anthropicmessageusageiteration.js";
24
29
  export * from "./anthropicplaintextsource.js";
25
30
  export * from "./anthropicsearchresultblockparam.js";
31
+ export * from "./anthropicspeed.js";
26
32
  export * from "./anthropictextblockparam.js";
27
33
  export * from "./anthropicthinkingdisplay.js";
28
34
  export * from "./anthropicthinkingturns.js";
29
35
  export * from "./anthropictooluseskeep.js";
30
36
  export * from "./anthropictoolusestrigger.js";
37
+ export * from "./anthropicunknownusageiteration.js";
31
38
  export * from "./anthropicurlimagesource.js";
32
39
  export * from "./anthropicurlpdfsource.js";
40
+ export * from "./anthropicusageiteration.js";
33
41
  export * from "./anthropicwebsearchresultblockparam.js";
34
42
  export * from "./anthropicwebsearchtooluserlocation.js";
43
+ export * from "./apierrortype.js";
35
44
  export * from "./applypatchcallitem.js";
36
45
  export * from "./applypatchcalloperation.js";
37
46
  export * from "./applypatchcalloperationdiffdeltaevent.js";
@@ -56,13 +65,7 @@ export * from "./bashservertool.js";
56
65
  export * from "./bashservertoolconfig.js";
57
66
  export * from "./bashservertoolengine.js";
58
67
  export * from "./bashservertoolenvironment.js";
59
- export * from "./benchmarkpricing.js";
60
- export * from "./benchmarksaaitem.js";
61
- export * from "./benchmarksaameta.js";
62
- export * from "./benchmarksaaresponse.js";
63
- export * from "./benchmarksdaitem.js";
64
- export * from "./benchmarksdameta.js";
65
- export * from "./benchmarksdaresponse.js";
68
+ export * from "./booleancapability.js";
66
69
  export * from "./bulkaddworkspacemembersrequest.js";
67
70
  export * from "./bulkaddworkspacemembersresponse.js";
68
71
  export * from "./bulkassignkeysrequest.js";
@@ -77,6 +80,7 @@ export * from "./bulkunassignmembersrequest.js";
77
80
  export * from "./bulkunassignmembersresponse.js";
78
81
  export * from "./byokkey.js";
79
82
  export * from "./byokproviderslug.js";
83
+ export * from "./capabilitydescriptor.js";
80
84
  export * from "./chatassistantimages.js";
81
85
  export * from "./chatassistantmessage.js";
82
86
  export * from "./chataudiooutput.js";
@@ -162,16 +166,19 @@ export * from "./customtoolcalloutputitem.js";
162
166
  export * from "./dabenchmarkentry.js";
163
167
  export * from "./datetimeservertool.js";
164
168
  export * from "./datetimeservertoolconfig.js";
169
+ export * from "./debugevent.js";
165
170
  export * from "./defaultparameters.js";
166
171
  export * from "./deletebyokkeyresponse.js";
167
172
  export * from "./deleteguardrailresponse.js";
168
173
  export * from "./deleteobservabilitydestinationresponse.js";
174
+ export * from "./deleteworkspacebudgetresponse.js";
169
175
  export * from "./deleteworkspaceresponse.js";
170
176
  export * from "./easyinputmessage.js";
171
177
  export * from "./edgenetworktimeoutresponseerrordata.js";
172
178
  export * from "./endpointinfo.js";
173
179
  export * from "./endpointsmetadata.js";
174
180
  export * from "./endpointstatus.js";
181
+ export * from "./enumcapability.js";
175
182
  export * from "./errorevent.js";
176
183
  export * from "./filecitation.js";
177
184
  export * from "./filedeleteresponse.js";
@@ -215,15 +222,29 @@ export * from "./getworkspaceresponse.js";
215
222
  export * from "./guardrail.js";
216
223
  export * from "./guardrailinterval.js";
217
224
  export * from "./imageconfig.js";
225
+ export * from "./imageendpoint.js";
218
226
  export * from "./imagegencallcompletedevent.js";
219
227
  export * from "./imagegencallgeneratingevent.js";
220
228
  export * from "./imagegencallinprogressevent.js";
221
229
  export * from "./imagegencallpartialimageevent.js";
230
+ export * from "./imagegencompletedevent.js";
231
+ export * from "./imagegenerationrequest.js";
232
+ export * from "./imagegenerationresponse.js";
222
233
  export * from "./imagegenerationservertool.js";
223
234
  export * from "./imagegenerationservertoolconfig.js";
224
235
  export * from "./imagegenerationservertoolconfigunion.js";
225
236
  export * from "./imagegenerationservertoolopenrouter.js";
226
237
  export * from "./imagegenerationstatus.js";
238
+ export * from "./imagegenerationusage.js";
239
+ export * from "./imagegenpartialimageevent.js";
240
+ export * from "./imagegenstreamerrorevent.js";
241
+ export * from "./imagemodelarchitecture.js";
242
+ export * from "./imagemodelendpointsresponse.js";
243
+ export * from "./imagemodellistitem.js";
244
+ export * from "./imagemodelslistresponse.js";
245
+ export * from "./imageoutputmodality.js";
246
+ export * from "./imagepricingentry.js";
247
+ export * from "./imagestreamingresponse.js";
227
248
  export * from "./incompletedetails.js";
228
249
  export * from "./inputaudio.js";
229
250
  export * from "./inputfile.js";
@@ -248,6 +269,7 @@ export * from "./listmemberassignmentsresponse.js";
248
269
  export * from "./listobservabilitydestinationsresponse.js";
249
270
  export * from "./listpresetsresponse.js";
250
271
  export * from "./listpresetversionsresponse.js";
272
+ export * from "./listworkspacebudgetsresponse.js";
251
273
  export * from "./listworkspacesresponse.js";
252
274
  export * from "./localshellcallitem.js";
253
275
  export * from "./localshellcalloutputitem.js";
@@ -268,6 +290,7 @@ export * from "./modelarchitecture.js";
268
290
  export * from "./modelbenchmarks.js";
269
291
  export * from "./modelgroup.js";
270
292
  export * from "./modellinks.js";
293
+ export * from "./modelreasoning.js";
271
294
  export * from "./modelresponse.js";
272
295
  export * from "./modelscountresponse.js";
273
296
  export * from "./modelslistresponse.js";
@@ -374,6 +397,7 @@ export * from "./providersortconfig.js";
374
397
  export * from "./publicendpoint.js";
375
398
  export * from "./publicpricing.js";
376
399
  export * from "./quantization.js";
400
+ export * from "./rangecapability.js";
377
401
  export * from "./rankingsdailyitem.js";
378
402
  export * from "./rankingsdailymeta.js";
379
403
  export * from "./rankingsdailyresponse.js";
@@ -443,6 +467,10 @@ export * from "./subagentnestedtool.js";
443
467
  export * from "./subagentreasoning.js";
444
468
  export * from "./subagentservertoolconfig.js";
445
469
  export * from "./subagentservertoolopenrouter.js";
470
+ export * from "./taskclassificationitem.js";
471
+ export * from "./taskclassificationmacrocategory.js";
472
+ export * from "./taskclassificationmodel.js";
473
+ export * from "./taskclassificationresponse.js";
446
474
  export * from "./textdeltaevent.js";
447
475
  export * from "./textdoneevent.js";
448
476
  export * from "./textextendedconfig.js";
@@ -453,6 +481,11 @@ export * from "./topproviderinfo.js";
453
481
  export * from "./traceconfig.js";
454
482
  export * from "./truncation.js";
455
483
  export * from "./unauthorizedresponseerrordata.js";
484
+ export * from "./unifiedbenchmarkpricing.js";
485
+ export * from "./unifiedbenchmarksaaitem.js";
486
+ export * from "./unifiedbenchmarksdaitem.js";
487
+ export * from "./unifiedbenchmarksmeta.js";
488
+ export * from "./unifiedbenchmarksresponse.js";
456
489
  export * from "./unprocessableentityresponseerrordata.js";
457
490
  export * from "./updatebyokkeyrequest.js";
458
491
  export * from "./updatebyokkeyresponse.js";
@@ -462,6 +495,8 @@ export * from "./updateobservabilitydestinationrequest.js";
462
495
  export * from "./updateobservabilitydestinationresponse.js";
463
496
  export * from "./updateworkspacerequest.js";
464
497
  export * from "./updateworkspaceresponse.js";
498
+ export * from "./upsertworkspacebudgetrequest.js";
499
+ export * from "./upsertworkspacebudgetresponse.js";
465
500
  export * from "./urlcitation.js";
466
501
  export * from "./usage.js";
467
502
  export * from "./videogenerationrequest.js";
@@ -489,5 +524,7 @@ export * from "./websearchstatus.js";
489
524
  export * from "./websearchuserlocation.js";
490
525
  export * from "./websearchuserlocationservertool.js";
491
526
  export * from "./workspace.js";
527
+ export * from "./workspacebudget.js";
528
+ export * from "./workspacebudgetinterval.js";
492
529
  export * from "./workspacemember.js";
493
530
  //# sourceMappingURL=index.d.ts.map
@@ -10,6 +10,7 @@ export * from "./advisorreasoning.js";
10
10
  export * from "./advisorservertoolconfig.js";
11
11
  export * from "./advisorservertoolopenrouter.js";
12
12
  export * from "./annotationaddedevent.js";
13
+ export * from "./anthropicadvisormessageusageiteration.js";
13
14
  export * from "./anthropicallowedcallers.js";
14
15
  export * from "./anthropicbase64imagesource.js";
15
16
  export * from "./anthropicbase64pdfsource.js";
@@ -20,22 +21,30 @@ export * from "./anthropiccitationcontentblocklocationparam.js";
20
21
  export * from "./anthropiccitationpagelocationparam.js";
21
22
  export * from "./anthropiccitationsearchresultlocation.js";
22
23
  export * from "./anthropiccitationwebsearchresultlocation.js";
24
+ export * from "./anthropiccompactionusageiteration.js";
23
25
  export * from "./anthropicdocumentblockparam.js";
26
+ export * from "./anthropicfiledocumentsource.js";
24
27
  export * from "./anthropicimageblockparam.js";
25
28
  export * from "./anthropicimagemimetype.js";
26
29
  export * from "./anthropicinputtokensclearatleast.js";
27
30
  export * from "./anthropicinputtokenstrigger.js";
31
+ export * from "./anthropiciterationcachecreation.js";
32
+ export * from "./anthropicmessageusageiteration.js";
28
33
  export * from "./anthropicplaintextsource.js";
29
34
  export * from "./anthropicsearchresultblockparam.js";
35
+ export * from "./anthropicspeed.js";
30
36
  export * from "./anthropictextblockparam.js";
31
37
  export * from "./anthropicthinkingdisplay.js";
32
38
  export * from "./anthropicthinkingturns.js";
33
39
  export * from "./anthropictooluseskeep.js";
34
40
  export * from "./anthropictoolusestrigger.js";
41
+ export * from "./anthropicunknownusageiteration.js";
35
42
  export * from "./anthropicurlimagesource.js";
36
43
  export * from "./anthropicurlpdfsource.js";
44
+ export * from "./anthropicusageiteration.js";
37
45
  export * from "./anthropicwebsearchresultblockparam.js";
38
46
  export * from "./anthropicwebsearchtooluserlocation.js";
47
+ export * from "./apierrortype.js";
39
48
  export * from "./applypatchcallitem.js";
40
49
  export * from "./applypatchcalloperation.js";
41
50
  export * from "./applypatchcalloperationdiffdeltaevent.js";
@@ -60,13 +69,7 @@ export * from "./bashservertool.js";
60
69
  export * from "./bashservertoolconfig.js";
61
70
  export * from "./bashservertoolengine.js";
62
71
  export * from "./bashservertoolenvironment.js";
63
- export * from "./benchmarkpricing.js";
64
- export * from "./benchmarksaaitem.js";
65
- export * from "./benchmarksaameta.js";
66
- export * from "./benchmarksaaresponse.js";
67
- export * from "./benchmarksdaitem.js";
68
- export * from "./benchmarksdameta.js";
69
- export * from "./benchmarksdaresponse.js";
72
+ export * from "./booleancapability.js";
70
73
  export * from "./bulkaddworkspacemembersrequest.js";
71
74
  export * from "./bulkaddworkspacemembersresponse.js";
72
75
  export * from "./bulkassignkeysrequest.js";
@@ -81,6 +84,7 @@ export * from "./bulkunassignmembersrequest.js";
81
84
  export * from "./bulkunassignmembersresponse.js";
82
85
  export * from "./byokkey.js";
83
86
  export * from "./byokproviderslug.js";
87
+ export * from "./capabilitydescriptor.js";
84
88
  export * from "./chatassistantimages.js";
85
89
  export * from "./chatassistantmessage.js";
86
90
  export * from "./chataudiooutput.js";
@@ -166,16 +170,19 @@ export * from "./customtoolcalloutputitem.js";
166
170
  export * from "./dabenchmarkentry.js";
167
171
  export * from "./datetimeservertool.js";
168
172
  export * from "./datetimeservertoolconfig.js";
173
+ export * from "./debugevent.js";
169
174
  export * from "./defaultparameters.js";
170
175
  export * from "./deletebyokkeyresponse.js";
171
176
  export * from "./deleteguardrailresponse.js";
172
177
  export * from "./deleteobservabilitydestinationresponse.js";
178
+ export * from "./deleteworkspacebudgetresponse.js";
173
179
  export * from "./deleteworkspaceresponse.js";
174
180
  export * from "./easyinputmessage.js";
175
181
  export * from "./edgenetworktimeoutresponseerrordata.js";
176
182
  export * from "./endpointinfo.js";
177
183
  export * from "./endpointsmetadata.js";
178
184
  export * from "./endpointstatus.js";
185
+ export * from "./enumcapability.js";
179
186
  export * from "./errorevent.js";
180
187
  export * from "./filecitation.js";
181
188
  export * from "./filedeleteresponse.js";
@@ -219,15 +226,29 @@ export * from "./getworkspaceresponse.js";
219
226
  export * from "./guardrail.js";
220
227
  export * from "./guardrailinterval.js";
221
228
  export * from "./imageconfig.js";
229
+ export * from "./imageendpoint.js";
222
230
  export * from "./imagegencallcompletedevent.js";
223
231
  export * from "./imagegencallgeneratingevent.js";
224
232
  export * from "./imagegencallinprogressevent.js";
225
233
  export * from "./imagegencallpartialimageevent.js";
234
+ export * from "./imagegencompletedevent.js";
235
+ export * from "./imagegenerationrequest.js";
236
+ export * from "./imagegenerationresponse.js";
226
237
  export * from "./imagegenerationservertool.js";
227
238
  export * from "./imagegenerationservertoolconfig.js";
228
239
  export * from "./imagegenerationservertoolconfigunion.js";
229
240
  export * from "./imagegenerationservertoolopenrouter.js";
230
241
  export * from "./imagegenerationstatus.js";
242
+ export * from "./imagegenerationusage.js";
243
+ export * from "./imagegenpartialimageevent.js";
244
+ export * from "./imagegenstreamerrorevent.js";
245
+ export * from "./imagemodelarchitecture.js";
246
+ export * from "./imagemodelendpointsresponse.js";
247
+ export * from "./imagemodellistitem.js";
248
+ export * from "./imagemodelslistresponse.js";
249
+ export * from "./imageoutputmodality.js";
250
+ export * from "./imagepricingentry.js";
251
+ export * from "./imagestreamingresponse.js";
231
252
  export * from "./incompletedetails.js";
232
253
  export * from "./inputaudio.js";
233
254
  export * from "./inputfile.js";
@@ -252,6 +273,7 @@ export * from "./listmemberassignmentsresponse.js";
252
273
  export * from "./listobservabilitydestinationsresponse.js";
253
274
  export * from "./listpresetsresponse.js";
254
275
  export * from "./listpresetversionsresponse.js";
276
+ export * from "./listworkspacebudgetsresponse.js";
255
277
  export * from "./listworkspacesresponse.js";
256
278
  export * from "./localshellcallitem.js";
257
279
  export * from "./localshellcalloutputitem.js";
@@ -272,6 +294,7 @@ export * from "./modelarchitecture.js";
272
294
  export * from "./modelbenchmarks.js";
273
295
  export * from "./modelgroup.js";
274
296
  export * from "./modellinks.js";
297
+ export * from "./modelreasoning.js";
275
298
  export * from "./modelresponse.js";
276
299
  export * from "./modelscountresponse.js";
277
300
  export * from "./modelslistresponse.js";
@@ -378,6 +401,7 @@ export * from "./providersortconfig.js";
378
401
  export * from "./publicendpoint.js";
379
402
  export * from "./publicpricing.js";
380
403
  export * from "./quantization.js";
404
+ export * from "./rangecapability.js";
381
405
  export * from "./rankingsdailyitem.js";
382
406
  export * from "./rankingsdailymeta.js";
383
407
  export * from "./rankingsdailyresponse.js";
@@ -447,6 +471,10 @@ export * from "./subagentnestedtool.js";
447
471
  export * from "./subagentreasoning.js";
448
472
  export * from "./subagentservertoolconfig.js";
449
473
  export * from "./subagentservertoolopenrouter.js";
474
+ export * from "./taskclassificationitem.js";
475
+ export * from "./taskclassificationmacrocategory.js";
476
+ export * from "./taskclassificationmodel.js";
477
+ export * from "./taskclassificationresponse.js";
450
478
  export * from "./textdeltaevent.js";
451
479
  export * from "./textdoneevent.js";
452
480
  export * from "./textextendedconfig.js";
@@ -457,6 +485,11 @@ export * from "./topproviderinfo.js";
457
485
  export * from "./traceconfig.js";
458
486
  export * from "./truncation.js";
459
487
  export * from "./unauthorizedresponseerrordata.js";
488
+ export * from "./unifiedbenchmarkpricing.js";
489
+ export * from "./unifiedbenchmarksaaitem.js";
490
+ export * from "./unifiedbenchmarksdaitem.js";
491
+ export * from "./unifiedbenchmarksmeta.js";
492
+ export * from "./unifiedbenchmarksresponse.js";
460
493
  export * from "./unprocessableentityresponseerrordata.js";
461
494
  export * from "./updatebyokkeyrequest.js";
462
495
  export * from "./updatebyokkeyresponse.js";
@@ -466,6 +499,8 @@ export * from "./updateobservabilitydestinationrequest.js";
466
499
  export * from "./updateobservabilitydestinationresponse.js";
467
500
  export * from "./updateworkspacerequest.js";
468
501
  export * from "./updateworkspaceresponse.js";
502
+ export * from "./upsertworkspacebudgetrequest.js";
503
+ export * from "./upsertworkspacebudgetresponse.js";
469
504
  export * from "./urlcitation.js";
470
505
  export * from "./usage.js";
471
506
  export * from "./videogenerationrequest.js";
@@ -493,5 +528,7 @@ export * from "./websearchstatus.js";
493
528
  export * from "./websearchuserlocation.js";
494
529
  export * from "./websearchuserlocationservertool.js";
495
530
  export * from "./workspace.js";
531
+ export * from "./workspacebudget.js";
532
+ export * from "./workspacebudgetinterval.js";
496
533
  export * from "./workspacemember.js";
497
534
  //# sourceMappingURL=index.js.map
@@ -5,9 +5,13 @@ import { ContentPartVideo, ContentPartVideo$Outbound } from "./contentpartvideo.
5
5
  /**
6
6
  * A reference asset used to guide video generation. Image references are supported by all providers; audio and video references are only honored by providers that support them (currently BytePlus Seedance 2.0).
7
7
  */
8
- export type InputReference = ContentPartAudio | ContentPartImage | ContentPartVideo;
8
+ export type InputReference = ContentPartAudio | (ContentPartImage & {
9
+ type: "image_url";
10
+ }) | ContentPartVideo;
9
11
  /** @internal */
10
- export type InputReference$Outbound = ContentPartAudio$Outbound | ContentPartImage$Outbound | ContentPartVideo$Outbound;
12
+ export type InputReference$Outbound = ContentPartAudio$Outbound | (ContentPartImage$Outbound & {
13
+ type: "image_url";
14
+ }) | ContentPartVideo$Outbound;
11
15
  /** @internal */
12
16
  export declare const InputReference$outboundSchema: z.ZodType<InputReference$Outbound, InputReference>;
13
17
  export declare function inputReferenceToJSON(inputReference: InputReference): string;
@@ -9,7 +9,7 @@ import { ContentPartVideo$outboundSchema, } from "./contentpartvideo.js";
9
9
  /** @internal */
10
10
  export const InputReference$outboundSchema = z.union([
11
11
  ContentPartAudio$outboundSchema,
12
- ContentPartImage$outboundSchema,
12
+ ContentPartImage$outboundSchema.and(z.object({ type: z.literal("image_url") })),
13
13
  ContentPartVideo$outboundSchema,
14
14
  ]);
15
15
  export function inputReferenceToJSON(inputReference) {
@@ -15,7 +15,7 @@ export type LegacyWebSearchServerTool = {
15
15
  engine?: WebSearchEngineEnum | undefined;
16
16
  filters?: WebSearchDomainFilter | null | undefined;
17
17
  /**
18
- * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
18
+ * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
19
19
  */
20
20
  maxResults?: number | undefined;
21
21
  /**
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { WorkspaceBudget } from "./workspacebudget.js";
5
+ export type ListWorkspaceBudgetsResponse = {
6
+ /**
7
+ * List of budgets configured for the workspace
8
+ */
9
+ data: Array<WorkspaceBudget>;
10
+ };
11
+ /** @internal */
12
+ export declare const ListWorkspaceBudgetsResponse$inboundSchema: z.ZodType<ListWorkspaceBudgetsResponse, unknown>;
13
+ export declare function listWorkspaceBudgetsResponseFromJSON(jsonString: string): SafeParseResult<ListWorkspaceBudgetsResponse, SDKValidationError>;
14
+ //# sourceMappingURL=listworkspacebudgetsresponse.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2573f31846b9
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { WorkspaceBudget$inboundSchema, } from "./workspacebudget.js";
8
+ /** @internal */
9
+ export const ListWorkspaceBudgetsResponse$inboundSchema = z.object({
10
+ data: z.array(WorkspaceBudget$inboundSchema),
11
+ });
12
+ export function listWorkspaceBudgetsResponseFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => ListWorkspaceBudgetsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWorkspaceBudgetsResponse' from JSON`);
14
+ }
15
+ //# sourceMappingURL=listworkspacebudgetsresponse.js.map
@@ -76,7 +76,7 @@ export type Edit = EditClearToolUses20250919 | EditClearThinking20251015 | EditC
76
76
  export type ContextManagement = {
77
77
  edits?: Array<EditClearToolUses20250919 | EditClearThinking20251015 | EditCompact20260112> | undefined;
78
78
  };
79
- export type Metadata = {
79
+ export type MessagesRequestMetadata = {
80
80
  userId?: string | null | undefined;
81
81
  };
82
82
  export type MessagesRequestPlugin = AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | WebSearchPlugin | WebFetchPlugin;
@@ -271,7 +271,7 @@ export type MessagesRequest = {
271
271
  fallbacks?: Array<MessagesFallbackParam> | null | undefined;
272
272
  maxTokens?: number | undefined;
273
273
  messages: Array<MessagesMessageParam> | null;
274
- metadata?: Metadata | undefined;
274
+ metadata?: MessagesRequestMetadata | undefined;
275
275
  model: string;
276
276
  models?: Array<string> | undefined;
277
277
  /**
@@ -393,12 +393,12 @@ export type ContextManagement$Outbound = {
393
393
  export declare const ContextManagement$outboundSchema: z.ZodType<ContextManagement$Outbound, ContextManagement>;
394
394
  export declare function contextManagementToJSON(contextManagement: ContextManagement): string;
395
395
  /** @internal */
396
- export type Metadata$Outbound = {
396
+ export type MessagesRequestMetadata$Outbound = {
397
397
  user_id?: string | null | undefined;
398
398
  };
399
399
  /** @internal */
400
- export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, Metadata>;
401
- export declare function metadataToJSON(metadata: Metadata): string;
400
+ export declare const MessagesRequestMetadata$outboundSchema: z.ZodType<MessagesRequestMetadata$Outbound, MessagesRequestMetadata>;
401
+ export declare function messagesRequestMetadataToJSON(messagesRequestMetadata: MessagesRequestMetadata): string;
402
402
  /** @internal */
403
403
  export type MessagesRequestPlugin$Outbound = AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
404
404
  /** @internal */
@@ -609,7 +609,7 @@ export type MessagesRequest$Outbound = {
609
609
  fallbacks?: Array<MessagesFallbackParam$Outbound> | null | undefined;
610
610
  max_tokens?: number | undefined;
611
611
  messages: Array<MessagesMessageParam$Outbound> | null;
612
- metadata?: Metadata$Outbound | undefined;
612
+ metadata?: MessagesRequestMetadata$Outbound | undefined;
613
613
  model: string;
614
614
  models?: Array<string> | undefined;
615
615
  output_config?: MessagesOutputConfig$Outbound | undefined;
@@ -204,16 +204,15 @@ export function contextManagementToJSON(contextManagement) {
204
204
  return JSON.stringify(ContextManagement$outboundSchema.parse(contextManagement));
205
205
  }
206
206
  /** @internal */
207
- export const Metadata$outboundSchema = z
208
- .object({
207
+ export const MessagesRequestMetadata$outboundSchema = z.object({
209
208
  userId: z.nullable(z.string()).optional(),
210
209
  }).transform((v) => {
211
210
  return remap$(v, {
212
211
  userId: "user_id",
213
212
  });
214
213
  });
215
- export function metadataToJSON(metadata) {
216
- return JSON.stringify(Metadata$outboundSchema.parse(metadata));
214
+ export function messagesRequestMetadataToJSON(messagesRequestMetadata) {
215
+ return JSON.stringify(MessagesRequestMetadata$outboundSchema.parse(messagesRequestMetadata));
217
216
  }
218
217
  /** @internal */
219
218
  export const MessagesRequestPlugin$outboundSchema = z.union([
@@ -536,7 +535,7 @@ export const MessagesRequest$outboundSchema = z.object({
536
535
  .optional(),
537
536
  maxTokens: z.int().optional(),
538
537
  messages: z.nullable(z.array(MessagesMessageParam$outboundSchema)),
539
- metadata: z.lazy(() => Metadata$outboundSchema).optional(),
538
+ metadata: z.lazy(() => MessagesRequestMetadata$outboundSchema).optional(),
540
539
  model: z.string(),
541
540
  models: z.array(z.string()).optional(),
542
541
  outputConfig: MessagesOutputConfig$outboundSchema.optional(),
@@ -5,6 +5,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  import { ModelArchitecture } from "./modelarchitecture.js";
6
6
  import { ModelBenchmarks } from "./modelbenchmarks.js";
7
7
  import { ModelLinks } from "./modellinks.js";
8
+ import { ModelReasoning } from "./modelreasoning.js";
8
9
  import { Parameter } from "./parameter.js";
9
10
  import { PerRequestLimits } from "./perrequestlimits.js";
10
11
  import { PublicPricing } from "./publicpricing.js";
@@ -73,6 +74,10 @@ export type Model = {
73
74
  * Pricing information for the model
74
75
  */
75
76
  pricing: PublicPricing;
77
+ /**
78
+ * Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.
79
+ */
80
+ reasoning?: ModelReasoning | undefined;
76
81
  /**
77
82
  * List of supported parameters for this model
78
83
  */
@@ -9,6 +9,7 @@ import { DefaultParameters$inboundSchema, } from "./defaultparameters.js";
9
9
  import { ModelArchitecture$inboundSchema, } from "./modelarchitecture.js";
10
10
  import { ModelBenchmarks$inboundSchema, } from "./modelbenchmarks.js";
11
11
  import { ModelLinks$inboundSchema } from "./modellinks.js";
12
+ import { ModelReasoning$inboundSchema, } from "./modelreasoning.js";
12
13
  import { Parameter$inboundSchema } from "./parameter.js";
13
14
  import { PerRequestLimits$inboundSchema, } from "./perrequestlimits.js";
14
15
  import { PublicPricing$inboundSchema } from "./publicpricing.js";
@@ -30,6 +31,7 @@ export const Model$inboundSchema = z.object({
30
31
  name: z.string(),
31
32
  per_request_limits: z.nullable(PerRequestLimits$inboundSchema),
32
33
  pricing: PublicPricing$inboundSchema,
34
+ reasoning: ModelReasoning$inboundSchema.optional(),
33
35
  supported_parameters: z.array(Parameter$inboundSchema),
34
36
  supported_voices: z.nullable(z.array(z.string())),
35
37
  top_provider: TopProviderInfo$inboundSchema,
@@ -0,0 +1,49 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { ReasoningEffort } from "./reasoningeffort.js";
6
+ /**
7
+ * Default reasoning effort when the client enables reasoning without specifying effort. Maps to `reasoning.effort` in chat requests. When `"none"`, prefer omitting effort unless the user explicitly disables reasoning.
8
+ */
9
+ export declare const DefaultEffort: {
10
+ readonly Max: "max";
11
+ readonly Xhigh: "xhigh";
12
+ readonly High: "high";
13
+ readonly Medium: "medium";
14
+ readonly Low: "low";
15
+ readonly Minimal: "minimal";
16
+ readonly None: "none";
17
+ };
18
+ /**
19
+ * Default reasoning effort when the client enables reasoning without specifying effort. Maps to `reasoning.effort` in chat requests. When `"none"`, prefer omitting effort unless the user explicitly disables reasoning.
20
+ */
21
+ export type DefaultEffort = OpenEnum<typeof DefaultEffort>;
22
+ /**
23
+ * Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.
24
+ */
25
+ export type ModelReasoning = {
26
+ defaultEffort?: DefaultEffort | null | undefined;
27
+ /**
28
+ * Default reasoning enabled state when the client does not set `reasoning.enabled`.
29
+ */
30
+ defaultEnabled?: boolean | undefined;
31
+ /**
32
+ * When true, reasoning cannot be disabled and effort "none" is rejected.
33
+ */
34
+ mandatory: boolean;
35
+ /**
36
+ * Allowed reasoning effort values for this model, in descending effort order (highest first). Null means no allowlist — all gateway effort values are accepted.
37
+ */
38
+ supportedEfforts?: Array<ReasoningEffort | null> | null | undefined;
39
+ /**
40
+ * Present and `true` when the model accepts `reasoning.max_tokens` in requests (Anthropic-style) instead of or in addition to `reasoning.effort`. Omitted otherwise.
41
+ */
42
+ supportsMaxTokens?: boolean | undefined;
43
+ };
44
+ /** @internal */
45
+ export declare const DefaultEffort$inboundSchema: z.ZodType<DefaultEffort, unknown>;
46
+ /** @internal */
47
+ export declare const ModelReasoning$inboundSchema: z.ZodType<ModelReasoning, unknown>;
48
+ export declare function modelReasoningFromJSON(jsonString: string): SafeParseResult<ModelReasoning, SDKValidationError>;
49
+ //# sourceMappingURL=modelreasoning.d.ts.map
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c7312e55417d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { ReasoningEffort$inboundSchema, } from "./reasoningeffort.js";
10
+ /**
11
+ * Default reasoning effort when the client enables reasoning without specifying effort. Maps to `reasoning.effort` in chat requests. When `"none"`, prefer omitting effort unless the user explicitly disables reasoning.
12
+ */
13
+ export const DefaultEffort = {
14
+ Max: "max",
15
+ Xhigh: "xhigh",
16
+ High: "high",
17
+ Medium: "medium",
18
+ Low: "low",
19
+ Minimal: "minimal",
20
+ None: "none",
21
+ };
22
+ /** @internal */
23
+ export const DefaultEffort$inboundSchema = openEnums.inboundSchema(DefaultEffort);
24
+ /** @internal */
25
+ export const ModelReasoning$inboundSchema = z.object({
26
+ default_effort: z.nullable(DefaultEffort$inboundSchema).optional(),
27
+ default_enabled: z.boolean().optional(),
28
+ mandatory: z.boolean(),
29
+ supported_efforts: z.nullable(z.array(z.nullable(ReasoningEffort$inboundSchema))).optional(),
30
+ supports_max_tokens: z.boolean().optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "default_effort": "defaultEffort",
34
+ "default_enabled": "defaultEnabled",
35
+ "supported_efforts": "supportedEfforts",
36
+ "supports_max_tokens": "supportsMaxTokens",
37
+ });
38
+ });
39
+ export function modelReasoningFromJSON(jsonString) {
40
+ return safeParse(jsonString, (x) => ModelReasoning$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelReasoning' from JSON`);
41
+ }
42
+ //# sourceMappingURL=modelreasoning.js.map
@@ -11,6 +11,9 @@ export type ObservabilityArizeDestinationConfig = {
11
11
  headers?: {
12
12
  [k: string]: string;
13
13
  } | undefined;
14
+ /**
15
+ * The name of the tracing project in Arize AX
16
+ */
14
17
  modelId: string;
15
18
  spaceKey: string;
16
19
  };
@@ -2,6 +2,7 @@ import * as z from "zod/v4";
2
2
  import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
3
3
  import { ClosedEnum } from "../types/enums.js";
4
4
  import { Result as SafeParseResult } from "../types/fp.js";
5
+ import { ApiErrorType } from "./apierrortype.js";
5
6
  import { ApplyPatchServerTool } from "./applypatchservertool.js";
6
7
  import { BaseInputsUnion } from "./baseinputsunion.js";
7
8
  import { BaseReasoningConfig } from "./basereasoningconfig.js";
@@ -97,6 +98,10 @@ export type OpenResponsesResult = {
97
98
  */
98
99
  usage?: Usage | null | undefined;
99
100
  user?: string | null | undefined;
101
+ /**
102
+ * Canonical OpenRouter error type, stable across all API formats
103
+ */
104
+ errorType?: ApiErrorType | undefined;
100
105
  openrouterMetadata?: OpenRouterMetadata | undefined;
101
106
  };
102
107
  /** @internal */