@orq-ai/node 4.16.1 → 4.16.4

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 (262) hide show
  1. package/README.md +5 -3
  2. package/funcs/routerClassifyCreate.d.ts +10 -2
  3. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  4. package/funcs/routerClassifyCreate.js +10 -2
  5. package/funcs/routerClassifyCreate.js.map +1 -1
  6. package/funcs/routerDecisionsCreate.d.ts +10 -2
  7. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  8. package/funcs/routerDecisionsCreate.js +11 -2
  9. package/funcs/routerDecisionsCreate.js.map +1 -1
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/models/components/classifycacheconfig.d.ts +33 -0
  14. package/models/components/classifycacheconfig.d.ts.map +1 -0
  15. package/models/components/classifycacheconfig.js +58 -0
  16. package/models/components/classifycacheconfig.js.map +1 -0
  17. package/models/components/classifytimeoutconfig.d.ts +15 -0
  18. package/models/components/classifytimeoutconfig.d.ts.map +1 -0
  19. package/models/components/classifytimeoutconfig.js +54 -0
  20. package/models/components/classifytimeoutconfig.js.map +1 -0
  21. package/models/components/environment.d.ts +1 -1
  22. package/models/components/index.d.ts +7 -0
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +7 -0
  25. package/models/components/index.js.map +1 -1
  26. package/models/components/reasoningpart.js +1 -1
  27. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
  28. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
  29. package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
  30. package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
  31. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
  32. package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
  33. package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
  34. package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
  35. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
  36. package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
  37. package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
  38. package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
  39. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
  40. package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
  41. package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
  42. package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
  43. package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
  44. package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
  45. package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
  46. package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
  47. package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
  48. package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
  49. package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
  50. package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
  51. package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
  52. package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
  53. package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
  54. package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
  55. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
  56. package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
  57. package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
  58. package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
  59. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
  60. package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
  61. package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
  62. package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
  63. package/models/components/responsestreamevent.d.ts +6 -1
  64. package/models/components/responsestreamevent.d.ts.map +1 -1
  65. package/models/components/responsestreamevent.js +10 -0
  66. package/models/components/responsestreamevent.js.map +1 -1
  67. package/models/errors/createclassify.d.ts +23 -2
  68. package/models/errors/createclassify.d.ts.map +1 -1
  69. package/models/errors/createclassify.js +30 -2
  70. package/models/errors/createclassify.js.map +1 -1
  71. package/models/errors/createdecisions.d.ts +23 -2
  72. package/models/errors/createdecisions.d.ts.map +1 -1
  73. package/models/errors/createdecisions.js +30 -2
  74. package/models/errors/createdecisions.js.map +1 -1
  75. package/models/operations/createclassify.d.ts +4 -0
  76. package/models/operations/createclassify.d.ts.map +1 -1
  77. package/models/operations/createclassify.js +2 -0
  78. package/models/operations/createclassify.js.map +1 -1
  79. package/models/operations/createdecisions.d.ts +4 -0
  80. package/models/operations/createdecisions.d.ts.map +1 -1
  81. package/models/operations/createdecisions.js +2 -0
  82. package/models/operations/createdecisions.js.map +1 -1
  83. package/models/operations/createprompt.d.ts +2 -0
  84. package/models/operations/createprompt.d.ts.map +1 -1
  85. package/models/operations/createprompt.js +2 -0
  86. package/models/operations/createprompt.js.map +1 -1
  87. package/models/operations/createtool.js +4 -4
  88. package/models/operations/deploymentinvoke.d.ts +2 -0
  89. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  90. package/models/operations/deploymentinvoke.js +2 -0
  91. package/models/operations/deploymentinvoke.js.map +1 -1
  92. package/models/operations/deployments.d.ts +2 -0
  93. package/models/operations/deployments.d.ts.map +1 -1
  94. package/models/operations/deployments.js +2 -0
  95. package/models/operations/deployments.js.map +1 -1
  96. package/models/operations/deploymentstream.d.ts +2 -0
  97. package/models/operations/deploymentstream.d.ts.map +1 -1
  98. package/models/operations/deploymentstream.js +2 -0
  99. package/models/operations/deploymentstream.js.map +1 -1
  100. package/models/operations/getallprompts.d.ts +2 -0
  101. package/models/operations/getallprompts.d.ts.map +1 -1
  102. package/models/operations/getallprompts.js +2 -0
  103. package/models/operations/getallprompts.js.map +1 -1
  104. package/models/operations/getalltools.js +4 -4
  105. package/models/operations/getoneprompt.d.ts +2 -0
  106. package/models/operations/getoneprompt.d.ts.map +1 -1
  107. package/models/operations/getoneprompt.js +2 -0
  108. package/models/operations/getoneprompt.js.map +1 -1
  109. package/models/operations/getpromptversion.d.ts +2 -0
  110. package/models/operations/getpromptversion.d.ts.map +1 -1
  111. package/models/operations/getpromptversion.js +2 -0
  112. package/models/operations/getpromptversion.js.map +1 -1
  113. package/models/operations/getv2humanevalsets.js +2 -2
  114. package/models/operations/getv2humanevalsetsid.js +2 -2
  115. package/models/operations/listpromptversions.d.ts +2 -0
  116. package/models/operations/listpromptversions.d.ts.map +1 -1
  117. package/models/operations/listpromptversions.js +2 -0
  118. package/models/operations/listpromptversions.js.map +1 -1
  119. package/models/operations/patchv2humanevalsetsid.js +2 -2
  120. package/models/operations/postv2feedbackevaluation.js +4 -4
  121. package/models/operations/postv2humanevalsets.js +2 -2
  122. package/models/operations/retrievetool.js +4 -4
  123. package/models/operations/runagent.js +1 -1
  124. package/models/operations/streamrunagent.js +1 -1
  125. package/models/operations/updateprompt.d.ts +2 -0
  126. package/models/operations/updateprompt.d.ts.map +1 -1
  127. package/models/operations/updateprompt.js +2 -0
  128. package/models/operations/updateprompt.js.map +1 -1
  129. package/models/operations/updatetool.js +4 -4
  130. package/package.json +6 -6
  131. package/packages/orq-rc/src/funcs/responsesCompact.ts +1 -1
  132. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
  133. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
  134. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +20 -1
  135. package/packages/orq-rc/src/funcs/routerDecisionsCreate.ts +17 -1
  136. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +3 -0
  137. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +3 -0
  138. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +1 -1
  139. package/packages/orq-rc/src/lib/config.ts +3 -3
  140. package/packages/orq-rc/src/models/components/classifycacheconfig.ts +59 -0
  141. package/packages/orq-rc/src/models/components/classifytimeoutconfig.ts +39 -0
  142. package/packages/orq-rc/src/models/components/environment.ts +1 -1
  143. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +12 -3
  144. package/packages/orq-rc/src/models/components/index.ts +8 -1
  145. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +2 -2
  146. package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +16 -0
  147. package/packages/orq-rc/src/models/components/modelsconfig.ts +13 -0
  148. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  149. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  150. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  151. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  152. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  153. package/packages/orq-rc/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  154. package/packages/orq-rc/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  155. package/packages/orq-rc/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  156. package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  157. package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  158. package/packages/orq-rc/src/models/components/responsestreamevent.ts +30 -0
  159. package/packages/orq-rc/src/models/components/routingrulemodelsconfig.ts +16 -0
  160. package/packages/orq-rc/src/models/components/routingruleplugin.ts +22 -0
  161. package/packages/orq-rc/src/models/components/signalscheck.ts +51 -0
  162. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  163. package/packages/orq-rc/src/models/errors/createclassify.ts +54 -2
  164. package/packages/orq-rc/src/models/errors/createdecisions.ts +54 -2
  165. package/packages/orq-rc/src/models/errors/createmoderation.ts +2 -2
  166. package/packages/orq-rc/src/models/operations/compactresponse.ts +4 -4
  167. package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -0
  168. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +15 -1
  169. package/packages/orq-rc/src/models/operations/createclassify.ts +17 -0
  170. package/packages/orq-rc/src/models/operations/createcompletion.ts +14 -0
  171. package/packages/orq-rc/src/models/operations/createdecisions.ts +17 -0
  172. package/packages/orq-rc/src/models/operations/createembedding.ts +7 -0
  173. package/packages/orq-rc/src/models/operations/createimage.ts +14 -0
  174. package/packages/orq-rc/src/models/operations/createimageedit.ts +14 -0
  175. package/packages/orq-rc/src/models/operations/createimagevariation.ts +14 -0
  176. package/packages/orq-rc/src/models/operations/createmoderation.ts +3 -3
  177. package/packages/orq-rc/src/models/operations/createprompt.ts +17 -2
  178. package/packages/orq-rc/src/models/operations/creatererank.ts +14 -0
  179. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +7 -0
  180. package/packages/orq-rc/src/models/operations/createspeech.ts +14 -0
  181. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  182. package/packages/orq-rc/src/models/operations/createtranscription.ts +14 -0
  183. package/packages/orq-rc/src/models/operations/createtranslation.ts +14 -0
  184. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +2 -2
  185. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
  186. package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
  187. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4 -2
  188. package/packages/orq-rc/src/models/operations/getallprompts.ts +9 -1
  189. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  190. package/packages/orq-rc/src/models/operations/getoneprompt.ts +9 -1
  191. package/packages/orq-rc/src/models/operations/getpromptversion.ts +9 -1
  192. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  193. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  194. package/packages/orq-rc/src/models/operations/listagents.ts +12 -0
  195. package/packages/orq-rc/src/models/operations/listpromptversions.ts +9 -1
  196. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  198. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  199. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +12 -0
  200. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  201. package/packages/orq-rc/src/models/operations/runagent.ts +15 -1
  202. package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -1
  203. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +3 -0
  204. package/packages/orq-rc/src/models/operations/updateagent.ts +26 -0
  205. package/packages/orq-rc/src/models/operations/updateprompt.ts +17 -2
  206. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  207. package/packages/orq-rc/src/sdk/classify.ts +13 -1
  208. package/packages/orq-rc/src/sdk/decisions.ts +9 -1
  209. package/packages/orq-rc/src/sdk/responses.ts +1 -1
  210. package/sdk/classify.d.ts +9 -1
  211. package/sdk/classify.d.ts.map +1 -1
  212. package/sdk/classify.js +9 -1
  213. package/sdk/classify.js.map +1 -1
  214. package/sdk/decisions.d.ts +9 -1
  215. package/sdk/decisions.d.ts.map +1 -1
  216. package/sdk/decisions.js +9 -1
  217. package/sdk/decisions.js.map +1 -1
  218. package/src/funcs/routerClassifyCreate.ts +16 -1
  219. package/src/funcs/routerDecisionsCreate.ts +17 -1
  220. package/src/lib/config.ts +3 -3
  221. package/src/models/components/classifycacheconfig.ts +59 -0
  222. package/src/models/components/classifytimeoutconfig.ts +39 -0
  223. package/src/models/components/environment.ts +1 -1
  224. package/src/models/components/index.ts +7 -0
  225. package/src/models/components/reasoningpart.ts +1 -1
  226. package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
  227. package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
  228. package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
  229. package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
  230. package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
  231. package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
  232. package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
  233. package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
  234. package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
  235. package/src/models/components/responsestreamevent.ts +30 -0
  236. package/src/models/errors/createclassify.ts +54 -2
  237. package/src/models/errors/createdecisions.ts +54 -2
  238. package/src/models/operations/createclassify.ts +6 -0
  239. package/src/models/operations/createdecisions.ts +6 -0
  240. package/src/models/operations/createprompt.ts +2 -0
  241. package/src/models/operations/createtool.ts +4 -4
  242. package/src/models/operations/deploymentinvoke.ts +2 -0
  243. package/src/models/operations/deployments.ts +2 -0
  244. package/src/models/operations/deploymentstream.ts +2 -0
  245. package/src/models/operations/getallprompts.ts +2 -0
  246. package/src/models/operations/getalltools.ts +4 -4
  247. package/src/models/operations/getoneprompt.ts +2 -0
  248. package/src/models/operations/getpromptversion.ts +2 -0
  249. package/src/models/operations/getv2humanevalsets.ts +2 -2
  250. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  251. package/src/models/operations/listpromptversions.ts +2 -0
  252. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  253. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  254. package/src/models/operations/postv2humanevalsets.ts +2 -2
  255. package/src/models/operations/retrievetool.ts +4 -4
  256. package/src/models/operations/runagent.ts +1 -1
  257. package/src/models/operations/streamrunagent.ts +1 -1
  258. package/src/models/operations/updateprompt.ts +2 -0
  259. package/src/models/operations/updatetool.ts +4 -4
  260. package/src/sdk/classify.ts +9 -1
  261. package/src/sdk/decisions.ts +9 -1
  262. package/packages/orq-rc/src/models/components/publiccompactionitem.ts +0 -79
