@orq-ai/node 4.6.0-rc.8 → 4.6.3

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 (1065) hide show
  1. package/FUNCTIONS.md +3 -19
  2. package/README.md +162 -128
  3. package/examples/postV2Feedback.example.ts +26 -0
  4. package/funcs/agentsDelete.js.map +1 -1
  5. package/funcs/agentsInvoke.js.map +1 -1
  6. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -1
  7. package/funcs/agentsResponsesCreate.js.map +1 -1
  8. package/funcs/agentsResponsesGet.js.map +1 -1
  9. package/funcs/agentsRetrieve.js.map +1 -1
  10. package/funcs/agentsStream.js.map +1 -1
  11. package/funcs/agentsUpdate.js.map +1 -1
  12. package/funcs/annotationsCreate.js.map +1 -1
  13. package/funcs/annotationsDelete.js.map +1 -1
  14. package/funcs/datasetsClear.js.map +1 -1
  15. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  16. package/funcs/datasetsDelete.js.map +1 -1
  17. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  18. package/funcs/datasetsListDatapoints.js.map +1 -1
  19. package/funcs/datasetsRetrieve.js.map +1 -1
  20. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  21. package/funcs/datasetsUpdate.js.map +1 -1
  22. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  23. package/funcs/deleteV2HumanEvalsId.d.ts +12 -0
  24. package/funcs/deleteV2HumanEvalsId.d.ts.map +1 -0
  25. package/funcs/deleteV2HumanEvalsId.js +117 -0
  26. package/funcs/deleteV2HumanEvalsId.js.map +1 -0
  27. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  28. package/funcs/evalsDelete.js.map +1 -1
  29. package/funcs/evalsInvoke.js.map +1 -1
  30. package/funcs/evalsUpdate.js.map +1 -1
  31. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.js.map +1 -1
  32. package/funcs/filesCreate.d.ts +1 -1
  33. package/funcs/filesCreate.d.ts.map +1 -1
  34. package/funcs/filesCreate.js +6 -12
  35. package/funcs/filesCreate.js.map +1 -1
  36. package/funcs/filesDelete.js.map +1 -1
  37. package/funcs/filesGet.d.ts +1 -1
  38. package/funcs/filesGet.js +1 -1
  39. package/funcs/filesGet.js.map +1 -1
  40. package/funcs/filesGetContent.d.ts +17 -0
  41. package/funcs/filesGetContent.d.ts.map +1 -0
  42. package/funcs/filesGetContent.js +120 -0
  43. package/funcs/filesGetContent.js.map +1 -0
  44. package/funcs/filesList.js +1 -1
  45. package/funcs/filesList.js.map +1 -1
  46. package/funcs/filesUpdate.d.ts +17 -0
  47. package/funcs/filesUpdate.d.ts.map +1 -0
  48. package/funcs/filesUpdate.js +120 -0
  49. package/funcs/filesUpdate.js.map +1 -0
  50. package/funcs/getV2HumanEvals.d.ts +12 -0
  51. package/funcs/getV2HumanEvals.d.ts.map +1 -0
  52. package/funcs/getV2HumanEvals.js +116 -0
  53. package/funcs/getV2HumanEvals.js.map +1 -0
  54. package/funcs/getV2HumanEvalsId.d.ts +12 -0
  55. package/funcs/getV2HumanEvalsId.d.ts.map +1 -0
  56. package/funcs/getV2HumanEvalsId.js +117 -0
  57. package/funcs/getV2HumanEvalsId.js.map +1 -0
  58. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts +14 -0
  59. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +1 -0
  60. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js +117 -0
  61. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +1 -0
  62. package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts +14 -0
  63. package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +1 -0
  64. package/funcs/humanReviewSetsGetV2HumanEvalSets.js +115 -0
  65. package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +1 -0
  66. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts +14 -0
  67. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +1 -0
  68. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js +116 -0
  69. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +1 -0
  70. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts +14 -0
  71. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +1 -0
  72. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js +117 -0
  73. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +1 -0
  74. package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts +14 -0
  75. package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +1 -0
  76. package/funcs/humanReviewSetsPostV2HumanEvalSets.js +113 -0
  77. package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +1 -0
  78. package/funcs/identitiesDelete.js.map +1 -1
  79. package/funcs/identitiesRetrieve.js.map +1 -1
  80. package/funcs/identitiesUpdate.js.map +1 -1
  81. package/funcs/knowledgeCreateChunks.d.ts +1 -1
  82. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  83. package/funcs/knowledgeCreateChunks.js +1 -1
  84. package/funcs/knowledgeCreateChunks.js.map +1 -1
  85. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  86. package/funcs/knowledgeDelete.js.map +1 -1
  87. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  88. package/funcs/knowledgeDeleteChunks.js.map +1 -1
  89. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  90. package/funcs/knowledgeGetChunksCount.js.map +1 -1
  91. package/funcs/knowledgeListChunks.js.map +1 -1
  92. package/funcs/knowledgeListChunksPaginated.js.map +1 -1
  93. package/funcs/knowledgeListDatasources.js.map +1 -1
  94. package/funcs/knowledgeRetrieve.js.map +1 -1
  95. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  96. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  97. package/funcs/knowledgeSearch.js.map +1 -1
  98. package/funcs/knowledgeUpdate.js.map +1 -1
  99. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  100. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  101. package/funcs/memoryStoresCreateDocument.js.map +1 -1
  102. package/funcs/memoryStoresCreateMemory.js.map +1 -1
  103. package/funcs/memoryStoresDelete.js.map +1 -1
  104. package/funcs/memoryStoresDeleteDocument.js.map +1 -1
  105. package/funcs/memoryStoresDeleteMemory.js.map +1 -1
  106. package/funcs/memoryStoresListDocuments.js.map +1 -1
  107. package/funcs/memoryStoresListMemories.js.map +1 -1
  108. package/funcs/memoryStoresRetrieve.js.map +1 -1
  109. package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
  110. package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
  111. package/funcs/memoryStoresUpdate.js.map +1 -1
  112. package/funcs/memoryStoresUpdateDocument.js.map +1 -1
  113. package/funcs/memoryStoresUpdateMemory.js.map +1 -1
  114. package/funcs/modelsList.d.ts +1 -1
  115. package/funcs/modelsList.d.ts.map +1 -1
  116. package/funcs/modelsList.js +16 -3
  117. package/funcs/modelsList.js.map +1 -1
  118. package/funcs/patchV2HumanEvalsId.d.ts +12 -0
  119. package/funcs/patchV2HumanEvalsId.d.ts.map +1 -0
  120. package/funcs/patchV2HumanEvalsId.js +118 -0
  121. package/funcs/patchV2HumanEvalsId.js.map +1 -0
  122. package/funcs/postV2Feedback.d.ts +12 -0
  123. package/funcs/postV2Feedback.d.ts.map +1 -0
  124. package/funcs/postV2Feedback.js +114 -0
  125. package/funcs/postV2Feedback.js.map +1 -0
  126. package/funcs/{feedbackCreate.d.ts → postV2FeedbackEvaluation.d.ts} +2 -8
  127. package/funcs/postV2FeedbackEvaluation.d.ts.map +1 -0
  128. package/funcs/{feedbackCreate.js → postV2FeedbackEvaluation.js} +13 -15
  129. package/funcs/postV2FeedbackEvaluation.js.map +1 -0
  130. package/funcs/postV2FeedbackEvaluationRemove.d.ts +11 -0
  131. package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +1 -0
  132. package/funcs/postV2FeedbackEvaluationRemove.js +112 -0
  133. package/funcs/postV2FeedbackEvaluationRemove.js.map +1 -0
  134. package/funcs/postV2FeedbackRemove.d.ts +12 -0
  135. package/funcs/postV2FeedbackRemove.d.ts.map +1 -0
  136. package/funcs/postV2FeedbackRemove.js +115 -0
  137. package/funcs/postV2FeedbackRemove.js.map +1 -0
  138. package/funcs/postV2HumanEvals.d.ts +12 -0
  139. package/funcs/postV2HumanEvals.d.ts.map +1 -0
  140. package/funcs/postV2HumanEvals.js +114 -0
  141. package/funcs/postV2HumanEvals.js.map +1 -0
  142. package/funcs/promptsDelete.js.map +1 -1
  143. package/funcs/promptsGetVersion.js.map +1 -1
  144. package/funcs/promptsListVersions.js.map +1 -1
  145. package/funcs/promptsRetrieve.js.map +1 -1
  146. package/funcs/promptsUpdate.js.map +1 -1
  147. package/funcs/routerAudioTranscriptionsCreate.d.ts.map +1 -1
  148. package/funcs/routerAudioTranscriptionsCreate.js +5 -11
  149. package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
  150. package/funcs/routerAudioTranslationsCreate.d.ts.map +1 -1
  151. package/funcs/routerAudioTranslationsCreate.js +5 -11
  152. package/funcs/routerAudioTranslationsCreate.js.map +1 -1
  153. package/funcs/toolsDelete.js.map +1 -1
  154. package/funcs/toolsGetV2ToolsToolIdVersions.js.map +1 -1
  155. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -1
  156. package/funcs/toolsRetrieve.js.map +1 -1
  157. package/funcs/toolsUpdate.js.map +1 -1
  158. package/jsr.json +1 -1
  159. package/lib/config.d.ts +3 -3
  160. package/lib/config.js +3 -3
  161. package/lib/config.js.map +1 -1
  162. package/lib/encodings.d.ts.map +1 -1
  163. package/lib/encodings.js +20 -5
  164. package/lib/encodings.js.map +1 -1
  165. package/lib/files.d.ts +13 -0
  166. package/lib/files.d.ts.map +1 -1
  167. package/lib/files.js +19 -0
  168. package/lib/files.js.map +1 -1
  169. package/lib/sdks.d.ts.map +1 -1
  170. package/lib/sdks.js +8 -4
  171. package/lib/sdks.js.map +1 -1
  172. package/lib/url.d.ts.map +1 -1
  173. package/lib/url.js +4 -2
  174. package/lib/url.js.map +1 -1
  175. package/models/components/filedocument.d.ts +15 -0
  176. package/models/components/filedocument.d.ts.map +1 -0
  177. package/models/components/filedocument.js +62 -0
  178. package/models/components/filedocument.js.map +1 -0
  179. package/models/components/index.d.ts +2 -0
  180. package/models/components/index.d.ts.map +1 -1
  181. package/models/components/index.js +2 -0
  182. package/models/components/index.js.map +1 -1
  183. package/models/components/reasoningpart.js +1 -1
  184. package/models/components/thinkingconfigadaptiveschema.d.ts +23 -0
  185. package/models/components/thinkingconfigadaptiveschema.d.ts.map +1 -0
  186. package/models/components/thinkingconfigadaptiveschema.js +58 -0
  187. package/models/components/thinkingconfigadaptiveschema.js.map +1 -0
  188. package/models/errors/deletev2humanevalsid.d.ts +23 -0
  189. package/models/errors/deletev2humanevalsid.d.ts.map +1 -0
  190. package/models/errors/deletev2humanevalsid.js +68 -0
  191. package/models/errors/deletev2humanevalsid.js.map +1 -0
  192. package/models/errors/getv2humanevals.d.ts +23 -0
  193. package/models/errors/getv2humanevals.d.ts.map +1 -0
  194. package/models/errors/getv2humanevals.js +68 -0
  195. package/models/errors/getv2humanevals.js.map +1 -0
  196. package/models/errors/getv2humanevalsid.d.ts +23 -0
  197. package/models/errors/getv2humanevalsid.d.ts.map +1 -0
  198. package/models/errors/getv2humanevalsid.js +68 -0
  199. package/models/errors/getv2humanevalsid.js.map +1 -0
  200. package/models/errors/index.d.ts +7 -0
  201. package/models/errors/index.d.ts.map +1 -1
  202. package/models/errors/index.js +7 -0
  203. package/models/errors/index.js.map +1 -1
  204. package/models/errors/patchv2humanevalsid.d.ts +23 -0
  205. package/models/errors/patchv2humanevalsid.d.ts.map +1 -0
  206. package/models/errors/patchv2humanevalsid.js +68 -0
  207. package/models/errors/patchv2humanevalsid.js.map +1 -0
  208. package/models/errors/postv2feedback.d.ts +43 -0
  209. package/models/errors/postv2feedback.d.ts.map +1 -0
  210. package/models/errors/postv2feedback.js +94 -0
  211. package/models/errors/postv2feedback.js.map +1 -0
  212. package/models/errors/postv2feedbackremove.d.ts +23 -0
  213. package/models/errors/postv2feedbackremove.d.ts.map +1 -0
  214. package/models/errors/postv2feedbackremove.js +68 -0
  215. package/models/errors/postv2feedbackremove.js.map +1 -0
  216. package/models/errors/postv2humanevals.d.ts +23 -0
  217. package/models/errors/postv2humanevals.d.ts.map +1 -0
  218. package/models/errors/postv2humanevals.js +68 -0
  219. package/models/errors/postv2humanevals.js.map +1 -0
  220. package/models/operations/createagentrequest.d.ts +28 -24
  221. package/models/operations/createagentrequest.d.ts.map +1 -1
  222. package/models/operations/createagentrequest.js +21 -11
  223. package/models/operations/createagentrequest.js.map +1 -1
  224. package/models/operations/createchatcompletion.d.ts +4 -4
  225. package/models/operations/createchatcompletion.d.ts.map +1 -1
  226. package/models/operations/createchatcompletion.js +2 -0
  227. package/models/operations/createchatcompletion.js.map +1 -1
  228. package/models/operations/createchunk.d.ts +3 -3
  229. package/models/operations/createchunk.d.ts.map +1 -1
  230. package/models/operations/createchunk.js +5 -5
  231. package/models/operations/createchunk.js.map +1 -1
  232. package/models/operations/createcompletion.d.ts +14 -0
  233. package/models/operations/createcompletion.d.ts.map +1 -1
  234. package/models/operations/createcompletion.js +18 -2
  235. package/models/operations/createcompletion.js.map +1 -1
  236. package/models/operations/createcontact.js +1 -1
  237. package/models/operations/createdataset.js +1 -1
  238. package/models/operations/createdatasetitem.d.ts +4 -4
  239. package/models/operations/createdatasetitem.d.ts.map +1 -1
  240. package/models/operations/createdatasetitem.js +10 -9
  241. package/models/operations/createdatasetitem.js.map +1 -1
  242. package/models/operations/createdatasource.js +1 -1
  243. package/models/operations/createeval.d.ts +26 -26
  244. package/models/operations/createeval.d.ts.map +1 -1
  245. package/models/operations/createeval.js +46 -48
  246. package/models/operations/createeval.js.map +1 -1
  247. package/models/operations/createidentity.js +1 -1
  248. package/models/operations/createknowledge.d.ts +17 -17
  249. package/models/operations/createknowledge.d.ts.map +1 -1
  250. package/models/operations/createknowledge.js +21 -21
  251. package/models/operations/createknowledge.js.map +1 -1
  252. package/models/operations/createprompt.d.ts +8 -6
  253. package/models/operations/createprompt.d.ts.map +1 -1
  254. package/models/operations/createprompt.js +6 -0
  255. package/models/operations/createprompt.js.map +1 -1
  256. package/models/operations/createresponse.d.ts +15 -0
  257. package/models/operations/createresponse.d.ts.map +1 -1
  258. package/models/operations/createresponse.js +19 -3
  259. package/models/operations/createresponse.js.map +1 -1
  260. package/models/operations/createtool.js +6 -6
  261. package/models/operations/deletev2humanevalsetsid.d.ts +15 -0
  262. package/models/operations/deletev2humanevalsetsid.d.ts.map +1 -0
  263. package/models/operations/deletev2humanevalsetsid.js +49 -0
  264. package/models/operations/deletev2humanevalsetsid.js.map +1 -0
  265. package/models/operations/deletev2humanevalsid.d.ts +27 -0
  266. package/models/operations/deletev2humanevalsid.d.ts.map +1 -0
  267. package/models/operations/deletev2humanevalsid.js +59 -0
  268. package/models/operations/deletev2humanevalsid.js.map +1 -0
  269. package/models/operations/deploymentgetconfig.d.ts +1 -0
  270. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  271. package/models/operations/deploymentgetconfig.js +1 -0
  272. package/models/operations/deploymentgetconfig.js.map +1 -1
  273. package/models/operations/deploymentinvoke.d.ts +4 -0
  274. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  275. package/models/operations/deploymentinvoke.js +4 -0
  276. package/models/operations/deploymentinvoke.js.map +1 -1
  277. package/models/operations/deployments.d.ts +2 -0
  278. package/models/operations/deployments.d.ts.map +1 -1
  279. package/models/operations/deployments.js +2 -0
  280. package/models/operations/deployments.js.map +1 -1
  281. package/models/operations/deploymentstream.d.ts +4 -0
  282. package/models/operations/deploymentstream.d.ts.map +1 -1
  283. package/models/operations/deploymentstream.js +4 -0
  284. package/models/operations/deploymentstream.js.map +1 -1
  285. package/models/operations/filecontent.d.ts +15 -0
  286. package/models/operations/filecontent.d.ts.map +1 -0
  287. package/models/operations/filecontent.js +54 -0
  288. package/models/operations/filecontent.js.map +1 -0
  289. package/models/operations/fileget.d.ts +2 -30
  290. package/models/operations/fileget.d.ts.map +1 -1
  291. package/models/operations/fileget.js +4 -16
  292. package/models/operations/fileget.js.map +1 -1
  293. package/models/operations/filelist.d.ts +5 -52
  294. package/models/operations/filelist.d.ts.map +1 -1
  295. package/models/operations/filelist.js +4 -39
  296. package/models/operations/filelist.js.map +1 -1
  297. package/models/operations/fileupdate.d.ts +43 -0
  298. package/models/operations/fileupdate.d.ts.map +1 -0
  299. package/models/operations/{createfeedback.js → fileupdate.js} +33 -30
  300. package/models/operations/fileupdate.js.map +1 -0
  301. package/models/operations/fileupload.d.ts +2 -29
  302. package/models/operations/fileupload.d.ts.map +1 -1
  303. package/models/operations/fileupload.js +4 -16
  304. package/models/operations/fileupload.js.map +1 -1
  305. package/models/operations/getallprompts.d.ts +4 -2
  306. package/models/operations/getallprompts.d.ts.map +1 -1
  307. package/models/operations/getallprompts.js +4 -0
  308. package/models/operations/getallprompts.js.map +1 -1
  309. package/models/operations/getalltools.js +6 -6
  310. package/models/operations/getevals.js +16 -16
  311. package/models/operations/getoneprompt.d.ts +4 -2
  312. package/models/operations/getoneprompt.d.ts.map +1 -1
  313. package/models/operations/getoneprompt.js +4 -0
  314. package/models/operations/getoneprompt.js.map +1 -1
  315. package/models/operations/getpromptversion.d.ts +4 -2
  316. package/models/operations/getpromptversion.d.ts.map +1 -1
  317. package/models/operations/getpromptversion.js +4 -0
  318. package/models/operations/getpromptversion.js.map +1 -1
  319. package/models/operations/getv2humanevals.d.ts +356 -0
  320. package/models/operations/getv2humanevals.d.ts.map +1 -0
  321. package/models/operations/getv2humanevals.js +274 -0
  322. package/models/operations/getv2humanevals.js.map +1 -0
  323. package/models/operations/getv2humanevalsets.d.ts +103 -0
  324. package/models/operations/getv2humanevalsets.d.ts.map +1 -0
  325. package/models/operations/getv2humanevalsets.js +128 -0
  326. package/models/operations/getv2humanevalsets.js.map +1 -0
  327. package/models/operations/getv2humanevalsetsid.d.ts +106 -0
  328. package/models/operations/getv2humanevalsetsid.d.ts.map +1 -0
  329. package/models/operations/getv2humanevalsetsid.js +124 -0
  330. package/models/operations/getv2humanevalsetsid.js.map +1 -0
  331. package/models/operations/getv2humanevalsid.d.ts +359 -0
  332. package/models/operations/getv2humanevalsid.d.ts.map +1 -0
  333. package/models/operations/getv2humanevalsid.js +271 -0
  334. package/models/operations/getv2humanevalsid.js.map +1 -0
  335. package/models/operations/index.d.ts +16 -1
  336. package/models/operations/index.d.ts.map +1 -1
  337. package/models/operations/index.js +16 -1
  338. package/models/operations/index.js.map +1 -1
  339. package/models/operations/invokeeval.d.ts +1 -0
  340. package/models/operations/invokeeval.d.ts.map +1 -1
  341. package/models/operations/invokeeval.js +1 -0
  342. package/models/operations/invokeeval.js.map +1 -1
  343. package/models/operations/listagents.d.ts +8 -4
  344. package/models/operations/listagents.d.ts.map +1 -1
  345. package/models/operations/listagents.js +5 -0
  346. package/models/operations/listagents.js.map +1 -1
  347. package/models/operations/listdatasetdatapoints.js +4 -4
  348. package/models/operations/listdatasets.js +1 -1
  349. package/models/operations/listdatasources.js +1 -1
  350. package/models/operations/listidentities.js +1 -1
  351. package/models/operations/listmodels.d.ts +10 -0
  352. package/models/operations/listmodels.d.ts.map +1 -1
  353. package/models/operations/listmodels.js +9 -1
  354. package/models/operations/listmodels.js.map +1 -1
  355. package/models/operations/listpromptversions.d.ts +4 -2
  356. package/models/operations/listpromptversions.d.ts.map +1 -1
  357. package/models/operations/listpromptversions.js +4 -0
  358. package/models/operations/listpromptversions.js.map +1 -1
  359. package/models/operations/parse.d.ts +4 -4
  360. package/models/operations/parse.d.ts.map +1 -1
  361. package/models/operations/parse.js +4 -4
  362. package/models/operations/parse.js.map +1 -1
  363. package/models/operations/patchv2humanevalsetsid.d.ts +184 -0
  364. package/models/operations/patchv2humanevalsetsid.d.ts.map +1 -0
  365. package/models/operations/patchv2humanevalsetsid.js +183 -0
  366. package/models/operations/patchv2humanevalsetsid.js.map +1 -0
  367. package/models/operations/patchv2humanevalsid.d.ts +703 -0
  368. package/models/operations/patchv2humanevalsid.d.ts.map +1 -0
  369. package/models/operations/patchv2humanevalsid.js +474 -0
  370. package/models/operations/patchv2humanevalsid.js.map +1 -0
  371. package/models/operations/postv2feedback.d.ts +120 -0
  372. package/models/operations/postv2feedback.d.ts.map +1 -0
  373. package/models/operations/postv2feedback.js +131 -0
  374. package/models/operations/postv2feedback.js.map +1 -0
  375. package/models/operations/postv2feedbackevaluation.d.ts +174 -0
  376. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -0
  377. package/models/operations/postv2feedbackevaluation.js +167 -0
  378. package/models/operations/postv2feedbackevaluation.js.map +1 -0
  379. package/models/operations/postv2feedbackevaluationremove.d.ts +14 -0
  380. package/models/operations/postv2feedbackevaluationremove.d.ts.map +1 -0
  381. package/models/operations/postv2feedbackevaluationremove.js +55 -0
  382. package/models/operations/postv2feedbackevaluationremove.js.map +1 -0
  383. package/models/operations/postv2feedbackremove.d.ts +74 -0
  384. package/models/operations/postv2feedbackremove.d.ts.map +1 -0
  385. package/models/operations/postv2feedbackremove.js +113 -0
  386. package/models/operations/postv2feedbackremove.js.map +1 -0
  387. package/models/operations/postv2humanevals.d.ts +628 -0
  388. package/models/operations/postv2humanevals.d.ts.map +1 -0
  389. package/models/operations/postv2humanevals.js +427 -0
  390. package/models/operations/postv2humanevals.js.map +1 -0
  391. package/models/operations/postv2humanevalsets.d.ts +169 -0
  392. package/models/operations/postv2humanevalsets.d.ts.map +1 -0
  393. package/models/operations/postv2humanevalsets.js +167 -0
  394. package/models/operations/postv2humanevalsets.js.map +1 -0
  395. package/models/operations/retrieveagentrequest.d.ts +8 -4
  396. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  397. package/models/operations/retrieveagentrequest.js +5 -0
  398. package/models/operations/retrieveagentrequest.js.map +1 -1
  399. package/models/operations/retrievedatapoint.js +4 -4
  400. package/models/operations/retrievedataset.js +1 -1
  401. package/models/operations/retrievedatasource.js +1 -1
  402. package/models/operations/retrieveidentity.js +1 -1
  403. package/models/operations/retrievetool.js +6 -6
  404. package/models/operations/runagent.d.ts +8 -8
  405. package/models/operations/runagent.d.ts.map +1 -1
  406. package/models/operations/runagent.js +5 -1
  407. package/models/operations/runagent.js.map +1 -1
  408. package/models/operations/streamrunagent.d.ts +8 -8
  409. package/models/operations/streamrunagent.d.ts.map +1 -1
  410. package/models/operations/streamrunagent.js +5 -1
  411. package/models/operations/streamrunagent.js.map +1 -1
  412. package/models/operations/updateagent.d.ts +32 -28
  413. package/models/operations/updateagent.d.ts.map +1 -1
  414. package/models/operations/updateagent.js +26 -17
  415. package/models/operations/updateagent.js.map +1 -1
  416. package/models/operations/updatedatapoint.js +4 -4
  417. package/models/operations/updatedataset.js +1 -1
  418. package/models/operations/updatedatasource.js +1 -1
  419. package/models/operations/updateeval.d.ts +144 -536
  420. package/models/operations/updateeval.d.ts.map +1 -1
  421. package/models/operations/updateeval.js +156 -520
  422. package/models/operations/updateeval.js.map +1 -1
  423. package/models/operations/updateidentity.js +1 -1
  424. package/models/operations/updateprompt.d.ts +8 -6
  425. package/models/operations/updateprompt.d.ts.map +1 -1
  426. package/models/operations/updateprompt.js +6 -0
  427. package/models/operations/updateprompt.js.map +1 -1
  428. package/models/operations/updatetool.d.ts +16 -16
  429. package/models/operations/updatetool.d.ts.map +1 -1
  430. package/models/operations/updatetool.js +24 -26
  431. package/models/operations/updatetool.js.map +1 -1
  432. package/package.json +3 -4
  433. package/packages/orq-rc/examples/postV2Feedback.example.ts +26 -0
  434. package/packages/orq-rc/src/core.ts +13 -0
  435. package/packages/orq-rc/src/funcs/agentsCreate.ts +161 -0
  436. package/packages/orq-rc/src/funcs/agentsDelete.ts +179 -0
  437. package/packages/orq-rc/src/funcs/agentsInvoke.ts +176 -0
  438. package/packages/orq-rc/src/funcs/agentsList.ts +184 -0
  439. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  440. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +186 -0
  441. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +182 -0
  442. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +181 -0
  443. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +179 -0
  444. package/packages/orq-rc/src/funcs/agentsRun.ts +162 -0
  445. package/packages/orq-rc/src/funcs/agentsStream.ts +203 -0
  446. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +189 -0
  447. package/packages/orq-rc/src/funcs/agentsUpdate.ts +183 -0
  448. package/packages/orq-rc/src/funcs/annotationsCreate.ts +170 -0
  449. package/packages/orq-rc/src/funcs/annotationsDelete.ts +170 -0
  450. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  451. package/{src/funcs/feedbackCreate.ts → packages/orq-rc/src/funcs/contactsCreate.ts} +12 -12
  452. package/packages/orq-rc/src/funcs/datasetsClear.ts +166 -0
  453. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  454. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +170 -0
  455. package/packages/orq-rc/src/funcs/datasetsDelete.ts +166 -0
  456. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +181 -0
  457. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  458. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +173 -0
  459. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +174 -0
  460. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +180 -0
  461. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +175 -0
  462. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +178 -0
  463. package/packages/orq-rc/src/funcs/deleteV2HumanEvalsId.ts +169 -0
  464. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  465. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  466. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  467. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +169 -0
  468. package/packages/orq-rc/src/funcs/deploymentsStream.ts +186 -0
  469. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  470. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  471. package/packages/orq-rc/src/funcs/evalsDelete.ts +172 -0
  472. package/packages/orq-rc/src/funcs/evalsInvoke.ts +180 -0
  473. package/packages/orq-rc/src/funcs/evalsUpdate.ts +172 -0
  474. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +182 -0
  475. package/packages/orq-rc/src/funcs/filesCreate.ts +194 -0
  476. package/packages/orq-rc/src/funcs/filesDelete.ts +163 -0
  477. package/packages/orq-rc/src/funcs/filesGet.ts +165 -0
  478. package/packages/orq-rc/src/funcs/filesGetContent.ts +166 -0
  479. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  480. package/packages/orq-rc/src/funcs/filesUpdate.ts +166 -0
  481. package/packages/orq-rc/src/funcs/getV2HumanEvals.ts +169 -0
  482. package/packages/orq-rc/src/funcs/getV2HumanEvalsId.ts +168 -0
  483. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +164 -0
  484. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +168 -0
  485. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +163 -0
  486. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +164 -0
  487. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +162 -0
  488. package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
  489. package/packages/orq-rc/src/funcs/identitiesDelete.ts +175 -0
  490. package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
  491. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +174 -0
  492. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +175 -0
  493. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  494. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +170 -0
  495. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +165 -0
  496. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +166 -0
  497. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +173 -0
  498. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +169 -0
  499. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +172 -0
  500. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +169 -0
  501. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  502. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +177 -0
  503. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +170 -0
  504. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +173 -0
  505. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +165 -0
  506. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +172 -0
  507. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +168 -0
  508. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +166 -0
  509. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +163 -0
  510. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +173 -0
  511. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +169 -0
  512. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +162 -0
  513. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
  514. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +169 -0
  515. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +167 -0
  516. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
  517. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
  518. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  519. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +183 -0
  520. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
  521. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +176 -0
  522. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
  523. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
  524. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +167 -0
  525. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
  526. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
  527. package/packages/orq-rc/src/funcs/modelsList.ts +165 -0
  528. package/packages/orq-rc/src/funcs/patchV2HumanEvalsId.ts +170 -0
  529. package/packages/orq-rc/src/funcs/postV2Feedback.ts +172 -0
  530. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +159 -0
  531. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +159 -0
  532. package/packages/orq-rc/src/funcs/postV2FeedbackRemove.ts +167 -0
  533. package/packages/orq-rc/src/funcs/postV2HumanEvals.ts +168 -0
  534. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  535. package/packages/orq-rc/src/funcs/promptsDelete.ts +172 -0
  536. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +180 -0
  537. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  538. package/packages/orq-rc/src/funcs/promptsListVersions.ts +172 -0
  539. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +165 -0
  540. package/packages/orq-rc/src/funcs/promptsUpdate.ts +172 -0
  541. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  542. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +161 -0
  543. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +269 -0
  544. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +259 -0
  545. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +168 -0
  546. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +168 -0
  547. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +161 -0
  548. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +222 -0
  549. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +160 -0
  550. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +218 -0
  551. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +167 -0
  552. package/packages/orq-rc/src/funcs/routerOcr.ts +158 -0
  553. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +160 -0
  554. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +167 -0
  555. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  556. package/packages/orq-rc/src/funcs/toolsDelete.ts +166 -0
  557. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +182 -0
  558. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +189 -0
  559. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  560. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +165 -0
  561. package/packages/orq-rc/src/funcs/toolsUpdate.ts +175 -0
  562. package/packages/orq-rc/src/hooks/global.ts +44 -0
  563. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  564. package/packages/orq-rc/src/hooks/index.ts +6 -0
  565. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  566. package/packages/orq-rc/src/hooks/types.ts +112 -0
  567. package/packages/orq-rc/src/index.ts +9 -0
  568. package/packages/orq-rc/src/lib/base64.ts +37 -0
  569. package/packages/orq-rc/src/lib/config.ts +74 -0
  570. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  571. package/packages/orq-rc/src/lib/encodings.ts +516 -0
  572. package/packages/orq-rc/src/lib/env.ts +89 -0
  573. package/packages/orq-rc/src/lib/event-streams.ts +165 -0
  574. package/packages/orq-rc/src/lib/files.ts +104 -0
  575. package/packages/orq-rc/src/lib/http.ts +323 -0
  576. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  577. package/packages/orq-rc/src/lib/logger.ts +9 -0
  578. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  579. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  580. package/packages/orq-rc/src/lib/retries.ts +218 -0
  581. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  582. package/packages/orq-rc/src/lib/sdks.ts +409 -0
  583. package/packages/orq-rc/src/lib/security.ts +263 -0
  584. package/packages/orq-rc/src/lib/url.ts +35 -0
  585. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  586. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  587. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  588. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  589. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  590. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  591. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  592. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  593. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +517 -0
  594. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  595. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  596. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  597. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  598. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  599. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  600. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  601. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  602. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  603. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  604. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  605. package/packages/orq-rc/src/models/components/filedocument.ts +48 -0
  606. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  607. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  608. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  609. package/packages/orq-rc/src/models/components/index.ts +61 -0
  610. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  611. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  612. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  613. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  614. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  615. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  616. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  617. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  618. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  619. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  620. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  621. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  622. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  623. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  624. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  625. package/packages/orq-rc/src/models/components/security.ts +32 -0
  626. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  627. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  628. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  629. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  630. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  631. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  632. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  633. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  634. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  635. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +230 -0
  636. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +214 -0
  637. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +200 -0
  638. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  639. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  640. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  641. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  642. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  643. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  644. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  645. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  646. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  647. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  648. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  649. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  650. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  651. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  652. package/packages/orq-rc/src/models/errors/deletev2humanevalsid.ts +51 -0
  653. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  654. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  655. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  656. package/packages/orq-rc/src/models/errors/getv2humanevals.ts +51 -0
  657. package/packages/orq-rc/src/models/errors/getv2humanevalsid.ts +51 -0
  658. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  659. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  660. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  661. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  662. package/packages/orq-rc/src/models/errors/index.ts +42 -0
  663. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  664. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  665. package/packages/orq-rc/src/models/errors/patchv2humanevalsid.ts +51 -0
  666. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  667. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  668. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  669. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  670. package/packages/orq-rc/src/models/errors/postv2humanevals.ts +51 -0
  671. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  672. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  673. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +62 -0
  674. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  675. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  676. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  677. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  678. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  679. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  680. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  681. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  682. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  683. package/packages/orq-rc/src/models/operations/createagentrequest.ts +6459 -0
  684. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +670 -0
  685. package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
  686. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6398 -0
  687. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  688. package/packages/orq-rc/src/models/operations/createcompletion.ts +3473 -0
  689. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  690. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  691. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2554 -0
  692. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  693. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  694. package/packages/orq-rc/src/models/operations/createeval.ts +4178 -0
  695. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  696. package/packages/orq-rc/src/models/operations/createimage.ts +1034 -0
  697. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  698. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  699. package/packages/orq-rc/src/models/operations/createknowledge.ts +960 -0
  700. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  701. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  702. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  703. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  704. package/packages/orq-rc/src/models/operations/createprompt.ts +5403 -0
  705. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  706. package/packages/orq-rc/src/models/operations/createresponse.ts +3381 -0
  707. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  708. package/packages/orq-rc/src/models/operations/createtool.ts +2499 -0
  709. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  710. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  711. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  712. package/packages/orq-rc/src/models/operations/deleteannotation.ts +82 -0
  713. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  714. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  715. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  716. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  717. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  718. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  719. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  720. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  721. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  722. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  723. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  724. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  725. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  726. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  727. package/packages/orq-rc/src/models/operations/deletev2humanevalsid.ts +67 -0
  728. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  729. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4526 -0
  730. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +733 -0
  731. package/packages/orq-rc/src/models/operations/deployments.ts +1271 -0
  732. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4657 -0
  733. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  734. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  735. package/packages/orq-rc/src/models/operations/fileget.ts +80 -0
  736. package/packages/orq-rc/src/models/operations/filelist.ts +85 -0
  737. package/packages/orq-rc/src/models/operations/fileupdate.ts +118 -0
  738. package/packages/orq-rc/src/models/operations/fileupload.ts +135 -0
  739. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  740. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  741. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  742. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  743. package/packages/orq-rc/src/models/operations/getallprompts.ts +3171 -0
  744. package/packages/orq-rc/src/models/operations/getalltools.ts +1398 -0
  745. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  746. package/packages/orq-rc/src/models/operations/getevals.ts +2842 -0
  747. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  748. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  749. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3096 -0
  750. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3141 -0
  751. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  752. package/packages/orq-rc/src/models/operations/getv2humanevals.ts +696 -0
  753. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  754. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  755. package/packages/orq-rc/src/models/operations/getv2humanevalsid.ts +707 -0
  756. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  757. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  758. package/packages/orq-rc/src/models/operations/index.ts +131 -0
  759. package/packages/orq-rc/src/models/operations/invokeagent.ts +801 -0
  760. package/packages/orq-rc/src/models/operations/invokeeval.ts +1254 -0
  761. package/packages/orq-rc/src/models/operations/listagents.ts +2781 -0
  762. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  763. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  764. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  765. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  766. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  767. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  768. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  769. package/packages/orq-rc/src/models/operations/listmodels.ts +169 -0
  770. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3216 -0
  771. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  772. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  773. package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +1362 -0
  774. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  775. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  776. package/packages/orq-rc/src/models/operations/postv2feedback.ts +207 -0
  777. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +321 -0
  778. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  779. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +138 -0
  780. package/packages/orq-rc/src/models/operations/postv2humanevals.ts +1193 -0
  781. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  782. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  783. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  784. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2843 -0
  785. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  786. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  787. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  788. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +117 -0
  789. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  790. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  791. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  792. package/packages/orq-rc/src/models/operations/retrievetool.ts +1379 -0
  793. package/packages/orq-rc/src/models/operations/runagent.ts +4963 -0
  794. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  795. package/packages/orq-rc/src/models/operations/streamagent.ts +692 -0
  796. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5125 -0
  797. package/packages/orq-rc/src/models/operations/updateagent.ts +6889 -0
  798. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  799. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  800. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  801. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  802. package/packages/orq-rc/src/models/operations/updateeval.ts +3134 -0
  803. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  804. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  805. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  806. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  807. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  808. package/packages/orq-rc/src/models/operations/updateprompt.ts +5485 -0
  809. package/packages/orq-rc/src/models/operations/updatetool.ts +2806 -0
  810. package/packages/orq-rc/src/sdk/agents.ts +234 -0
  811. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  812. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  813. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  814. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  815. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  816. package/{src/sdk/feedback.ts → packages/orq-rc/src/sdk/contacts.ts} +7 -7
  817. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  818. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  819. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  820. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  821. package/packages/orq-rc/src/sdk/evals.ts +84 -0
  822. package/packages/orq-rc/src/sdk/evaluators.ts +27 -0
  823. package/packages/orq-rc/src/sdk/files.ts +114 -0
  824. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  825. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  826. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  827. package/packages/orq-rc/src/sdk/images.ts +25 -0
  828. package/packages/orq-rc/src/sdk/index.ts +5 -0
  829. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  830. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  831. package/packages/orq-rc/src/sdk/metrics.ts +29 -0
  832. package/packages/orq-rc/src/sdk/models.ts +27 -0
  833. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  834. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  835. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  836. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  837. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  838. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  839. package/packages/orq-rc/src/sdk/responses.ts +53 -0
  840. package/packages/orq-rc/src/sdk/router.ts +72 -0
  841. package/packages/orq-rc/src/sdk/sdk.ts +225 -0
  842. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  843. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  844. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  845. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  846. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  847. package/packages/orq-rc/src/types/async.ts +68 -0
  848. package/packages/orq-rc/src/types/blobs.ts +32 -0
  849. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  850. package/packages/orq-rc/src/types/enums.ts +45 -0
  851. package/packages/orq-rc/src/types/fp.ts +50 -0
  852. package/packages/orq-rc/src/types/index.ts +11 -0
  853. package/packages/orq-rc/src/types/operations.ts +105 -0
  854. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  855. package/packages/orq-rc/src/types/streams.ts +21 -0
  856. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  857. package/sdk/files.d.ts +23 -9
  858. package/sdk/files.d.ts.map +1 -1
  859. package/sdk/files.js +31 -11
  860. package/sdk/files.js.map +1 -1
  861. package/sdk/humanreviewsets.d.ts +25 -0
  862. package/sdk/humanreviewsets.d.ts.map +1 -0
  863. package/sdk/humanreviewsets.js +47 -0
  864. package/sdk/humanreviewsets.js.map +1 -0
  865. package/sdk/knowledge.d.ts +1 -1
  866. package/sdk/knowledge.d.ts.map +1 -1
  867. package/sdk/models.d.ts +1 -1
  868. package/sdk/models.d.ts.map +1 -1
  869. package/sdk/models.js +2 -2
  870. package/sdk/models.js.map +1 -1
  871. package/sdk/sdk.d.ts +16 -6
  872. package/sdk/sdk.d.ts.map +1 -1
  873. package/sdk/sdk.js +44 -7
  874. package/sdk/sdk.js.map +1 -1
  875. package/src/funcs/agentsDelete.ts +0 -1
  876. package/src/funcs/agentsInvoke.ts +0 -1
  877. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -1
  878. package/src/funcs/agentsResponsesCreate.ts +0 -1
  879. package/src/funcs/agentsResponsesGet.ts +0 -1
  880. package/src/funcs/agentsRetrieve.ts +0 -1
  881. package/src/funcs/agentsStream.ts +0 -1
  882. package/src/funcs/agentsUpdate.ts +0 -1
  883. package/src/funcs/annotationsCreate.ts +0 -1
  884. package/src/funcs/annotationsDelete.ts +0 -1
  885. package/src/funcs/datasetsClear.ts +0 -1
  886. package/src/funcs/datasetsCreateDatapoint.ts +0 -1
  887. package/src/funcs/datasetsDelete.ts +0 -1
  888. package/src/funcs/datasetsDeleteDatapoint.ts +0 -1
  889. package/src/funcs/datasetsListDatapoints.ts +0 -1
  890. package/src/funcs/datasetsRetrieve.ts +0 -1
  891. package/src/funcs/datasetsRetrieveDatapoint.ts +0 -1
  892. package/src/funcs/datasetsUpdate.ts +0 -1
  893. package/src/funcs/datasetsUpdateDatapoint.ts +0 -1
  894. package/src/funcs/deleteV2HumanEvalsId.ts +169 -0
  895. package/src/funcs/deploymentsMetricsCreate.ts +0 -1
  896. package/src/funcs/evalsDelete.ts +0 -1
  897. package/src/funcs/evalsInvoke.ts +0 -1
  898. package/src/funcs/evalsUpdate.ts +0 -1
  899. package/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -1
  900. package/src/funcs/filesCreate.ts +7 -11
  901. package/src/funcs/filesDelete.ts +0 -1
  902. package/src/funcs/filesGet.ts +1 -2
  903. package/src/funcs/filesGetContent.ts +166 -0
  904. package/src/funcs/filesList.ts +1 -1
  905. package/src/funcs/filesUpdate.ts +166 -0
  906. package/src/funcs/getV2HumanEvals.ts +169 -0
  907. package/src/funcs/getV2HumanEvalsId.ts +168 -0
  908. package/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +164 -0
  909. package/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +168 -0
  910. package/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +163 -0
  911. package/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +164 -0
  912. package/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +162 -0
  913. package/src/funcs/identitiesDelete.ts +0 -1
  914. package/src/funcs/identitiesRetrieve.ts +0 -1
  915. package/src/funcs/identitiesUpdate.ts +0 -1
  916. package/src/funcs/knowledgeCreateChunks.ts +4 -5
  917. package/src/funcs/knowledgeCreateDatasource.ts +0 -1
  918. package/src/funcs/knowledgeDelete.ts +0 -1
  919. package/src/funcs/knowledgeDeleteChunk.ts +0 -1
  920. package/src/funcs/knowledgeDeleteChunks.ts +0 -1
  921. package/src/funcs/knowledgeDeleteDatasource.ts +0 -1
  922. package/src/funcs/knowledgeGetChunksCount.ts +0 -1
  923. package/src/funcs/knowledgeListChunks.ts +0 -1
  924. package/src/funcs/knowledgeListChunksPaginated.ts +0 -1
  925. package/src/funcs/knowledgeListDatasources.ts +0 -1
  926. package/src/funcs/knowledgeRetrieve.ts +0 -1
  927. package/src/funcs/knowledgeRetrieveChunk.ts +0 -1
  928. package/src/funcs/knowledgeRetrieveDatasource.ts +0 -1
  929. package/src/funcs/knowledgeSearch.ts +0 -1
  930. package/src/funcs/knowledgeUpdate.ts +0 -1
  931. package/src/funcs/knowledgeUpdateChunk.ts +0 -1
  932. package/src/funcs/knowledgeUpdateDatasource.ts +0 -1
  933. package/src/funcs/memoryStoresCreateDocument.ts +0 -1
  934. package/src/funcs/memoryStoresCreateMemory.ts +0 -1
  935. package/src/funcs/memoryStoresDelete.ts +0 -1
  936. package/src/funcs/memoryStoresDeleteDocument.ts +0 -1
  937. package/src/funcs/memoryStoresDeleteMemory.ts +0 -1
  938. package/src/funcs/memoryStoresListDocuments.ts +0 -1
  939. package/src/funcs/memoryStoresListMemories.ts +0 -1
  940. package/src/funcs/memoryStoresRetrieve.ts +0 -1
  941. package/src/funcs/memoryStoresRetrieveDocument.ts +0 -1
  942. package/src/funcs/memoryStoresRetrieveMemory.ts +0 -1
  943. package/src/funcs/memoryStoresUpdate.ts +0 -1
  944. package/src/funcs/memoryStoresUpdateDocument.ts +0 -1
  945. package/src/funcs/memoryStoresUpdateMemory.ts +0 -1
  946. package/src/funcs/modelsList.ts +23 -0
  947. package/src/funcs/patchV2HumanEvalsId.ts +170 -0
  948. package/src/funcs/postV2Feedback.ts +172 -0
  949. package/src/funcs/postV2FeedbackEvaluation.ts +159 -0
  950. package/src/funcs/postV2FeedbackEvaluationRemove.ts +159 -0
  951. package/src/funcs/postV2FeedbackRemove.ts +167 -0
  952. package/src/funcs/postV2HumanEvals.ts +168 -0
  953. package/src/funcs/promptsDelete.ts +0 -1
  954. package/src/funcs/promptsGetVersion.ts +0 -1
  955. package/src/funcs/promptsListVersions.ts +0 -1
  956. package/src/funcs/promptsRetrieve.ts +0 -1
  957. package/src/funcs/promptsUpdate.ts +0 -1
  958. package/src/funcs/routerAudioTranscriptionsCreate.ts +6 -10
  959. package/src/funcs/routerAudioTranslationsCreate.ts +6 -10
  960. package/src/funcs/toolsDelete.ts +0 -1
  961. package/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -1
  962. package/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -1
  963. package/src/funcs/toolsRetrieve.ts +0 -1
  964. package/src/funcs/toolsUpdate.ts +0 -1
  965. package/src/lib/config.ts +3 -3
  966. package/src/lib/encodings.ts +23 -4
  967. package/src/lib/files.ts +22 -0
  968. package/src/lib/sdks.ts +7 -5
  969. package/src/lib/url.ts +16 -14
  970. package/src/models/components/filedocument.ts +48 -0
  971. package/src/models/components/index.ts +2 -0
  972. package/src/models/components/reasoningpart.ts +1 -1
  973. package/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  974. package/src/models/errors/deletev2humanevalsid.ts +51 -0
  975. package/src/models/errors/getv2humanevals.ts +51 -0
  976. package/src/models/errors/getv2humanevalsid.ts +51 -0
  977. package/src/models/errors/index.ts +7 -0
  978. package/src/models/errors/patchv2humanevalsid.ts +51 -0
  979. package/src/models/errors/postv2feedback.ts +96 -0
  980. package/src/models/errors/postv2feedbackremove.ts +51 -0
  981. package/src/models/errors/postv2humanevals.ts +51 -0
  982. package/src/models/operations/createagentrequest.ts +62 -26
  983. package/src/models/operations/createchatcompletion.ts +8 -2
  984. package/src/models/operations/createchunk.ts +7 -7
  985. package/src/models/operations/createcompletion.ts +55 -0
  986. package/src/models/operations/createcontact.ts +1 -1
  987. package/src/models/operations/createdataset.ts +1 -1
  988. package/src/models/operations/createdatasetitem.ts +14 -11
  989. package/src/models/operations/createdatasource.ts +1 -1
  990. package/src/models/operations/createeval.ts +86 -78
  991. package/src/models/operations/createidentity.ts +1 -1
  992. package/src/models/operations/createknowledge.ts +52 -36
  993. package/src/models/operations/createprompt.ts +15 -3
  994. package/src/models/operations/createresponse.ts +56 -0
  995. package/src/models/operations/createtool.ts +6 -6
  996. package/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  997. package/src/models/operations/deletev2humanevalsid.ts +67 -0
  998. package/src/models/operations/deploymentgetconfig.ts +1 -0
  999. package/src/models/operations/deploymentinvoke.ts +4 -0
  1000. package/src/models/operations/deployments.ts +2 -0
  1001. package/src/models/operations/deploymentstream.ts +4 -0
  1002. package/src/models/operations/filecontent.ts +39 -0
  1003. package/src/models/operations/fileget.ts +5 -41
  1004. package/src/models/operations/filelist.ts +7 -94
  1005. package/src/models/operations/fileupdate.ts +118 -0
  1006. package/src/models/operations/fileupload.ts +5 -40
  1007. package/src/models/operations/getallprompts.ts +7 -1
  1008. package/src/models/operations/getalltools.ts +6 -6
  1009. package/src/models/operations/getevals.ts +16 -16
  1010. package/src/models/operations/getoneprompt.ts +7 -1
  1011. package/src/models/operations/getpromptversion.ts +7 -1
  1012. package/src/models/operations/getv2humanevals.ts +696 -0
  1013. package/src/models/operations/getv2humanevalsets.ts +234 -0
  1014. package/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1015. package/src/models/operations/getv2humanevalsid.ts +707 -0
  1016. package/src/models/operations/index.ts +16 -1
  1017. package/src/models/operations/invokeeval.ts +1 -0
  1018. package/src/models/operations/listagents.ts +15 -2
  1019. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  1020. package/src/models/operations/listdatasets.ts +1 -1
  1021. package/src/models/operations/listdatasources.ts +1 -1
  1022. package/src/models/operations/listidentities.ts +1 -1
  1023. package/src/models/operations/listmodels.ts +26 -0
  1024. package/src/models/operations/listpromptversions.ts +7 -1
  1025. package/src/models/operations/parse.ts +7 -7
  1026. package/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1027. package/src/models/operations/patchv2humanevalsid.ts +1362 -0
  1028. package/src/models/operations/postv2feedback.ts +207 -0
  1029. package/src/models/operations/postv2feedbackevaluation.ts +321 -0
  1030. package/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1031. package/src/models/operations/postv2feedbackremove.ts +138 -0
  1032. package/src/models/operations/postv2humanevals.ts +1193 -0
  1033. package/src/models/operations/postv2humanevalsets.ts +365 -0
  1034. package/src/models/operations/retrieveagentrequest.ts +15 -2
  1035. package/src/models/operations/retrievedatapoint.ts +4 -4
  1036. package/src/models/operations/retrievedataset.ts +1 -1
  1037. package/src/models/operations/retrievedatasource.ts +1 -1
  1038. package/src/models/operations/retrieveidentity.ts +1 -1
  1039. package/src/models/operations/retrievetool.ts +6 -6
  1040. package/src/models/operations/runagent.ts +17 -5
  1041. package/src/models/operations/streamrunagent.ts +17 -5
  1042. package/src/models/operations/updateagent.ts +71 -37
  1043. package/src/models/operations/updatedatapoint.ts +4 -4
  1044. package/src/models/operations/updatedataset.ts +1 -1
  1045. package/src/models/operations/updatedatasource.ts +1 -1
  1046. package/src/models/operations/updateeval.ts +495 -1513
  1047. package/src/models/operations/updateidentity.ts +1 -1
  1048. package/src/models/operations/updateprompt.ts +15 -3
  1049. package/src/models/operations/updatetool.ts +41 -45
  1050. package/src/sdk/files.ts +50 -14
  1051. package/src/sdk/humanreviewsets.ts +84 -0
  1052. package/src/sdk/knowledge.ts +1 -1
  1053. package/src/sdk/models.ts +2 -0
  1054. package/src/sdk/sdk.ts +122 -12
  1055. package/examples/contactsCreate.example.ts +0 -42
  1056. package/funcs/feedbackCreate.d.ts.map +0 -1
  1057. package/funcs/feedbackCreate.js.map +0 -1
  1058. package/models/operations/createfeedback.d.ts +0 -67
  1059. package/models/operations/createfeedback.d.ts.map +0 -1
  1060. package/models/operations/createfeedback.js.map +0 -1
  1061. package/sdk/feedback.d.ts +0 -12
  1062. package/sdk/feedback.d.ts.map +0 -1
  1063. package/sdk/feedback.js +0 -22
  1064. package/sdk/feedback.js.map +0 -1
  1065. package/src/models/operations/createfeedback.ts +0 -144
