@orq-ai/node 4.16.8 → 4.16.9

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 (440) hide show
  1. package/README.md +66 -64
  2. package/funcs/deploymentsListVersions.d.ts +17 -0
  3. package/funcs/deploymentsListVersions.d.ts.map +1 -0
  4. package/funcs/deploymentsListVersions.js +127 -0
  5. package/funcs/deploymentsListVersions.js.map +1 -0
  6. package/funcs/routerClassifyCreate.d.ts +3 -0
  7. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  8. package/funcs/routerClassifyCreate.js +3 -0
  9. package/funcs/routerClassifyCreate.js.map +1 -1
  10. package/funcs/routerDecisionsCreate.d.ts +3 -0
  11. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  12. package/funcs/routerDecisionsCreate.js +3 -0
  13. package/funcs/routerDecisionsCreate.js.map +1 -1
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/models/components/audiocontentpartschema.d.ts +5 -5
  18. package/models/components/audiocontentpartschema.d.ts.map +1 -1
  19. package/models/components/audiocontentpartschema.js +6 -7
  20. package/models/components/audiocontentpartschema.js.map +1 -1
  21. package/models/components/classifyanswer.d.ts +2 -1
  22. package/models/components/classifyanswer.d.ts.map +1 -1
  23. package/models/components/classifyanswer.js +2 -0
  24. package/models/components/classifyanswer.js.map +1 -1
  25. package/models/components/classifyasset.d.ts +52 -0
  26. package/models/components/classifyasset.d.ts.map +1 -0
  27. package/models/components/classifyasset.js +75 -0
  28. package/models/components/classifyasset.js.map +1 -0
  29. package/models/components/classifybox.d.ts +25 -0
  30. package/models/components/classifybox.d.ts.map +1 -0
  31. package/models/components/classifybox.js +53 -0
  32. package/models/components/classifybox.js.map +1 -0
  33. package/models/components/classifyboxanswer.d.ts +16 -0
  34. package/models/components/classifyboxanswer.d.ts.map +1 -0
  35. package/models/components/classifyboxanswer.js +53 -0
  36. package/models/components/classifyboxanswer.js.map +1 -0
  37. package/models/components/classifychoiceanswer.d.ts +1 -1
  38. package/models/components/classifyscoreanswer.d.ts +1 -1
  39. package/models/components/index.d.ts +3 -0
  40. package/models/components/index.d.ts.map +1 -1
  41. package/models/components/index.js +3 -0
  42. package/models/components/index.js.map +1 -1
  43. package/models/components/publicusage.d.ts +18 -0
  44. package/models/components/publicusage.d.ts.map +1 -1
  45. package/models/components/publicusage.js +11 -1
  46. package/models/components/publicusage.js.map +1 -1
  47. package/models/components/reasoningpart.js +1 -1
  48. package/models/operations/createclassify.d.ts +118 -17
  49. package/models/operations/createclassify.d.ts.map +1 -1
  50. package/models/operations/createclassify.js +41 -5
  51. package/models/operations/createclassify.js.map +1 -1
  52. package/models/operations/createdecisions.d.ts +124 -23
  53. package/models/operations/createdecisions.d.ts.map +1 -1
  54. package/models/operations/createdecisions.js +48 -10
  55. package/models/operations/createdecisions.js.map +1 -1
  56. package/models/operations/createrouterresponse.d.ts +18 -0
  57. package/models/operations/createrouterresponse.d.ts.map +1 -1
  58. package/models/operations/createrouterresponse.js +12 -2
  59. package/models/operations/createrouterresponse.js.map +1 -1
  60. package/models/operations/createtool.js +4 -4
  61. package/models/operations/getalltools.js +4 -4
  62. package/models/operations/getv2humanevalsets.js +2 -2
  63. package/models/operations/getv2humanevalsetsid.js +2 -2
  64. package/models/operations/index.d.ts +1 -0
  65. package/models/operations/index.d.ts.map +1 -1
  66. package/models/operations/index.js +1 -0
  67. package/models/operations/index.js.map +1 -1
  68. package/models/operations/listdeploymentversions.d.ts +1336 -0
  69. package/models/operations/listdeploymentversions.d.ts.map +1 -0
  70. package/models/operations/listdeploymentversions.js +1163 -0
  71. package/models/operations/listdeploymentversions.js.map +1 -0
  72. package/models/operations/patchv2humanevalsetsid.js +2 -2
  73. package/models/operations/postv2feedbackevaluation.js +4 -4
  74. package/models/operations/postv2humanevalsets.js +2 -2
  75. package/models/operations/retrievetool.js +4 -4
  76. package/models/operations/runagent.js +1 -1
  77. package/models/operations/streamrunagent.js +1 -1
  78. package/models/operations/updatetool.js +4 -4
  79. package/package.json +1 -1
  80. package/packages/orq-rc/src/funcs/agentsExternalCreate.ts +10 -1
  81. package/packages/orq-rc/src/funcs/agentsExternalDelete.ts +10 -1
  82. package/packages/orq-rc/src/funcs/agentsExternalList.ts +10 -1
  83. package/packages/orq-rc/src/funcs/agentsExternalRefreshCard.ts +10 -1
  84. package/packages/orq-rc/src/funcs/agentsExternalRetrieve.ts +10 -1
  85. package/packages/orq-rc/src/funcs/agentsExternalTestConnection.ts +10 -1
  86. package/packages/orq-rc/src/funcs/agentsExternalUpdate.ts +10 -1
  87. package/packages/orq-rc/src/funcs/agentsInvoke.ts +10 -1
  88. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +10 -1
  89. package/packages/orq-rc/src/funcs/agentsRun.ts +10 -1
  90. package/packages/orq-rc/src/funcs/alertsCreate.ts +11 -2
  91. package/packages/orq-rc/src/funcs/alertsDelete.ts +10 -1
  92. package/packages/orq-rc/src/funcs/alertsGet.ts +10 -1
  93. package/packages/orq-rc/src/funcs/alertsList.ts +11 -1
  94. package/packages/orq-rc/src/funcs/alertsListTriggerEvents.ts +10 -1
  95. package/packages/orq-rc/src/funcs/alertsListTriggers.ts +10 -1
  96. package/packages/orq-rc/src/funcs/alertsUpdate.ts +11 -2
  97. package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +10 -1
  98. package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +11 -2
  99. package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +10 -1
  100. package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +11 -2
  101. package/packages/orq-rc/src/funcs/annotationQueuesList.ts +10 -1
  102. package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +10 -1
  103. package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +11 -2
  104. package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +10 -1
  105. package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +10 -1
  106. package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +10 -1
  107. package/packages/orq-rc/src/funcs/annotationsCreate.ts +11 -2
  108. package/packages/orq-rc/src/funcs/annotationsDelete.ts +11 -2
  109. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +10 -1
  110. package/packages/orq-rc/src/funcs/budgetsCreate.ts +10 -1
  111. package/packages/orq-rc/src/funcs/budgetsDelete.ts +10 -1
  112. package/packages/orq-rc/src/funcs/budgetsGet.ts +10 -1
  113. package/packages/orq-rc/src/funcs/budgetsList.ts +10 -1
  114. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +10 -1
  115. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +10 -1
  116. package/packages/orq-rc/src/funcs/chunkingParse.ts +10 -1
  117. package/packages/orq-rc/src/funcs/datasetsClear.ts +11 -2
  118. package/packages/orq-rc/src/funcs/datasetsCreate.ts +10 -1
  119. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +10 -1
  120. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +10 -1
  121. package/packages/orq-rc/src/funcs/datasetsDelete.ts +11 -2
  122. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +11 -2
  123. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoints.ts +11 -2
  124. package/packages/orq-rc/src/funcs/datasetsList.ts +10 -1
  125. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +10 -1
  126. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +10 -1
  127. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +10 -1
  128. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +10 -1
  129. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +10 -1
  130. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +10 -1
  131. package/packages/orq-rc/src/funcs/deploymentsList.ts +4 -0
  132. package/packages/orq-rc/src/funcs/deploymentsListVersions.ts +176 -0
  133. package/packages/orq-rc/src/funcs/deploymentsStream.ts +10 -1
  134. package/packages/orq-rc/src/funcs/environmentsCreate.ts +10 -1
  135. package/packages/orq-rc/src/funcs/environmentsDelete.ts +10 -1
  136. package/packages/orq-rc/src/funcs/environmentsGet.ts +10 -1
  137. package/packages/orq-rc/src/funcs/environmentsList.ts +10 -1
  138. package/packages/orq-rc/src/funcs/environmentsUpdate.ts +10 -1
  139. package/packages/orq-rc/src/funcs/evalsGetVersion.ts +10 -1
  140. package/packages/orq-rc/src/funcs/evalsInvoke.ts +10 -1
  141. package/packages/orq-rc/src/funcs/evalsListVersions.ts +10 -1
  142. package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +11 -2
  143. package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +11 -2
  144. package/packages/orq-rc/src/funcs/feedbackSubmit.ts +10 -1
  145. package/packages/orq-rc/src/funcs/fileSystemsListFiles.ts +10 -1
  146. package/packages/orq-rc/src/funcs/fileSystemsRetrieve.ts +10 -1
  147. package/packages/orq-rc/src/funcs/fileSystemsStatFile.ts +10 -1
  148. package/packages/orq-rc/src/funcs/filesCreate.ts +10 -1
  149. package/packages/orq-rc/src/funcs/filesDelete.ts +10 -1
  150. package/packages/orq-rc/src/funcs/filesGet.ts +10 -1
  151. package/packages/orq-rc/src/funcs/filesGetContent.ts +10 -1
  152. package/packages/orq-rc/src/funcs/filesList.ts +10 -1
  153. package/packages/orq-rc/src/funcs/filesUpdate.ts +10 -1
  154. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +10 -1
  155. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +10 -1
  156. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +10 -1
  157. package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +10 -1
  158. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +10 -1
  159. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +10 -1
  160. package/packages/orq-rc/src/funcs/hubGet.ts +10 -1
  161. package/packages/orq-rc/src/funcs/hubSearch.ts +10 -1
  162. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +10 -1
  163. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +11 -2
  164. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +10 -1
  165. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +10 -1
  166. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +10 -1
  167. package/packages/orq-rc/src/funcs/identitiesCreate.ts +5 -0
  168. package/packages/orq-rc/src/funcs/identitiesDelete.ts +10 -1
  169. package/packages/orq-rc/src/funcs/identitiesList.ts +10 -1
  170. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +10 -1
  171. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +10 -1
  172. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +10 -1
  173. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +10 -1
  174. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +11 -2
  175. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +10 -1
  176. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +11 -2
  177. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +10 -1
  178. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +10 -1
  179. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +10 -1
  180. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +10 -1
  181. package/packages/orq-rc/src/funcs/knowledgePreviewChunks.ts +10 -1
  182. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +10 -1
  183. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +10 -1
  184. package/packages/orq-rc/src/funcs/knowledgeRetrieveFileUrl.ts +4 -0
  185. package/packages/orq-rc/src/funcs/knowledgeRetrieveProcessingStatus.ts +10 -1
  186. package/packages/orq-rc/src/funcs/knowledgeToggleChunk.ts +10 -1
  187. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +10 -1
  188. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +10 -1
  189. package/packages/orq-rc/src/funcs/logsAggregate.ts +10 -1
  190. package/packages/orq-rc/src/funcs/logsContext.ts +10 -1
  191. package/packages/orq-rc/src/funcs/logsFindPatterns.ts +10 -1
  192. package/packages/orq-rc/src/funcs/logsGet.ts +10 -1
  193. package/packages/orq-rc/src/funcs/logsListFacetValues.ts +10 -1
  194. package/packages/orq-rc/src/funcs/logsListFacets.ts +10 -1
  195. package/packages/orq-rc/src/funcs/logsListFields.ts +10 -1
  196. package/packages/orq-rc/src/funcs/logsListTraceLogs.ts +10 -1
  197. package/packages/orq-rc/src/funcs/logsQuery.ts +10 -1
  198. package/packages/orq-rc/src/funcs/logsSearch.ts +10 -1
  199. package/packages/orq-rc/src/funcs/managementKeysCreate.ts +10 -1
  200. package/packages/orq-rc/src/funcs/managementKeysDelete.ts +10 -1
  201. package/packages/orq-rc/src/funcs/managementKeysGet.ts +10 -1
  202. package/packages/orq-rc/src/funcs/managementKeysList.ts +10 -1
  203. package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +10 -1
  204. package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +10 -1
  205. package/packages/orq-rc/src/funcs/mcpGatewaysCreate.ts +10 -1
  206. package/packages/orq-rc/src/funcs/mcpGatewaysDelete.ts +10 -1
  207. package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +10 -1
  208. package/packages/orq-rc/src/funcs/mcpGatewaysListTools.ts +10 -1
  209. package/packages/orq-rc/src/funcs/mcpGatewaysRetrieve.ts +10 -1
  210. package/packages/orq-rc/src/funcs/mcpGatewaysUpdate.ts +10 -1
  211. package/packages/orq-rc/src/funcs/mcpServersCreate.ts +10 -1
  212. package/packages/orq-rc/src/funcs/mcpServersDelete.ts +10 -1
  213. package/packages/orq-rc/src/funcs/mcpServersList.ts +10 -1
  214. package/packages/orq-rc/src/funcs/mcpServersRetrieve.ts +10 -1
  215. package/packages/orq-rc/src/funcs/mcpServersSync.ts +10 -1
  216. package/packages/orq-rc/src/funcs/mcpServersTestTool.ts +10 -1
  217. package/packages/orq-rc/src/funcs/mcpServersUpdate.ts +10 -1
  218. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +10 -1
  219. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +10 -1
  220. package/packages/orq-rc/src/funcs/modelCatalogGet.ts +10 -1
  221. package/packages/orq-rc/src/funcs/modelCatalogList.ts +10 -1
  222. package/packages/orq-rc/src/funcs/modelCatalogListOfferings.ts +10 -1
  223. package/packages/orq-rc/src/funcs/modelFusionsCreate.ts +10 -1
  224. package/packages/orq-rc/src/funcs/modelFusionsDelete.ts +10 -1
  225. package/packages/orq-rc/src/funcs/modelFusionsGet.ts +10 -1
  226. package/packages/orq-rc/src/funcs/modelFusionsList.ts +10 -1
  227. package/packages/orq-rc/src/funcs/modelFusionsSetEnabled.ts +10 -1
  228. package/packages/orq-rc/src/funcs/modelFusionsUpdate.ts +10 -1
  229. package/packages/orq-rc/src/funcs/modelsList.ts +10 -1
  230. package/packages/orq-rc/src/funcs/monitorsCreate.ts +10 -1
  231. package/packages/orq-rc/src/funcs/monitorsDelete.ts +10 -1
  232. package/packages/orq-rc/src/funcs/monitorsGet.ts +10 -1
  233. package/packages/orq-rc/src/funcs/monitorsList.ts +10 -1
  234. package/packages/orq-rc/src/funcs/monitorsListPresets.ts +10 -1
  235. package/packages/orq-rc/src/funcs/monitorsUpdate.ts +10 -1
  236. package/packages/orq-rc/src/funcs/notifiersCreate.ts +10 -1
  237. package/packages/orq-rc/src/funcs/notifiersDelete.ts +10 -1
  238. package/packages/orq-rc/src/funcs/notifiersGet.ts +10 -1
  239. package/packages/orq-rc/src/funcs/notifiersList.ts +10 -1
  240. package/packages/orq-rc/src/funcs/notifiersUpdate.ts +10 -1
  241. package/packages/orq-rc/src/funcs/piiCapabilities.ts +10 -1
  242. package/packages/orq-rc/src/funcs/piiDetect.ts +10 -1
  243. package/packages/orq-rc/src/funcs/piiRedact.ts +10 -1
  244. package/packages/orq-rc/src/funcs/piiRestore.ts +10 -1
  245. package/packages/orq-rc/src/funcs/policiesList.ts +10 -1
  246. package/packages/orq-rc/src/funcs/projectsCreate.ts +10 -1
  247. package/packages/orq-rc/src/funcs/projectsDelete.ts +10 -1
  248. package/packages/orq-rc/src/funcs/projectsGet.ts +10 -1
  249. package/packages/orq-rc/src/funcs/projectsList.ts +10 -1
  250. package/packages/orq-rc/src/funcs/projectsUpdate.ts +10 -1
  251. package/packages/orq-rc/src/funcs/promptsCreate.ts +10 -1
  252. package/packages/orq-rc/src/funcs/promptsList.ts +10 -1
  253. package/packages/orq-rc/src/funcs/promptsListVersions.ts +10 -1
  254. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +10 -1
  255. package/packages/orq-rc/src/funcs/reportingQuery.ts +10 -1
  256. package/packages/orq-rc/src/funcs/responsesCreate.ts +10 -1
  257. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +11 -2
  258. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +10 -1
  259. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +3 -0
  260. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +10 -1
  261. package/packages/orq-rc/src/funcs/routerDecisionsCreate.ts +3 -0
  262. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +10 -1
  263. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +10 -1
  264. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +10 -1
  265. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +10 -1
  266. package/packages/orq-rc/src/funcs/routerOcr.ts +10 -1
  267. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +10 -1
  268. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +10 -1
  269. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +11 -2
  270. package/packages/orq-rc/src/funcs/routingRulesList.ts +10 -1
  271. package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +10 -1
  272. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +10 -1
  273. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +10 -1
  274. package/packages/orq-rc/src/funcs/schedulesList.ts +14 -1
  275. package/packages/orq-rc/src/funcs/sessionsCreate.ts +10 -1
  276. package/packages/orq-rc/src/funcs/sessionsDelete.ts +11 -2
  277. package/packages/orq-rc/src/funcs/sessionsGet.ts +10 -1
  278. package/packages/orq-rc/src/funcs/sessionsGetCount.ts +10 -1
  279. package/packages/orq-rc/src/funcs/sessionsList.ts +10 -1
  280. package/packages/orq-rc/src/funcs/sessionsListTags.ts +10 -1
  281. package/packages/orq-rc/src/funcs/sessionsUpdate.ts +10 -1
  282. package/packages/orq-rc/src/funcs/skillsCreate.ts +10 -1
  283. package/packages/orq-rc/src/funcs/skillsDelete.ts +10 -1
  284. package/packages/orq-rc/src/funcs/skillsGet.ts +10 -1
  285. package/packages/orq-rc/src/funcs/skillsList.ts +10 -1
  286. package/packages/orq-rc/src/funcs/skillsUpdate.ts +10 -1
  287. package/packages/orq-rc/src/funcs/smartRoutersCreate.ts +10 -1
  288. package/packages/orq-rc/src/funcs/smartRoutersDelete.ts +10 -1
  289. package/packages/orq-rc/src/funcs/smartRoutersGet.ts +10 -1
  290. package/packages/orq-rc/src/funcs/smartRoutersList.ts +10 -1
  291. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +10 -1
  292. package/packages/orq-rc/src/funcs/telemetryListCapabilities.ts +12 -1
  293. package/packages/orq-rc/src/funcs/telemetryListFacetValues.ts +10 -1
  294. package/packages/orq-rc/src/funcs/telemetryQuery.ts +10 -1
  295. package/packages/orq-rc/src/funcs/toolsCreate.ts +10 -1
  296. package/packages/orq-rc/src/funcs/toolsDelete.ts +11 -2
  297. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +10 -1
  298. package/packages/orq-rc/src/funcs/tracesAggregate.ts +10 -1
  299. package/packages/orq-rc/src/funcs/tracesGet.ts +10 -1
  300. package/packages/orq-rc/src/funcs/tracesGetConversation.ts +10 -1
  301. package/packages/orq-rc/src/funcs/tracesGetSpan.ts +10 -1
  302. package/packages/orq-rc/src/funcs/tracesListFacetValues.ts +10 -1
  303. package/packages/orq-rc/src/funcs/tracesListFacets.ts +10 -1
  304. package/packages/orq-rc/src/funcs/tracesListFields.ts +10 -1
  305. package/packages/orq-rc/src/funcs/tracesListFilters.ts +10 -1
  306. package/packages/orq-rc/src/funcs/tracesListSpans.ts +10 -1
  307. package/packages/orq-rc/src/funcs/tracesQuery.ts +10 -1
  308. package/packages/orq-rc/src/funcs/tracesSearch.ts +10 -1
  309. package/packages/orq-rc/src/funcs/usersCreate.ts +10 -1
  310. package/packages/orq-rc/src/funcs/usersDelete.ts +10 -1
  311. package/packages/orq-rc/src/funcs/usersGet.ts +10 -1
  312. package/packages/orq-rc/src/funcs/usersList.ts +10 -1
  313. package/packages/orq-rc/src/funcs/usersUpdate.ts +10 -1
  314. package/packages/orq-rc/src/funcs/viewsCreate.ts +10 -1
  315. package/packages/orq-rc/src/funcs/viewsDelete.ts +10 -1
  316. package/packages/orq-rc/src/funcs/viewsGet.ts +10 -1
  317. package/packages/orq-rc/src/funcs/viewsList.ts +10 -1
  318. package/packages/orq-rc/src/funcs/viewsUpdate.ts +10 -1
  319. package/packages/orq-rc/src/funcs/webhooksCount.ts +10 -1
  320. package/packages/orq-rc/src/funcs/webhooksCreate.ts +10 -1
  321. package/packages/orq-rc/src/funcs/webhooksDelete.ts +10 -1
  322. package/packages/orq-rc/src/funcs/webhooksGenerateSecret.ts +10 -1
  323. package/packages/orq-rc/src/funcs/webhooksGet.ts +10 -1
  324. package/packages/orq-rc/src/funcs/webhooksList.ts +10 -1
  325. package/packages/orq-rc/src/funcs/webhooksQuery.ts +10 -1
  326. package/packages/orq-rc/src/funcs/webhooksUpdate.ts +10 -1
  327. package/packages/orq-rc/src/funcs/wikisCreate.ts +10 -1
  328. package/packages/orq-rc/src/funcs/wikisDelete.ts +10 -1
  329. package/packages/orq-rc/src/funcs/wikisGet.ts +10 -1
  330. package/packages/orq-rc/src/funcs/wikisGetPage.ts +10 -1
  331. package/packages/orq-rc/src/funcs/wikisGetTree.ts +10 -1
  332. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +10 -1
  333. package/packages/orq-rc/src/funcs/wikisList.ts +10 -1
  334. package/packages/orq-rc/src/funcs/wikisListRuns.ts +10 -1
  335. package/packages/orq-rc/src/funcs/wikisRefresh.ts +10 -1
  336. package/packages/orq-rc/src/funcs/wikisSearch.ts +10 -1
  337. package/packages/orq-rc/src/funcs/wikisUpdate.ts +10 -1
  338. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +10 -1
  339. package/packages/orq-rc/src/funcs/workspaceSecurityAddIPRange.ts +10 -1
  340. package/packages/orq-rc/src/funcs/workspaceSecurityCreateDomain.ts +10 -1
  341. package/packages/orq-rc/src/funcs/workspaceSecurityDeleteDomain.ts +11 -2
  342. package/packages/orq-rc/src/funcs/workspaceSecurityDeleteIPRange.ts +11 -2
  343. package/packages/orq-rc/src/funcs/workspaceSecurityGetIPAllowlist.ts +10 -1
  344. package/packages/orq-rc/src/funcs/workspaceSecurityListDomains.ts +10 -1
  345. package/packages/orq-rc/src/funcs/workspaceSecurityUpdateIPAllowlist.ts +10 -1
  346. package/packages/orq-rc/src/funcs/workspaceSecurityVerifyDomain.ts +10 -1
  347. package/packages/orq-rc/src/funcs/workspaceSettingsGet.ts +10 -1
  348. package/packages/orq-rc/src/funcs/workspaceSettingsUpdate.ts +10 -1
  349. package/packages/orq-rc/src/funcs/workspacesGet.ts +10 -1
  350. package/packages/orq-rc/src/funcs/workspacesList.ts +10 -1
  351. package/packages/orq-rc/src/funcs/workspacesUpdate.ts +10 -1
  352. package/packages/orq-rc/src/lib/config.ts +2 -2
  353. package/packages/orq-rc/src/models/components/alert.ts +4 -1
  354. package/packages/orq-rc/src/models/components/alertquery.ts +24 -4
  355. package/packages/orq-rc/src/models/components/alertscope.ts +20 -0
  356. package/packages/orq-rc/src/models/components/alerttelemetrysource.ts +22 -0
  357. package/packages/orq-rc/src/models/components/alerttrigger.ts +9 -0
  358. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +13 -9
  359. package/packages/orq-rc/src/models/components/budgetmatch.ts +1 -1
  360. package/packages/orq-rc/src/models/components/classifyanswer.ts +6 -0
  361. package/packages/orq-rc/src/models/components/classifyasset.ts +81 -0
  362. package/packages/orq-rc/src/models/components/classifybox.ts +49 -0
  363. package/packages/orq-rc/src/models/components/classifyboxanswer.ts +39 -0
  364. package/packages/orq-rc/src/models/components/classifychoiceanswer.ts +1 -1
  365. package/packages/orq-rc/src/models/components/classifyscoreanswer.ts +1 -1
  366. package/packages/orq-rc/src/models/components/createalertrequest.ts +8 -4
  367. package/packages/orq-rc/src/models/components/index.ts +5 -0
  368. package/packages/orq-rc/src/models/components/pricing.ts +12 -0
  369. package/packages/orq-rc/src/models/components/pricingvariant.ts +12 -0
  370. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  371. package/packages/orq-rc/src/models/components/updatealertrequest.ts +4 -1
  372. package/packages/orq-rc/src/models/errors/apierrorresponse.ts +50 -0
  373. package/packages/orq-rc/src/models/errors/errorresponse.ts +69 -0
  374. package/packages/orq-rc/src/models/errors/index.ts +2 -0
  375. package/packages/orq-rc/src/models/operations/alertlist.ts +10 -0
  376. package/packages/orq-rc/src/models/operations/createclassify.ts +169 -21
  377. package/packages/orq-rc/src/models/operations/createdecisions.ts +197 -32
  378. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  379. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  380. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  381. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  382. package/packages/orq-rc/src/models/operations/index.ts +1 -0
  383. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +2793 -0
  384. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  385. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  386. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  387. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  388. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  389. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  390. package/packages/orq-rc/src/models/operations/telemetrylistcapabilities.ts +24 -0
  391. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  392. package/packages/orq-rc/src/sdk/alerts.ts +2 -2
  393. package/packages/orq-rc/src/sdk/classify.ts +3 -0
  394. package/packages/orq-rc/src/sdk/decisions.ts +3 -0
  395. package/packages/orq-rc/src/sdk/deployments.ts +18 -0
  396. package/sdk/classify.d.ts +3 -0
  397. package/sdk/classify.d.ts.map +1 -1
  398. package/sdk/classify.js +3 -0
  399. package/sdk/classify.js.map +1 -1
  400. package/sdk/decisions.d.ts +3 -0
  401. package/sdk/decisions.d.ts.map +1 -1
  402. package/sdk/decisions.js +3 -0
  403. package/sdk/decisions.js.map +1 -1
  404. package/sdk/deployments.d.ts +7 -0
  405. package/sdk/deployments.d.ts.map +1 -1
  406. package/sdk/deployments.js +10 -0
  407. package/sdk/deployments.js.map +1 -1
  408. package/src/funcs/deploymentsListVersions.ts +176 -0
  409. package/src/funcs/routerClassifyCreate.ts +3 -0
  410. package/src/funcs/routerDecisionsCreate.ts +3 -0
  411. package/src/lib/config.ts +2 -2
  412. package/src/models/components/audiocontentpartschema.ts +13 -9
  413. package/src/models/components/classifyanswer.ts +6 -0
  414. package/src/models/components/classifyasset.ts +81 -0
  415. package/src/models/components/classifybox.ts +49 -0
  416. package/src/models/components/classifyboxanswer.ts +39 -0
  417. package/src/models/components/classifychoiceanswer.ts +1 -1
  418. package/src/models/components/classifyscoreanswer.ts +1 -1
  419. package/src/models/components/index.ts +3 -0
  420. package/src/models/components/publicusage.ts +23 -0
  421. package/src/models/components/reasoningpart.ts +1 -1
  422. package/src/models/operations/createclassify.ts +169 -21
  423. package/src/models/operations/createdecisions.ts +197 -32
  424. package/src/models/operations/createrouterresponse.ts +23 -0
  425. package/src/models/operations/createtool.ts +4 -4
  426. package/src/models/operations/getalltools.ts +4 -4
  427. package/src/models/operations/getv2humanevalsets.ts +2 -2
  428. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  429. package/src/models/operations/index.ts +1 -0
  430. package/src/models/operations/listdeploymentversions.ts +2793 -0
  431. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  432. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  433. package/src/models/operations/postv2humanevalsets.ts +2 -2
  434. package/src/models/operations/retrievetool.ts +4 -4
  435. package/src/models/operations/runagent.ts +1 -1
  436. package/src/models/operations/streamrunagent.ts +1 -1
  437. package/src/models/operations/updatetool.ts +4 -4
  438. package/src/sdk/classify.ts +3 -0
  439. package/src/sdk/decisions.ts +3 -0
  440. package/src/sdk/deployments.ts +18 -0
