@orq-ai/node 4.10.8 → 4.11.0-rc.2

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