@@ -285,7 +285,7 @@ export type UpdatePrompt24 = {
285
285
  type: "file";
286
286
  cacheControl?: UpdatePrompt2CacheControl | undefined;
287
287
  /**
288
- * File data for the content part. Must contain either file_data or uri, but not both.
288
+ * File data for the content part. Must contain exactly one of file_data, file_id or uri.
289
289
  */
290
290
  file: components.FileContentPartSchema;
291
291
  };
@@ -883,6 +883,10 @@ export type UpdatePromptPromptInput = {
883
883
  | components.TraceScrubbingPlugin
884
884
  >
885
885
  | undefined;
886
+ /**
887
+ * HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
888
+ */
889
+ fallbackOnCodes?: Array<number> | undefined;
886
890
  /**
887
891
  * Array of fallback models to use if primary model fails
888
892
  */
@@ -1438,8 +1442,10 @@ export const UpdatePromptProvider = {
1438
1442
  Reson8: "reson8",
1439
1443
  Meta: "meta",
1440
1444
  Greenpt: "greenpt",
1445
+ Liquid: "liquid",
1441
1446
  Typesafe: "typesafe",
1442
1447
  Berget: "berget",
1448
+ Cloudflare: "cloudflare",
1443
1449
  Slack: "slack",
1444
1450
  Orq: "orq",
1445
1451
  } as const;
@@ -2273,7 +2279,7 @@ export type UpdatePrompt2Prompts4 = {
2273
2279
  type: "file";
2274
2280
  cacheControl?: UpdatePrompt2PromptsCacheControl | undefined;
2275
2281
  /**
2276
- * File data for the content part. Must contain either file_data or uri, but not both.
2282
+ * File data for the content part. Must contain exactly one of file_data, file_id or uri.
2277
2283
  */
2278
2284
  file: components.FileContentPartSchema;
2279
2285
  };
@@ -2476,6 +2482,10 @@ export type UpdatePromptPromptField = {
2476
2482
  | components.TraceScrubbingPlugin
2477
2483
  >
2478
2484
  | undefined;
2485
+ /**
2486
+ * HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
2487
+ */
2488
+ fallbackOnCodes?: Array<number> | undefined;
2479
2489
  /**
2480
2490
  * Array of fallback models to use if primary model fails
2481
2491
  */
@@ -3944,6 +3954,7 @@ export type UpdatePromptPromptInput$Outbound = {
3944
3954
  | components.TraceScrubbingPlugin$Outbound
3945
3955
  >
3946
3956
  | undefined;
3957
+ fallback_on_codes?: Array<number> | undefined;
3947
3958
  fallbacks?: Array<UpdatePromptFallbacks$Outbound> | undefined;
3948
3959
  retry?: UpdatePromptRetry$Outbound | undefined;
3949
3960
  cache?: UpdatePromptCache$Outbound | undefined;
@@ -4015,6 +4026,7 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
4015
4026
  components.TraceScrubbingPlugin$outboundSchema,
4016
4027
  ]),
4017
4028
  ).optional(),