@@ -9,6 +9,24 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ /**
13
+ * The evaluation prompt for this question. A string, an object or an array.
14
+ */
15
+ export type CreateClassifyQuestionsRouterClassifyInstructions = string | {
16
+ [k: string]: any;
17
+ } | Array<any>;
18
+
19
+ /**
20
+ * Beta, TypeSafe jev-preview only. Locates one target in an image from assets and returns its bounding box. Always returns a box; pair it with a noul question to check presence.
21
+ */
22
+ export type BoxQuestion = {
23
+ /**
24
+ * The evaluation prompt for this question. A string, an object or an array.
25
+ */
26
+ instructions: string | { [k: string]: any } | Array<any>;
27
+ type: "box";
28
+ };
29
+
12
30
  /**
13
31
  * The evaluation prompt for this question. A string, an object or an array.
14
32
  */
@@ -22,9 +40,9 @@ export type CreateClassifyQuestionsInstructions =
22
40
  */
23
41
  export type ScoreQuestion = {
24
42
  /**
25
- * Ordered level descriptions from lowest to highest. At least two levels.
43
+ * Ordered level descriptions from lowest to highest. At least two levels. Each level can be a string, an object or an array.
26
44
  */
27
- criteria: Array<string>;
45
+ criteria: Array<any>;
28
46
  /**
29
47
  * The evaluation prompt for this question. A string, an object or an array.
30
48
  */
@@ -32,6 +50,11 @@ export type ScoreQuestion = {
32
50
  type: "score";
33
51
  };
34
52
 
53
+ /**
54
+ * The option description, or null.
55
+ */
56
+ export type QuestionsCriteria = string | { [k: string]: any } | Array<any>;
57
+
35
58
  /**
36
59
  * The evaluation prompt for this question. A string, an object or an array.
37
60
  */
@@ -42,9 +65,9 @@ export type QuestionsInstructions = string | { [k: string]: any } | Array<any>;
42
65
  */
43
66
  export type ChoiceQuestion = {
44
67
  /**
45
- * Options keyed by name, each mapped to a description or null.
68
+ * Options keyed by name, each mapped to a description or null. A description can be a string, an object or an array.
46
69
  */
47
- criteria: { [k: string]: string | null };
70
+ criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
48
71
  /**
49
72
  * The evaluation prompt for this question. A string, an object or an array.
50
73
  */
@@ -52,12 +75,28 @@ export type ChoiceQuestion = {
52
75
  type: "choice";
53
76
  };
54
77
 
78
+ /**
79
+ * What false means. A string, an object or an array.
80
+ */
81
+ export type False = string | { [k: string]: any } | Array<any>;
82
+
83
+ /**
84
+ * What true means. A string, an object or an array.
85
+ */
86
+ export type True = string | { [k: string]: any } | Array<any>;
87
+
55
88
  /**
56
89
  * Optional descriptions of what true and false mean.
57
90
  */
58
91
  export type Criteria = {
59
- false?: string | undefined;
60
- true?: string | undefined;
92
+ /**
93
+ * What false means. A string, an object or an array.
94
+ */
95
+ false?: string | { [k: string]: any } | Array<any> | undefined;
96
+ /**
97
+ * What true means. A string, an object or an array.
98
+ */
99
+ true?: string | { [k: string]: any } | Array<any> | undefined;
61
100
  };
62
101
 
63
102
  /**
@@ -80,21 +119,29 @@ export type NoulQuestion = {
80
119
  type: "noul";
81
120
  };
82
121
 
83
- export type Questions = NoulQuestion | ChoiceQuestion | ScoreQuestion;
122
+ export type Questions =
123
+ | NoulQuestion
124
+ | ChoiceQuestion
125
+ | ScoreQuestion
126
+ | BoxQuestion;
84
127
 
85
128
  /**
86
- * The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
129
+ * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
87
130
  */
88
131
  export type State = string | { [k: string]: any } | Array<any>;
89
132
 
90
133
  export type CreateClassifyRequestBody = {
134
+ /**
135
+ * Beta, TypeSafe models only. Inline images keyed by a reference string. Write the reference in state, instructions or criteria wherever the image belongs; every asset must be referenced. Required for box questions.
136
+ */
137
+ assets?: { [k: string]: components.ClassifyAsset } | undefined;
91
138
  cache?: components.ClassifyCacheConfig | undefined;
92
139
  /**
93
140
  * HTTP status codes that trigger fallback. Defaults to [408,429,500,502,503,504,529]. Each code must be unique and between 400 and 599.
94
141
  */
95
142
  fallbackOnCodes?: Array<number> | null | undefined;
96
143
  /**
97
- * Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Image requests require native OpenAI image-capable fallbacks.
144
+ * Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Requests with images in state require native OpenAI image-capable fallbacks; requests with assets or box questions require TypeSafe fallbacks.
98
145
  */
99
146
  fallbacks?: Array<components.FallbackConfig> | null | undefined;
100
147
  identity?: components.ResponseIdentity | undefined;
@@ -113,10 +160,12 @@ export type CreateClassifyRequestBody = {
113
160
  /**
114
161
  * Typed questions keyed by an identifier of your choice. Each answer is returned under the same key.
115
162
  */
116
- questions: { [k: string]: NoulQuestion | ChoiceQuestion | ScoreQuestion };
163
+ questions: {
164
+ [k: string]: NoulQuestion | ChoiceQuestion | ScoreQuestion | BoxQuestion;
165
+ };
117
166
  retry?: components.ClassifyRetryConfig | undefined;
118
167
  /**
119
- * The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
168
+ * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
120
169
  */
121
170
  state: string | { [k: string]: any } | Array<any>;
122
171
  timeout?: components.ClassifyTimeoutConfig | undefined;
@@ -138,6 +187,51 @@ export type CreateClassifyResponseBody = {
138
187
  usage: components.ClassifyUsage;
139
188
  };
140
189
 
190
+ /** @internal */
191
+ export type CreateClassifyQuestionsRouterClassifyInstructions$Outbound =
192
+ | string
193
+ | { [k: string]: any }
194
+ | Array<any>;
195
+
196
+ /** @internal */
197
+ export const CreateClassifyQuestionsRouterClassifyInstructions$outboundSchema:
198
+ z.ZodType<
199
+ CreateClassifyQuestionsRouterClassifyInstructions$Outbound,
200
+ z.ZodTypeDef,
201
+ CreateClassifyQuestionsRouterClassifyInstructions
202
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
203
+
204
+ export function createClassifyQuestionsRouterClassifyInstructionsToJSON(
205
+ createClassifyQuestionsRouterClassifyInstructions:
206
+ CreateClassifyQuestionsRouterClassifyInstructions,
207
+ ): string {
208
+ return JSON.stringify(
209
+ CreateClassifyQuestionsRouterClassifyInstructions$outboundSchema.parse(
210
+ createClassifyQuestionsRouterClassifyInstructions,
211
+ ),
212
+ );
213
+ }
214
+
215
+ /** @internal */
216
+ export type BoxQuestion$Outbound = {
217
+ instructions: string | { [k: string]: any } | Array<any>;
218
+ type: "box";
219
+ };
220
+
221
+ /** @internal */
222
+ export const BoxQuestion$outboundSchema: z.ZodType<
223
+ BoxQuestion$Outbound,
224
+ z.ZodTypeDef,
225
+ BoxQuestion
226
+ > = z.object({
227
+ instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
228
+ type: z.literal("box"),
229
+ });
230
+
231
+ export function boxQuestionToJSON(boxQuestion: BoxQuestion): string {
232
+ return JSON.stringify(BoxQuestion$outboundSchema.parse(boxQuestion));
233
+ }
234
+
141
235
  /** @internal */
142
236
  export type CreateClassifyQuestionsInstructions$Outbound = string | {
143
237
  [k: string]: any;
@@ -162,7 +256,7 @@ export function createClassifyQuestionsInstructionsToJSON(
162
256
 
163
257
  /** @internal */
164
258
  export type ScoreQuestion$Outbound = {
165
- criteria: Array<string>;
259
+ criteria: Array<any>;
166
260
  instructions: string | { [k: string]: any } | Array<any>;
167
261
  type: "score";
168
262
  };
@@ -173,7 +267,7 @@ export const ScoreQuestion$outboundSchema: z.ZodType<
173
267
  z.ZodTypeDef,
174
268
  ScoreQuestion
175
269
  > = z.object({
176
- criteria: z.array(z.string()),
270
+ criteria: z.array(z.any()),
177
271
  instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
178
272
  type: z.literal("score"),
179
273
  });
@@ -182,6 +276,27 @@ export function scoreQuestionToJSON(scoreQuestion: ScoreQuestion): string {
182
276
  return JSON.stringify(ScoreQuestion$outboundSchema.parse(scoreQuestion));
183
277
  }
184
278
 
279
+ /** @internal */
280
+ export type QuestionsCriteria$Outbound =
281
+ | string
282
+ | { [k: string]: any }
283
+ | Array<any>;
284
+
285
+ /** @internal */
286
+ export const QuestionsCriteria$outboundSchema: z.ZodType<
287
+ QuestionsCriteria$Outbound,
288
+ z.ZodTypeDef,
289
+ QuestionsCriteria
290
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
291
+
292
+ export function questionsCriteriaToJSON(
293
+ questionsCriteria: QuestionsCriteria,
294
+ ): string {
295
+ return JSON.stringify(
296
+ QuestionsCriteria$outboundSchema.parse(questionsCriteria),
297
+ );
298
+ }
299
+
185
300
  /** @internal */
186
301
  export type QuestionsInstructions$Outbound =
187
302
  | string
@@ -205,7 +320,7 @@ export function questionsInstructionsToJSON(
205
320
 
206
321
  /** @internal */
207
322
  export type ChoiceQuestion$Outbound = {
208
- criteria: { [k: string]: string | null };
323
+ criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
209
324
  instructions: string | { [k: string]: any } | Array<any>;
210
325
  type: "choice";
211
326
  };
@@ -216,7 +331,9 @@ export const ChoiceQuestion$outboundSchema: z.ZodType<
216
331
  z.ZodTypeDef,
217
332
  ChoiceQuestion
218
333
  > = z.object({
219
- criteria: z.record(z.nullable(z.string())),
334
+ criteria: z.record(
335
+ z.nullable(z.union([z.string(), z.record(z.any()), z.array(z.any())])),
336
+ ),
220
337
  instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
221
338
  type: z.literal("choice"),
222
339
  });
@@ -225,10 +342,35 @@ export function choiceQuestionToJSON(choiceQuestion: ChoiceQuestion): string {
225
342
  return JSON.stringify(ChoiceQuestion$outboundSchema.parse(choiceQuestion));
226
343
  }
227
344
 
345
+ /** @internal */
346
+ export type False$Outbound = string | { [k: string]: any } | Array<any>;
347
+
348
+ /** @internal */
349
+ export const False$outboundSchema: z.ZodType<
350
+ False$Outbound,
351
+ z.ZodTypeDef,
352
+ False
353
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
354
+
355
+ export function falseToJSON(value: False): string {
356
+ return JSON.stringify(False$outboundSchema.parse(value));
357
+ }
358
+
359
+ /** @internal */
360
+ export type True$Outbound = string | { [k: string]: any } | Array<any>;
361
+
362
+ /** @internal */
363
+ export const True$outboundSchema: z.ZodType<True$Outbound, z.ZodTypeDef, True> =
364
+ z.union([z.string(), z.record(z.any()), z.array(z.any())]);
365
+
366
+ export function trueToJSON(value: True): string {
367
+ return JSON.stringify(True$outboundSchema.parse(value));
368
+ }
369
+
228
370
  /** @internal */
229
371
  export type Criteria$Outbound = {
230
- false?: string | undefined;
231
- true?: string | undefined;
372
+ false?: string | { [k: string]: any } | Array<any> | undefined;
373
+ true?: string | { [k: string]: any } | Array<any> | undefined;
232
374
  };
233
375
 
234
376
  /** @internal */
@@ -237,8 +379,8 @@ export const Criteria$outboundSchema: z.ZodType<
237
379
  z.ZodTypeDef,
238
380
  Criteria
239
381
  > = z.object({
240
- false: z.string().optional(),
241
- true: z.string().optional(),
382
+ false: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
383
+ true: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
242
384
  });
243
385
 
244
386
  export function criteriaToJSON(criteria: Criteria): string {
@@ -285,7 +427,8 @@ export function noulQuestionToJSON(noulQuestion: NoulQuestion): string {
285
427
  export type Questions$Outbound =
286
428
  | NoulQuestion$Outbound
287
429
  | ChoiceQuestion$Outbound
288
- | ScoreQuestion$Outbound;
430
+ | ScoreQuestion$Outbound
431
+ | BoxQuestion$Outbound;
289
432
 
290
433
  /** @internal */
291
434
  export const Questions$outboundSchema: z.ZodType<
@@ -296,6 +439,7 @@ export const Questions$outboundSchema: z.ZodType<
296
439
  z.lazy(() => NoulQuestion$outboundSchema),
297
440
  z.lazy(() => ChoiceQuestion$outboundSchema),
298
441
  z.lazy(() => ScoreQuestion$outboundSchema),
442
+ z.lazy(() => BoxQuestion$outboundSchema),
299
443
  ]);
300
444
 
301
445
  export function questionsToJSON(questions: Questions): string {
@@ -318,6 +462,7 @@ export function stateToJSON(state: State): string {
318
462
 
319
463
  /** @internal */
320
464
  export type CreateClassifyRequestBody$Outbound = {
465
+ assets?: { [k: string]: components.ClassifyAsset$Outbound } | undefined;
321
466
  cache?: components.ClassifyCacheConfig$Outbound | undefined;
322
467
  fallback_on_codes?: Array<number> | null | undefined;
323
468
  fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
@@ -329,7 +474,8 @@ export type CreateClassifyRequestBody$Outbound = {
329
474
  [k: string]:
330
475
  | NoulQuestion$Outbound
331
476
  | ChoiceQuestion$Outbound
332
- | ScoreQuestion$Outbound;
477
+ | ScoreQuestion$Outbound
478
+ | BoxQuestion$Outbound;
333
479
  };
334
480
  retry?: components.ClassifyRetryConfig$Outbound | undefined;
335
481
  state: string | { [k: string]: any } | Array<any>;
@@ -342,6 +488,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
342
488
  z.ZodTypeDef,
343
489
  CreateClassifyRequestBody
344
490
  > = z.object({
491
+ assets: z.record(components.ClassifyAsset$outboundSchema).optional(),
345
492
  cache: components.ClassifyCacheConfig$outboundSchema.optional(),
346
493
  fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
347
494
  fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
@@ -355,6 +502,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
355
502
  z.lazy(() => NoulQuestion$outboundSchema),
356
503
  z.lazy(() => ChoiceQuestion$outboundSchema),
357
504
  z.lazy(() => ScoreQuestion$outboundSchema),
505
+ z.lazy(() => BoxQuestion$outboundSchema),
358
506
  ]),
359
507
  ),
360
508
  retry: components.ClassifyRetryConfig$outboundSchema.optional(),