@orq-ai/node 4.10.1 → 4.11.0-rc.1

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