@@ -0,0 +1,3216 @@
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
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type ListPromptVersionsRequest = {
14
+ promptId: string;
15
+ /**
16
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
17
+ */
18
+ limit?: number | undefined;
19
+ /**
20
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
21
+ */
22
+ startingAfter?: string | undefined;
23
+ /**
24
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
25
+ */
26
+ endingBefore?: string | undefined;
27
+ };
28
+
29
+ export const ListPromptVersionsObject = {
30
+ List: "list",
31
+ } as const;
32
+ export type ListPromptVersionsObject = ClosedEnum<
33
+ typeof ListPromptVersionsObject
34
+ >;
35
+
36
+ /**
37
+ * The modality of the model
38
+ */
39
+ export const ListPromptVersionsModelType = {
40
+ Chat: "chat",
41
+ Completion: "completion",
42
+ Embedding: "embedding",
43
+ Image: "image",
44
+ Tts: "tts",
45
+ Stt: "stt",
46
+ Rerank: "rerank",
47
+ Ocr: "ocr",
48
+ Moderation: "moderation",
49
+ Vision: "vision",
50
+ } as const;
51
+ /**
52
+ * The modality of the model
53
+ */
54
+ export type ListPromptVersionsModelType = ClosedEnum<
55
+ typeof ListPromptVersionsModelType
56
+ >;
57
+
58
+ /**
59
+ * Only supported on `image` models.
60
+ */
61
+ export const ListPromptVersionsFormat = {
62
+ Url: "url",
63
+ B64Json: "b64_json",
64
+ Text: "text",
65
+ JsonObject: "json_object",
66
+ } as const;
67
+ /**
68
+ * Only supported on `image` models.
69
+ */
70
+ export type ListPromptVersionsFormat = ClosedEnum<
71
+ typeof ListPromptVersionsFormat
72
+ >;
73
+
74
+ export const ListPromptVersionsResponseFormat6 = {
75
+ Json: "json",
76
+ Text: "text",
77
+ Srt: "srt",
78
+ VerboseJson: "verbose_json",
79
+ Vtt: "vtt",
80
+ } as const;
81
+ export type ListPromptVersionsResponseFormat6 = ClosedEnum<
82
+ typeof ListPromptVersionsResponseFormat6
83
+ >;
84
+
85
+ export const ListPromptVersionsResponseFormat5 = {
86
+ Url: "url",
87
+ Base64Json: "base64_json",
88
+ } as const;
89
+ export type ListPromptVersionsResponseFormat5 = ClosedEnum<
90
+ typeof ListPromptVersionsResponseFormat5
91
+ >;
92
+
93
+ export const ListPromptVersionsResponseFormat4 = {
94
+ Mp3: "mp3",
95
+ Opus: "opus",
96
+ Aac: "aac",
97
+ Flac: "flac",
98
+ Wav: "wav",
99
+ Pcm: "pcm",
100
+ } as const;
101
+ export type ListPromptVersionsResponseFormat4 = ClosedEnum<
102
+ typeof ListPromptVersionsResponseFormat4
103
+ >;
104
+
105
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
106
+ {
107
+ Text: "text",
108
+ } as const;
109
+ export type ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
110
+ ClosedEnum<
111
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
112
+ >;
113
+
114
+ export type ListPromptVersionsResponseFormat3 = {
115
+ type:
116
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
117
+ };
118
+
119
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType =
120
+ {
121
+ JsonObject: "json_object",
122
+ } as const;
123
+ export type ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType =
124
+ ClosedEnum<
125
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType
126
+ >;
127
+
128
+ export type ListPromptVersionsResponseFormat2 = {
129
+ type: ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType;
130
+ };
131
+
132
+ export const ListPromptVersionsResponseFormatPromptsResponse200Type = {
133
+ JsonSchema: "json_schema",
134
+ } as const;
135
+ export type ListPromptVersionsResponseFormatPromptsResponse200Type = ClosedEnum<
136
+ typeof ListPromptVersionsResponseFormatPromptsResponse200Type
137
+ >;
138
+
139
+ export type ListPromptVersionsResponseFormatPromptsResponseJsonSchema = {
140
+ name: string;
141
+ description?: string | undefined;
142
+ strict?: boolean | undefined;
143
+ schema: { [k: string]: any };
144
+ };
145
+
146
+ export type ListPromptVersionsResponseFormat1 = {
147
+ type: ListPromptVersionsResponseFormatPromptsResponse200Type;
148
+ displayName?: string | undefined;
149
+ jsonSchema: ListPromptVersionsResponseFormatPromptsResponseJsonSchema;
150
+ };
151
+
152
+ /**
153
+ * An object specifying the format that the model must output.
154
+ *
155
+ * @remarks
156
+ *
157
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
158
+ *
159
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
160
+ *
161
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
162
+ */
163
+ export type ListPromptVersionsPromptsResponseFormat =
164
+ | ListPromptVersionsResponseFormat1
165
+ | ListPromptVersionsResponseFormat2
166
+ | ListPromptVersionsResponseFormat3
167
+ | ListPromptVersionsResponseFormat4
168
+ | ListPromptVersionsResponseFormat5
169
+ | ListPromptVersionsResponseFormat6;
170
+
171
+ /**
172
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
173
+ */
174
+ export const ListPromptVersionsPhotoRealVersion = {
175
+ V1: "v1",
176
+ V2: "v2",
177
+ } as const;
178
+ /**
179
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
180
+ */
181
+ export type ListPromptVersionsPhotoRealVersion = ClosedEnum<
182
+ typeof ListPromptVersionsPhotoRealVersion
183
+ >;
184
+
185
+ /**
186
+ * The format to return the embeddings
187
+ */
188
+ export const ListPromptVersionsEncodingFormat = {
189
+ Float: "float",
190
+ Base64: "base64",
191
+ } as const;
192
+ /**
193
+ * The format to return the embeddings
194
+ */
195
+ export type ListPromptVersionsEncodingFormat = ClosedEnum<
196
+ typeof ListPromptVersionsEncodingFormat
197
+ >;
198
+
199
+ /**
200
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
201
+ */
202
+ export const ListPromptVersionsPromptsReasoningEffort = {
203
+ None: "none",
204
+ Disable: "disable",
205
+ Minimal: "minimal",
206
+ Low: "low",
207
+ Medium: "medium",
208
+ High: "high",
209
+ } as const;
210
+ /**
211
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
212
+ */
213
+ export type ListPromptVersionsPromptsReasoningEffort = ClosedEnum<
214
+ typeof ListPromptVersionsPromptsReasoningEffort
215
+ >;
216
+
217
+ /**
218
+ * Controls the verbosity of the model output.
219
+ */
220
+ export const ListPromptVersionsVerbosity = {
221
+ Low: "low",
222
+ Medium: "medium",
223
+ High: "high",
224
+ } as const;
225
+ /**
226
+ * Controls the verbosity of the model output.
227
+ */
228
+ export type ListPromptVersionsVerbosity = ClosedEnum<
229
+ typeof ListPromptVersionsVerbosity
230
+ >;
231
+
232
+ /**
233
+ * The level of thinking to use for the model. Only supported by `Google AI`
234
+ */
235
+ export const ListPromptVersionsThinkingLevel = {
236
+ Low: "low",
237
+ High: "high",
238
+ } as const;
239
+ /**
240
+ * The level of thinking to use for the model. Only supported by `Google AI`
241
+ */
242
+ export type ListPromptVersionsThinkingLevel = ClosedEnum<
243
+ typeof ListPromptVersionsThinkingLevel
244
+ >;
245
+
246
+ /**
247
+ * Model Parameters: Not all parameters apply to every model
248
+ */
249
+ export type ListPromptVersionsModelParameters = {
250
+ /**
251
+ * Only supported on `chat` and `completion` models.
252
+ */
253
+ temperature?: number | undefined;
254
+ /**
255
+ * Only supported on `chat` and `completion` models.
256
+ */
257
+ maxTokens?: number | undefined;
258
+ /**
259
+ * Only supported on `chat` and `completion` models.
260
+ */
261
+ topK?: number | undefined;
262
+ /**
263
+ * Only supported on `chat` and `completion` models.
264
+ */
265
+ topP?: number | undefined;
266
+ /**
267
+ * Only supported on `chat` and `completion` models.
268
+ */
269
+ frequencyPenalty?: number | undefined;
270
+ /**
271
+ * Only supported on `chat` and `completion` models.
272
+ */
273
+ presencePenalty?: number | undefined;
274
+ /**
275
+ * Only supported on `image` models.
276
+ */
277
+ numImages?: number | undefined;
278
+ /**
279
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
280
+ */
281
+ seed?: number | undefined;
282
+ /**
283
+ * Only supported on `image` models.
284
+ */
285
+ format?: ListPromptVersionsFormat | undefined;
286
+ /**
287
+ * Only supported on `image` models.
288
+ */
289
+ dimensions?: string | undefined;
290
+ /**
291
+ * Only supported on `image` models.
292
+ */
293
+ quality?: string | undefined;
294
+ /**
295
+ * Only supported on `image` models.
296
+ */
297
+ style?: string | undefined;
298
+ /**
299
+ * An object specifying the format that the model must output.
300
+ *
301
+ * @remarks
302
+ *
303
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
304
+ *
305
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
306
+ *
307
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
308
+ */
309
+ responseFormat?:
310
+ | ListPromptVersionsResponseFormat1
311
+ | ListPromptVersionsResponseFormat2
312
+ | ListPromptVersionsResponseFormat3
313
+ | ListPromptVersionsResponseFormat4
314
+ | ListPromptVersionsResponseFormat5
315
+ | ListPromptVersionsResponseFormat6
316
+ | null
317
+ | undefined;
318
+ /**
319
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
320
+ */
321
+ photoRealVersion?: ListPromptVersionsPhotoRealVersion | undefined;
322
+ /**
323
+ * The format to return the embeddings
324
+ */
325
+ encodingFormat?: ListPromptVersionsEncodingFormat | undefined;
326
+ /**
327
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
328
+ */
329
+ reasoningEffort?: ListPromptVersionsPromptsReasoningEffort | undefined;
330
+ /**
331
+ * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
332
+ */
333
+ budgetTokens?: number | undefined;
334
+ /**
335
+ * Controls the verbosity of the model output.
336
+ */
337
+ verbosity?: ListPromptVersionsVerbosity | undefined;
338
+ /**
339
+ * The level of thinking to use for the model. Only supported by `Google AI`
340
+ */
341
+ thinkingLevel?: ListPromptVersionsThinkingLevel | undefined;
342
+ };
343
+
344
+ export const ListPromptVersionsProvider = {
345
+ Openai: "openai",
346
+ Groq: "groq",
347
+ Cohere: "cohere",
348
+ Azure: "azure",
349
+ Aws: "aws",
350
+ Google: "google",
351
+ GoogleAi: "google-ai",
352
+ Huggingface: "huggingface",
353
+ Togetherai: "togetherai",
354
+ Perplexity: "perplexity",
355
+ Anthropic: "anthropic",
356
+ Leonardoai: "leonardoai",
357
+ Fal: "fal",
358
+ Nvidia: "nvidia",
359
+ Jina: "jina",
360
+ Elevenlabs: "elevenlabs",
361
+ Litellm: "litellm",
362
+ Cerebras: "cerebras",
363
+ Openailike: "openailike",
364
+ Bytedance: "bytedance",
365
+ Mistral: "mistral",
366
+ Deepseek: "deepseek",
367
+ Contextualai: "contextualai",
368
+ Moonshotai: "moonshotai",
369
+ Zai: "zai",
370
+ Minimax: "minimax",
371
+ Xai: "xai",
372
+ Alibaba: "alibaba",
373
+ Slack: "slack",
374
+ Orq: "orq",
375
+ } as const;
376
+ export type ListPromptVersionsProvider = ClosedEnum<
377
+ typeof ListPromptVersionsProvider
378
+ >;
379
+
380
+ /**
381
+ * The role of the prompt message
382
+ */
383
+ export const ListPromptVersionsRole = {
384
+ System: "system",
385
+ Developer: "developer",
386
+ Assistant: "assistant",
387
+ User: "user",
388
+ Exception: "exception",
389
+ Tool: "tool",
390
+ Prompt: "prompt",
391
+ Correction: "correction",
392
+ ExpectedOutput: "expected_output",
393
+ } as const;
394
+ /**
395
+ * The role of the prompt message
396
+ */
397
+ export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
398
+
399
+ export type ListPromptVersions2File = {
400
+ /**
401
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
402
+ */
403
+ fileData?: string | undefined;
404
+ /**
405
+ * URL to the file. Only supported by Anthropic Claude models for PDF files.
406
+ */
407
+ uri?: string | undefined;
408
+ /**
409
+ * MIME type of the file (e.g., application/pdf, image/png)
410
+ */
411
+ mimeType?: string | undefined;
412
+ /**
413
+ * The name of the file, used when passing the file to the model as a string.
414
+ */
415
+ filename?: string | undefined;
416
+ };
417
+
418
+ export type ListPromptVersions23 = {
419
+ /**
420
+ * The type of the content part. Always `file`.
421
+ */
422
+ type: "file";
423
+ file: ListPromptVersions2File;
424
+ };
425
+
426
+ export type ListPromptVersions2ImageUrl = {
427
+ /**
428
+ * The orq.ai id of the image
429
+ */
430
+ id?: string | undefined;
431
+ /**
432
+ * Either a URL of the image or the base64 encoded data URI.
433
+ */
434
+ url: string;
435
+ /**
436
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
437
+ */
438
+ detail?: string | undefined;
439
+ };
440
+
441
+ /**
442
+ * The image part of the prompt message. Only supported with vision models.
443
+ */
444
+ export type ListPromptVersions22 = {
445
+ type: "image_url";
446
+ imageUrl: ListPromptVersions2ImageUrl;
447
+ };
448
+
449
+ /**
450
+ * Text content part of a prompt message
451
+ */
452
+ export type ListPromptVersions21 = {
453
+ type: "text";
454
+ text: string;
455
+ };
456
+
457
+ export type ListPromptVersionsContent2 =
458
+ | ListPromptVersions21
459
+ | ListPromptVersions22
460
+ | ListPromptVersions23;
461
+
462
+ /**
463
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
464
+ */
465
+ export type ListPromptVersionsContent =
466
+ | string
467
+ | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
468
+
469
+ export const ListPromptVersionsPromptsType = {
470
+ Function: "function",
471
+ } as const;
472
+ export type ListPromptVersionsPromptsType = ClosedEnum<
473
+ typeof ListPromptVersionsPromptsType
474
+ >;
475
+
476
+ export type ListPromptVersionsFunction = {
477
+ name: string;
478
+ /**
479
+ * JSON string arguments for the functions
480
+ */
481
+ arguments: string;
482
+ };
483
+
484
+ export type ListPromptVersionsToolCalls = {
485
+ id?: string | undefined;
486
+ index?: number | undefined;
487
+ type: ListPromptVersionsPromptsType;
488
+ function: ListPromptVersionsFunction;
489
+ };
490
+
491
+ export type ListPromptVersionsMessages = {
492
+ /**
493
+ * The role of the prompt message
494
+ */
495
+ role: ListPromptVersionsRole;
496
+ /**
497
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
498
+ */
499
+ content:
500
+ | string
501
+ | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>
502
+ | null;
503
+ toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
504
+ toolCallId?: string | null | undefined;
505
+ };
506
+
507
+ /**
508
+ * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
509
+ *
510
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
511
+ */
512
+ export type ListPromptVersionsPromptConfig = {
513
+ stream?: boolean | undefined;
514
+ model?: string | null | undefined;
515
+ /**
516
+ * The id of the resource
517
+ */
518
+ modelDbId?: string | null | undefined;
519
+ /**
520
+ * The modality of the model
521
+ */
522
+ modelType?: ListPromptVersionsModelType | null | undefined;
523
+ /**
524
+ * Model Parameters: Not all parameters apply to every model
525
+ */
526
+ modelParameters?: ListPromptVersionsModelParameters | undefined;
527
+ provider?: ListPromptVersionsProvider | null | undefined;
528
+ /**
529
+ * The ID of the integration to use
530
+ */
531
+ integrationId?: string | null | undefined;
532
+ version?: string | undefined;
533
+ messages: Array<ListPromptVersionsMessages>;
534
+ };
535
+
536
+ /**
537
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
538
+ */
539
+ export const ListPromptVersionsVoice = {
540
+ Alloy: "alloy",
541
+ Echo: "echo",
542
+ Fable: "fable",
543
+ Onyx: "onyx",
544
+ Nova: "nova",
545
+ Shimmer: "shimmer",
546
+ } as const;
547
+ /**
548
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
549
+ */
550
+ export type ListPromptVersionsVoice = ClosedEnum<
551
+ typeof ListPromptVersionsVoice
552
+ >;
553
+
554
+ /**
555
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
556
+ */
557
+ export const ListPromptVersionsPromptsFormat = {
558
+ Wav: "wav",
559
+ Mp3: "mp3",
560
+ Flac: "flac",
561
+ Opus: "opus",
562
+ Pcm16: "pcm16",
563
+ } as const;
564
+ /**
565
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
566
+ */
567
+ export type ListPromptVersionsPromptsFormat = ClosedEnum<
568
+ typeof ListPromptVersionsPromptsFormat
569
+ >;
570
+
571
+ /**
572
+ * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
573
+ */
574
+ export type ListPromptVersionsAudio = {
575
+ /**
576
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
577
+ */
578
+ voice: ListPromptVersionsVoice;
579
+ /**
580
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
581
+ */
582
+ format: ListPromptVersionsPromptsFormat;
583
+ };
584
+
585
+ export type ListPromptVersionsResponseFormatJsonSchema = {
586
+ /**
587
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
588
+ */
589
+ description?: string | undefined;
590
+ /**
591
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
592
+ */
593
+ name: string;
594
+ /**
595
+ * The schema for the response format, described as a JSON Schema object.
596
+ */
597
+ schema?: any | undefined;
598
+ /**
599
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
600
+ */
601
+ strict: boolean;
602
+ };
603
+
604
+ /**
605
+ * @remarks
606
+ *
607
+ * JSON Schema response format. Used to generate structured JSON responses
608
+ */
609
+ export type ListPromptVersionsResponseFormatPromptsJSONSchema = {
610
+ type: "json_schema";
611
+ jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
612
+ };
613
+
614
+ /**
615
+ * @remarks
616
+ *
617
+ * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
618
+ */
619
+ export type ListPromptVersionsResponseFormatJSONObject = {
620
+ type: "json_object";
621
+ };
622
+
623
+ /**
624
+ * @remarks
625
+ *
626
+ * Default response format. Used to generate text responses
627
+ */
628
+ export type ListPromptVersionsResponseFormatText = {
629
+ type: "text";
630
+ };
631
+
632
+ /**
633
+ * An object specifying the format that the model must output
634
+ */
635
+ export type ListPromptVersionsResponseFormat =
636
+ | ListPromptVersionsResponseFormatText
637
+ | ListPromptVersionsResponseFormatJSONObject
638
+ | ListPromptVersionsResponseFormatPromptsJSONSchema;
639
+
640
+ /**
641
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
642
+ *
643
+ * @remarks
644
+ *
645
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
646
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
647
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
648
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
649
+ *
650
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
651
+ */
652
+ export const ListPromptVersionsReasoningEffort = {
653
+ None: "none",
654
+ Minimal: "minimal",
655
+ Low: "low",
656
+ Medium: "medium",
657
+ High: "high",
658
+ Xhigh: "xhigh",
659
+ } as const;
660
+ /**
661
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
662
+ *
663
+ * @remarks
664
+ *
665
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
666
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
667
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
668
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
669
+ *
670
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
671
+ */
672
+ export type ListPromptVersionsReasoningEffort = ClosedEnum<
673
+ typeof ListPromptVersionsReasoningEffort
674
+ >;
675
+
676
+ /**
677
+ * Up to 4 sequences where the API will stop generating further tokens.
678
+ */
679
+ export type ListPromptVersionsStop = string | Array<string>;
680
+
681
+ /**
682
+ * Options for streaming response. Only set this when you set stream: true.
683
+ */
684
+ export type ListPromptVersionsStreamOptions = {
685
+ /**
686
+ * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
687
+ */
688
+ includeUsage?: boolean | undefined;
689
+ };
690
+
691
+ export type ListPromptVersionsThinking =
692
+ | components.ThinkingConfigDisabledSchema
693
+ | components.ThinkingConfigEnabledSchema
694
+ | components.ThinkingConfigAdaptiveSchema;
695
+
696
+ /**
697
+ * The type of the tool. Currently, only function is supported.
698
+ */
699
+ export const ListPromptVersionsToolChoiceType = {
700
+ Function: "function",
701
+ } as const;
702
+ /**
703
+ * The type of the tool. Currently, only function is supported.
704
+ */
705
+ export type ListPromptVersionsToolChoiceType = ClosedEnum<
706
+ typeof ListPromptVersionsToolChoiceType
707
+ >;
708
+
709
+ export type ListPromptVersionsToolChoiceFunction = {
710
+ /**
711
+ * The name of the function to call.
712
+ */
713
+ name: string;
714
+ };
715
+
716
+ export type ListPromptVersionsToolChoice2 = {
717
+ /**
718
+ * The type of the tool. Currently, only function is supported.
719
+ */
720
+ type?: ListPromptVersionsToolChoiceType | undefined;
721
+ function: ListPromptVersionsToolChoiceFunction;
722
+ };
723
+
724
+ export const ListPromptVersionsToolChoice1 = {
725
+ None: "none",
726
+ Auto: "auto",
727
+ Required: "required",
728
+ } as const;
729
+ export type ListPromptVersionsToolChoice1 = ClosedEnum<
730
+ typeof ListPromptVersionsToolChoice1
731
+ >;
732
+
733
+ /**
734
+ * Controls which (if any) tool is called by the model.
735
+ */
736
+ export type ListPromptVersionsToolChoice =
737
+ | ListPromptVersionsToolChoice2
738
+ | ListPromptVersionsToolChoice1;
739
+
740
+ export const ListPromptVersionsModalities = {
741
+ Text: "text",
742
+ Audio: "audio",
743
+ } as const;
744
+ export type ListPromptVersionsModalities = ClosedEnum<
745
+ typeof ListPromptVersionsModalities
746
+ >;
747
+
748
+ /**
749
+ * The key of the guardrail.
750
+ */
751
+ export const ListPromptVersionsId1 = {
752
+ OrqPiiDetection: "orq_pii_detection",
753
+ OrqSexualModeration: "orq_sexual_moderation",
754
+ OrqHarmfulModeration: "orq_harmful_moderation",
755
+ } as const;
756
+ /**
757
+ * The key of the guardrail.
758
+ */
759
+ export type ListPromptVersionsId1 = ClosedEnum<typeof ListPromptVersionsId1>;
760
+
761
+ export type ListPromptVersionsId = ListPromptVersionsId1 | string;
762
+
763
+ /**
764
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
765
+ */
766
+ export const ListPromptVersionsExecuteOn = {
767
+ Input: "input",
768
+ Output: "output",
769
+ } as const;
770
+ /**
771
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
772
+ */
773
+ export type ListPromptVersionsExecuteOn = ClosedEnum<
774
+ typeof ListPromptVersionsExecuteOn
775
+ >;
776
+
777
+ export type ListPromptVersionsGuardrails = {
778
+ id: ListPromptVersionsId1 | string;
779
+ /**
780
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
781
+ */
782
+ executeOn: ListPromptVersionsExecuteOn;
783
+ };
784
+
785
+ export type ListPromptVersionsFallbacks = {
786
+ /**
787
+ * Fallback model identifier
788
+ */
789
+ model: string;
790
+ };
791
+
792
+ /**
793
+ * Retry configuration for the request
794
+ */
795
+ export type ListPromptVersionsRetry = {
796
+ /**
797
+ * Number of retry attempts (1-5)
798
+ */
799
+ count: number;
800
+ /**
801
+ * HTTP status codes that trigger retry logic
802
+ */
803
+ onCodes?: Array<number> | undefined;
804
+ };
805
+
806
+ export const ListPromptVersionsType = {
807
+ ExactMatch: "exact_match",
808
+ } as const;
809
+ export type ListPromptVersionsType = ClosedEnum<typeof ListPromptVersionsType>;
810
+
811
+ /**
812
+ * Cache configuration for the request.
813
+ */
814
+ export type ListPromptVersionsCache = {
815
+ /**
816
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
817
+ */
818
+ ttl: number;
819
+ type: ListPromptVersionsType;
820
+ };
821
+
822
+ export const ListPromptVersionsLoadBalancerType = {
823
+ WeightBased: "weight_based",
824
+ } as const;
825
+ export type ListPromptVersionsLoadBalancerType = ClosedEnum<
826
+ typeof ListPromptVersionsLoadBalancerType
827
+ >;
828
+
829
+ export type ListPromptVersionsLoadBalancerModels = {
830
+ /**
831
+ * Model identifier for load balancing
832
+ */
833
+ model: string;
834
+ /**
835
+ * Weight assigned to this model for load balancing
836
+ */
837
+ weight: number;
838
+ };
839
+
840
+ export type ListPromptVersionsLoadBalancer1 = {
841
+ type: ListPromptVersionsLoadBalancerType;
842
+ models: Array<ListPromptVersionsLoadBalancerModels>;
843
+ };
844
+
845
+ /**
846
+ * Load balancer configuration for the request.
847
+ */
848
+ export type ListPromptVersionsLoadBalancer = ListPromptVersionsLoadBalancer1;
849
+
850
+ /**
851
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
852
+ */
853
+ export type ListPromptVersionsTimeout = {
854
+ /**
855
+ * Timeout value in milliseconds
856
+ */
857
+ callTimeout: number;
858
+ };
859
+
860
+ export type ListPromptVersionsContentPromptsResponse2002 =
861
+ components.TextContentPartSchema;
862
+
863
+ /**
864
+ * The contents of the tool message.
865
+ */
866
+ export type ListPromptVersionsMessagesPromptsResponse200Content =
867
+ | string
868
+ | Array<components.TextContentPartSchema>;
869
+
870
+ /**
871
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
872
+ */
873
+ export const ListPromptVersionsMessagesPromptsType = {
874
+ Ephemeral: "ephemeral",
875
+ } as const;
876
+ /**
877
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
878
+ */
879
+ export type ListPromptVersionsMessagesPromptsType = ClosedEnum<
880
+ typeof ListPromptVersionsMessagesPromptsType
881
+ >;
882
+
883
+ /**
884
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
885
+ *
886
+ * @remarks
887
+ *
888
+ * - `5m`: 5 minutes
889
+ * - `1h`: 1 hour
890
+ *
891
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
892
+ */
893
+ export const ListPromptVersionsMessagesTtl = {
894
+ Fivem: "5m",
895
+ Oneh: "1h",
896
+ } as const;
897
+ /**
898
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
899
+ *
900
+ * @remarks
901
+ *
902
+ * - `5m`: 5 minutes
903
+ * - `1h`: 1 hour
904
+ *
905
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
906
+ */
907
+ export type ListPromptVersionsMessagesTtl = ClosedEnum<
908
+ typeof ListPromptVersionsMessagesTtl
909
+ >;
910
+
911
+ export type ListPromptVersionsMessagesCacheControl = {
912
+ /**
913
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
914
+ */
915
+ type: ListPromptVersionsMessagesPromptsType;
916
+ /**
917
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
918
+ *
919
+ * @remarks
920
+ *
921
+ * - `5m`: 5 minutes
922
+ * - `1h`: 1 hour
923
+ *
924
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
925
+ */
926
+ ttl: ListPromptVersionsMessagesTtl;
927
+ };
928
+
929
+ export type ListPromptVersionsMessagesToolMessage = {
930
+ /**
931
+ * The role of the messages author, in this case tool.
932
+ */
933
+ role: "tool";
934
+ /**
935
+ * The contents of the tool message.
936
+ */
937
+ content: string | Array<components.TextContentPartSchema>;
938
+ /**
939
+ * Tool call that this message is responding to.
940
+ */
941
+ toolCallId: string | null;
942
+ cacheControl?: ListPromptVersionsMessagesCacheControl | undefined;
943
+ };
944
+
945
+ export type ListPromptVersionsContentPromptsResponse2 =
946
+ | (components.TextContentPartSchema & { type: "text" })
947
+ | components.RefusalPartSchema
948
+ | components.ReasoningPartSchema
949
+ | components.RedactedReasoningPartSchema;
950
+
951
+ /**
952
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
953
+ */
954
+ export type ListPromptVersionsMessagesPromptsResponseContent =
955
+ | string
956
+ | Array<
957
+ | (components.TextContentPartSchema & { type: "text" })
958
+ | components.RefusalPartSchema
959
+ | components.ReasoningPartSchema
960
+ | components.RedactedReasoningPartSchema
961
+ >;
962
+
963
+ /**
964
+ * Data about a previous audio response from the model.
965
+ */
966
+ export type ListPromptVersionsMessagesAudio = {
967
+ /**
968
+ * Unique identifier for a previous audio response from the model.
969
+ */
970
+ id: string;
971
+ };
972
+
973
+ /**
974
+ * The type of the tool. Currently, only `function` is supported.
975
+ */
976
+ export const ListPromptVersionsMessagesType = {
977
+ Function: "function",
978
+ } as const;
979
+ /**
980
+ * The type of the tool. Currently, only `function` is supported.
981
+ */
982
+ export type ListPromptVersionsMessagesType = ClosedEnum<
983
+ typeof ListPromptVersionsMessagesType
984
+ >;
985
+
986
+ export type ListPromptVersionsMessagesFunction = {
987
+ /**
988
+ * The name of the function to call.
989
+ */
990
+ name?: string | undefined;
991
+ /**
992
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
993
+ */
994
+ arguments?: string | undefined;
995
+ };
996
+
997
+ export type ListPromptVersionsMessagesToolCalls = {
998
+ /**
999
+ * The ID of the tool call.
1000
+ */
1001
+ id: string;
1002
+ /**
1003
+ * The type of the tool. Currently, only `function` is supported.
1004
+ */
1005
+ type: ListPromptVersionsMessagesType;
1006
+ function: ListPromptVersionsMessagesFunction;
1007
+ /**
1008
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
1009
+ */
1010
+ thoughtSignature?: string | undefined;
1011
+ };
1012
+
1013
+ export type ListPromptVersionsMessagesAssistantMessage = {
1014
+ /**
1015
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
1016
+ */
1017
+ content?:
1018
+ | string
1019
+ | Array<
1020
+ | (components.TextContentPartSchema & { type: "text" })
1021
+ | components.RefusalPartSchema
1022
+ | components.ReasoningPartSchema
1023
+ | components.RedactedReasoningPartSchema
1024
+ >
1025
+ | null
1026
+ | undefined;
1027
+ /**
1028
+ * The refusal message by the assistant.
1029
+ */
1030
+ refusal?: string | null | undefined;
1031
+ /**
1032
+ * The role of the messages author, in this case `assistant`.
1033
+ */
1034
+ role: "assistant";
1035
+ /**
1036
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1037
+ */
1038
+ name?: string | undefined;
1039
+ /**
1040
+ * Data about a previous audio response from the model.
1041
+ */
1042
+ audio?: ListPromptVersionsMessagesAudio | null | undefined;
1043
+ /**
1044
+ * The tool calls generated by the model, such as function calls.
1045
+ */
1046
+ toolCalls?: Array<ListPromptVersionsMessagesToolCalls> | undefined;
1047
+ };
1048
+
1049
+ /**
1050
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1051
+ */
1052
+ export const ListPromptVersions2PromptsResponse200ApplicationJSONType = {
1053
+ Ephemeral: "ephemeral",
1054
+ } as const;
1055
+ /**
1056
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1057
+ */
1058
+ export type ListPromptVersions2PromptsResponse200ApplicationJSONType =
1059
+ ClosedEnum<typeof ListPromptVersions2PromptsResponse200ApplicationJSONType>;
1060
+
1061
+ /**
1062
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1063
+ *
1064
+ * @remarks
1065
+ *
1066
+ * - `5m`: 5 minutes
1067
+ * - `1h`: 1 hour
1068
+ *
1069
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1070
+ */
1071
+ export const ListPromptVersions2Ttl = {
1072
+ Fivem: "5m",
1073
+ Oneh: "1h",
1074
+ } as const;
1075
+ /**
1076
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1077
+ *
1078
+ * @remarks
1079
+ *
1080
+ * - `5m`: 5 minutes
1081
+ * - `1h`: 1 hour
1082
+ *
1083
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1084
+ */
1085
+ export type ListPromptVersions2Ttl = ClosedEnum<typeof ListPromptVersions2Ttl>;
1086
+
1087
+ export type ListPromptVersions2CacheControl = {
1088
+ /**
1089
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1090
+ */
1091
+ type: ListPromptVersions2PromptsResponse200ApplicationJSONType;
1092
+ /**
1093
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1094
+ *
1095
+ * @remarks
1096
+ *
1097
+ * - `5m`: 5 minutes
1098
+ * - `1h`: 1 hour
1099
+ *
1100
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1101
+ */
1102
+ ttl: ListPromptVersions2Ttl;
1103
+ };
1104
+
1105
+ export type ListPromptVersions24 = {
1106
+ /**
1107
+ * The type of the content part. Always `file`.
1108
+ */
1109
+ type: "file";
1110
+ cacheControl?: ListPromptVersions2CacheControl | undefined;
1111
+ /**
1112
+ * File data for the content part. Must contain either file_data or uri, but not both.
1113
+ */
1114
+ file: components.FileContentPartSchema;
1115
+ };
1116
+
1117
+ export type ListPromptVersionsContentPrompts2 =
1118
+ | (components.TextContentPartSchema & { type: "text" })
1119
+ | components.ImageContentPartSchema
1120
+ | components.AudioContentPartSchema
1121
+ | ListPromptVersions24;
1122
+
1123
+ /**
1124
+ * The contents of the user message.
1125
+ */
1126
+ export type ListPromptVersionsMessagesPromptsContent =
1127
+ | string
1128
+ | Array<
1129
+ | (components.TextContentPartSchema & { type: "text" })
1130
+ | components.ImageContentPartSchema
1131
+ | components.AudioContentPartSchema
1132
+ | ListPromptVersions24
1133
+ >;
1134
+
1135
+ export type ListPromptVersionsMessagesUserMessage = {
1136
+ /**
1137
+ * The role of the messages author, in this case `user`.
1138
+ */
1139
+ role: "user";
1140
+ /**
1141
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1142
+ */
1143
+ name?: string | undefined;
1144
+ /**
1145
+ * The contents of the user message.
1146
+ */
1147
+ content:
1148
+ | string
1149
+ | Array<
1150
+ | (components.TextContentPartSchema & { type: "text" })
1151
+ | components.ImageContentPartSchema
1152
+ | components.AudioContentPartSchema
1153
+ | ListPromptVersions24
1154
+ >;
1155
+ };
1156
+
1157
+ /**
1158
+ * The contents of the system message.
1159
+ */
1160
+ export type ListPromptVersionsMessagesContent =
1161
+ | string
1162
+ | Array<components.TextContentPartSchema>;
1163
+
1164
+ /**
1165
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
1166
+ */
1167
+ export type ListPromptVersionsMessagesSystemMessage = {
1168
+ /**
1169
+ * The role of the messages author, in this case `system`.
1170
+ */
1171
+ role: "system";
1172
+ /**
1173
+ * The contents of the system message.
1174
+ */
1175
+ content: string | Array<components.TextContentPartSchema>;
1176
+ /**
1177
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1178
+ */
1179
+ name?: string | undefined;
1180
+ };
1181
+
1182
+ export type ListPromptVersionsPromptsMessages =
1183
+ | ListPromptVersionsMessagesSystemMessage
1184
+ | ListPromptVersionsMessagesUserMessage
1185
+ | ListPromptVersionsMessagesAssistantMessage
1186
+ | ListPromptVersionsMessagesToolMessage;
1187
+
1188
+ /**
1189
+ * Prompt configuration with model and messages. Use this instead of prompt_config.
1190
+ */
1191
+ export type ListPromptVersionsPromptField = {
1192
+ /**
1193
+ * The name to display on the trace. If not specified, the default system name will be used.
1194
+ */
1195
+ name?: string | undefined;
1196
+ /**
1197
+ * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
1198
+ */
1199
+ audio?: ListPromptVersionsAudio | null | undefined;
1200
+ /**
1201
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
1202
+ */
1203
+ frequencyPenalty?: number | null | undefined;
1204
+ /**
1205
+ * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
1206
+ *
1207
+ * @remarks
1208
+ *
1209
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
1210
+ */
1211
+ maxTokens?: number | null | undefined;
1212
+ /**
1213
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1214
+ */
1215
+ maxCompletionTokens?: number | null | undefined;
1216
+ /**
1217
+ * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
1218
+ */
1219
+ logprobs?: boolean | null | undefined;
1220
+ /**
1221
+ * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
1222
+ */
1223
+ topLogprobs?: number | null | undefined;
1224
+ /**
1225
+ * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
1226
+ */
1227
+ n?: number | null | undefined;
1228
+ /**
1229
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
1230
+ */
1231
+ presencePenalty?: number | null | undefined;
1232
+ /**
1233
+ * An object specifying the format that the model must output
1234
+ */
1235
+ responseFormat?:
1236
+ | ListPromptVersionsResponseFormatText
1237
+ | ListPromptVersionsResponseFormatJSONObject
1238
+ | ListPromptVersionsResponseFormatPromptsJSONSchema
1239
+ | undefined;
1240
+ /**
1241
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1242
+ *
1243
+ * @remarks
1244
+ *
1245
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1246
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1247
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1248
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1249
+ *
1250
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1251
+ */
1252
+ reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
1253
+ /**
1254
+ * Adjusts response verbosity. Lower levels yield shorter answers.
1255
+ */
1256
+ verbosity?: string | undefined;
1257
+ /**
1258
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
1259
+ */
1260
+ seed?: number | null | undefined;
1261
+ /**
1262
+ * Up to 4 sequences where the API will stop generating further tokens.
1263
+ */
1264
+ stop?: string | Array<string> | null | undefined;
1265
+ /**
1266
+ * Options for streaming response. Only set this when you set stream: true.
1267
+ */
1268
+ streamOptions?: ListPromptVersionsStreamOptions | null | undefined;
1269
+ thinking?:
1270
+ | components.ThinkingConfigDisabledSchema
1271
+ | components.ThinkingConfigEnabledSchema
1272
+ | components.ThinkingConfigAdaptiveSchema
1273
+ | undefined;
1274
+ /**
1275
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1276
+ */
1277
+ temperature?: number | null | undefined;
1278
+ /**
1279
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
1280
+ */
1281
+ topP?: number | null | undefined;
1282
+ /**
1283
+ * Limits the model to consider only the top k most likely tokens at each step.
1284
+ */
1285
+ topK?: number | null | undefined;
1286
+ /**
1287
+ * Controls which (if any) tool is called by the model.
1288
+ */
1289
+ toolChoice?:
1290
+ | ListPromptVersionsToolChoice2
1291
+ | ListPromptVersionsToolChoice1
1292
+ | undefined;
1293
+ /**
1294
+ * Whether to enable parallel function calling during tool use.
1295
+ */
1296
+ parallelToolCalls?: boolean | undefined;
1297
+ /**
1298
+ * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
1299
+ */
1300
+ modalities?: Array<ListPromptVersionsModalities> | null | undefined;
1301
+ /**
1302
+ * A list of guardrails to apply to the request.
1303
+ */
1304
+ guardrails?: Array<ListPromptVersionsGuardrails> | undefined;
1305
+ /**
1306
+ * Array of fallback models to use if primary model fails
1307
+ */
1308
+ fallbacks?: Array<ListPromptVersionsFallbacks> | undefined;
1309
+ /**
1310
+ * Retry configuration for the request
1311
+ */
1312
+ retry?: ListPromptVersionsRetry | undefined;
1313
+ /**
1314
+ * Cache configuration for the request.
1315
+ */
1316
+ cache?: ListPromptVersionsCache | undefined;
1317
+ /**
1318
+ * Load balancer configuration for the request.
1319
+ */
1320
+ loadBalancer?: ListPromptVersionsLoadBalancer1 | undefined;
1321
+ /**
1322
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
1323
+ */
1324
+ timeout?: ListPromptVersionsTimeout | undefined;
1325
+ /**
1326
+ * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
1327
+ */
1328
+ messages?:
1329
+ | Array<
1330
+ | ListPromptVersionsMessagesSystemMessage
1331
+ | ListPromptVersionsMessagesUserMessage
1332
+ | ListPromptVersionsMessagesAssistantMessage
1333
+ | ListPromptVersionsMessagesToolMessage
1334
+ >
1335
+ | undefined;
1336
+ /**
1337
+ * Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-3-5-sonnet-20241022`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
1338
+ */
1339
+ model?: string | null | undefined;
1340
+ version?: string | undefined;
1341
+ };
1342
+
1343
+ export const ListPromptVersionsUseCases = {
1344
+ AgentsSimulations: "Agents simulations",
1345
+ Agents: "Agents",
1346
+ APIInteraction: "API interaction",
1347
+ AutonomousAgents: "Autonomous Agents",
1348
+ Chatbots: "Chatbots",
1349
+ Classification: "Classification",
1350
+ CodeUnderstanding: "Code understanding",
1351
+ CodeWriting: "Code writing",
1352
+ Conversation: "Conversation",
1353
+ DocumentsQA: "Documents QA",
1354
+ Evaluation: "Evaluation",
1355
+ Extraction: "Extraction",
1356
+ MultiModal: "Multi-modal",
1357
+ SelfChecking: "Self-checking",
1358
+ SentimentAnalysis: "Sentiment analysis",
1359
+ Sql: "SQL",
1360
+ Summarization: "Summarization",
1361
+ Tagging: "Tagging",
1362
+ TranslationDocument: "Translation (document)",
1363
+ TranslationSentences: "Translation (sentences)",
1364
+ } as const;
1365
+ export type ListPromptVersionsUseCases = ClosedEnum<
1366
+ typeof ListPromptVersionsUseCases
1367
+ >;
1368
+
1369
+ /**
1370
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1371
+ */
1372
+ export const ListPromptVersionsLanguage = {
1373
+ Chinese: "Chinese",
1374
+ Dutch: "Dutch",
1375
+ English: "English",
1376
+ French: "French",
1377
+ German: "German",
1378
+ Russian: "Russian",
1379
+ Spanish: "Spanish",
1380
+ } as const;
1381
+ /**
1382
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1383
+ */
1384
+ export type ListPromptVersionsLanguage = ClosedEnum<
1385
+ typeof ListPromptVersionsLanguage
1386
+ >;
1387
+
1388
+ export type ListPromptVersionsMetadata = {
1389
+ /**
1390
+ * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
1391
+ */
1392
+ useCases?: Array<ListPromptVersionsUseCases> | undefined;
1393
+ /**
1394
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1395
+ */
1396
+ language?: ListPromptVersionsLanguage | null | undefined;
1397
+ };
1398
+
1399
+ export type ListPromptVersionsData = {
1400
+ id: string;
1401
+ createdById?: string | null | undefined;
1402
+ updatedById?: string | null | undefined;
1403
+ /**
1404
+ * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
1405
+ */
1406
+ description?: string | null | undefined;
1407
+ /**
1408
+ * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
1409
+ *
1410
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1411
+ */
1412
+ promptConfig?: ListPromptVersionsPromptConfig | undefined;
1413
+ /**
1414
+ * Prompt configuration with model and messages. Use this instead of prompt_config.
1415
+ */
1416
+ prompt: ListPromptVersionsPromptField;
1417
+ metadata?: ListPromptVersionsMetadata | undefined;
1418
+ timestamp: string;
1419
+ };
1420
+
1421
+ /**
1422
+ * Prompt versions retrieved.
1423
+ */
1424
+ export type ListPromptVersionsResponseBody = {
1425
+ object: ListPromptVersionsObject;
1426
+ data: Array<ListPromptVersionsData>;
1427
+ hasMore: boolean;
1428
+ };
1429
+
1430
+ /** @internal */
1431
+ export type ListPromptVersionsRequest$Outbound = {
1432
+ prompt_id: string;
1433
+ limit: number;
1434
+ starting_after?: string | undefined;
1435
+ ending_before?: string | undefined;
1436
+ };
1437
+
1438
+ /** @internal */
1439
+ export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
1440
+ ListPromptVersionsRequest$Outbound,
1441
+ z.ZodTypeDef,
1442
+ ListPromptVersionsRequest
1443
+ > = z.object({
1444
+ promptId: z.string(),
1445
+ limit: z.number().int().default(10),
1446
+ startingAfter: z.string().optional(),
1447
+ endingBefore: z.string().optional(),
1448
+ }).transform((v) => {
1449
+ return remap$(v, {
1450
+ promptId: "prompt_id",
1451
+ startingAfter: "starting_after",
1452
+ endingBefore: "ending_before",
1453
+ });
1454
+ });
1455
+
1456
+ export function listPromptVersionsRequestToJSON(
1457
+ listPromptVersionsRequest: ListPromptVersionsRequest,
1458
+ ): string {
1459
+ return JSON.stringify(
1460
+ ListPromptVersionsRequest$outboundSchema.parse(listPromptVersionsRequest),
1461
+ );
1462
+ }
1463
+
1464
+ /** @internal */
1465
+ export const ListPromptVersionsObject$inboundSchema: z.ZodNativeEnum<
1466
+ typeof ListPromptVersionsObject
1467
+ > = z.nativeEnum(ListPromptVersionsObject);
1468
+
1469
+ /** @internal */
1470
+ export const ListPromptVersionsModelType$inboundSchema: z.ZodNativeEnum<
1471
+ typeof ListPromptVersionsModelType
1472
+ > = z.nativeEnum(ListPromptVersionsModelType);
1473
+
1474
+ /** @internal */
1475
+ export const ListPromptVersionsFormat$inboundSchema: z.ZodNativeEnum<
1476
+ typeof ListPromptVersionsFormat
1477
+ > = z.nativeEnum(ListPromptVersionsFormat);
1478
+
1479
+ /** @internal */
1480
+ export const ListPromptVersionsResponseFormat6$inboundSchema: z.ZodNativeEnum<
1481
+ typeof ListPromptVersionsResponseFormat6
1482
+ > = z.nativeEnum(ListPromptVersionsResponseFormat6);
1483
+
1484
+ /** @internal */
1485
+ export const ListPromptVersionsResponseFormat5$inboundSchema: z.ZodNativeEnum<
1486
+ typeof ListPromptVersionsResponseFormat5
1487
+ > = z.nativeEnum(ListPromptVersionsResponseFormat5);
1488
+
1489
+ /** @internal */
1490
+ export const ListPromptVersionsResponseFormat4$inboundSchema: z.ZodNativeEnum<
1491
+ typeof ListPromptVersionsResponseFormat4
1492
+ > = z.nativeEnum(ListPromptVersionsResponseFormat4);
1493
+
1494
+ /** @internal */
1495
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1496
+ z.ZodNativeEnum<
1497
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
1498
+ > = z.nativeEnum(
1499
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType,
1500
+ );
1501
+
1502
+ /** @internal */
1503
+ export const ListPromptVersionsResponseFormat3$inboundSchema: z.ZodType<
1504
+ ListPromptVersionsResponseFormat3,
1505
+ z.ZodTypeDef,
1506
+ unknown
1507
+ > = z.object({
1508
+ type:
1509
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1510
+ });
1511
+
1512
+ export function listPromptVersionsResponseFormat3FromJSON(
1513
+ jsonString: string,
1514
+ ): SafeParseResult<ListPromptVersionsResponseFormat3, SDKValidationError> {
1515
+ return safeParse(
1516
+ jsonString,
1517
+ (x) => ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1518
+ `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`,
1519
+ );
1520
+ }
1521
+
1522
+ /** @internal */
1523
+ export const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
1524
+ z.ZodNativeEnum<
1525
+ typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType
1526
+ > = z.nativeEnum(
1527
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType,
1528
+ );
1529
+
1530
+ /** @internal */
1531
+ export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
1532
+ ListPromptVersionsResponseFormat2,
1533
+ z.ZodTypeDef,
1534
+ unknown
1535
+ > = z.object({
1536
+ type:
1537
+ ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
1538
+ });
1539
+
1540
+ export function listPromptVersionsResponseFormat2FromJSON(
1541
+ jsonString: string,
1542
+ ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
1543
+ return safeParse(
1544
+ jsonString,
1545
+ (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1546
+ `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
1547
+ );
1548
+ }
1549
+
1550
+ /** @internal */
1551
+ export const ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema:
1552
+ z.ZodNativeEnum<
1553
+ typeof ListPromptVersionsResponseFormatPromptsResponse200Type
1554
+ > = z.nativeEnum(ListPromptVersionsResponseFormatPromptsResponse200Type);
1555
+
1556
+ /** @internal */
1557
+ export const ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema:
1558
+ z.ZodType<
1559
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema,
1560
+ z.ZodTypeDef,
1561
+ unknown
1562
+ > = z.object({
1563
+ name: z.string(),
1564
+ description: z.string().optional(),
1565
+ strict: z.boolean().optional(),
1566
+ schema: z.record(z.any()),
1567
+ });
1568
+
1569
+ export function listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON(
1570
+ jsonString: string,
1571
+ ): SafeParseResult<
1572
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema,
1573
+ SDKValidationError
1574
+ > {
1575
+ return safeParse(
1576
+ jsonString,
1577
+ (x) =>
1578
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema
1579
+ .parse(JSON.parse(x)),
1580
+ `Failed to parse 'ListPromptVersionsResponseFormatPromptsResponseJsonSchema' from JSON`,
1581
+ );
1582
+ }
1583
+
1584
+ /** @internal */
1585
+ export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
1586
+ ListPromptVersionsResponseFormat1,
1587
+ z.ZodTypeDef,
1588
+ unknown
1589
+ > = z.object({
1590
+ type: ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema,
1591
+ display_name: z.string().optional(),
1592
+ json_schema: z.lazy(() =>
1593
+ ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema
1594
+ ),
1595
+ }).transform((v) => {
1596
+ return remap$(v, {
1597
+ "display_name": "displayName",
1598
+ "json_schema": "jsonSchema",
1599
+ });
1600
+ });
1601
+
1602
+ export function listPromptVersionsResponseFormat1FromJSON(
1603
+ jsonString: string,
1604
+ ): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError> {
1605
+ return safeParse(
1606
+ jsonString,
1607
+ (x) => ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1608
+ `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`,
1609
+ );
1610
+ }
1611
+
1612
+ /** @internal */
1613
+ export const ListPromptVersionsPromptsResponseFormat$inboundSchema: z.ZodType<
1614
+ ListPromptVersionsPromptsResponseFormat,
1615
+ z.ZodTypeDef,
1616
+ unknown
1617
+ > = z.union([
1618
+ z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1619
+ z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1620
+ z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1621
+ ListPromptVersionsResponseFormat4$inboundSchema,
1622
+ ListPromptVersionsResponseFormat5$inboundSchema,
1623
+ ListPromptVersionsResponseFormat6$inboundSchema,
1624
+ ]);
1625
+
1626
+ export function listPromptVersionsPromptsResponseFormatFromJSON(
1627
+ jsonString: string,
1628
+ ): SafeParseResult<
1629
+ ListPromptVersionsPromptsResponseFormat,
1630
+ SDKValidationError
1631
+ > {
1632
+ return safeParse(
1633
+ jsonString,
1634
+ (x) =>
1635
+ ListPromptVersionsPromptsResponseFormat$inboundSchema.parse(
1636
+ JSON.parse(x),
1637
+ ),
1638
+ `Failed to parse 'ListPromptVersionsPromptsResponseFormat' from JSON`,
1639
+ );
1640
+ }
1641
+
1642
+ /** @internal */
1643
+ export const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1644
+ typeof ListPromptVersionsPhotoRealVersion
1645
+ > = z.nativeEnum(ListPromptVersionsPhotoRealVersion);
1646
+
1647
+ /** @internal */
1648
+ export const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1649
+ typeof ListPromptVersionsEncodingFormat
1650
+ > = z.nativeEnum(ListPromptVersionsEncodingFormat);
1651
+
1652
+ /** @internal */
1653
+ export const ListPromptVersionsPromptsReasoningEffort$inboundSchema:
1654
+ z.ZodNativeEnum<typeof ListPromptVersionsPromptsReasoningEffort> = z
1655
+ .nativeEnum(ListPromptVersionsPromptsReasoningEffort);
1656
+
1657
+ /** @internal */
1658
+ export const ListPromptVersionsVerbosity$inboundSchema: z.ZodNativeEnum<
1659
+ typeof ListPromptVersionsVerbosity
1660
+ > = z.nativeEnum(ListPromptVersionsVerbosity);
1661
+
1662
+ /** @internal */
1663
+ export const ListPromptVersionsThinkingLevel$inboundSchema: z.ZodNativeEnum<
1664
+ typeof ListPromptVersionsThinkingLevel
1665
+ > = z.nativeEnum(ListPromptVersionsThinkingLevel);
1666
+
1667
+ /** @internal */
1668
+ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1669
+ ListPromptVersionsModelParameters,
1670
+ z.ZodTypeDef,
1671
+ unknown
1672
+ > = z.object({
1673
+ temperature: z.number().optional(),
1674
+ maxTokens: z.number().optional(),
1675
+ topK: z.number().optional(),
1676
+ topP: z.number().optional(),
1677
+ frequencyPenalty: z.number().optional(),
1678
+ presencePenalty: z.number().optional(),
1679
+ numImages: z.number().optional(),
1680
+ seed: z.number().optional(),
1681
+ format: ListPromptVersionsFormat$inboundSchema.optional(),
1682
+ dimensions: z.string().optional(),
1683
+ quality: z.string().optional(),
1684
+ style: z.string().optional(),
1685
+ responseFormat: z.nullable(
1686
+ z.union([
1687
+ z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1688
+ z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1689
+ z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1690
+ ListPromptVersionsResponseFormat4$inboundSchema,
1691
+ ListPromptVersionsResponseFormat5$inboundSchema,
1692
+ ListPromptVersionsResponseFormat6$inboundSchema,
1693
+ ]),
1694
+ ).optional(),
1695
+ photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
1696
+ encoding_format: ListPromptVersionsEncodingFormat$inboundSchema.optional(),
1697
+ reasoningEffort: ListPromptVersionsPromptsReasoningEffort$inboundSchema
1698
+ .optional(),
1699
+ budgetTokens: z.number().optional(),
1700
+ verbosity: ListPromptVersionsVerbosity$inboundSchema.optional(),
1701
+ thinkingLevel: ListPromptVersionsThinkingLevel$inboundSchema.optional(),
1702
+ }).transform((v) => {
1703
+ return remap$(v, {
1704
+ "encoding_format": "encodingFormat",
1705
+ });
1706
+ });
1707
+
1708
+ export function listPromptVersionsModelParametersFromJSON(
1709
+ jsonString: string,
1710
+ ): SafeParseResult<ListPromptVersionsModelParameters, SDKValidationError> {
1711
+ return safeParse(
1712
+ jsonString,
1713
+ (x) => ListPromptVersionsModelParameters$inboundSchema.parse(JSON.parse(x)),
1714
+ `Failed to parse 'ListPromptVersionsModelParameters' from JSON`,
1715
+ );
1716
+ }
1717
+
1718
+ /** @internal */
1719
+ export const ListPromptVersionsProvider$inboundSchema: z.ZodNativeEnum<
1720
+ typeof ListPromptVersionsProvider
1721
+ > = z.nativeEnum(ListPromptVersionsProvider);
1722
+
1723
+ /** @internal */
1724
+ export const ListPromptVersionsRole$inboundSchema: z.ZodNativeEnum<
1725
+ typeof ListPromptVersionsRole
1726
+ > = z.nativeEnum(ListPromptVersionsRole);
1727
+
1728
+ /** @internal */
1729
+ export const ListPromptVersions2File$inboundSchema: z.ZodType<
1730
+ ListPromptVersions2File,
1731
+ z.ZodTypeDef,
1732
+ unknown
1733
+ > = z.object({
1734
+ file_data: z.string().optional(),
1735
+ uri: z.string().optional(),
1736
+ mimeType: z.string().optional(),
1737
+ filename: z.string().optional(),
1738
+ }).transform((v) => {
1739
+ return remap$(v, {
1740
+ "file_data": "fileData",
1741
+ });
1742
+ });
1743
+
1744
+ export function listPromptVersions2FileFromJSON(
1745
+ jsonString: string,
1746
+ ): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
1747
+ return safeParse(
1748
+ jsonString,
1749
+ (x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
1750
+ `Failed to parse 'ListPromptVersions2File' from JSON`,
1751
+ );
1752
+ }
1753
+
1754
+ /** @internal */
1755
+ export const ListPromptVersions23$inboundSchema: z.ZodType<
1756
+ ListPromptVersions23,
1757
+ z.ZodTypeDef,
1758
+ unknown
1759
+ > = z.object({
1760
+ type: z.literal("file"),
1761
+ file: z.lazy(() => ListPromptVersions2File$inboundSchema),
1762
+ });
1763
+
1764
+ export function listPromptVersions23FromJSON(
1765
+ jsonString: string,
1766
+ ): SafeParseResult<ListPromptVersions23, SDKValidationError> {
1767
+ return safeParse(
1768
+ jsonString,
1769
+ (x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
1770
+ `Failed to parse 'ListPromptVersions23' from JSON`,
1771
+ );
1772
+ }
1773
+
1774
+ /** @internal */
1775
+ export const ListPromptVersions2ImageUrl$inboundSchema: z.ZodType<
1776
+ ListPromptVersions2ImageUrl,
1777
+ z.ZodTypeDef,
1778
+ unknown
1779
+ > = z.object({
1780
+ id: z.string().optional(),
1781
+ url: z.string(),
1782
+ detail: z.string().optional(),
1783
+ });
1784
+
1785
+ export function listPromptVersions2ImageUrlFromJSON(
1786
+ jsonString: string,
1787
+ ): SafeParseResult<ListPromptVersions2ImageUrl, SDKValidationError> {
1788
+ return safeParse(
1789
+ jsonString,
1790
+ (x) => ListPromptVersions2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1791
+ `Failed to parse 'ListPromptVersions2ImageUrl' from JSON`,
1792
+ );
1793
+ }
1794
+
1795
+ /** @internal */
1796
+ export const ListPromptVersions22$inboundSchema: z.ZodType<
1797
+ ListPromptVersions22,
1798
+ z.ZodTypeDef,
1799
+ unknown
1800
+ > = z.object({
1801
+ type: z.literal("image_url"),
1802
+ image_url: z.lazy(() => ListPromptVersions2ImageUrl$inboundSchema),
1803
+ }).transform((v) => {
1804
+ return remap$(v, {
1805
+ "image_url": "imageUrl",
1806
+ });
1807
+ });
1808
+
1809
+ export function listPromptVersions22FromJSON(
1810
+ jsonString: string,
1811
+ ): SafeParseResult<ListPromptVersions22, SDKValidationError> {
1812
+ return safeParse(
1813
+ jsonString,
1814
+ (x) => ListPromptVersions22$inboundSchema.parse(JSON.parse(x)),
1815
+ `Failed to parse 'ListPromptVersions22' from JSON`,
1816
+ );
1817
+ }
1818
+
1819
+ /** @internal */
1820
+ export const ListPromptVersions21$inboundSchema: z.ZodType<
1821
+ ListPromptVersions21,
1822
+ z.ZodTypeDef,
1823
+ unknown
1824
+ > = z.object({
1825
+ type: z.literal("text"),
1826
+ text: z.string(),
1827
+ });
1828
+
1829
+ export function listPromptVersions21FromJSON(
1830
+ jsonString: string,
1831
+ ): SafeParseResult<ListPromptVersions21, SDKValidationError> {
1832
+ return safeParse(
1833
+ jsonString,
1834
+ (x) => ListPromptVersions21$inboundSchema.parse(JSON.parse(x)),
1835
+ `Failed to parse 'ListPromptVersions21' from JSON`,
1836
+ );
1837
+ }
1838
+
1839
+ /** @internal */
1840
+ export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
1841
+ ListPromptVersionsContent2,
1842
+ z.ZodTypeDef,
1843
+ unknown
1844
+ > = z.union([
1845
+ z.lazy(() => ListPromptVersions21$inboundSchema),
1846
+ z.lazy(() => ListPromptVersions22$inboundSchema),
1847
+ z.lazy(() => ListPromptVersions23$inboundSchema),
1848
+ ]);
1849
+
1850
+ export function listPromptVersionsContent2FromJSON(
1851
+ jsonString: string,
1852
+ ): SafeParseResult<ListPromptVersionsContent2, SDKValidationError> {
1853
+ return safeParse(
1854
+ jsonString,
1855
+ (x) => ListPromptVersionsContent2$inboundSchema.parse(JSON.parse(x)),
1856
+ `Failed to parse 'ListPromptVersionsContent2' from JSON`,
1857
+ );
1858
+ }
1859
+
1860
+ /** @internal */
1861
+ export const ListPromptVersionsContent$inboundSchema: z.ZodType<
1862
+ ListPromptVersionsContent,
1863
+ z.ZodTypeDef,
1864
+ unknown
1865
+ > = z.union([
1866
+ z.string(),
1867
+ z.array(z.union([
1868
+ z.lazy(() => ListPromptVersions21$inboundSchema),
1869
+ z.lazy(() => ListPromptVersions22$inboundSchema),
1870
+ z.lazy(() => ListPromptVersions23$inboundSchema),
1871
+ ])),
1872
+ ]);
1873
+
1874
+ export function listPromptVersionsContentFromJSON(
1875
+ jsonString: string,
1876
+ ): SafeParseResult<ListPromptVersionsContent, SDKValidationError> {
1877
+ return safeParse(
1878
+ jsonString,
1879
+ (x) => ListPromptVersionsContent$inboundSchema.parse(JSON.parse(x)),
1880
+ `Failed to parse 'ListPromptVersionsContent' from JSON`,
1881
+ );
1882
+ }
1883
+
1884
+ /** @internal */
1885
+ export const ListPromptVersionsPromptsType$inboundSchema: z.ZodNativeEnum<
1886
+ typeof ListPromptVersionsPromptsType
1887
+ > = z.nativeEnum(ListPromptVersionsPromptsType);
1888
+
1889
+ /** @internal */
1890
+ export const ListPromptVersionsFunction$inboundSchema: z.ZodType<
1891
+ ListPromptVersionsFunction,
1892
+ z.ZodTypeDef,
1893
+ unknown
1894
+ > = z.object({
1895
+ name: z.string(),
1896
+ arguments: z.string(),
1897
+ });
1898
+
1899
+ export function listPromptVersionsFunctionFromJSON(
1900
+ jsonString: string,
1901
+ ): SafeParseResult<ListPromptVersionsFunction, SDKValidationError> {
1902
+ return safeParse(
1903
+ jsonString,
1904
+ (x) => ListPromptVersionsFunction$inboundSchema.parse(JSON.parse(x)),
1905
+ `Failed to parse 'ListPromptVersionsFunction' from JSON`,
1906
+ );
1907
+ }
1908
+
1909
+ /** @internal */
1910
+ export const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<
1911
+ ListPromptVersionsToolCalls,
1912
+ z.ZodTypeDef,
1913
+ unknown
1914
+ > = z.object({
1915
+ id: z.string().optional(),
1916
+ index: z.number().optional(),
1917
+ type: ListPromptVersionsPromptsType$inboundSchema,
1918
+ function: z.lazy(() => ListPromptVersionsFunction$inboundSchema),
1919
+ });
1920
+
1921
+ export function listPromptVersionsToolCallsFromJSON(
1922
+ jsonString: string,
1923
+ ): SafeParseResult<ListPromptVersionsToolCalls, SDKValidationError> {
1924
+ return safeParse(
1925
+ jsonString,
1926
+ (x) => ListPromptVersionsToolCalls$inboundSchema.parse(JSON.parse(x)),
1927
+ `Failed to parse 'ListPromptVersionsToolCalls' from JSON`,
1928
+ );
1929
+ }
1930
+
1931
+ /** @internal */
1932
+ export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
1933
+ ListPromptVersionsMessages,
1934
+ z.ZodTypeDef,
1935
+ unknown
1936
+ > = z.object({
1937
+ role: ListPromptVersionsRole$inboundSchema,
1938
+ content: z.nullable(
1939
+ z.union([
1940
+ z.string(),
1941
+ z.array(
1942
+ z.union([
1943
+ z.lazy(() => ListPromptVersions21$inboundSchema),
1944
+ z.lazy(() => ListPromptVersions22$inboundSchema),
1945
+ z.lazy(() => ListPromptVersions23$inboundSchema),
1946
+ ]),
1947
+ ),
1948
+ ]),
1949
+ ),
1950
+ tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
1951
+ .optional(),
1952
+ tool_call_id: z.nullable(z.string()).optional(),
1953
+ }).transform((v) => {
1954
+ return remap$(v, {
1955
+ "tool_calls": "toolCalls",
1956
+ "tool_call_id": "toolCallId",
1957
+ });
1958
+ });
1959
+
1960
+ export function listPromptVersionsMessagesFromJSON(
1961
+ jsonString: string,
1962
+ ): SafeParseResult<ListPromptVersionsMessages, SDKValidationError> {
1963
+ return safeParse(
1964
+ jsonString,
1965
+ (x) => ListPromptVersionsMessages$inboundSchema.parse(JSON.parse(x)),
1966
+ `Failed to parse 'ListPromptVersionsMessages' from JSON`,
1967
+ );
1968
+ }
1969
+
1970
+ /** @internal */
1971
+ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
1972
+ ListPromptVersionsPromptConfig,
1973
+ z.ZodTypeDef,
1974
+ unknown
1975
+ > = z.object({
1976
+ stream: z.boolean().optional(),
1977
+ model: z.nullable(z.string()).optional(),
1978
+ model_db_id: z.nullable(z.string()).optional(),
1979
+ model_type: z.nullable(ListPromptVersionsModelType$inboundSchema).optional(),
1980
+ model_parameters: z.lazy(() =>
1981
+ ListPromptVersionsModelParameters$inboundSchema
1982
+ ).optional(),
1983
+ provider: z.nullable(ListPromptVersionsProvider$inboundSchema).optional(),
1984
+ integration_id: z.nullable(z.string()).optional(),
1985
+ version: z.string().optional(),
1986
+ messages: z.array(z.lazy(() => ListPromptVersionsMessages$inboundSchema)),
1987
+ }).transform((v) => {
1988
+ return remap$(v, {
1989
+ "model_db_id": "modelDbId",
1990
+ "model_type": "modelType",
1991
+ "model_parameters": "modelParameters",
1992
+ "integration_id": "integrationId",
1993
+ });
1994
+ });
1995
+
1996
+ export function listPromptVersionsPromptConfigFromJSON(
1997
+ jsonString: string,
1998
+ ): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError> {
1999
+ return safeParse(
2000
+ jsonString,
2001
+ (x) => ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2002
+ `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`,
2003
+ );
2004
+ }
2005
+
2006
+ /** @internal */
2007
+ export const ListPromptVersionsVoice$inboundSchema: z.ZodNativeEnum<
2008
+ typeof ListPromptVersionsVoice
2009
+ > = z.nativeEnum(ListPromptVersionsVoice);
2010
+
2011
+ /** @internal */
2012
+ export const ListPromptVersionsPromptsFormat$inboundSchema: z.ZodNativeEnum<
2013
+ typeof ListPromptVersionsPromptsFormat
2014
+ > = z.nativeEnum(ListPromptVersionsPromptsFormat);
2015
+
2016
+ /** @internal */
2017
+ export const ListPromptVersionsAudio$inboundSchema: z.ZodType<
2018
+ ListPromptVersionsAudio,
2019
+ z.ZodTypeDef,
2020
+ unknown
2021
+ > = z.object({
2022
+ voice: ListPromptVersionsVoice$inboundSchema,
2023
+ format: ListPromptVersionsPromptsFormat$inboundSchema,
2024
+ });
2025
+
2026
+ export function listPromptVersionsAudioFromJSON(
2027
+ jsonString: string,
2028
+ ): SafeParseResult<ListPromptVersionsAudio, SDKValidationError> {
2029
+ return safeParse(
2030
+ jsonString,
2031
+ (x) => ListPromptVersionsAudio$inboundSchema.parse(JSON.parse(x)),
2032
+ `Failed to parse 'ListPromptVersionsAudio' from JSON`,
2033
+ );
2034
+ }
2035
+
2036
+ /** @internal */
2037
+ export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
2038
+ z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
2039
+ z.object({
2040
+ description: z.string().optional(),
2041
+ name: z.string(),
2042
+ schema: z.any().optional(),
2043
+ strict: z.boolean().default(false),
2044
+ });
2045
+
2046
+ export function listPromptVersionsResponseFormatJsonSchemaFromJSON(
2047
+ jsonString: string,
2048
+ ): SafeParseResult<
2049
+ ListPromptVersionsResponseFormatJsonSchema,
2050
+ SDKValidationError
2051
+ > {
2052
+ return safeParse(
2053
+ jsonString,
2054
+ (x) =>
2055
+ ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(
2056
+ JSON.parse(x),
2057
+ ),
2058
+ `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`,
2059
+ );
2060
+ }
2061
+
2062
+ /** @internal */
2063
+ export const ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema:
2064
+ z.ZodType<
2065
+ ListPromptVersionsResponseFormatPromptsJSONSchema,
2066
+ z.ZodTypeDef,
2067
+ unknown
2068
+ > = z.object({
2069
+ type: z.literal("json_schema"),
2070
+ json_schema: z.lazy(() =>
2071
+ ListPromptVersionsResponseFormatJsonSchema$inboundSchema
2072
+ ),
2073
+ }).transform((v) => {
2074
+ return remap$(v, {
2075
+ "json_schema": "jsonSchema",
2076
+ });
2077
+ });
2078
+
2079
+ export function listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON(
2080
+ jsonString: string,
2081
+ ): SafeParseResult<
2082
+ ListPromptVersionsResponseFormatPromptsJSONSchema,
2083
+ SDKValidationError
2084
+ > {
2085
+ return safeParse(
2086
+ jsonString,
2087
+ (x) =>
2088
+ ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema.parse(
2089
+ JSON.parse(x),
2090
+ ),
2091
+ `Failed to parse 'ListPromptVersionsResponseFormatPromptsJSONSchema' from JSON`,
2092
+ );
2093
+ }
2094
+
2095
+ /** @internal */
2096
+ export const ListPromptVersionsResponseFormatJSONObject$inboundSchema:
2097
+ z.ZodType<ListPromptVersionsResponseFormatJSONObject, z.ZodTypeDef, unknown> =
2098
+ z.object({
2099
+ type: z.literal("json_object"),
2100
+ });
2101
+
2102
+ export function listPromptVersionsResponseFormatJSONObjectFromJSON(
2103
+ jsonString: string,
2104
+ ): SafeParseResult<
2105
+ ListPromptVersionsResponseFormatJSONObject,
2106
+ SDKValidationError
2107
+ > {
2108
+ return safeParse(
2109
+ jsonString,
2110
+ (x) =>
2111
+ ListPromptVersionsResponseFormatJSONObject$inboundSchema.parse(
2112
+ JSON.parse(x),
2113
+ ),
2114
+ `Failed to parse 'ListPromptVersionsResponseFormatJSONObject' from JSON`,
2115
+ );
2116
+ }
2117
+
2118
+ /** @internal */
2119
+ export const ListPromptVersionsResponseFormatText$inboundSchema: z.ZodType<
2120
+ ListPromptVersionsResponseFormatText,
2121
+ z.ZodTypeDef,
2122
+ unknown
2123
+ > = z.object({
2124
+ type: z.literal("text"),
2125
+ });
2126
+
2127
+ export function listPromptVersionsResponseFormatTextFromJSON(
2128
+ jsonString: string,
2129
+ ): SafeParseResult<ListPromptVersionsResponseFormatText, SDKValidationError> {
2130
+ return safeParse(
2131
+ jsonString,
2132
+ (x) =>
2133
+ ListPromptVersionsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
2134
+ `Failed to parse 'ListPromptVersionsResponseFormatText' from JSON`,
2135
+ );
2136
+ }
2137
+
2138
+ /** @internal */
2139
+ export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
2140
+ ListPromptVersionsResponseFormat,
2141
+ z.ZodTypeDef,
2142
+ unknown
2143
+ > = z.union([
2144
+ z.lazy(() => ListPromptVersionsResponseFormatText$inboundSchema),
2145
+ z.lazy(() => ListPromptVersionsResponseFormatJSONObject$inboundSchema),
2146
+ z.lazy(() => ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema),
2147
+ ]);
2148
+
2149
+ export function listPromptVersionsResponseFormatFromJSON(
2150
+ jsonString: string,
2151
+ ): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError> {
2152
+ return safeParse(
2153
+ jsonString,
2154
+ (x) => ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2155
+ `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`,
2156
+ );
2157
+ }
2158
+
2159
+ /** @internal */
2160
+ export const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2161
+ typeof ListPromptVersionsReasoningEffort
2162
+ > = z.nativeEnum(ListPromptVersionsReasoningEffort);
2163
+
2164
+ /** @internal */
2165
+ export const ListPromptVersionsStop$inboundSchema: z.ZodType<
2166
+ ListPromptVersionsStop,
2167
+ z.ZodTypeDef,
2168
+ unknown
2169
+ > = z.union([z.string(), z.array(z.string())]);
2170
+
2171
+ export function listPromptVersionsStopFromJSON(
2172
+ jsonString: string,
2173
+ ): SafeParseResult<ListPromptVersionsStop, SDKValidationError> {
2174
+ return safeParse(
2175
+ jsonString,
2176
+ (x) => ListPromptVersionsStop$inboundSchema.parse(JSON.parse(x)),
2177
+ `Failed to parse 'ListPromptVersionsStop' from JSON`,
2178
+ );
2179
+ }
2180
+
2181
+ /** @internal */
2182
+ export const ListPromptVersionsStreamOptions$inboundSchema: z.ZodType<
2183
+ ListPromptVersionsStreamOptions,
2184
+ z.ZodTypeDef,
2185
+ unknown
2186
+ > = z.object({
2187
+ include_usage: z.boolean().optional(),
2188
+ }).transform((v) => {
2189
+ return remap$(v, {
2190
+ "include_usage": "includeUsage",
2191
+ });
2192
+ });
2193
+
2194
+ export function listPromptVersionsStreamOptionsFromJSON(
2195
+ jsonString: string,
2196
+ ): SafeParseResult<ListPromptVersionsStreamOptions, SDKValidationError> {
2197
+ return safeParse(
2198
+ jsonString,
2199
+ (x) => ListPromptVersionsStreamOptions$inboundSchema.parse(JSON.parse(x)),
2200
+ `Failed to parse 'ListPromptVersionsStreamOptions' from JSON`,
2201
+ );
2202
+ }
2203
+
2204
+ /** @internal */
2205
+ export const ListPromptVersionsThinking$inboundSchema: z.ZodType<
2206
+ ListPromptVersionsThinking,
2207
+ z.ZodTypeDef,
2208
+ unknown
2209
+ > = z.union([
2210
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2211
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2212
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
2213
+ ]);
2214
+
2215
+ export function listPromptVersionsThinkingFromJSON(
2216
+ jsonString: string,
2217
+ ): SafeParseResult<ListPromptVersionsThinking, SDKValidationError> {
2218
+ return safeParse(
2219
+ jsonString,
2220
+ (x) => ListPromptVersionsThinking$inboundSchema.parse(JSON.parse(x)),
2221
+ `Failed to parse 'ListPromptVersionsThinking' from JSON`,
2222
+ );
2223
+ }
2224
+
2225
+ /** @internal */
2226
+ export const ListPromptVersionsToolChoiceType$inboundSchema: z.ZodNativeEnum<
2227
+ typeof ListPromptVersionsToolChoiceType
2228
+ > = z.nativeEnum(ListPromptVersionsToolChoiceType);
2229
+
2230
+ /** @internal */
2231
+ export const ListPromptVersionsToolChoiceFunction$inboundSchema: z.ZodType<
2232
+ ListPromptVersionsToolChoiceFunction,
2233
+ z.ZodTypeDef,
2234
+ unknown
2235
+ > = z.object({
2236
+ name: z.string(),
2237
+ });
2238
+
2239
+ export function listPromptVersionsToolChoiceFunctionFromJSON(
2240
+ jsonString: string,
2241
+ ): SafeParseResult<ListPromptVersionsToolChoiceFunction, SDKValidationError> {
2242
+ return safeParse(
2243
+ jsonString,
2244
+ (x) =>
2245
+ ListPromptVersionsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
2246
+ `Failed to parse 'ListPromptVersionsToolChoiceFunction' from JSON`,
2247
+ );
2248
+ }
2249
+
2250
+ /** @internal */
2251
+ export const ListPromptVersionsToolChoice2$inboundSchema: z.ZodType<
2252
+ ListPromptVersionsToolChoice2,
2253
+ z.ZodTypeDef,
2254
+ unknown
2255
+ > = z.object({
2256
+ type: ListPromptVersionsToolChoiceType$inboundSchema.optional(),
2257
+ function: z.lazy(() => ListPromptVersionsToolChoiceFunction$inboundSchema),
2258
+ });
2259
+
2260
+ export function listPromptVersionsToolChoice2FromJSON(
2261
+ jsonString: string,
2262
+ ): SafeParseResult<ListPromptVersionsToolChoice2, SDKValidationError> {
2263
+ return safeParse(
2264
+ jsonString,
2265
+ (x) => ListPromptVersionsToolChoice2$inboundSchema.parse(JSON.parse(x)),
2266
+ `Failed to parse 'ListPromptVersionsToolChoice2' from JSON`,
2267
+ );
2268
+ }
2269
+
2270
+ /** @internal */
2271
+ export const ListPromptVersionsToolChoice1$inboundSchema: z.ZodNativeEnum<
2272
+ typeof ListPromptVersionsToolChoice1
2273
+ > = z.nativeEnum(ListPromptVersionsToolChoice1);
2274
+
2275
+ /** @internal */
2276
+ export const ListPromptVersionsToolChoice$inboundSchema: z.ZodType<
2277
+ ListPromptVersionsToolChoice,
2278
+ z.ZodTypeDef,
2279
+ unknown
2280
+ > = z.union([
2281
+ z.lazy(() => ListPromptVersionsToolChoice2$inboundSchema),
2282
+ ListPromptVersionsToolChoice1$inboundSchema,
2283
+ ]);
2284
+
2285
+ export function listPromptVersionsToolChoiceFromJSON(
2286
+ jsonString: string,
2287
+ ): SafeParseResult<ListPromptVersionsToolChoice, SDKValidationError> {
2288
+ return safeParse(
2289
+ jsonString,
2290
+ (x) => ListPromptVersionsToolChoice$inboundSchema.parse(JSON.parse(x)),
2291
+ `Failed to parse 'ListPromptVersionsToolChoice' from JSON`,
2292
+ );
2293
+ }
2294
+
2295
+ /** @internal */
2296
+ export const ListPromptVersionsModalities$inboundSchema: z.ZodNativeEnum<
2297
+ typeof ListPromptVersionsModalities
2298
+ > = z.nativeEnum(ListPromptVersionsModalities);
2299
+
2300
+ /** @internal */
2301
+ export const ListPromptVersionsId1$inboundSchema: z.ZodNativeEnum<
2302
+ typeof ListPromptVersionsId1
2303
+ > = z.nativeEnum(ListPromptVersionsId1);
2304
+
2305
+ /** @internal */
2306
+ export const ListPromptVersionsId$inboundSchema: z.ZodType<
2307
+ ListPromptVersionsId,
2308
+ z.ZodTypeDef,
2309
+ unknown
2310
+ > = z.union([ListPromptVersionsId1$inboundSchema, z.string()]);
2311
+
2312
+ export function listPromptVersionsIdFromJSON(
2313
+ jsonString: string,
2314
+ ): SafeParseResult<ListPromptVersionsId, SDKValidationError> {
2315
+ return safeParse(
2316
+ jsonString,
2317
+ (x) => ListPromptVersionsId$inboundSchema.parse(JSON.parse(x)),
2318
+ `Failed to parse 'ListPromptVersionsId' from JSON`,
2319
+ );
2320
+ }
2321
+
2322
+ /** @internal */
2323
+ export const ListPromptVersionsExecuteOn$inboundSchema: z.ZodNativeEnum<
2324
+ typeof ListPromptVersionsExecuteOn
2325
+ > = z.nativeEnum(ListPromptVersionsExecuteOn);
2326
+
2327
+ /** @internal */
2328
+ export const ListPromptVersionsGuardrails$inboundSchema: z.ZodType<
2329
+ ListPromptVersionsGuardrails,
2330
+ z.ZodTypeDef,
2331
+ unknown
2332
+ > = z.object({
2333
+ id: z.union([ListPromptVersionsId1$inboundSchema, z.string()]),
2334
+ execute_on: ListPromptVersionsExecuteOn$inboundSchema,
2335
+ }).transform((v) => {
2336
+ return remap$(v, {
2337
+ "execute_on": "executeOn",
2338
+ });
2339
+ });
2340
+
2341
+ export function listPromptVersionsGuardrailsFromJSON(
2342
+ jsonString: string,
2343
+ ): SafeParseResult<ListPromptVersionsGuardrails, SDKValidationError> {
2344
+ return safeParse(
2345
+ jsonString,
2346
+ (x) => ListPromptVersionsGuardrails$inboundSchema.parse(JSON.parse(x)),
2347
+ `Failed to parse 'ListPromptVersionsGuardrails' from JSON`,
2348
+ );
2349
+ }
2350
+
2351
+ /** @internal */
2352
+ export const ListPromptVersionsFallbacks$inboundSchema: z.ZodType<
2353
+ ListPromptVersionsFallbacks,
2354
+ z.ZodTypeDef,
2355
+ unknown
2356
+ > = z.object({
2357
+ model: z.string(),
2358
+ });
2359
+
2360
+ export function listPromptVersionsFallbacksFromJSON(
2361
+ jsonString: string,
2362
+ ): SafeParseResult<ListPromptVersionsFallbacks, SDKValidationError> {
2363
+ return safeParse(
2364
+ jsonString,
2365
+ (x) => ListPromptVersionsFallbacks$inboundSchema.parse(JSON.parse(x)),
2366
+ `Failed to parse 'ListPromptVersionsFallbacks' from JSON`,
2367
+ );
2368
+ }
2369
+
2370
+ /** @internal */
2371
+ export const ListPromptVersionsRetry$inboundSchema: z.ZodType<
2372
+ ListPromptVersionsRetry,
2373
+ z.ZodTypeDef,
2374
+ unknown
2375
+ > = z.object({
2376
+ count: z.number().default(3),
2377
+ on_codes: z.array(z.number()).optional(),
2378
+ }).transform((v) => {
2379
+ return remap$(v, {
2380
+ "on_codes": "onCodes",
2381
+ });
2382
+ });
2383
+
2384
+ export function listPromptVersionsRetryFromJSON(
2385
+ jsonString: string,
2386
+ ): SafeParseResult<ListPromptVersionsRetry, SDKValidationError> {
2387
+ return safeParse(
2388
+ jsonString,
2389
+ (x) => ListPromptVersionsRetry$inboundSchema.parse(JSON.parse(x)),
2390
+ `Failed to parse 'ListPromptVersionsRetry' from JSON`,
2391
+ );
2392
+ }
2393
+
2394
+ /** @internal */
2395
+ export const ListPromptVersionsType$inboundSchema: z.ZodNativeEnum<
2396
+ typeof ListPromptVersionsType
2397
+ > = z.nativeEnum(ListPromptVersionsType);
2398
+
2399
+ /** @internal */
2400
+ export const ListPromptVersionsCache$inboundSchema: z.ZodType<
2401
+ ListPromptVersionsCache,
2402
+ z.ZodTypeDef,
2403
+ unknown
2404
+ > = z.object({
2405
+ ttl: z.number().default(1800),
2406
+ type: ListPromptVersionsType$inboundSchema,
2407
+ });
2408
+
2409
+ export function listPromptVersionsCacheFromJSON(
2410
+ jsonString: string,
2411
+ ): SafeParseResult<ListPromptVersionsCache, SDKValidationError> {
2412
+ return safeParse(
2413
+ jsonString,
2414
+ (x) => ListPromptVersionsCache$inboundSchema.parse(JSON.parse(x)),
2415
+ `Failed to parse 'ListPromptVersionsCache' from JSON`,
2416
+ );
2417
+ }
2418
+
2419
+ /** @internal */
2420
+ export const ListPromptVersionsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
2421
+ typeof ListPromptVersionsLoadBalancerType
2422
+ > = z.nativeEnum(ListPromptVersionsLoadBalancerType);
2423
+
2424
+ /** @internal */
2425
+ export const ListPromptVersionsLoadBalancerModels$inboundSchema: z.ZodType<
2426
+ ListPromptVersionsLoadBalancerModels,
2427
+ z.ZodTypeDef,
2428
+ unknown
2429
+ > = z.object({
2430
+ model: z.string(),
2431
+ weight: z.number().default(0.5),
2432
+ });
2433
+
2434
+ export function listPromptVersionsLoadBalancerModelsFromJSON(
2435
+ jsonString: string,
2436
+ ): SafeParseResult<ListPromptVersionsLoadBalancerModels, SDKValidationError> {
2437
+ return safeParse(
2438
+ jsonString,
2439
+ (x) =>
2440
+ ListPromptVersionsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
2441
+ `Failed to parse 'ListPromptVersionsLoadBalancerModels' from JSON`,
2442
+ );
2443
+ }
2444
+
2445
+ /** @internal */
2446
+ export const ListPromptVersionsLoadBalancer1$inboundSchema: z.ZodType<
2447
+ ListPromptVersionsLoadBalancer1,
2448
+ z.ZodTypeDef,
2449
+ unknown
2450
+ > = z.object({
2451
+ type: ListPromptVersionsLoadBalancerType$inboundSchema,
2452
+ models: z.array(
2453
+ z.lazy(() => ListPromptVersionsLoadBalancerModels$inboundSchema),
2454
+ ),
2455
+ });
2456
+
2457
+ export function listPromptVersionsLoadBalancer1FromJSON(
2458
+ jsonString: string,
2459
+ ): SafeParseResult<ListPromptVersionsLoadBalancer1, SDKValidationError> {
2460
+ return safeParse(
2461
+ jsonString,
2462
+ (x) => ListPromptVersionsLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
2463
+ `Failed to parse 'ListPromptVersionsLoadBalancer1' from JSON`,
2464
+ );
2465
+ }
2466
+
2467
+ /** @internal */
2468
+ export const ListPromptVersionsLoadBalancer$inboundSchema: z.ZodType<
2469
+ ListPromptVersionsLoadBalancer,
2470
+ z.ZodTypeDef,
2471
+ unknown
2472
+ > = z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema);
2473
+
2474
+ export function listPromptVersionsLoadBalancerFromJSON(
2475
+ jsonString: string,
2476
+ ): SafeParseResult<ListPromptVersionsLoadBalancer, SDKValidationError> {
2477
+ return safeParse(
2478
+ jsonString,
2479
+ (x) => ListPromptVersionsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
2480
+ `Failed to parse 'ListPromptVersionsLoadBalancer' from JSON`,
2481
+ );
2482
+ }
2483
+
2484
+ /** @internal */
2485
+ export const ListPromptVersionsTimeout$inboundSchema: z.ZodType<
2486
+ ListPromptVersionsTimeout,
2487
+ z.ZodTypeDef,
2488
+ unknown
2489
+ > = z.object({
2490
+ call_timeout: z.number(),
2491
+ }).transform((v) => {
2492
+ return remap$(v, {
2493
+ "call_timeout": "callTimeout",
2494
+ });
2495
+ });
2496
+
2497
+ export function listPromptVersionsTimeoutFromJSON(
2498
+ jsonString: string,
2499
+ ): SafeParseResult<ListPromptVersionsTimeout, SDKValidationError> {
2500
+ return safeParse(
2501
+ jsonString,
2502
+ (x) => ListPromptVersionsTimeout$inboundSchema.parse(JSON.parse(x)),
2503
+ `Failed to parse 'ListPromptVersionsTimeout' from JSON`,
2504
+ );
2505
+ }
2506
+
2507
+ /** @internal */
2508
+ export const ListPromptVersionsContentPromptsResponse2002$inboundSchema:
2509
+ z.ZodType<
2510
+ ListPromptVersionsContentPromptsResponse2002,
2511
+ z.ZodTypeDef,
2512
+ unknown
2513
+ > = components.TextContentPartSchema$inboundSchema;
2514
+
2515
+ export function listPromptVersionsContentPromptsResponse2002FromJSON(
2516
+ jsonString: string,
2517
+ ): SafeParseResult<
2518
+ ListPromptVersionsContentPromptsResponse2002,
2519
+ SDKValidationError
2520
+ > {
2521
+ return safeParse(
2522
+ jsonString,
2523
+ (x) =>
2524
+ ListPromptVersionsContentPromptsResponse2002$inboundSchema.parse(
2525
+ JSON.parse(x),
2526
+ ),
2527
+ `Failed to parse 'ListPromptVersionsContentPromptsResponse2002' from JSON`,
2528
+ );
2529
+ }
2530
+
2531
+ /** @internal */
2532
+ export const ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema:
2533
+ z.ZodType<
2534
+ ListPromptVersionsMessagesPromptsResponse200Content,
2535
+ z.ZodTypeDef,
2536
+ unknown
2537
+ > = z.union([
2538
+ z.string(),
2539
+ z.array(components.TextContentPartSchema$inboundSchema),
2540
+ ]);
2541
+
2542
+ export function listPromptVersionsMessagesPromptsResponse200ContentFromJSON(
2543
+ jsonString: string,
2544
+ ): SafeParseResult<
2545
+ ListPromptVersionsMessagesPromptsResponse200Content,
2546
+ SDKValidationError
2547
+ > {
2548
+ return safeParse(
2549
+ jsonString,
2550
+ (x) =>
2551
+ ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema.parse(
2552
+ JSON.parse(x),
2553
+ ),
2554
+ `Failed to parse 'ListPromptVersionsMessagesPromptsResponse200Content' from JSON`,
2555
+ );
2556
+ }
2557
+
2558
+ /** @internal */
2559
+ export const ListPromptVersionsMessagesPromptsType$inboundSchema:
2560
+ z.ZodNativeEnum<typeof ListPromptVersionsMessagesPromptsType> = z.nativeEnum(
2561
+ ListPromptVersionsMessagesPromptsType,
2562
+ );
2563
+
2564
+ /** @internal */
2565
+ export const ListPromptVersionsMessagesTtl$inboundSchema: z.ZodNativeEnum<
2566
+ typeof ListPromptVersionsMessagesTtl
2567
+ > = z.nativeEnum(ListPromptVersionsMessagesTtl);
2568
+
2569
+ /** @internal */
2570
+ export const ListPromptVersionsMessagesCacheControl$inboundSchema: z.ZodType<
2571
+ ListPromptVersionsMessagesCacheControl,
2572
+ z.ZodTypeDef,
2573
+ unknown
2574
+ > = z.object({
2575
+ type: ListPromptVersionsMessagesPromptsType$inboundSchema,
2576
+ ttl: ListPromptVersionsMessagesTtl$inboundSchema.default("5m"),
2577
+ });
2578
+
2579
+ export function listPromptVersionsMessagesCacheControlFromJSON(
2580
+ jsonString: string,
2581
+ ): SafeParseResult<ListPromptVersionsMessagesCacheControl, SDKValidationError> {
2582
+ return safeParse(
2583
+ jsonString,
2584
+ (x) =>
2585
+ ListPromptVersionsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)),
2586
+ `Failed to parse 'ListPromptVersionsMessagesCacheControl' from JSON`,
2587
+ );
2588
+ }
2589
+
2590
+ /** @internal */
2591
+ export const ListPromptVersionsMessagesToolMessage$inboundSchema: z.ZodType<
2592
+ ListPromptVersionsMessagesToolMessage,
2593
+ z.ZodTypeDef,
2594
+ unknown
2595
+ > = z.object({
2596
+ role: z.literal("tool"),
2597
+ content: z.union([
2598
+ z.string(),
2599
+ z.array(components.TextContentPartSchema$inboundSchema),
2600
+ ]),
2601
+ tool_call_id: z.nullable(z.string()),
2602
+ cache_control: z.lazy(() =>
2603
+ ListPromptVersionsMessagesCacheControl$inboundSchema
2604
+ ).optional(),
2605
+ }).transform((v) => {
2606
+ return remap$(v, {
2607
+ "tool_call_id": "toolCallId",
2608
+ "cache_control": "cacheControl",
2609
+ });
2610
+ });
2611
+
2612
+ export function listPromptVersionsMessagesToolMessageFromJSON(
2613
+ jsonString: string,
2614
+ ): SafeParseResult<ListPromptVersionsMessagesToolMessage, SDKValidationError> {
2615
+ return safeParse(
2616
+ jsonString,
2617
+ (x) =>
2618
+ ListPromptVersionsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
2619
+ `Failed to parse 'ListPromptVersionsMessagesToolMessage' from JSON`,
2620
+ );
2621
+ }
2622
+
2623
+ /** @internal */
2624
+ export const ListPromptVersionsContentPromptsResponse2$inboundSchema: z.ZodType<
2625
+ ListPromptVersionsContentPromptsResponse2,
2626
+ z.ZodTypeDef,
2627
+ unknown
2628
+ > = z.union([
2629
+ components.TextContentPartSchema$inboundSchema.and(
2630
+ z.object({ type: z.literal("text") }),
2631
+ ),
2632
+ components.RefusalPartSchema$inboundSchema,
2633
+ components.ReasoningPartSchema$inboundSchema,
2634
+ components.RedactedReasoningPartSchema$inboundSchema,
2635
+ ]);
2636
+
2637
+ export function listPromptVersionsContentPromptsResponse2FromJSON(
2638
+ jsonString: string,
2639
+ ): SafeParseResult<
2640
+ ListPromptVersionsContentPromptsResponse2,
2641
+ SDKValidationError
2642
+ > {
2643
+ return safeParse(
2644
+ jsonString,
2645
+ (x) =>
2646
+ ListPromptVersionsContentPromptsResponse2$inboundSchema.parse(
2647
+ JSON.parse(x),
2648
+ ),
2649
+ `Failed to parse 'ListPromptVersionsContentPromptsResponse2' from JSON`,
2650
+ );
2651
+ }
2652
+
2653
+ /** @internal */
2654
+ export const ListPromptVersionsMessagesPromptsResponseContent$inboundSchema:
2655
+ z.ZodType<
2656
+ ListPromptVersionsMessagesPromptsResponseContent,
2657
+ z.ZodTypeDef,
2658
+ unknown
2659
+ > = z.union([
2660
+ z.string(),
2661
+ z.array(
2662
+ z.union([
2663
+ components.TextContentPartSchema$inboundSchema.and(
2664
+ z.object({ type: z.literal("text") }),
2665
+ ),
2666
+ components.RefusalPartSchema$inboundSchema,
2667
+ components.ReasoningPartSchema$inboundSchema,
2668
+ components.RedactedReasoningPartSchema$inboundSchema,
2669
+ ]),
2670
+ ),
2671
+ ]);
2672
+
2673
+ export function listPromptVersionsMessagesPromptsResponseContentFromJSON(
2674
+ jsonString: string,
2675
+ ): SafeParseResult<
2676
+ ListPromptVersionsMessagesPromptsResponseContent,
2677
+ SDKValidationError
2678
+ > {
2679
+ return safeParse(
2680
+ jsonString,
2681
+ (x) =>
2682
+ ListPromptVersionsMessagesPromptsResponseContent$inboundSchema.parse(
2683
+ JSON.parse(x),
2684
+ ),
2685
+ `Failed to parse 'ListPromptVersionsMessagesPromptsResponseContent' from JSON`,
2686
+ );
2687
+ }
2688
+
2689
+ /** @internal */
2690
+ export const ListPromptVersionsMessagesAudio$inboundSchema: z.ZodType<
2691
+ ListPromptVersionsMessagesAudio,
2692
+ z.ZodTypeDef,
2693
+ unknown
2694
+ > = z.object({
2695
+ id: z.string(),
2696
+ });
2697
+
2698
+ export function listPromptVersionsMessagesAudioFromJSON(
2699
+ jsonString: string,
2700
+ ): SafeParseResult<ListPromptVersionsMessagesAudio, SDKValidationError> {
2701
+ return safeParse(
2702
+ jsonString,
2703
+ (x) => ListPromptVersionsMessagesAudio$inboundSchema.parse(JSON.parse(x)),
2704
+ `Failed to parse 'ListPromptVersionsMessagesAudio' from JSON`,
2705
+ );
2706
+ }
2707
+
2708
+ /** @internal */
2709
+ export const ListPromptVersionsMessagesType$inboundSchema: z.ZodNativeEnum<
2710
+ typeof ListPromptVersionsMessagesType
2711
+ > = z.nativeEnum(ListPromptVersionsMessagesType);
2712
+
2713
+ /** @internal */
2714
+ export const ListPromptVersionsMessagesFunction$inboundSchema: z.ZodType<
2715
+ ListPromptVersionsMessagesFunction,
2716
+ z.ZodTypeDef,
2717
+ unknown
2718
+ > = z.object({
2719
+ name: z.string().optional(),
2720
+ arguments: z.string().optional(),
2721
+ });
2722
+
2723
+ export function listPromptVersionsMessagesFunctionFromJSON(
2724
+ jsonString: string,
2725
+ ): SafeParseResult<ListPromptVersionsMessagesFunction, SDKValidationError> {
2726
+ return safeParse(
2727
+ jsonString,
2728
+ (x) =>
2729
+ ListPromptVersionsMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2730
+ `Failed to parse 'ListPromptVersionsMessagesFunction' from JSON`,
2731
+ );
2732
+ }
2733
+
2734
+ /** @internal */
2735
+ export const ListPromptVersionsMessagesToolCalls$inboundSchema: z.ZodType<
2736
+ ListPromptVersionsMessagesToolCalls,
2737
+ z.ZodTypeDef,
2738
+ unknown
2739
+ > = z.object({
2740
+ id: z.string(),
2741
+ type: ListPromptVersionsMessagesType$inboundSchema,
2742
+ function: z.lazy(() => ListPromptVersionsMessagesFunction$inboundSchema),
2743
+ thought_signature: z.string().optional(),
2744
+ }).transform((v) => {
2745
+ return remap$(v, {
2746
+ "thought_signature": "thoughtSignature",
2747
+ });
2748
+ });
2749
+
2750
+ export function listPromptVersionsMessagesToolCallsFromJSON(
2751
+ jsonString: string,
2752
+ ): SafeParseResult<ListPromptVersionsMessagesToolCalls, SDKValidationError> {
2753
+ return safeParse(
2754
+ jsonString,
2755
+ (x) =>
2756
+ ListPromptVersionsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2757
+ `Failed to parse 'ListPromptVersionsMessagesToolCalls' from JSON`,
2758
+ );
2759
+ }
2760
+
2761
+ /** @internal */
2762
+ export const ListPromptVersionsMessagesAssistantMessage$inboundSchema:
2763
+ z.ZodType<ListPromptVersionsMessagesAssistantMessage, z.ZodTypeDef, unknown> =
2764
+ z.object({
2765
+ content: z.nullable(
2766
+ z.union([
2767
+ z.string(),
2768
+ z.array(
2769
+ z.union([
2770
+ components.TextContentPartSchema$inboundSchema.and(
2771
+ z.object({ type: z.literal("text") }),
2772
+ ),
2773
+ components.RefusalPartSchema$inboundSchema,
2774
+ components.ReasoningPartSchema$inboundSchema,
2775
+ components.RedactedReasoningPartSchema$inboundSchema,
2776
+ ]),
2777
+ ),
2778
+ ]),
2779
+ ).optional(),
2780
+ refusal: z.nullable(z.string()).optional(),
2781
+ role: z.literal("assistant"),
2782
+ name: z.string().optional(),
2783
+ audio: z.nullable(
2784
+ z.lazy(() => ListPromptVersionsMessagesAudio$inboundSchema),
2785
+ ).optional(),
2786
+ tool_calls: z.array(
2787
+ z.lazy(() => ListPromptVersionsMessagesToolCalls$inboundSchema),
2788
+ ).optional(),
2789
+ }).transform((v) => {
2790
+ return remap$(v, {
2791
+ "tool_calls": "toolCalls",
2792
+ });
2793
+ });
2794
+
2795
+ export function listPromptVersionsMessagesAssistantMessageFromJSON(
2796
+ jsonString: string,
2797
+ ): SafeParseResult<
2798
+ ListPromptVersionsMessagesAssistantMessage,
2799
+ SDKValidationError
2800
+ > {
2801
+ return safeParse(
2802
+ jsonString,
2803
+ (x) =>
2804
+ ListPromptVersionsMessagesAssistantMessage$inboundSchema.parse(
2805
+ JSON.parse(x),
2806
+ ),
2807
+ `Failed to parse 'ListPromptVersionsMessagesAssistantMessage' from JSON`,
2808
+ );
2809
+ }
2810
+
2811
+ /** @internal */
2812
+ export const ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema:
2813
+ z.ZodNativeEnum<
2814
+ typeof ListPromptVersions2PromptsResponse200ApplicationJSONType
2815
+ > = z.nativeEnum(ListPromptVersions2PromptsResponse200ApplicationJSONType);
2816
+
2817
+ /** @internal */
2818
+ export const ListPromptVersions2Ttl$inboundSchema: z.ZodNativeEnum<
2819
+ typeof ListPromptVersions2Ttl
2820
+ > = z.nativeEnum(ListPromptVersions2Ttl);
2821
+
2822
+ /** @internal */
2823
+ export const ListPromptVersions2CacheControl$inboundSchema: z.ZodType<
2824
+ ListPromptVersions2CacheControl,
2825
+ z.ZodTypeDef,
2826
+ unknown
2827
+ > = z.object({
2828
+ type: ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema,
2829
+ ttl: ListPromptVersions2Ttl$inboundSchema.default("5m"),
2830
+ });
2831
+
2832
+ export function listPromptVersions2CacheControlFromJSON(
2833
+ jsonString: string,
2834
+ ): SafeParseResult<ListPromptVersions2CacheControl, SDKValidationError> {
2835
+ return safeParse(
2836
+ jsonString,
2837
+ (x) => ListPromptVersions2CacheControl$inboundSchema.parse(JSON.parse(x)),
2838
+ `Failed to parse 'ListPromptVersions2CacheControl' from JSON`,
2839
+ );
2840
+ }
2841
+
2842
+ /** @internal */
2843
+ export const ListPromptVersions24$inboundSchema: z.ZodType<
2844
+ ListPromptVersions24,
2845
+ z.ZodTypeDef,
2846
+ unknown
2847
+ > = z.object({
2848
+ type: z.literal("file"),
2849
+ cache_control: z.lazy(() => ListPromptVersions2CacheControl$inboundSchema)
2850
+ .optional(),
2851
+ file: components.FileContentPartSchema$inboundSchema,
2852
+ }).transform((v) => {
2853
+ return remap$(v, {
2854
+ "cache_control": "cacheControl",
2855
+ });
2856
+ });
2857
+
2858
+ export function listPromptVersions24FromJSON(
2859
+ jsonString: string,
2860
+ ): SafeParseResult<ListPromptVersions24, SDKValidationError> {
2861
+ return safeParse(
2862
+ jsonString,
2863
+ (x) => ListPromptVersions24$inboundSchema.parse(JSON.parse(x)),
2864
+ `Failed to parse 'ListPromptVersions24' from JSON`,
2865
+ );
2866
+ }
2867
+
2868
+ /** @internal */
2869
+ export const ListPromptVersionsContentPrompts2$inboundSchema: z.ZodType<
2870
+ ListPromptVersionsContentPrompts2,
2871
+ z.ZodTypeDef,
2872
+ unknown
2873
+ > = z.union([
2874
+ components.TextContentPartSchema$inboundSchema.and(
2875
+ z.object({ type: z.literal("text") }),
2876
+ ),
2877
+ components.ImageContentPartSchema$inboundSchema,
2878
+ components.AudioContentPartSchema$inboundSchema,
2879
+ z.lazy(() => ListPromptVersions24$inboundSchema),
2880
+ ]);
2881
+
2882
+ export function listPromptVersionsContentPrompts2FromJSON(
2883
+ jsonString: string,
2884
+ ): SafeParseResult<ListPromptVersionsContentPrompts2, SDKValidationError> {
2885
+ return safeParse(
2886
+ jsonString,
2887
+ (x) => ListPromptVersionsContentPrompts2$inboundSchema.parse(JSON.parse(x)),
2888
+ `Failed to parse 'ListPromptVersionsContentPrompts2' from JSON`,
2889
+ );
2890
+ }
2891
+
2892
+ /** @internal */
2893
+ export const ListPromptVersionsMessagesPromptsContent$inboundSchema: z.ZodType<
2894
+ ListPromptVersionsMessagesPromptsContent,
2895
+ z.ZodTypeDef,
2896
+ unknown
2897
+ > = z.union([
2898
+ z.string(),
2899
+ z.array(
2900
+ z.union([
2901
+ components.TextContentPartSchema$inboundSchema.and(
2902
+ z.object({ type: z.literal("text") }),
2903
+ ),
2904
+ components.ImageContentPartSchema$inboundSchema,
2905
+ components.AudioContentPartSchema$inboundSchema,
2906
+ z.lazy(() => ListPromptVersions24$inboundSchema),
2907
+ ]),
2908
+ ),
2909
+ ]);
2910
+
2911
+ export function listPromptVersionsMessagesPromptsContentFromJSON(
2912
+ jsonString: string,
2913
+ ): SafeParseResult<
2914
+ ListPromptVersionsMessagesPromptsContent,
2915
+ SDKValidationError
2916
+ > {
2917
+ return safeParse(
2918
+ jsonString,
2919
+ (x) =>
2920
+ ListPromptVersionsMessagesPromptsContent$inboundSchema.parse(
2921
+ JSON.parse(x),
2922
+ ),
2923
+ `Failed to parse 'ListPromptVersionsMessagesPromptsContent' from JSON`,
2924
+ );
2925
+ }
2926
+
2927
+ /** @internal */
2928
+ export const ListPromptVersionsMessagesUserMessage$inboundSchema: z.ZodType<
2929
+ ListPromptVersionsMessagesUserMessage,
2930
+ z.ZodTypeDef,
2931
+ unknown
2932
+ > = z.object({
2933
+ role: z.literal("user"),
2934
+ name: z.string().optional(),
2935
+ content: z.union([
2936
+ z.string(),
2937
+ z.array(
2938
+ z.union([
2939
+ components.TextContentPartSchema$inboundSchema.and(
2940
+ z.object({ type: z.literal("text") }),
2941
+ ),
2942
+ components.ImageContentPartSchema$inboundSchema,
2943
+ components.AudioContentPartSchema$inboundSchema,
2944
+ z.lazy(() => ListPromptVersions24$inboundSchema),
2945
+ ]),
2946
+ ),
2947
+ ]),
2948
+ });
2949
+
2950
+ export function listPromptVersionsMessagesUserMessageFromJSON(
2951
+ jsonString: string,
2952
+ ): SafeParseResult<ListPromptVersionsMessagesUserMessage, SDKValidationError> {
2953
+ return safeParse(
2954
+ jsonString,
2955
+ (x) =>
2956
+ ListPromptVersionsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
2957
+ `Failed to parse 'ListPromptVersionsMessagesUserMessage' from JSON`,
2958
+ );
2959
+ }
2960
+
2961
+ /** @internal */
2962
+ export const ListPromptVersionsMessagesContent$inboundSchema: z.ZodType<
2963
+ ListPromptVersionsMessagesContent,
2964
+ z.ZodTypeDef,
2965
+ unknown
2966
+ > = z.union([
2967
+ z.string(),
2968
+ z.array(components.TextContentPartSchema$inboundSchema),
2969
+ ]);
2970
+
2971
+ export function listPromptVersionsMessagesContentFromJSON(
2972
+ jsonString: string,
2973
+ ): SafeParseResult<ListPromptVersionsMessagesContent, SDKValidationError> {
2974
+ return safeParse(
2975
+ jsonString,
2976
+ (x) => ListPromptVersionsMessagesContent$inboundSchema.parse(JSON.parse(x)),
2977
+ `Failed to parse 'ListPromptVersionsMessagesContent' from JSON`,
2978
+ );
2979
+ }
2980
+
2981
+ /** @internal */
2982
+ export const ListPromptVersionsMessagesSystemMessage$inboundSchema: z.ZodType<
2983
+ ListPromptVersionsMessagesSystemMessage,
2984
+ z.ZodTypeDef,
2985
+ unknown
2986
+ > = z.object({
2987
+ role: z.literal("system"),
2988
+ content: z.union([
2989
+ z.string(),
2990
+ z.array(components.TextContentPartSchema$inboundSchema),
2991
+ ]),
2992
+ name: z.string().optional(),
2993
+ });
2994
+
2995
+ export function listPromptVersionsMessagesSystemMessageFromJSON(
2996
+ jsonString: string,
2997
+ ): SafeParseResult<
2998
+ ListPromptVersionsMessagesSystemMessage,
2999
+ SDKValidationError
3000
+ > {
3001
+ return safeParse(
3002
+ jsonString,
3003
+ (x) =>
3004
+ ListPromptVersionsMessagesSystemMessage$inboundSchema.parse(
3005
+ JSON.parse(x),
3006
+ ),
3007
+ `Failed to parse 'ListPromptVersionsMessagesSystemMessage' from JSON`,
3008
+ );
3009
+ }
3010
+
3011
+ /** @internal */
3012
+ export const ListPromptVersionsPromptsMessages$inboundSchema: z.ZodType<
3013
+ ListPromptVersionsPromptsMessages,
3014
+ z.ZodTypeDef,
3015
+ unknown
3016
+ > = z.union([
3017
+ z.lazy(() => ListPromptVersionsMessagesSystemMessage$inboundSchema),
3018
+ z.lazy(() => ListPromptVersionsMessagesUserMessage$inboundSchema),
3019
+ z.lazy(() => ListPromptVersionsMessagesAssistantMessage$inboundSchema),
3020
+ z.lazy(() => ListPromptVersionsMessagesToolMessage$inboundSchema),
3021
+ ]);
3022
+
3023
+ export function listPromptVersionsPromptsMessagesFromJSON(
3024
+ jsonString: string,
3025
+ ): SafeParseResult<ListPromptVersionsPromptsMessages, SDKValidationError> {
3026
+ return safeParse(
3027
+ jsonString,
3028
+ (x) => ListPromptVersionsPromptsMessages$inboundSchema.parse(JSON.parse(x)),
3029
+ `Failed to parse 'ListPromptVersionsPromptsMessages' from JSON`,
3030
+ );
3031
+ }
3032
+
3033
+ /** @internal */
3034
+ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
3035
+ ListPromptVersionsPromptField,
3036
+ z.ZodTypeDef,
3037
+ unknown
3038
+ > = z.object({
3039
+ name: z.string().optional(),
3040
+ audio: z.nullable(z.lazy(() => ListPromptVersionsAudio$inboundSchema))
3041
+ .optional(),
3042
+ frequency_penalty: z.nullable(z.number()).optional(),
3043
+ max_tokens: z.nullable(z.number().int()).optional(),
3044
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
3045
+ logprobs: z.nullable(z.boolean()).optional(),
3046
+ top_logprobs: z.nullable(z.number().int()).optional(),
3047
+ n: z.nullable(z.number().int()).optional(),
3048
+ presence_penalty: z.nullable(z.number()).optional(),
3049
+ response_format: z.union([
3050
+ z.lazy(() => ListPromptVersionsResponseFormatText$inboundSchema),
3051
+ z.lazy(() => ListPromptVersionsResponseFormatJSONObject$inboundSchema),
3052
+ z.lazy(() =>
3053
+ ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema
3054
+ ),
3055
+ ]).optional(),
3056
+ reasoning_effort: ListPromptVersionsReasoningEffort$inboundSchema.optional(),
3057
+ verbosity: z.string().optional(),
3058
+ seed: z.nullable(z.number()).optional(),
3059
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3060
+ stream_options: z.nullable(
3061
+ z.lazy(() => ListPromptVersionsStreamOptions$inboundSchema),
3062
+ ).optional(),
3063
+ thinking: z.union([
3064
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3065
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3066
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
3067
+ ]).optional(),
3068
+ temperature: z.nullable(z.number()).optional(),
3069
+ top_p: z.nullable(z.number()).optional(),
3070
+ top_k: z.nullable(z.number()).optional(),
3071
+ tool_choice: z.union([
3072
+ z.lazy(() => ListPromptVersionsToolChoice2$inboundSchema),
3073
+ ListPromptVersionsToolChoice1$inboundSchema,
3074
+ ]).optional(),
3075
+ parallel_tool_calls: z.boolean().optional(),
3076
+ modalities: z.nullable(z.array(ListPromptVersionsModalities$inboundSchema))
3077
+ .optional(),
3078
+ guardrails: z.array(z.lazy(() => ListPromptVersionsGuardrails$inboundSchema))
3079
+ .optional(),
3080
+ fallbacks: z.array(z.lazy(() => ListPromptVersionsFallbacks$inboundSchema))
3081
+ .optional(),
3082
+ retry: z.lazy(() => ListPromptVersionsRetry$inboundSchema).optional(),
3083
+ cache: z.lazy(() => ListPromptVersionsCache$inboundSchema).optional(),
3084
+ load_balancer: z.lazy(() => ListPromptVersionsLoadBalancer1$inboundSchema)
3085
+ .optional(),
3086
+ timeout: z.lazy(() => ListPromptVersionsTimeout$inboundSchema).optional(),
3087
+ messages: z.array(
3088
+ z.union([
3089
+ z.lazy(() => ListPromptVersionsMessagesSystemMessage$inboundSchema),
3090
+ z.lazy(() => ListPromptVersionsMessagesUserMessage$inboundSchema),
3091
+ z.lazy(() => ListPromptVersionsMessagesAssistantMessage$inboundSchema),
3092
+ z.lazy(() => ListPromptVersionsMessagesToolMessage$inboundSchema),
3093
+ ]),
3094
+ ).optional(),
3095
+ model: z.nullable(z.string()).optional(),
3096
+ version: z.string().optional(),
3097
+ }).transform((v) => {
3098
+ return remap$(v, {
3099
+ "frequency_penalty": "frequencyPenalty",
3100
+ "max_tokens": "maxTokens",
3101
+ "max_completion_tokens": "maxCompletionTokens",
3102
+ "top_logprobs": "topLogprobs",
3103
+ "presence_penalty": "presencePenalty",
3104
+ "response_format": "responseFormat",
3105
+ "reasoning_effort": "reasoningEffort",
3106
+ "stream_options": "streamOptions",
3107
+ "top_p": "topP",
3108
+ "top_k": "topK",
3109
+ "tool_choice": "toolChoice",
3110
+ "parallel_tool_calls": "parallelToolCalls",
3111
+ "load_balancer": "loadBalancer",
3112
+ });
3113
+ });
3114
+
3115
+ export function listPromptVersionsPromptFieldFromJSON(
3116
+ jsonString: string,
3117
+ ): SafeParseResult<ListPromptVersionsPromptField, SDKValidationError> {
3118
+ return safeParse(
3119
+ jsonString,
3120
+ (x) => ListPromptVersionsPromptField$inboundSchema.parse(JSON.parse(x)),
3121
+ `Failed to parse 'ListPromptVersionsPromptField' from JSON`,
3122
+ );
3123
+ }
3124
+
3125
+ /** @internal */
3126
+ export const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<
3127
+ typeof ListPromptVersionsUseCases
3128
+ > = z.nativeEnum(ListPromptVersionsUseCases);
3129
+
3130
+ /** @internal */
3131
+ export const ListPromptVersionsLanguage$inboundSchema: z.ZodNativeEnum<
3132
+ typeof ListPromptVersionsLanguage
3133
+ > = z.nativeEnum(ListPromptVersionsLanguage);
3134
+
3135
+ /** @internal */
3136
+ export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
3137
+ ListPromptVersionsMetadata,
3138
+ z.ZodTypeDef,
3139
+ unknown
3140
+ > = z.object({
3141
+ use_cases: z.array(ListPromptVersionsUseCases$inboundSchema).optional(),
3142
+ language: z.nullable(ListPromptVersionsLanguage$inboundSchema).optional(),
3143
+ }).transform((v) => {
3144
+ return remap$(v, {
3145
+ "use_cases": "useCases",
3146
+ });
3147
+ });
3148
+
3149
+ export function listPromptVersionsMetadataFromJSON(
3150
+ jsonString: string,
3151
+ ): SafeParseResult<ListPromptVersionsMetadata, SDKValidationError> {
3152
+ return safeParse(
3153
+ jsonString,
3154
+ (x) => ListPromptVersionsMetadata$inboundSchema.parse(JSON.parse(x)),
3155
+ `Failed to parse 'ListPromptVersionsMetadata' from JSON`,
3156
+ );
3157
+ }
3158
+
3159
+ /** @internal */
3160
+ export const ListPromptVersionsData$inboundSchema: z.ZodType<
3161
+ ListPromptVersionsData,
3162
+ z.ZodTypeDef,
3163
+ unknown
3164
+ > = z.object({
3165
+ _id: z.string(),
3166
+ created_by_id: z.nullable(z.string()).optional(),
3167
+ updated_by_id: z.nullable(z.string()).optional(),
3168
+ description: z.nullable(z.string()).optional(),
3169
+ prompt_config: z.lazy(() => ListPromptVersionsPromptConfig$inboundSchema)
3170
+ .optional(),
3171
+ prompt: z.lazy(() => ListPromptVersionsPromptField$inboundSchema),
3172
+ metadata: z.lazy(() => ListPromptVersionsMetadata$inboundSchema).optional(),
3173
+ timestamp: z.string(),
3174
+ }).transform((v) => {
3175
+ return remap$(v, {
3176
+ "_id": "id",
3177
+ "created_by_id": "createdById",
3178
+ "updated_by_id": "updatedById",
3179
+ "prompt_config": "promptConfig",
3180
+ });
3181
+ });
3182
+
3183
+ export function listPromptVersionsDataFromJSON(
3184
+ jsonString: string,
3185
+ ): SafeParseResult<ListPromptVersionsData, SDKValidationError> {
3186
+ return safeParse(
3187
+ jsonString,
3188
+ (x) => ListPromptVersionsData$inboundSchema.parse(JSON.parse(x)),
3189
+ `Failed to parse 'ListPromptVersionsData' from JSON`,
3190
+ );
3191
+ }
3192
+
3193
+ /** @internal */
3194
+ export const ListPromptVersionsResponseBody$inboundSchema: z.ZodType<
3195
+ ListPromptVersionsResponseBody,
3196
+ z.ZodTypeDef,
3197
+ unknown
3198
+ > = z.object({
3199
+ object: ListPromptVersionsObject$inboundSchema,
3200
+ data: z.array(z.lazy(() => ListPromptVersionsData$inboundSchema)),
3201
+ has_more: z.boolean(),
3202
+ }).transform((v) => {
3203
+ return remap$(v, {
3204
+ "has_more": "hasMore",
3205
+ });
3206
+ });
3207
+
3208
+ export function listPromptVersionsResponseBodyFromJSON(
3209
+ jsonString: string,
3210
+ ): SafeParseResult<ListPromptVersionsResponseBody, SDKValidationError> {
3211
+ return safeParse(
3212
+ jsonString,
3213
+ (x) => ListPromptVersionsResponseBody$inboundSchema.parse(JSON.parse(x)),
3214
+ `Failed to parse 'ListPromptVersionsResponseBody' from JSON`,
3215
+ );
3216
+ }