4029
+ fallbackOnCodes: z.array(z.number().int()).optional(),
4018
4030
  fallbacks: z.array(z.lazy(() => UpdatePromptFallbacks$outboundSchema))
4019
4031
  .optional(),
4020
4032
  retry: z.lazy(() => UpdatePromptRetry$outboundSchema).optional(),
@@ -4039,6 +4051,7 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
4039
4051
  topK: "top_k",
4040
4052
  toolChoice: "tool_choice",
4041
4053
  parallelToolCalls: "parallel_tool_calls",
4054
+ fallbackOnCodes: "fallback_on_codes",
4042
4055
  loadBalancer: "load_balancer",
4043
4056
  cacheControl: "cache_control",
4044
4057
  promptCacheKey: "prompt_cache_key",
@@ -5975,6 +5988,7 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
5975
5988
  components.TraceScrubbingPlugin$inboundSchema,
5976
5989
  ]),
5977
5990
  ).optional(),
5991
+ fallback_on_codes: z.array(z.number().int()).optional(),
5978
5992
  fallbacks: z.array(z.lazy(() => UpdatePromptPromptsFallbacks$inboundSchema))
5979
5993
  .optional(),
5980
5994
  retry: z.lazy(() => UpdatePromptPromptsRetry$inboundSchema).optional(),
@@ -6009,6 +6023,7 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
6009
6023
  "top_k": "topK",
6010
6024
  "tool_choice": "toolChoice",
6011
6025
  "parallel_tool_calls": "parallelToolCalls",
6026
+ "fallback_on_codes": "fallbackOnCodes",
6012
6027
  "load_balancer": "loadBalancer",
6013
6028
  "cache_control": "cacheControl",
6014
6029
  "prompt_cache_key": "promptCacheKey",
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1764
1764
  z.ZodTypeDef,
1765
1765
  unknown
1766
1766
  > = z.object({
1767
- _id: z.string().default("tool_01M4AT2CQDQCBGPWHA2X69DZY7"),
1767
+ _id: z.string().default("tool_01M4TGANYRGRNVW3P3H1TCHYNJ"),
1768
1768
  path: z.string(),
1769
1769
  key: z.string(),
1770
1770
  display_name: z.string().optional(),
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1959
1959
  z.ZodTypeDef,
1960
1960
  unknown
1961
1961
  > = z.object({
1962
- _id: z.string().default("tool_01M4AT2CQCHG6FXM6PV31K1N54"),
1962
+ _id: z.string().default("tool_01M4TGANYQQEDZ2BSGMPZ12KQX"),
1963
1963
  path: z.string(),
1964
1964
  key: z.string(),
1965
1965
  display_name: z.string().optional(),
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2054
2054
  z.ZodTypeDef,
2055
2055
  unknown
2056
2056
  > = z.object({
2057
- _id: z.string().default("tool_01M4AT2CQC76S92CVGNSCR7P45"),
2057
+ _id: z.string().default("tool_01M4TGANYQTXRVT68WXA6CYQBJ"),
2058
2058
  path: z.string(),
2059
2059
  key: z.string(),
2060
2060
  display_name: z.string().optional(),
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2157
2157
  z.ZodTypeDef,
2158
2158
  unknown
2159
2159
  > = z.object({
2160
- _id: z.string().default("tool_01M4AT2CQB6KC0KY5WFFJF3TTX"),
2160
+ _id: z.string().default("tool_01M4TGANYPX498E0SFWC3MQKNF"),
2161
2161
  path: z.string(),
2162
2162
  key: z.string(),
2163
2163
  display_name: z.string().optional(),
@@ -12,7 +12,19 @@ export class Classify extends ClientSDK {
12
12
  * Classify
13
13
  *
14
14
  * @remarks
15
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
15
+ * **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
16
+ *
17
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
18
+ *
19
+ * - `noul`: estimate the probability that a statement is true.
20
+ * - `choice`: select an option from a set.
21
+ * - `score`: rate the content on an ordered scale.
22
+ *
23
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
24
+ *
25
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
26
+ *
27
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
16
28
  */
17
29
  async create(
18
30
  request: operations.CreateClassifyRequestBody,
@@ -12,7 +12,15 @@ export class Decisions extends ClientSDK {
12
12
  * Decisions
13
13
  *
14
14
  * @remarks
15
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
15
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
16
+ *
17
+ * - `noul`: estimate the probability that a statement is true.
18
+ * - `choice`: select an option from a set.
19
+ * - `score`: rate the content on an ordered scale.
20
+ *
21
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
22
+ *
23
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
16
24
  */
17
25
  async create(
18
26
  request: operations.CreateDecisionsRequestBody,
@@ -16,7 +16,7 @@ export class Responses extends ClientSDK {
16
16
  * Compact response
17
17
  *
18
18
  * @remarks
19
- * Compacts a conversation by summarizing older items to free up context window space. Returns a compaction item containing the generated summary.
19
+ * Compacts a conversation by summarizing older items to free up context window space. Returns the next context window: a compaction item containing the generated summary, followed by the most recent items verbatim.
20
20
  */
21
21
  async compact(
22
22
  request: operations.CompactResponseRequestBody,
package/sdk/classify.d.ts CHANGED
@@ -7,7 +7,15 @@ export declare class Classify extends ClientSDK {
7
7
  * @remarks
8
8
  * **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
9
9
  *
10
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
10
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
11
+ *
12
+ * - `noul`: estimate the probability that a statement is true.
13
+ * - `choice`: select an option from a set.
14
+ * - `score`: rate the content on an ordered scale.
15
+ *
16
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
17
+ *
18
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
11
19
  *
12
20
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
13
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;;;;;OASG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
1
+ {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
package/sdk/classify.js CHANGED
@@ -14,7 +14,15 @@ class Classify extends sdks_js_1.ClientSDK {
14
14
  * @remarks
15
15
  * **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
16
16
  *
17
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
17
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
18
+ *
19
+ * - `noul`: estimate the probability that a statement is true.
20
+ * - `choice`: select an option from a set.
21
+ * - `score`: rate the content on an ordered scale.
22
+ *
23
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
24
+ *
25
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
18
26
  *
19
27
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
20
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"classify.js","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AArBD,4BAqBC"}
1
+ {"version":3,"file":"classify.js","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,4BA6BC"}
@@ -5,7 +5,15 @@ export declare class Decisions extends ClientSDK {
5
5
  * Decisions
6
6
  *
7
7
  * @remarks
8
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
8
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
9
+ *
10
+ * - `noul`: estimate the probability that a statement is true.
11
+ * - `choice`: select an option from a set.
12
+ * - `score`: rate the content on an ordered scale.
13
+ *
14
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
15
+ *
16
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
9
17
  */
10
18
  create(request: operations.CreateDecisionsRequestBody, options?: RequestOptions): Promise<operations.CreateDecisionsResponseBody>;
11
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAOnD"}
1
+ {"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;;;;OAaG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAOnD"}
package/sdk/decisions.js CHANGED
@@ -12,7 +12,15 @@ class Decisions extends sdks_js_1.ClientSDK {
12
12
  * Decisions
13
13
  *
14
14
  * @remarks
15
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
15
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
16
+ *
17
+ * - `noul`: estimate the probability that a statement is true.
18
+ * - `choice`: select an option from a set.
19
+ * - `score`: rate the content on an ordered scale.
20
+ *
21
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
22
+ *
23
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
16
24
  */
17
25
  async create(request, options) {
18
26
  return (0, fp_js_1.unwrapAsync)((0, routerDecisionsCreate_js_1.routerDecisionsCreate)(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"decisions.js","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,8BAiBC"}
1
+ {"version":3,"file":"decisions.js","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,MAAM,CACV,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,8BAyBC"}
@@ -32,7 +32,15 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
34
34
  *
35
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
35
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
36
+ *
37
+ * - `noul`: estimate the probability that a statement is true.
38
+ * - `choice`: select an option from a set.
39
+ * - `score`: rate the content on an ordered scale.
40
+ *
41
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
42
+ *
43
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
36
44
  *
37
45
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
38
46
  */
@@ -46,6 +54,7 @@ export function routerClassifyCreate(
46
54
  | errors.CreateClassifyResponseBody
47
55
  | errors.CreateClassifyRouterClassifyResponseBody
48
56
  | errors.CreateClassifyRouterClassifyResponseResponseBody
57
+ | errors.CreateClassifyRouterClassifyResponse408ResponseBody
49
58
  | errors.CreateClassifyRouterClassifyResponse422ResponseBody
50
59
  | errors.CreateClassifyRouterClassifyResponse429ResponseBody
51
60
  | errors.CreateClassifyRouterClassifyResponse500ResponseBody
@@ -78,6 +87,7 @@ async function $do(
78
87
  | errors.CreateClassifyResponseBody
79
88
  | errors.CreateClassifyRouterClassifyResponseBody
80
89
  | errors.CreateClassifyRouterClassifyResponseResponseBody
90
+ | errors.CreateClassifyRouterClassifyResponse408ResponseBody
81
91
  | errors.CreateClassifyRouterClassifyResponse422ResponseBody
82
92
  | errors.CreateClassifyRouterClassifyResponse429ResponseBody
83
93
  | errors.CreateClassifyRouterClassifyResponse500ResponseBody
@@ -167,6 +177,7 @@ async function $do(
167
177
  | errors.CreateClassifyResponseBody
168
178
  | errors.CreateClassifyRouterClassifyResponseBody
169
179
  | errors.CreateClassifyRouterClassifyResponseResponseBody
180
+ | errors.CreateClassifyRouterClassifyResponse408ResponseBody
170
181
  | errors.CreateClassifyRouterClassifyResponse422ResponseBody
171
182
  | errors.CreateClassifyRouterClassifyResponse429ResponseBody
172
183
  | errors.CreateClassifyRouterClassifyResponse500ResponseBody
@@ -190,6 +201,10 @@ async function $do(
190
201
  403,
191
202
  errors.CreateClassifyRouterClassifyResponseResponseBody$inboundSchema,
192
203
  ),
204
+ M.jsonErr(
205
+ 408,
206
+ errors.CreateClassifyRouterClassifyResponse408ResponseBody$inboundSchema,
207
+ ),
193
208
  M.jsonErr(
194
209
  422,
195
210
  errors.CreateClassifyRouterClassifyResponse422ResponseBody$inboundSchema,
@@ -30,7 +30,15 @@ import { Result } from "../types/fp.js";
30
30
  * Decisions
31
31
  *
32
32
  * @remarks
33
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
33
+ * **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
34
+ *
35
+ * - `noul`: estimate the probability that a statement is true.
36
+ * - `choice`: select an option from a set.
37
+ * - `score`: rate the content on an ordered scale.
38
+ *
39
+ * Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
40
+ *
41
+ * Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
34
42
  */
35
43
  export function routerDecisionsCreate(
36
44
  client: OrqCore,
@@ -42,6 +50,7 @@ export function routerDecisionsCreate(
42
50
  | errors.CreateDecisionsResponseBody
43
51
  | errors.CreateDecisionsRouterDecisionsResponseBody
44
52
  | errors.CreateDecisionsRouterDecisionsResponseResponseBody
53
+ | errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
45
54
  | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
46
55
  | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
47
56
  | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
@@ -74,6 +83,7 @@ async function $do(
74
83
  | errors.CreateDecisionsResponseBody
75
84
  | errors.CreateDecisionsRouterDecisionsResponseBody
76
85
  | errors.CreateDecisionsRouterDecisionsResponseResponseBody
86
+ | errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
77
87
  | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
78
88
  | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
79
89
  | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
@@ -164,6 +174,7 @@ async function $do(
164
174
  | errors.CreateDecisionsResponseBody
165
175
  | errors.CreateDecisionsRouterDecisionsResponseBody
166
176
  | errors.CreateDecisionsRouterDecisionsResponseResponseBody
177
+ | errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
167
178
  | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
168
179
  | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
169
180
  | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
@@ -187,6 +198,11 @@ async function $do(
187
198
  403,
188
199
  errors.CreateDecisionsRouterDecisionsResponseResponseBody$inboundSchema,
189
200
  ),
201
+ M.jsonErr(
202
+ 408,
203
+ errors
204
+ .CreateDecisionsRouterDecisionsResponse408ResponseBody$inboundSchema,
205
+ ),
190
206
  M.jsonErr(
191
207
  422,
192
208
  errors
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.16.1",
62
- genVersion: "2.943.0",
63
- userAgent: "speakeasy-sdk/typescript 4.16.1 2.943.0 2.0 @orq-ai/node",
61
+ sdkVersion: "4.16.4",
62
+ genVersion: "2.948.4",
63
+ userAgent: "speakeasy-sdk/typescript 4.16.4 2.948.4 2.0 @orq-ai/node",
64
64
  } as const;
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Cache type. Only exact_match is supported.
10
+ */
11
+ export const ClassifyCacheConfigType = {
12
+ ExactMatch: "exact_match",
13
+ } as const;
14
+ /**
15
+ * Cache type. Only exact_match is supported.
16
+ */
17
+ export type ClassifyCacheConfigType = ClosedEnum<
18
+ typeof ClassifyCacheConfigType
19
+ >;
20
+
21
+ export type ClassifyCacheConfig = {
22
+ /**
23
+ * Time to live for the cached response in seconds, up to 259200 (3 days). Defaults to 3600.
24
+ */
25
+ ttl?: number | undefined;
26
+ /**
27
+ * Cache type. Only exact_match is supported.
28
+ */
29
+ type: ClassifyCacheConfigType;
30
+ };
31
+
32
+ /** @internal */
33
+ export const ClassifyCacheConfigType$outboundSchema: z.ZodNativeEnum<
34
+ typeof ClassifyCacheConfigType
35
+ > = z.nativeEnum(ClassifyCacheConfigType);
36
+
37
+ /** @internal */
38
+ export type ClassifyCacheConfig$Outbound = {
39
+ ttl?: number | undefined;
40
+ type: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ClassifyCacheConfig$outboundSchema: z.ZodType<
45
+ ClassifyCacheConfig$Outbound,
46
+ z.ZodTypeDef,
47
+ ClassifyCacheConfig
48
+ > = z.object({
49
+ ttl: z.number().int().optional(),
50
+ type: ClassifyCacheConfigType$outboundSchema,
51
+ });
52
+
53
+ export function classifyCacheConfigToJSON(
54
+ classifyCacheConfig: ClassifyCacheConfig,
55
+ ): string {
56
+ return JSON.stringify(
57
+ ClassifyCacheConfig$outboundSchema.parse(classifyCacheConfig),
58
+ );
59
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type ClassifyTimeoutConfig = {
9
+ /**
10
+ * Timeout in milliseconds for each model call. Set 2000 for two seconds. When retry is configured, timeout errors (408) are automatically retried.
11
+ */
12
+ callTimeout: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export type ClassifyTimeoutConfig$Outbound = {
17
+ call_timeout: number;
18
+ };
19
+
20
+ /** @internal */
21
+ export const ClassifyTimeoutConfig$outboundSchema: z.ZodType<
22
+ ClassifyTimeoutConfig$Outbound,
23
+ z.ZodTypeDef,
24
+ ClassifyTimeoutConfig
25
+ > = z.object({
26
+ callTimeout: z.number().int(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ callTimeout: "call_timeout",
30
+ });
31
+ });
32
+
33
+ export function classifyTimeoutConfigToJSON(
34
+ classifyTimeoutConfig: ClassifyTimeoutConfig,
35
+ ): string {
36
+ return JSON.stringify(
37
+ ClassifyTimeoutConfig$outboundSchema.parse(classifyTimeoutConfig),
38
+ );
39
+ }
@@ -15,7 +15,7 @@ export type Environment = {
15
15
  */
16
16
  id: string;
17
17
  /**
18
- * Immutable workspace-unique environment slug.
18
+ * Immutable environment slug, unique among the environments a project can see.
19
19
  */
20
20
  slug: string;
21
21
  /**
@@ -85,12 +85,14 @@ export * from "./chunksservicelistresponse.js";
85
85
  export * from "./chunksservicesetenabledrequest.js";
86
86
  export * from "./chunksserviceupdaterequest.js";
87
87
  export * from "./classifyanswer.js";
88
+ export * from "./classifycacheconfig.js";
88
89
  export * from "./classifychoiceanswer.js";
89
90
  export * from "./classifyinputtokensdetails.js";
90
91
  export * from "./classifynoulanswer.js";
91
92
  export * from "./classifyrefusalanswer.js";
92
93
  export * from "./classifyretryconfig.js";
93
94
  export * from "./classifyscoreanswer.js";
95
+ export * from "./classifytimeoutconfig.js";
94
96
  export * from "./classifyusage.js";
95
97
  export * from "./codeinterpretertoolinput.js";
96
98
  export * from "./codetoolinput.js";
@@ -546,6 +548,11 @@ export * from "./responsereasoningtextdonestreamevent.js";
546
548
  export * from "./responserefusaldeltastreamevent.js";
547
549
  export * from "./responserefusaldonestreamevent.js";
548
550
  export * from "./responseretryconfig.js";
551
+ export * from "./responseshellcallcommandaddedstreamevent.js";
552
+ export * from "./responseshellcallcommanddeltastreamevent.js";
553
+ export * from "./responseshellcallcommanddonestreamevent.js";
554
+ export * from "./responseshellcalloutputcontentdeltastreamevent.js";
555
+ export * from "./responseshellcalloutputcontentdonestreamevent.js";
549
556
  export * from "./responsestartedevent.js";
550
557
  export * from "./responsestreamevent.js";
551
558
  export * from "./responsestreamingevent.js";
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01m4c67z2qtx32rjpkw00qexfm"),
43
+ _id: z.string().default("reasoning_01m4tkn0f8y5t0rhcv57fe95x6"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -23,6 +23,10 @@ export type ResponseFunctionCallArgumentsDoneStreamEvent = {
23
23
  * ID of the output item this event refers to.
24
24
  */
25
25
  itemId: string;
26
+ /**
27
+ * The function name.
28
+ */
29
+ name?: string | undefined;
26
30
  /**
27
31
  * Index of the output item in the response output array.
28
32
  */
@@ -48,6 +52,7 @@ export const ResponseFunctionCallArgumentsDoneStreamEvent$inboundSchema:
48
52
  z.object({
49
53
  arguments: z.string(),
50
54
  item_id: z.string(),
55
+ name: z.string().optional(),
51
56
  output_index: z.number().int(),
52
57
  sequence_number: z.number().int(),
53
58
  type: z.literal("response.function_call_arguments.done"),
@@ -15,10 +15,18 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
15
15
  * A `response.image_generation_call.partial_image` server-sent event.
16
16
  */
17
17
  export type ResponseImageGenerationCallPartialImageStreamEvent = {
18
+ /**
19
+ * Image background.
20
+ */
21
+ background?: string | undefined;
18
22
  /**
19
23
  * ID of the output item this event refers to.
20
24
  */
21
25
  itemId: string;
26
+ /**
27
+ * Image encoding format.
28
+ */
29
+ outputFormat?: string | undefined;
22
30
  /**
23
31
  * Index of the output item in the response output array.
24
32
  */
@@ -31,10 +39,18 @@ export type ResponseImageGenerationCallPartialImageStreamEvent = {
31
39
  * Index of the partial image.
32
40
  */
33
41
  partialImageIndex: number;
42
+ /**
43
+ * Image quality.
44
+ */
45
+ quality?: string | undefined;
34
46
  /**
35
47
  * Monotonically increasing sequence number for ordering events.
36
48
  */
37
49
  sequenceNumber: number;
50
+ /**
51
+ * Image dimensions.
52
+ */
53
+ size?: string | undefined;
38
54
  /**
39
55
  * The event type. Discriminates the payload.
40
56
  */
@@ -50,11 +66,15 @@ export const ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema:
50
66
  unknown
51
67
  > = collectExtraKeys$(
52
68
  z.object({
69
+ background: z.string().optional(),
53
70
  item_id: z.string(),
71
+ output_format: z.string().optional(),
54
72
  output_index: z.number().int(),
55
73
  partial_image_b64: z.string(),
56
74
  partial_image_index: z.number().int(),
75
+ quality: z.string().optional(),
57
76
  sequence_number: z.number().int(),
77
+ size: z.string().optional(),
58
78
  type: z.literal("response.image_generation_call.partial_image"),
59
79
  }).catchall(z.any()),
60
80
  "additionalProperties",
@@ -62,6 +82,7 @@ export const ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema:
62
82
  ).transform((v) => {
63
83
  return remap$(v, {
64
84
  "item_id": "itemId",
85
+ "output_format": "outputFormat",
65
86
  "output_index": "outputIndex",
66
87
  "partial_image_b64": "partialImageB64",
67
88
  "partial_image_index": "partialImageIndex",