@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,3147 +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 GetPromptVersionRequest = {
14
- /**
15
- * The unique identifier of the prompt
16
- */
17
- promptId: string;
18
- /**
19
- * The unique identifier of the prompt version
20
- */
21
- versionId: string;
22
- };
23
-
24
- /**
25
- * The modality of the model
26
- */
27
- export const GetPromptVersionModelType = {
28
- Chat: "chat",
29
- Completion: "completion",
30
- Embedding: "embedding",
31
- Image: "image",
32
- Tts: "tts",
33
- Stt: "stt",
34
- Rerank: "rerank",
35
- Ocr: "ocr",
36
- Moderation: "moderation",
37
- Vision: "vision",
38
- } as const;
39
- /**
40
- * The modality of the model
41
- */
42
- export type GetPromptVersionModelType = ClosedEnum<
43
- typeof GetPromptVersionModelType
44
- >;
45
-
46
- /**
47
- * Only supported on `image` models.
48
- */
49
- export const GetPromptVersionFormat = {
50
- Url: "url",
51
- B64Json: "b64_json",
52
- Text: "text",
53
- JsonObject: "json_object",
54
- } as const;
55
- /**
56
- * Only supported on `image` models.
57
- */
58
- export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
59
-
60
- export const GetPromptVersionResponseFormat6 = {
61
- Json: "json",
62
- Text: "text",
63
- Srt: "srt",
64
- VerboseJson: "verbose_json",
65
- Vtt: "vtt",
66
- } as const;
67
- export type GetPromptVersionResponseFormat6 = ClosedEnum<
68
- typeof GetPromptVersionResponseFormat6
69
- >;
70
-
71
- export const GetPromptVersionResponseFormat5 = {
72
- Url: "url",
73
- Base64Json: "base64_json",
74
- } as const;
75
- export type GetPromptVersionResponseFormat5 = ClosedEnum<
76
- typeof GetPromptVersionResponseFormat5
77
- >;
78
-
79
- export const GetPromptVersionResponseFormat4 = {
80
- Mp3: "mp3",
81
- Opus: "opus",
82
- Aac: "aac",
83
- Flac: "flac",
84
- Wav: "wav",
85
- Pcm: "pcm",
86
- } as const;
87
- export type GetPromptVersionResponseFormat4 = ClosedEnum<
88
- typeof GetPromptVersionResponseFormat4
89
- >;
90
-
91
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
92
- {
93
- Text: "text",
94
- } as const;
95
- export type GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
96
- ClosedEnum<
97
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
98
- >;
99
-
100
- export type GetPromptVersionResponseFormat3 = {
101
- type:
102
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
103
- };
104
-
105
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType =
106
- {
107
- JsonObject: "json_object",
108
- } as const;
109
- export type GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType =
110
- ClosedEnum<
111
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType
112
- >;
113
-
114
- export type GetPromptVersionResponseFormat2 = {
115
- type: GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType;
116
- };
117
-
118
- export const GetPromptVersionResponseFormatPromptsResponse200Type = {
119
- JsonSchema: "json_schema",
120
- } as const;
121
- export type GetPromptVersionResponseFormatPromptsResponse200Type = ClosedEnum<
122
- typeof GetPromptVersionResponseFormatPromptsResponse200Type
123
- >;
124
-
125
- export type GetPromptVersionResponseFormatPromptsResponseJsonSchema = {
126
- name: string;
127
- description?: string | undefined;
128
- strict?: boolean | undefined;
129
- schema: { [k: string]: any };
130
- };
131
-
132
- export type GetPromptVersionResponseFormat1 = {
133
- type: GetPromptVersionResponseFormatPromptsResponse200Type;
134
- displayName?: string | undefined;
135
- jsonSchema: GetPromptVersionResponseFormatPromptsResponseJsonSchema;
136
- };
137
-
138
- /**
139
- * An object specifying the format that the model must output.
140
- *
141
- * @remarks
142
- *
143
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
144
- *
145
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
146
- *
147
- * 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.
148
- */
149
- export type GetPromptVersionPromptsResponseFormat =
150
- | GetPromptVersionResponseFormat1
151
- | GetPromptVersionResponseFormat2
152
- | GetPromptVersionResponseFormat3
153
- | GetPromptVersionResponseFormat4
154
- | GetPromptVersionResponseFormat5
155
- | GetPromptVersionResponseFormat6;
156
-
157
- /**
158
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
159
- */
160
- export const GetPromptVersionPhotoRealVersion = {
161
- V1: "v1",
162
- V2: "v2",
163
- } as const;
164
- /**
165
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
166
- */
167
- export type GetPromptVersionPhotoRealVersion = ClosedEnum<
168
- typeof GetPromptVersionPhotoRealVersion
169
- >;
170
-
171
- /**
172
- * The format to return the embeddings
173
- */
174
- export const GetPromptVersionEncodingFormat = {
175
- Float: "float",
176
- Base64: "base64",
177
- } as const;
178
- /**
179
- * The format to return the embeddings
180
- */
181
- export type GetPromptVersionEncodingFormat = ClosedEnum<
182
- typeof GetPromptVersionEncodingFormat
183
- >;
184
-
185
- /**
186
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
187
- */
188
- export const GetPromptVersionPromptsReasoningEffort = {
189
- None: "none",
190
- Disable: "disable",
191
- Minimal: "minimal",
192
- Low: "low",
193
- Medium: "medium",
194
- High: "high",
195
- } as const;
196
- /**
197
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
198
- */
199
- export type GetPromptVersionPromptsReasoningEffort = ClosedEnum<
200
- typeof GetPromptVersionPromptsReasoningEffort
201
- >;
202
-
203
- /**
204
- * Controls the verbosity of the model output.
205
- */
206
- export const GetPromptVersionVerbosity = {
207
- Low: "low",
208
- Medium: "medium",
209
- High: "high",
210
- } as const;
211
- /**
212
- * Controls the verbosity of the model output.
213
- */
214
- export type GetPromptVersionVerbosity = ClosedEnum<
215
- typeof GetPromptVersionVerbosity
216
- >;
217
-
218
- /**
219
- * The level of thinking to use for the model. Only supported by `Google AI`
220
- */
221
- export const GetPromptVersionThinkingLevel = {
222
- Low: "low",
223
- Medium: "medium",
224
- High: "high",
225
- } as const;
226
- /**
227
- * The level of thinking to use for the model. Only supported by `Google AI`
228
- */
229
- export type GetPromptVersionThinkingLevel = ClosedEnum<
230
- typeof GetPromptVersionThinkingLevel
231
- >;
232
-
233
- /**
234
- * Model Parameters: Not all parameters apply to every model
235
- */
236
- export type GetPromptVersionModelParameters = {
237
- /**
238
- * Only supported on `chat` and `completion` models.
239
- */
240
- temperature?: number | undefined;
241
- /**
242
- * Only supported on `chat` and `completion` models.
243
- */
244
- maxTokens?: number | undefined;
245
- /**
246
- * Only supported on `chat` and `completion` models.
247
- */
248
- topK?: number | undefined;
249
- /**
250
- * Only supported on `chat` and `completion` models.
251
- */
252
- topP?: number | undefined;
253
- /**
254
- * Only supported on `chat` and `completion` models.
255
- */
256
- frequencyPenalty?: number | undefined;
257
- /**
258
- * Only supported on `chat` and `completion` models.
259
- */
260
- presencePenalty?: number | undefined;
261
- /**
262
- * Only supported on `image` models.
263
- */
264
- numImages?: number | undefined;
265
- /**
266
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
267
- */
268
- seed?: number | undefined;
269
- /**
270
- * Only supported on `image` models.
271
- */
272
- format?: GetPromptVersionFormat | undefined;
273
- /**
274
- * Only supported on `image` models.
275
- */
276
- dimensions?: string | undefined;
277
- /**
278
- * Only supported on `image` models.
279
- */
280
- quality?: string | undefined;
281
- /**
282
- * Only supported on `image` models.
283
- */
284
- style?: string | undefined;
285
- /**
286
- * An object specifying the format that the model must output.
287
- *
288
- * @remarks
289
- *
290
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
291
- *
292
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
293
- *
294
- * 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.
295
- */
296
- responseFormat?:
297
- | GetPromptVersionResponseFormat1
298
- | GetPromptVersionResponseFormat2
299
- | GetPromptVersionResponseFormat3
300
- | GetPromptVersionResponseFormat4
301
- | GetPromptVersionResponseFormat5
302
- | GetPromptVersionResponseFormat6
303
- | null
304
- | undefined;
305
- /**
306
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
307
- */
308
- photoRealVersion?: GetPromptVersionPhotoRealVersion | undefined;
309
- /**
310
- * The format to return the embeddings
311
- */
312
- encodingFormat?: GetPromptVersionEncodingFormat | undefined;
313
- /**
314
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
315
- */
316
- reasoningEffort?: GetPromptVersionPromptsReasoningEffort | undefined;
317
- /**
318
- * 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`
319
- */
320
- budgetTokens?: number | undefined;
321
- /**
322
- * Controls the verbosity of the model output.
323
- */
324
- verbosity?: GetPromptVersionVerbosity | undefined;
325
- /**
326
- * The level of thinking to use for the model. Only supported by `Google AI`
327
- */
328
- thinkingLevel?: GetPromptVersionThinkingLevel | undefined;
329
- };
330
-
331
- export const GetPromptVersionProvider = {
332
- Openai: "openai",
333
- Groq: "groq",
334
- Cohere: "cohere",
335
- Azure: "azure",
336
- Aws: "aws",
337
- Google: "google",
338
- GoogleAi: "google-ai",
339
- Huggingface: "huggingface",
340
- Togetherai: "togetherai",
341
- Perplexity: "perplexity",
342
- Anthropic: "anthropic",
343
- Leonardoai: "leonardoai",
344
- Fal: "fal",
345
- Nvidia: "nvidia",
346
- Jina: "jina",
347
- Elevenlabs: "elevenlabs",
348
- Litellm: "litellm",
349
- Cerebras: "cerebras",
350
- Openailike: "openailike",
351
- Bytedance: "bytedance",
352
- Mistral: "mistral",
353
- Deepseek: "deepseek",
354
- Contextualai: "contextualai",
355
- Moonshotai: "moonshotai",
356
- Zai: "zai",
357
- Minimax: "minimax",
358
- Xai: "xai",
359
- Alibaba: "alibaba",
360
- Tensorix: "tensorix",
361
- Scaleway: "scaleway",
362
- Hcompany: "hcompany",
363
- Inceptron: "inceptron",
364
- Wafer: "wafer",
365
- Slack: "slack",
366
- Orq: "orq",
367
- } as const;
368
- export type GetPromptVersionProvider = ClosedEnum<
369
- typeof GetPromptVersionProvider
370
- >;
371
-
372
- /**
373
- * The role of the prompt message
374
- */
375
- export const GetPromptVersionRole = {
376
- System: "system",
377
- Developer: "developer",
378
- Assistant: "assistant",
379
- User: "user",
380
- Exception: "exception",
381
- Tool: "tool",
382
- Prompt: "prompt",
383
- Correction: "correction",
384
- ExpectedOutput: "expected_output",
385
- } as const;
386
- /**
387
- * The role of the prompt message
388
- */
389
- export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
390
-
391
- export type GetPromptVersion2File = {
392
- /**
393
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
394
- */
395
- fileData?: string | undefined;
396
- /**
397
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
398
- */
399
- uri?: string | undefined;
400
- /**
401
- * MIME type of the file (e.g., application/pdf, image/png)
402
- */
403
- mimeType?: string | undefined;
404
- /**
405
- * The name of the file, used when passing the file to the model as a string.
406
- */
407
- filename?: string | undefined;
408
- };
409
-
410
- export type GetPromptVersion23 = {
411
- /**
412
- * The type of the content part. Always `file`.
413
- */
414
- type: "file";
415
- file: GetPromptVersion2File;
416
- };
417
-
418
- export type GetPromptVersion2ImageUrl = {
419
- /**
420
- * The orq.ai id of the image
421
- */
422
- id?: string | undefined;
423
- /**
424
- * Either a URL of the image or the base64 encoded data URI.
425
- */
426
- url: string;
427
- /**
428
- * Specifies the detail level of the image. Currently only supported with OpenAI models
429
- */
430
- detail?: string | undefined;
431
- };
432
-
433
- /**
434
- * The image part of the prompt message. Only supported with vision models.
435
- */
436
- export type GetPromptVersion22 = {
437
- type: "image_url";
438
- imageUrl: GetPromptVersion2ImageUrl;
439
- };
440
-
441
- /**
442
- * Text content part of a prompt message
443
- */
444
- export type GetPromptVersion21 = {
445
- type: "text";
446
- text: string;
447
- };
448
-
449
- export type GetPromptVersionContent2 =
450
- | GetPromptVersion21
451
- | GetPromptVersion22
452
- | GetPromptVersion23;
453
-
454
- /**
455
- * 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.
456
- */
457
- export type GetPromptVersionContent =
458
- | string
459
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
460
-
461
- export const GetPromptVersionPromptsType = {
462
- Function: "function",
463
- } as const;
464
- export type GetPromptVersionPromptsType = ClosedEnum<
465
- typeof GetPromptVersionPromptsType
466
- >;
467
-
468
- export type GetPromptVersionFunction = {
469
- name: string;
470
- /**
471
- * JSON string arguments for the functions
472
- */
473
- arguments: string;
474
- };
475
-
476
- export type GetPromptVersionToolCalls = {
477
- id?: string | undefined;
478
- index?: number | undefined;
479
- type: GetPromptVersionPromptsType;
480
- function: GetPromptVersionFunction;
481
- };
482
-
483
- export type GetPromptVersionMessages = {
484
- /**
485
- * The role of the prompt message
486
- */
487
- role: GetPromptVersionRole;
488
- /**
489
- * 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.
490
- */
491
- content:
492
- | string
493
- | Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>
494
- | null;
495
- toolCalls?: Array<GetPromptVersionToolCalls> | undefined;
496
- toolCallId?: string | null | undefined;
497
- };
498
-
499
- /**
500
- * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
501
- *
502
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
503
- */
504
- export type GetPromptVersionPromptConfig = {
505
- stream?: boolean | undefined;
506
- model?: string | null | undefined;
507
- /**
508
- * The id of the resource
509
- */
510
- modelDbId?: string | null | undefined;
511
- /**
512
- * The modality of the model
513
- */
514
- modelType?: GetPromptVersionModelType | null | undefined;
515
- /**
516
- * Model Parameters: Not all parameters apply to every model
517
- */
518
- modelParameters?: GetPromptVersionModelParameters | undefined;
519
- provider?: GetPromptVersionProvider | null | undefined;
520
- /**
521
- * The ID of the integration to use
522
- */
523
- integrationId?: string | null | undefined;
524
- version?: string | undefined;
525
- messages: Array<GetPromptVersionMessages>;
526
- };
527
-
528
- /**
529
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
530
- */
531
- export const GetPromptVersionVoice = {
532
- Alloy: "alloy",
533
- Echo: "echo",
534
- Fable: "fable",
535
- Onyx: "onyx",
536
- Nova: "nova",
537
- Shimmer: "shimmer",
538
- } as const;
539
- /**
540
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
541
- */
542
- export type GetPromptVersionVoice = ClosedEnum<typeof GetPromptVersionVoice>;
543
-
544
- /**
545
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
546
- */
547
- export const GetPromptVersionPromptsFormat = {
548
- Wav: "wav",
549
- Mp3: "mp3",
550
- Flac: "flac",
551
- Opus: "opus",
552
- Pcm16: "pcm16",
553
- } as const;
554
- /**
555
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
556
- */
557
- export type GetPromptVersionPromptsFormat = ClosedEnum<
558
- typeof GetPromptVersionPromptsFormat
559
- >;
560
-
561
- /**
562
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
563
- */
564
- export type GetPromptVersionAudio = {
565
- /**
566
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
567
- */
568
- voice: GetPromptVersionVoice;
569
- /**
570
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
571
- */
572
- format: GetPromptVersionPromptsFormat;
573
- };
574
-
575
- export type GetPromptVersionResponseFormatJsonSchema = {
576
- /**
577
- * A description of what the response format is for, used by the model to determine how to respond in the format.
578
- */
579
- description?: string | undefined;
580
- /**
581
- * 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.
582
- */
583
- name: string;
584
- /**
585
- * The schema for the response format, described as a JSON Schema object.
586
- */
587
- schema?: any | undefined;
588
- /**
589
- * 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.
590
- */
591
- strict: boolean;
592
- };
593
-
594
- /**
595
- * @remarks
596
- *
597
- * JSON Schema response format. Used to generate structured JSON responses
598
- */
599
- export type GetPromptVersionResponseFormatPromptsJSONSchema = {
600
- type: "json_schema";
601
- jsonSchema: GetPromptVersionResponseFormatJsonSchema;
602
- };
603
-
604
- /**
605
- * @remarks
606
- *
607
- * 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.
608
- */
609
- export type GetPromptVersionResponseFormatJSONObject = {
610
- type: "json_object";
611
- };
612
-
613
- /**
614
- * @remarks
615
- *
616
- * Default response format. Used to generate text responses
617
- */
618
- export type GetPromptVersionResponseFormatText = {
619
- type: "text";
620
- };
621
-
622
- /**
623
- * An object specifying the format that the model must output
624
- */
625
- export type GetPromptVersionResponseFormat =
626
- | GetPromptVersionResponseFormatText
627
- | GetPromptVersionResponseFormatJSONObject
628
- | GetPromptVersionResponseFormatPromptsJSONSchema;
629
-
630
- /**
631
- * 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.
632
- *
633
- * @remarks
634
- *
635
- * - `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.
636
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
637
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
638
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
639
- *
640
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
641
- */
642
- export const GetPromptVersionReasoningEffort = {
643
- None: "none",
644
- Minimal: "minimal",
645
- Low: "low",
646
- Medium: "medium",
647
- High: "high",
648
- Xhigh: "xhigh",
649
- } as const;
650
- /**
651
- * 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.
652
- *
653
- * @remarks
654
- *
655
- * - `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.
656
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
657
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
658
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
659
- *
660
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
661
- */
662
- export type GetPromptVersionReasoningEffort = ClosedEnum<
663
- typeof GetPromptVersionReasoningEffort
664
- >;
665
-
666
- /**
667
- * Up to 4 sequences where the API will stop generating further tokens.
668
- */
669
- export type GetPromptVersionStop = string | Array<string>;
670
-
671
- /**
672
- * Options for streaming response. Only set this when you set stream: true.
673
- */
674
- export type GetPromptVersionStreamOptions = {
675
- /**
676
- * 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.
677
- */
678
- includeUsage?: boolean | undefined;
679
- };
680
-
681
- export type GetPromptVersionThinking =
682
- | components.ThinkingConfigDisabledSchema
683
- | components.ThinkingConfigEnabledSchema
684
- | components.ThinkingConfigAdaptiveSchema;
685
-
686
- /**
687
- * The type of the tool. Currently, only function is supported.
688
- */
689
- export const GetPromptVersionToolChoiceType = {
690
- Function: "function",
691
- } as const;
692
- /**
693
- * The type of the tool. Currently, only function is supported.
694
- */
695
- export type GetPromptVersionToolChoiceType = ClosedEnum<
696
- typeof GetPromptVersionToolChoiceType
697
- >;
698
-
699
- export type GetPromptVersionToolChoiceFunction = {
700
- /**
701
- * The name of the function to call.
702
- */
703
- name: string;
704
- };
705
-
706
- export type GetPromptVersionToolChoice2 = {
707
- /**
708
- * The type of the tool. Currently, only function is supported.
709
- */
710
- type?: GetPromptVersionToolChoiceType | undefined;
711
- function: GetPromptVersionToolChoiceFunction;
712
- };
713
-
714
- export const GetPromptVersionToolChoice1 = {
715
- None: "none",
716
- Auto: "auto",
717
- Required: "required",
718
- } as const;
719
- export type GetPromptVersionToolChoice1 = ClosedEnum<
720
- typeof GetPromptVersionToolChoice1
721
- >;
722
-
723
- /**
724
- * Controls which (if any) tool is called by the model.
725
- */
726
- export type GetPromptVersionToolChoice =
727
- | GetPromptVersionToolChoice2
728
- | GetPromptVersionToolChoice1;
729
-
730
- export const GetPromptVersionModalities = {
731
- Text: "text",
732
- Audio: "audio",
733
- } as const;
734
- export type GetPromptVersionModalities = ClosedEnum<
735
- typeof GetPromptVersionModalities
736
- >;
737
-
738
- /**
739
- * The key of the guardrail.
740
- */
741
- export const GetPromptVersionId1 = {
742
- OrqPiiDetection: "orq_pii_detection",
743
- OrqSexualModeration: "orq_sexual_moderation",
744
- OrqHarmfulModeration: "orq_harmful_moderation",
745
- } as const;
746
- /**
747
- * The key of the guardrail.
748
- */
749
- export type GetPromptVersionId1 = ClosedEnum<typeof GetPromptVersionId1>;
750
-
751
- export type GetPromptVersionId = GetPromptVersionId1 | string;
752
-
753
- /**
754
- * Determines whether the guardrail runs on the input (user message) or output (model response).
755
- */
756
- export const GetPromptVersionExecuteOn = {
757
- Input: "input",
758
- Output: "output",
759
- } as const;
760
- /**
761
- * Determines whether the guardrail runs on the input (user message) or output (model response).
762
- */
763
- export type GetPromptVersionExecuteOn = ClosedEnum<
764
- typeof GetPromptVersionExecuteOn
765
- >;
766
-
767
- export type GetPromptVersionGuardrails = {
768
- id: GetPromptVersionId1 | string;
769
- /**
770
- * Determines whether the guardrail runs on the input (user message) or output (model response).
771
- */
772
- executeOn: GetPromptVersionExecuteOn;
773
- };
774
-
775
- export type GetPromptVersionFallbacks = {
776
- /**
777
- * Fallback model identifier
778
- */
779
- model: string;
780
- };
781
-
782
- /**
783
- * Retry configuration for the request
784
- */
785
- export type GetPromptVersionRetry = {
786
- /**
787
- * Number of retry attempts (1-5)
788
- */
789
- count: number;
790
- /**
791
- * HTTP status codes that trigger retry logic
792
- */
793
- onCodes?: Array<number> | undefined;
794
- };
795
-
796
- export const GetPromptVersionType = {
797
- ExactMatch: "exact_match",
798
- } as const;
799
- export type GetPromptVersionType = ClosedEnum<typeof GetPromptVersionType>;
800
-
801
- /**
802
- * Cache configuration for the request.
803
- */
804
- export type GetPromptVersionCache = {
805
- /**
806
- * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
807
- */
808
- ttl: number;
809
- type: GetPromptVersionType;
810
- };
811
-
812
- export const GetPromptVersionLoadBalancerType = {
813
- WeightBased: "weight_based",
814
- } as const;
815
- export type GetPromptVersionLoadBalancerType = ClosedEnum<
816
- typeof GetPromptVersionLoadBalancerType
817
- >;
818
-
819
- export type GetPromptVersionLoadBalancerModels = {
820
- /**
821
- * Model identifier for load balancing
822
- */
823
- model: string;
824
- /**
825
- * Weight assigned to this model for load balancing
826
- */
827
- weight: number;
828
- };
829
-
830
- export type GetPromptVersionLoadBalancer1 = {
831
- type: GetPromptVersionLoadBalancerType;
832
- models: Array<GetPromptVersionLoadBalancerModels>;
833
- };
834
-
835
- /**
836
- * Load balancer configuration for the request.
837
- */
838
- export type GetPromptVersionLoadBalancer = GetPromptVersionLoadBalancer1;
839
-
840
- /**
841
- * 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.
842
- */
843
- export type GetPromptVersionTimeout = {
844
- /**
845
- * Timeout value in milliseconds
846
- */
847
- callTimeout: number;
848
- };
849
-
850
- export type GetPromptVersionContentPromptsResponse2002 =
851
- components.TextContentPartSchema;
852
-
853
- /**
854
- * The contents of the tool message.
855
- */
856
- export type GetPromptVersionMessagesPromptsResponse200Content =
857
- | string
858
- | Array<components.TextContentPartSchema>;
859
-
860
- /**
861
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
862
- */
863
- export const GetPromptVersionMessagesPromptsType = {
864
- Ephemeral: "ephemeral",
865
- } as const;
866
- /**
867
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
868
- */
869
- export type GetPromptVersionMessagesPromptsType = ClosedEnum<
870
- typeof GetPromptVersionMessagesPromptsType
871
- >;
872
-
873
- /**
874
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
875
- *
876
- * @remarks
877
- *
878
- * - `5m`: 5 minutes
879
- * - `1h`: 1 hour
880
- *
881
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
882
- */
883
- export const GetPromptVersionMessagesTtl = {
884
- Fivem: "5m",
885
- Oneh: "1h",
886
- } as const;
887
- /**
888
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
889
- *
890
- * @remarks
891
- *
892
- * - `5m`: 5 minutes
893
- * - `1h`: 1 hour
894
- *
895
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
896
- */
897
- export type GetPromptVersionMessagesTtl = ClosedEnum<
898
- typeof GetPromptVersionMessagesTtl
899
- >;
900
-
901
- export type GetPromptVersionMessagesCacheControl = {
902
- /**
903
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
904
- */
905
- type: GetPromptVersionMessagesPromptsType;
906
- /**
907
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
908
- *
909
- * @remarks
910
- *
911
- * - `5m`: 5 minutes
912
- * - `1h`: 1 hour
913
- *
914
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
915
- */
916
- ttl: GetPromptVersionMessagesTtl;
917
- };
918
-
919
- export type GetPromptVersionMessagesToolMessage = {
920
- /**
921
- * The role of the messages author, in this case tool.
922
- */
923
- role: "tool";
924
- /**
925
- * The contents of the tool message.
926
- */
927
- content: string | Array<components.TextContentPartSchema>;
928
- /**
929
- * Tool call that this message is responding to.
930
- */
931
- toolCallId: string | null;
932
- cacheControl?: GetPromptVersionMessagesCacheControl | undefined;
933
- };
934
-
935
- export type GetPromptVersionContentPromptsResponse2 =
936
- | (components.TextContentPartSchema & { type: "text" })
937
- | components.RefusalPartSchema
938
- | components.ReasoningPartSchema
939
- | components.RedactedReasoningPartSchema;
940
-
941
- /**
942
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
943
- */
944
- export type GetPromptVersionMessagesPromptsResponseContent =
945
- | string
946
- | Array<
947
- | (components.TextContentPartSchema & { type: "text" })
948
- | components.RefusalPartSchema
949
- | components.ReasoningPartSchema
950
- | components.RedactedReasoningPartSchema
951
- >;
952
-
953
- /**
954
- * Data about a previous audio response from the model.
955
- */
956
- export type GetPromptVersionMessagesAudio = {
957
- /**
958
- * Unique identifier for a previous audio response from the model.
959
- */
960
- id: string;
961
- };
962
-
963
- /**
964
- * The type of the tool. Currently, only `function` is supported.
965
- */
966
- export const GetPromptVersionMessagesType = {
967
- Function: "function",
968
- } as const;
969
- /**
970
- * The type of the tool. Currently, only `function` is supported.
971
- */
972
- export type GetPromptVersionMessagesType = ClosedEnum<
973
- typeof GetPromptVersionMessagesType
974
- >;
975
-
976
- export type GetPromptVersionMessagesFunction = {
977
- /**
978
- * The name of the function to call.
979
- */
980
- name?: string | undefined;
981
- /**
982
- * 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.
983
- */
984
- arguments?: string | undefined;
985
- };
986
-
987
- export type GetPromptVersionMessagesToolCalls = {
988
- /**
989
- * The ID of the tool call.
990
- */
991
- id: string;
992
- /**
993
- * The type of the tool. Currently, only `function` is supported.
994
- */
995
- type: GetPromptVersionMessagesType;
996
- function: GetPromptVersionMessagesFunction;
997
- /**
998
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
999
- */
1000
- thoughtSignature?: string | undefined;
1001
- };
1002
-
1003
- export type GetPromptVersionMessagesAssistantMessage = {
1004
- /**
1005
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
1006
- */
1007
- content?:
1008
- | string
1009
- | Array<
1010
- | (components.TextContentPartSchema & { type: "text" })
1011
- | components.RefusalPartSchema
1012
- | components.ReasoningPartSchema
1013
- | components.RedactedReasoningPartSchema
1014
- >
1015
- | null
1016
- | undefined;
1017
- /**
1018
- * The refusal message by the assistant.
1019
- */
1020
- refusal?: string | null | undefined;
1021
- /**
1022
- * The role of the messages author, in this case `assistant`.
1023
- */
1024
- role: "assistant";
1025
- /**
1026
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1027
- */
1028
- name?: string | undefined;
1029
- /**
1030
- * Data about a previous audio response from the model.
1031
- */
1032
- audio?: GetPromptVersionMessagesAudio | null | undefined;
1033
- /**
1034
- * The tool calls generated by the model, such as function calls.
1035
- */
1036
- toolCalls?: Array<GetPromptVersionMessagesToolCalls> | undefined;
1037
- };
1038
-
1039
- /**
1040
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1041
- */
1042
- export const GetPromptVersion2PromptsResponse200ApplicationJSONType = {
1043
- Ephemeral: "ephemeral",
1044
- } as const;
1045
- /**
1046
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1047
- */
1048
- export type GetPromptVersion2PromptsResponse200ApplicationJSONType = ClosedEnum<
1049
- typeof GetPromptVersion2PromptsResponse200ApplicationJSONType
1050
- >;
1051
-
1052
- /**
1053
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1054
- *
1055
- * @remarks
1056
- *
1057
- * - `5m`: 5 minutes
1058
- * - `1h`: 1 hour
1059
- *
1060
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1061
- */
1062
- export const GetPromptVersion2Ttl = {
1063
- Fivem: "5m",
1064
- Oneh: "1h",
1065
- } as const;
1066
- /**
1067
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1068
- *
1069
- * @remarks
1070
- *
1071
- * - `5m`: 5 minutes
1072
- * - `1h`: 1 hour
1073
- *
1074
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1075
- */
1076
- export type GetPromptVersion2Ttl = ClosedEnum<typeof GetPromptVersion2Ttl>;
1077
-
1078
- export type GetPromptVersion2CacheControl = {
1079
- /**
1080
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1081
- */
1082
- type: GetPromptVersion2PromptsResponse200ApplicationJSONType;
1083
- /**
1084
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
1085
- *
1086
- * @remarks
1087
- *
1088
- * - `5m`: 5 minutes
1089
- * - `1h`: 1 hour
1090
- *
1091
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1092
- */
1093
- ttl: GetPromptVersion2Ttl;
1094
- };
1095
-
1096
- export type GetPromptVersion24 = {
1097
- /**
1098
- * The type of the content part. Always `file`.
1099
- */
1100
- type: "file";
1101
- cacheControl?: GetPromptVersion2CacheControl | undefined;
1102
- /**
1103
- * File data for the content part. Must contain either file_data or uri, but not both.
1104
- */
1105
- file: components.FileContentPartSchema;
1106
- };
1107
-
1108
- export type GetPromptVersionContentPrompts2 =
1109
- | (components.TextContentPartSchema & { type: "text" })
1110
- | components.ImageContentPartSchema
1111
- | components.AudioContentPartSchema
1112
- | GetPromptVersion24;
1113
-
1114
- /**
1115
- * The contents of the user message.
1116
- */
1117
- export type GetPromptVersionMessagesPromptsContent =
1118
- | string
1119
- | Array<
1120
- | (components.TextContentPartSchema & { type: "text" })
1121
- | components.ImageContentPartSchema
1122
- | components.AudioContentPartSchema
1123
- | GetPromptVersion24
1124
- >;
1125
-
1126
- export type GetPromptVersionMessagesUserMessage = {
1127
- /**
1128
- * The role of the messages author, in this case `user`.
1129
- */
1130
- role: "user";
1131
- /**
1132
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1133
- */
1134
- name?: string | undefined;
1135
- /**
1136
- * The contents of the user message.
1137
- */
1138
- content:
1139
- | string
1140
- | Array<
1141
- | (components.TextContentPartSchema & { type: "text" })
1142
- | components.ImageContentPartSchema
1143
- | components.AudioContentPartSchema
1144
- | GetPromptVersion24
1145
- >;
1146
- };
1147
-
1148
- /**
1149
- * The contents of the system message.
1150
- */
1151
- export type GetPromptVersionMessagesContent =
1152
- | string
1153
- | Array<components.TextContentPartSchema>;
1154
-
1155
- /**
1156
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
1157
- */
1158
- export type GetPromptVersionMessagesSystemMessage = {
1159
- /**
1160
- * The role of the messages author, in this case `system`.
1161
- */
1162
- role: "system";
1163
- /**
1164
- * The contents of the system message.
1165
- */
1166
- content: string | Array<components.TextContentPartSchema>;
1167
- /**
1168
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
1169
- */
1170
- name?: string | undefined;
1171
- };
1172
-
1173
- export type GetPromptVersionPromptsMessages =
1174
- | GetPromptVersionMessagesSystemMessage
1175
- | GetPromptVersionMessagesUserMessage
1176
- | GetPromptVersionMessagesAssistantMessage
1177
- | GetPromptVersionMessagesToolMessage;
1178
-
1179
- /**
1180
- * Prompt configuration with model and messages. Use this instead of prompt_config.
1181
- */
1182
- export type GetPromptVersionPromptField = {
1183
- /**
1184
- * The name to display on the trace. If not specified, the default system name will be used.
1185
- */
1186
- name?: string | undefined;
1187
- /**
1188
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
1189
- */
1190
- audio?: GetPromptVersionAudio | null | undefined;
1191
- /**
1192
- * 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.
1193
- */
1194
- frequencyPenalty?: number | null | undefined;
1195
- /**
1196
- * `[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.
1197
- *
1198
- * @remarks
1199
- *
1200
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
1201
- */
1202
- maxTokens?: number | null | undefined;
1203
- /**
1204
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1205
- */
1206
- maxCompletionTokens?: number | null | undefined;
1207
- /**
1208
- * 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.
1209
- */
1210
- logprobs?: boolean | null | undefined;
1211
- /**
1212
- * 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.
1213
- */
1214
- topLogprobs?: number | null | undefined;
1215
- /**
1216
- * 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.
1217
- */
1218
- n?: number | null | undefined;
1219
- /**
1220
- * 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.
1221
- */
1222
- presencePenalty?: number | null | undefined;
1223
- /**
1224
- * An object specifying the format that the model must output
1225
- */
1226
- responseFormat?:
1227
- | GetPromptVersionResponseFormatText
1228
- | GetPromptVersionResponseFormatJSONObject
1229
- | GetPromptVersionResponseFormatPromptsJSONSchema
1230
- | undefined;
1231
- /**
1232
- * 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.
1233
- *
1234
- * @remarks
1235
- *
1236
- * - `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.
1237
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1238
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1239
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1240
- *
1241
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1242
- */
1243
- reasoningEffort?: GetPromptVersionReasoningEffort | undefined;
1244
- /**
1245
- * Adjusts response verbosity. Lower levels yield shorter answers.
1246
- */
1247
- verbosity?: string | undefined;
1248
- /**
1249
- * 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.
1250
- */
1251
- seed?: number | null | undefined;
1252
- /**
1253
- * Up to 4 sequences where the API will stop generating further tokens.
1254
- */
1255
- stop?: string | Array<string> | null | undefined;
1256
- /**
1257
- * Options for streaming response. Only set this when you set stream: true.
1258
- */
1259
- streamOptions?: GetPromptVersionStreamOptions | null | undefined;
1260
- thinking?:
1261
- | components.ThinkingConfigDisabledSchema
1262
- | components.ThinkingConfigEnabledSchema
1263
- | components.ThinkingConfigAdaptiveSchema
1264
- | undefined;
1265
- /**
1266
- * 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.
1267
- */
1268
- temperature?: number | null | undefined;
1269
- /**
1270
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
1271
- */
1272
- topP?: number | null | undefined;
1273
- /**
1274
- * Limits the model to consider only the top k most likely tokens at each step.
1275
- */
1276
- topK?: number | null | undefined;
1277
- /**
1278
- * Controls which (if any) tool is called by the model.
1279
- */
1280
- toolChoice?:
1281
- | GetPromptVersionToolChoice2
1282
- | GetPromptVersionToolChoice1
1283
- | undefined;
1284
- /**
1285
- * Whether to enable parallel function calling during tool use.
1286
- */
1287
- parallelToolCalls?: boolean | undefined;
1288
- /**
1289
- * 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"].
1290
- */
1291
- modalities?: Array<GetPromptVersionModalities> | null | undefined;
1292
- /**
1293
- * A list of guardrails to apply to the request.
1294
- */
1295
- guardrails?: Array<GetPromptVersionGuardrails> | undefined;
1296
- /**
1297
- * Array of fallback models to use if primary model fails
1298
- */
1299
- fallbacks?: Array<GetPromptVersionFallbacks> | undefined;
1300
- /**
1301
- * Retry configuration for the request
1302
- */
1303
- retry?: GetPromptVersionRetry | undefined;
1304
- /**
1305
- * Cache configuration for the request.
1306
- */
1307
- cache?: GetPromptVersionCache | undefined;
1308
- /**
1309
- * Load balancer configuration for the request.
1310
- */
1311
- loadBalancer?: GetPromptVersionLoadBalancer1 | undefined;
1312
- /**
1313
- * 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.
1314
- */
1315
- timeout?: GetPromptVersionTimeout | undefined;
1316
- /**
1317
- * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
1318
- */
1319
- messages?:
1320
- | Array<
1321
- | GetPromptVersionMessagesSystemMessage
1322
- | GetPromptVersionMessagesUserMessage
1323
- | GetPromptVersionMessagesAssistantMessage
1324
- | GetPromptVersionMessagesToolMessage
1325
- >
1326
- | undefined;
1327
- /**
1328
- * 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}`.
1329
- */
1330
- model?: string | null | undefined;
1331
- version?: string | undefined;
1332
- };
1333
-
1334
- export const GetPromptVersionUseCases = {
1335
- AgentsSimulations: "Agents simulations",
1336
- Agents: "Agents",
1337
- APIInteraction: "API interaction",
1338
- AutonomousAgents: "Autonomous Agents",
1339
- Chatbots: "Chatbots",
1340
- Classification: "Classification",
1341
- CodeUnderstanding: "Code understanding",
1342
- CodeWriting: "Code writing",
1343
- Conversation: "Conversation",
1344
- DocumentsQA: "Documents QA",
1345
- Evaluation: "Evaluation",
1346
- Extraction: "Extraction",
1347
- MultiModal: "Multi-modal",
1348
- SelfChecking: "Self-checking",
1349
- SentimentAnalysis: "Sentiment analysis",
1350
- Sql: "SQL",
1351
- Summarization: "Summarization",
1352
- Tagging: "Tagging",
1353
- TranslationDocument: "Translation (document)",
1354
- TranslationSentences: "Translation (sentences)",
1355
- } as const;
1356
- export type GetPromptVersionUseCases = ClosedEnum<
1357
- typeof GetPromptVersionUseCases
1358
- >;
1359
-
1360
- /**
1361
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1362
- */
1363
- export const GetPromptVersionLanguage = {
1364
- Chinese: "Chinese",
1365
- Dutch: "Dutch",
1366
- English: "English",
1367
- French: "French",
1368
- German: "German",
1369
- Russian: "Russian",
1370
- Spanish: "Spanish",
1371
- } as const;
1372
- /**
1373
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1374
- */
1375
- export type GetPromptVersionLanguage = ClosedEnum<
1376
- typeof GetPromptVersionLanguage
1377
- >;
1378
-
1379
- export type GetPromptVersionMetadata = {
1380
- /**
1381
- * 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
1382
- */
1383
- useCases?: Array<GetPromptVersionUseCases> | undefined;
1384
- /**
1385
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
1386
- */
1387
- language?: GetPromptVersionLanguage | null | undefined;
1388
- };
1389
-
1390
- /**
1391
- * Prompt version retrieved successfully.
1392
- */
1393
- export type GetPromptVersionResponseBody = {
1394
- id: string;
1395
- createdById?: string | null | undefined;
1396
- updatedById?: string | null | undefined;
1397
- /**
1398
- * 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
1399
- */
1400
- description?: string | null | undefined;
1401
- /**
1402
- * [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
1403
- *
1404
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1405
- */
1406
- promptConfig?: GetPromptVersionPromptConfig | undefined;
1407
- /**
1408
- * Prompt configuration with model and messages. Use this instead of prompt_config.
1409
- */
1410
- prompt: GetPromptVersionPromptField;
1411
- metadata?: GetPromptVersionMetadata | undefined;
1412
- timestamp: string;
1413
- };
1414
-
1415
- /** @internal */
1416
- export type GetPromptVersionRequest$Outbound = {
1417
- prompt_id: string;
1418
- version_id: string;
1419
- };
1420
-
1421
- /** @internal */
1422
- export const GetPromptVersionRequest$outboundSchema: z.ZodType<
1423
- GetPromptVersionRequest$Outbound,
1424
- z.ZodTypeDef,
1425
- GetPromptVersionRequest
1426
- > = z.object({
1427
- promptId: z.string(),
1428
- versionId: z.string(),
1429
- }).transform((v) => {
1430
- return remap$(v, {
1431
- promptId: "prompt_id",
1432
- versionId: "version_id",
1433
- });
1434
- });
1435
-
1436
- export function getPromptVersionRequestToJSON(
1437
- getPromptVersionRequest: GetPromptVersionRequest,
1438
- ): string {
1439
- return JSON.stringify(
1440
- GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest),
1441
- );
1442
- }
1443
-
1444
- /** @internal */
1445
- export const GetPromptVersionModelType$inboundSchema: z.ZodNativeEnum<
1446
- typeof GetPromptVersionModelType
1447
- > = z.nativeEnum(GetPromptVersionModelType);
1448
-
1449
- /** @internal */
1450
- export const GetPromptVersionFormat$inboundSchema: z.ZodNativeEnum<
1451
- typeof GetPromptVersionFormat
1452
- > = z.nativeEnum(GetPromptVersionFormat);
1453
-
1454
- /** @internal */
1455
- export const GetPromptVersionResponseFormat6$inboundSchema: z.ZodNativeEnum<
1456
- typeof GetPromptVersionResponseFormat6
1457
- > = z.nativeEnum(GetPromptVersionResponseFormat6);
1458
-
1459
- /** @internal */
1460
- export const GetPromptVersionResponseFormat5$inboundSchema: z.ZodNativeEnum<
1461
- typeof GetPromptVersionResponseFormat5
1462
- > = z.nativeEnum(GetPromptVersionResponseFormat5);
1463
-
1464
- /** @internal */
1465
- export const GetPromptVersionResponseFormat4$inboundSchema: z.ZodNativeEnum<
1466
- typeof GetPromptVersionResponseFormat4
1467
- > = z.nativeEnum(GetPromptVersionResponseFormat4);
1468
-
1469
- /** @internal */
1470
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1471
- z.ZodNativeEnum<
1472
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
1473
- > = z.nativeEnum(
1474
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType,
1475
- );
1476
-
1477
- /** @internal */
1478
- export const GetPromptVersionResponseFormat3$inboundSchema: z.ZodType<
1479
- GetPromptVersionResponseFormat3,
1480
- z.ZodTypeDef,
1481
- unknown
1482
- > = z.object({
1483
- type:
1484
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1485
- });
1486
-
1487
- export function getPromptVersionResponseFormat3FromJSON(
1488
- jsonString: string,
1489
- ): SafeParseResult<GetPromptVersionResponseFormat3, SDKValidationError> {
1490
- return safeParse(
1491
- jsonString,
1492
- (x) => GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1493
- `Failed to parse 'GetPromptVersionResponseFormat3' from JSON`,
1494
- );
1495
- }
1496
-
1497
- /** @internal */
1498
- export const GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
1499
- z.ZodNativeEnum<
1500
- typeof GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType
1501
- > = z.nativeEnum(
1502
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType,
1503
- );
1504
-
1505
- /** @internal */
1506
- export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
1507
- GetPromptVersionResponseFormat2,
1508
- z.ZodTypeDef,
1509
- unknown
1510
- > = z.object({
1511
- type:
1512
- GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
1513
- });
1514
-
1515
- export function getPromptVersionResponseFormat2FromJSON(
1516
- jsonString: string,
1517
- ): SafeParseResult<GetPromptVersionResponseFormat2, SDKValidationError> {
1518
- return safeParse(
1519
- jsonString,
1520
- (x) => GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1521
- `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`,
1522
- );
1523
- }
1524
-
1525
- /** @internal */
1526
- export const GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema:
1527
- z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponse200Type> =
1528
- z.nativeEnum(GetPromptVersionResponseFormatPromptsResponse200Type);
1529
-
1530
- /** @internal */
1531
- export const GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema:
1532
- z.ZodType<
1533
- GetPromptVersionResponseFormatPromptsResponseJsonSchema,
1534
- z.ZodTypeDef,
1535
- unknown
1536
- > = z.object({
1537
- name: z.string(),
1538
- description: z.string().optional(),
1539
- strict: z.boolean().optional(),
1540
- schema: z.record(z.any()),
1541
- });
1542
-
1543
- export function getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON(
1544
- jsonString: string,
1545
- ): SafeParseResult<
1546
- GetPromptVersionResponseFormatPromptsResponseJsonSchema,
1547
- SDKValidationError
1548
- > {
1549
- return safeParse(
1550
- jsonString,
1551
- (x) =>
1552
- GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema
1553
- .parse(JSON.parse(x)),
1554
- `Failed to parse 'GetPromptVersionResponseFormatPromptsResponseJsonSchema' from JSON`,
1555
- );
1556
- }
1557
-
1558
- /** @internal */
1559
- export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
1560
- GetPromptVersionResponseFormat1,
1561
- z.ZodTypeDef,
1562
- unknown
1563
- > = z.object({
1564
- type: GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema,
1565
- display_name: z.string().optional(),
1566
- json_schema: z.lazy(() =>
1567
- GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema
1568
- ),
1569
- }).transform((v) => {
1570
- return remap$(v, {
1571
- "display_name": "displayName",
1572
- "json_schema": "jsonSchema",
1573
- });
1574
- });
1575
-
1576
- export function getPromptVersionResponseFormat1FromJSON(
1577
- jsonString: string,
1578
- ): SafeParseResult<GetPromptVersionResponseFormat1, SDKValidationError> {
1579
- return safeParse(
1580
- jsonString,
1581
- (x) => GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1582
- `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`,
1583
- );
1584
- }
1585
-
1586
- /** @internal */
1587
- export const GetPromptVersionPromptsResponseFormat$inboundSchema: z.ZodType<
1588
- GetPromptVersionPromptsResponseFormat,
1589
- z.ZodTypeDef,
1590
- unknown
1591
- > = z.union([
1592
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
1593
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
1594
- z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
1595
- GetPromptVersionResponseFormat4$inboundSchema,
1596
- GetPromptVersionResponseFormat5$inboundSchema,
1597
- GetPromptVersionResponseFormat6$inboundSchema,
1598
- ]);
1599
-
1600
- export function getPromptVersionPromptsResponseFormatFromJSON(
1601
- jsonString: string,
1602
- ): SafeParseResult<GetPromptVersionPromptsResponseFormat, SDKValidationError> {
1603
- return safeParse(
1604
- jsonString,
1605
- (x) =>
1606
- GetPromptVersionPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1607
- `Failed to parse 'GetPromptVersionPromptsResponseFormat' from JSON`,
1608
- );
1609
- }
1610
-
1611
- /** @internal */
1612
- export const GetPromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1613
- typeof GetPromptVersionPhotoRealVersion
1614
- > = z.nativeEnum(GetPromptVersionPhotoRealVersion);
1615
-
1616
- /** @internal */
1617
- export const GetPromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<
1618
- typeof GetPromptVersionEncodingFormat
1619
- > = z.nativeEnum(GetPromptVersionEncodingFormat);
1620
-
1621
- /** @internal */
1622
- export const GetPromptVersionPromptsReasoningEffort$inboundSchema:
1623
- z.ZodNativeEnum<typeof GetPromptVersionPromptsReasoningEffort> = z.nativeEnum(
1624
- GetPromptVersionPromptsReasoningEffort,
1625
- );
1626
-
1627
- /** @internal */
1628
- export const GetPromptVersionVerbosity$inboundSchema: z.ZodNativeEnum<
1629
- typeof GetPromptVersionVerbosity
1630
- > = z.nativeEnum(GetPromptVersionVerbosity);
1631
-
1632
- /** @internal */
1633
- export const GetPromptVersionThinkingLevel$inboundSchema: z.ZodNativeEnum<
1634
- typeof GetPromptVersionThinkingLevel
1635
- > = z.nativeEnum(GetPromptVersionThinkingLevel);
1636
-
1637
- /** @internal */
1638
- export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
1639
- GetPromptVersionModelParameters,
1640
- z.ZodTypeDef,
1641
- unknown
1642
- > = z.object({
1643
- temperature: z.number().optional(),
1644
- maxTokens: z.number().optional(),
1645
- topK: z.number().optional(),
1646
- topP: z.number().optional(),
1647
- frequencyPenalty: z.number().optional(),
1648
- presencePenalty: z.number().optional(),
1649
- numImages: z.number().optional(),
1650
- seed: z.number().optional(),
1651
- format: GetPromptVersionFormat$inboundSchema.optional(),
1652
- dimensions: z.string().optional(),
1653
- quality: z.string().optional(),
1654
- style: z.string().optional(),
1655
- responseFormat: z.nullable(
1656
- z.union([
1657
- z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
1658
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
1659
- z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
1660
- GetPromptVersionResponseFormat4$inboundSchema,
1661
- GetPromptVersionResponseFormat5$inboundSchema,
1662
- GetPromptVersionResponseFormat6$inboundSchema,
1663
- ]),
1664
- ).optional(),
1665
- photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
1666
- encoding_format: GetPromptVersionEncodingFormat$inboundSchema.optional(),
1667
- reasoningEffort: GetPromptVersionPromptsReasoningEffort$inboundSchema
1668
- .optional(),
1669
- budgetTokens: z.number().optional(),
1670
- verbosity: GetPromptVersionVerbosity$inboundSchema.optional(),
1671
- thinkingLevel: GetPromptVersionThinkingLevel$inboundSchema.optional(),
1672
- }).transform((v) => {
1673
- return remap$(v, {
1674
- "encoding_format": "encodingFormat",
1675
- });
1676
- });
1677
-
1678
- export function getPromptVersionModelParametersFromJSON(
1679
- jsonString: string,
1680
- ): SafeParseResult<GetPromptVersionModelParameters, SDKValidationError> {
1681
- return safeParse(
1682
- jsonString,
1683
- (x) => GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)),
1684
- `Failed to parse 'GetPromptVersionModelParameters' from JSON`,
1685
- );
1686
- }
1687
-
1688
- /** @internal */
1689
- export const GetPromptVersionProvider$inboundSchema: z.ZodNativeEnum<
1690
- typeof GetPromptVersionProvider
1691
- > = z.nativeEnum(GetPromptVersionProvider);
1692
-
1693
- /** @internal */
1694
- export const GetPromptVersionRole$inboundSchema: z.ZodNativeEnum<
1695
- typeof GetPromptVersionRole
1696
- > = z.nativeEnum(GetPromptVersionRole);
1697
-
1698
- /** @internal */
1699
- export const GetPromptVersion2File$inboundSchema: z.ZodType<
1700
- GetPromptVersion2File,
1701
- z.ZodTypeDef,
1702
- unknown
1703
- > = z.object({
1704
- file_data: z.string().optional(),
1705
- uri: z.string().optional(),
1706
- mimeType: z.string().optional(),
1707
- filename: z.string().optional(),
1708
- }).transform((v) => {
1709
- return remap$(v, {
1710
- "file_data": "fileData",
1711
- });
1712
- });
1713
-
1714
- export function getPromptVersion2FileFromJSON(
1715
- jsonString: string,
1716
- ): SafeParseResult<GetPromptVersion2File, SDKValidationError> {
1717
- return safeParse(
1718
- jsonString,
1719
- (x) => GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)),
1720
- `Failed to parse 'GetPromptVersion2File' from JSON`,
1721
- );
1722
- }
1723
-
1724
- /** @internal */
1725
- export const GetPromptVersion23$inboundSchema: z.ZodType<
1726
- GetPromptVersion23,
1727
- z.ZodTypeDef,
1728
- unknown
1729
- > = z.object({
1730
- type: z.literal("file"),
1731
- file: z.lazy(() => GetPromptVersion2File$inboundSchema),
1732
- });
1733
-
1734
- export function getPromptVersion23FromJSON(
1735
- jsonString: string,
1736
- ): SafeParseResult<GetPromptVersion23, SDKValidationError> {
1737
- return safeParse(
1738
- jsonString,
1739
- (x) => GetPromptVersion23$inboundSchema.parse(JSON.parse(x)),
1740
- `Failed to parse 'GetPromptVersion23' from JSON`,
1741
- );
1742
- }
1743
-
1744
- /** @internal */
1745
- export const GetPromptVersion2ImageUrl$inboundSchema: z.ZodType<
1746
- GetPromptVersion2ImageUrl,
1747
- z.ZodTypeDef,
1748
- unknown
1749
- > = z.object({
1750
- id: z.string().optional(),
1751
- url: z.string(),
1752
- detail: z.string().optional(),
1753
- });
1754
-
1755
- export function getPromptVersion2ImageUrlFromJSON(
1756
- jsonString: string,
1757
- ): SafeParseResult<GetPromptVersion2ImageUrl, SDKValidationError> {
1758
- return safeParse(
1759
- jsonString,
1760
- (x) => GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1761
- `Failed to parse 'GetPromptVersion2ImageUrl' from JSON`,
1762
- );
1763
- }
1764
-
1765
- /** @internal */
1766
- export const GetPromptVersion22$inboundSchema: z.ZodType<
1767
- GetPromptVersion22,
1768
- z.ZodTypeDef,
1769
- unknown
1770
- > = z.object({
1771
- type: z.literal("image_url"),
1772
- image_url: z.lazy(() => GetPromptVersion2ImageUrl$inboundSchema),
1773
- }).transform((v) => {
1774
- return remap$(v, {
1775
- "image_url": "imageUrl",
1776
- });
1777
- });
1778
-
1779
- export function getPromptVersion22FromJSON(
1780
- jsonString: string,
1781
- ): SafeParseResult<GetPromptVersion22, SDKValidationError> {
1782
- return safeParse(
1783
- jsonString,
1784
- (x) => GetPromptVersion22$inboundSchema.parse(JSON.parse(x)),
1785
- `Failed to parse 'GetPromptVersion22' from JSON`,
1786
- );
1787
- }
1788
-
1789
- /** @internal */
1790
- export const GetPromptVersion21$inboundSchema: z.ZodType<
1791
- GetPromptVersion21,
1792
- z.ZodTypeDef,
1793
- unknown
1794
- > = z.object({
1795
- type: z.literal("text"),
1796
- text: z.string(),
1797
- });
1798
-
1799
- export function getPromptVersion21FromJSON(
1800
- jsonString: string,
1801
- ): SafeParseResult<GetPromptVersion21, SDKValidationError> {
1802
- return safeParse(
1803
- jsonString,
1804
- (x) => GetPromptVersion21$inboundSchema.parse(JSON.parse(x)),
1805
- `Failed to parse 'GetPromptVersion21' from JSON`,
1806
- );
1807
- }
1808
-
1809
- /** @internal */
1810
- export const GetPromptVersionContent2$inboundSchema: z.ZodType<
1811
- GetPromptVersionContent2,
1812
- z.ZodTypeDef,
1813
- unknown
1814
- > = z.union([
1815
- z.lazy(() => GetPromptVersion21$inboundSchema),
1816
- z.lazy(() => GetPromptVersion22$inboundSchema),
1817
- z.lazy(() => GetPromptVersion23$inboundSchema),
1818
- ]);
1819
-
1820
- export function getPromptVersionContent2FromJSON(
1821
- jsonString: string,
1822
- ): SafeParseResult<GetPromptVersionContent2, SDKValidationError> {
1823
- return safeParse(
1824
- jsonString,
1825
- (x) => GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)),
1826
- `Failed to parse 'GetPromptVersionContent2' from JSON`,
1827
- );
1828
- }
1829
-
1830
- /** @internal */
1831
- export const GetPromptVersionContent$inboundSchema: z.ZodType<
1832
- GetPromptVersionContent,
1833
- z.ZodTypeDef,
1834
- unknown
1835
- > = z.union([
1836
- z.string(),
1837
- z.array(z.union([
1838
- z.lazy(() => GetPromptVersion21$inboundSchema),
1839
- z.lazy(() => GetPromptVersion22$inboundSchema),
1840
- z.lazy(() => GetPromptVersion23$inboundSchema),
1841
- ])),
1842
- ]);
1843
-
1844
- export function getPromptVersionContentFromJSON(
1845
- jsonString: string,
1846
- ): SafeParseResult<GetPromptVersionContent, SDKValidationError> {
1847
- return safeParse(
1848
- jsonString,
1849
- (x) => GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)),
1850
- `Failed to parse 'GetPromptVersionContent' from JSON`,
1851
- );
1852
- }
1853
-
1854
- /** @internal */
1855
- export const GetPromptVersionPromptsType$inboundSchema: z.ZodNativeEnum<
1856
- typeof GetPromptVersionPromptsType
1857
- > = z.nativeEnum(GetPromptVersionPromptsType);
1858
-
1859
- /** @internal */
1860
- export const GetPromptVersionFunction$inboundSchema: z.ZodType<
1861
- GetPromptVersionFunction,
1862
- z.ZodTypeDef,
1863
- unknown
1864
- > = z.object({
1865
- name: z.string(),
1866
- arguments: z.string(),
1867
- });
1868
-
1869
- export function getPromptVersionFunctionFromJSON(
1870
- jsonString: string,
1871
- ): SafeParseResult<GetPromptVersionFunction, SDKValidationError> {
1872
- return safeParse(
1873
- jsonString,
1874
- (x) => GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)),
1875
- `Failed to parse 'GetPromptVersionFunction' from JSON`,
1876
- );
1877
- }
1878
-
1879
- /** @internal */
1880
- export const GetPromptVersionToolCalls$inboundSchema: z.ZodType<
1881
- GetPromptVersionToolCalls,
1882
- z.ZodTypeDef,
1883
- unknown
1884
- > = z.object({
1885
- id: z.string().optional(),
1886
- index: z.number().optional(),
1887
- type: GetPromptVersionPromptsType$inboundSchema,
1888
- function: z.lazy(() => GetPromptVersionFunction$inboundSchema),
1889
- });
1890
-
1891
- export function getPromptVersionToolCallsFromJSON(
1892
- jsonString: string,
1893
- ): SafeParseResult<GetPromptVersionToolCalls, SDKValidationError> {
1894
- return safeParse(
1895
- jsonString,
1896
- (x) => GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)),
1897
- `Failed to parse 'GetPromptVersionToolCalls' from JSON`,
1898
- );
1899
- }
1900
-
1901
- /** @internal */
1902
- export const GetPromptVersionMessages$inboundSchema: z.ZodType<
1903
- GetPromptVersionMessages,
1904
- z.ZodTypeDef,
1905
- unknown
1906
- > = z.object({
1907
- role: GetPromptVersionRole$inboundSchema,
1908
- content: z.nullable(
1909
- z.union([
1910
- z.string(),
1911
- z.array(
1912
- z.union([
1913
- z.lazy(() => GetPromptVersion21$inboundSchema),
1914
- z.lazy(() => GetPromptVersion22$inboundSchema),
1915
- z.lazy(() => GetPromptVersion23$inboundSchema),
1916
- ]),
1917
- ),
1918
- ]),
1919
- ),
1920
- tool_calls: z.array(z.lazy(() => GetPromptVersionToolCalls$inboundSchema))
1921
- .optional(),
1922
- tool_call_id: z.nullable(z.string()).optional(),
1923
- }).transform((v) => {
1924
- return remap$(v, {
1925
- "tool_calls": "toolCalls",
1926
- "tool_call_id": "toolCallId",
1927
- });
1928
- });
1929
-
1930
- export function getPromptVersionMessagesFromJSON(
1931
- jsonString: string,
1932
- ): SafeParseResult<GetPromptVersionMessages, SDKValidationError> {
1933
- return safeParse(
1934
- jsonString,
1935
- (x) => GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)),
1936
- `Failed to parse 'GetPromptVersionMessages' from JSON`,
1937
- );
1938
- }
1939
-
1940
- /** @internal */
1941
- export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1942
- GetPromptVersionPromptConfig,
1943
- z.ZodTypeDef,
1944
- unknown
1945
- > = z.object({
1946
- stream: z.boolean().optional(),
1947
- model: z.nullable(z.string()).optional(),
1948
- model_db_id: z.nullable(z.string()).optional(),
1949
- model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
1950
- model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
1951
- .optional(),
1952
- provider: z.nullable(GetPromptVersionProvider$inboundSchema).optional(),
1953
- integration_id: z.nullable(z.string()).optional(),
1954
- version: z.string().optional(),
1955
- messages: z.array(z.lazy(() => GetPromptVersionMessages$inboundSchema)),
1956
- }).transform((v) => {
1957
- return remap$(v, {
1958
- "model_db_id": "modelDbId",
1959
- "model_type": "modelType",
1960
- "model_parameters": "modelParameters",
1961
- "integration_id": "integrationId",
1962
- });
1963
- });
1964
-
1965
- export function getPromptVersionPromptConfigFromJSON(
1966
- jsonString: string,
1967
- ): SafeParseResult<GetPromptVersionPromptConfig, SDKValidationError> {
1968
- return safeParse(
1969
- jsonString,
1970
- (x) => GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)),
1971
- `Failed to parse 'GetPromptVersionPromptConfig' from JSON`,
1972
- );
1973
- }
1974
-
1975
- /** @internal */
1976
- export const GetPromptVersionVoice$inboundSchema: z.ZodNativeEnum<
1977
- typeof GetPromptVersionVoice
1978
- > = z.nativeEnum(GetPromptVersionVoice);
1979
-
1980
- /** @internal */
1981
- export const GetPromptVersionPromptsFormat$inboundSchema: z.ZodNativeEnum<
1982
- typeof GetPromptVersionPromptsFormat
1983
- > = z.nativeEnum(GetPromptVersionPromptsFormat);
1984
-
1985
- /** @internal */
1986
- export const GetPromptVersionAudio$inboundSchema: z.ZodType<
1987
- GetPromptVersionAudio,
1988
- z.ZodTypeDef,
1989
- unknown
1990
- > = z.object({
1991
- voice: GetPromptVersionVoice$inboundSchema,
1992
- format: GetPromptVersionPromptsFormat$inboundSchema,
1993
- });
1994
-
1995
- export function getPromptVersionAudioFromJSON(
1996
- jsonString: string,
1997
- ): SafeParseResult<GetPromptVersionAudio, SDKValidationError> {
1998
- return safeParse(
1999
- jsonString,
2000
- (x) => GetPromptVersionAudio$inboundSchema.parse(JSON.parse(x)),
2001
- `Failed to parse 'GetPromptVersionAudio' from JSON`,
2002
- );
2003
- }
2004
-
2005
- /** @internal */
2006
- export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
2007
- GetPromptVersionResponseFormatJsonSchema,
2008
- z.ZodTypeDef,
2009
- unknown
2010
- > = z.object({
2011
- description: z.string().optional(),
2012
- name: z.string(),
2013
- schema: z.any().optional(),
2014
- strict: z.boolean().default(false),
2015
- });
2016
-
2017
- export function getPromptVersionResponseFormatJsonSchemaFromJSON(
2018
- jsonString: string,
2019
- ): SafeParseResult<
2020
- GetPromptVersionResponseFormatJsonSchema,
2021
- SDKValidationError
2022
- > {
2023
- return safeParse(
2024
- jsonString,
2025
- (x) =>
2026
- GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
2027
- JSON.parse(x),
2028
- ),
2029
- `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
2030
- );
2031
- }
2032
-
2033
- /** @internal */
2034
- export const GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema:
2035
- z.ZodType<
2036
- GetPromptVersionResponseFormatPromptsJSONSchema,
2037
- z.ZodTypeDef,
2038
- unknown
2039
- > = z.object({
2040
- type: z.literal("json_schema"),
2041
- json_schema: z.lazy(() =>
2042
- GetPromptVersionResponseFormatJsonSchema$inboundSchema
2043
- ),
2044
- }).transform((v) => {
2045
- return remap$(v, {
2046
- "json_schema": "jsonSchema",
2047
- });
2048
- });
2049
-
2050
- export function getPromptVersionResponseFormatPromptsJSONSchemaFromJSON(
2051
- jsonString: string,
2052
- ): SafeParseResult<
2053
- GetPromptVersionResponseFormatPromptsJSONSchema,
2054
- SDKValidationError
2055
- > {
2056
- return safeParse(
2057
- jsonString,
2058
- (x) =>
2059
- GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema.parse(
2060
- JSON.parse(x),
2061
- ),
2062
- `Failed to parse 'GetPromptVersionResponseFormatPromptsJSONSchema' from JSON`,
2063
- );
2064
- }
2065
-
2066
- /** @internal */
2067
- export const GetPromptVersionResponseFormatJSONObject$inboundSchema: z.ZodType<
2068
- GetPromptVersionResponseFormatJSONObject,
2069
- z.ZodTypeDef,
2070
- unknown
2071
- > = z.object({
2072
- type: z.literal("json_object"),
2073
- });
2074
-
2075
- export function getPromptVersionResponseFormatJSONObjectFromJSON(
2076
- jsonString: string,
2077
- ): SafeParseResult<
2078
- GetPromptVersionResponseFormatJSONObject,
2079
- SDKValidationError
2080
- > {
2081
- return safeParse(
2082
- jsonString,
2083
- (x) =>
2084
- GetPromptVersionResponseFormatJSONObject$inboundSchema.parse(
2085
- JSON.parse(x),
2086
- ),
2087
- `Failed to parse 'GetPromptVersionResponseFormatJSONObject' from JSON`,
2088
- );
2089
- }
2090
-
2091
- /** @internal */
2092
- export const GetPromptVersionResponseFormatText$inboundSchema: z.ZodType<
2093
- GetPromptVersionResponseFormatText,
2094
- z.ZodTypeDef,
2095
- unknown
2096
- > = z.object({
2097
- type: z.literal("text"),
2098
- });
2099
-
2100
- export function getPromptVersionResponseFormatTextFromJSON(
2101
- jsonString: string,
2102
- ): SafeParseResult<GetPromptVersionResponseFormatText, SDKValidationError> {
2103
- return safeParse(
2104
- jsonString,
2105
- (x) =>
2106
- GetPromptVersionResponseFormatText$inboundSchema.parse(JSON.parse(x)),
2107
- `Failed to parse 'GetPromptVersionResponseFormatText' from JSON`,
2108
- );
2109
- }
2110
-
2111
- /** @internal */
2112
- export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
2113
- GetPromptVersionResponseFormat,
2114
- z.ZodTypeDef,
2115
- unknown
2116
- > = z.union([
2117
- z.lazy(() => GetPromptVersionResponseFormatText$inboundSchema),
2118
- z.lazy(() => GetPromptVersionResponseFormatJSONObject$inboundSchema),
2119
- z.lazy(() => GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
2120
- ]);
2121
-
2122
- export function getPromptVersionResponseFormatFromJSON(
2123
- jsonString: string,
2124
- ): SafeParseResult<GetPromptVersionResponseFormat, SDKValidationError> {
2125
- return safeParse(
2126
- jsonString,
2127
- (x) => GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)),
2128
- `Failed to parse 'GetPromptVersionResponseFormat' from JSON`,
2129
- );
2130
- }
2131
-
2132
- /** @internal */
2133
- export const GetPromptVersionReasoningEffort$inboundSchema: z.ZodNativeEnum<
2134
- typeof GetPromptVersionReasoningEffort
2135
- > = z.nativeEnum(GetPromptVersionReasoningEffort);
2136
-
2137
- /** @internal */
2138
- export const GetPromptVersionStop$inboundSchema: z.ZodType<
2139
- GetPromptVersionStop,
2140
- z.ZodTypeDef,
2141
- unknown
2142
- > = z.union([z.string(), z.array(z.string())]);
2143
-
2144
- export function getPromptVersionStopFromJSON(
2145
- jsonString: string,
2146
- ): SafeParseResult<GetPromptVersionStop, SDKValidationError> {
2147
- return safeParse(
2148
- jsonString,
2149
- (x) => GetPromptVersionStop$inboundSchema.parse(JSON.parse(x)),
2150
- `Failed to parse 'GetPromptVersionStop' from JSON`,
2151
- );
2152
- }
2153
-
2154
- /** @internal */
2155
- export const GetPromptVersionStreamOptions$inboundSchema: z.ZodType<
2156
- GetPromptVersionStreamOptions,
2157
- z.ZodTypeDef,
2158
- unknown
2159
- > = z.object({
2160
- include_usage: z.boolean().optional(),
2161
- }).transform((v) => {
2162
- return remap$(v, {
2163
- "include_usage": "includeUsage",
2164
- });
2165
- });
2166
-
2167
- export function getPromptVersionStreamOptionsFromJSON(
2168
- jsonString: string,
2169
- ): SafeParseResult<GetPromptVersionStreamOptions, SDKValidationError> {
2170
- return safeParse(
2171
- jsonString,
2172
- (x) => GetPromptVersionStreamOptions$inboundSchema.parse(JSON.parse(x)),
2173
- `Failed to parse 'GetPromptVersionStreamOptions' from JSON`,
2174
- );
2175
- }
2176
-
2177
- /** @internal */
2178
- export const GetPromptVersionThinking$inboundSchema: z.ZodType<
2179
- GetPromptVersionThinking,
2180
- z.ZodTypeDef,
2181
- unknown
2182
- > = z.union([
2183
- components.ThinkingConfigDisabledSchema$inboundSchema,
2184
- components.ThinkingConfigEnabledSchema$inboundSchema,
2185
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
2186
- ]);
2187
-
2188
- export function getPromptVersionThinkingFromJSON(
2189
- jsonString: string,
2190
- ): SafeParseResult<GetPromptVersionThinking, SDKValidationError> {
2191
- return safeParse(
2192
- jsonString,
2193
- (x) => GetPromptVersionThinking$inboundSchema.parse(JSON.parse(x)),
2194
- `Failed to parse 'GetPromptVersionThinking' from JSON`,
2195
- );
2196
- }
2197
-
2198
- /** @internal */
2199
- export const GetPromptVersionToolChoiceType$inboundSchema: z.ZodNativeEnum<
2200
- typeof GetPromptVersionToolChoiceType
2201
- > = z.nativeEnum(GetPromptVersionToolChoiceType);
2202
-
2203
- /** @internal */
2204
- export const GetPromptVersionToolChoiceFunction$inboundSchema: z.ZodType<
2205
- GetPromptVersionToolChoiceFunction,
2206
- z.ZodTypeDef,
2207
- unknown
2208
- > = z.object({
2209
- name: z.string(),
2210
- });
2211
-
2212
- export function getPromptVersionToolChoiceFunctionFromJSON(
2213
- jsonString: string,
2214
- ): SafeParseResult<GetPromptVersionToolChoiceFunction, SDKValidationError> {
2215
- return safeParse(
2216
- jsonString,
2217
- (x) =>
2218
- GetPromptVersionToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
2219
- `Failed to parse 'GetPromptVersionToolChoiceFunction' from JSON`,
2220
- );
2221
- }
2222
-
2223
- /** @internal */
2224
- export const GetPromptVersionToolChoice2$inboundSchema: z.ZodType<
2225
- GetPromptVersionToolChoice2,
2226
- z.ZodTypeDef,
2227
- unknown
2228
- > = z.object({
2229
- type: GetPromptVersionToolChoiceType$inboundSchema.optional(),
2230
- function: z.lazy(() => GetPromptVersionToolChoiceFunction$inboundSchema),
2231
- });
2232
-
2233
- export function getPromptVersionToolChoice2FromJSON(
2234
- jsonString: string,
2235
- ): SafeParseResult<GetPromptVersionToolChoice2, SDKValidationError> {
2236
- return safeParse(
2237
- jsonString,
2238
- (x) => GetPromptVersionToolChoice2$inboundSchema.parse(JSON.parse(x)),
2239
- `Failed to parse 'GetPromptVersionToolChoice2' from JSON`,
2240
- );
2241
- }
2242
-
2243
- /** @internal */
2244
- export const GetPromptVersionToolChoice1$inboundSchema: z.ZodNativeEnum<
2245
- typeof GetPromptVersionToolChoice1
2246
- > = z.nativeEnum(GetPromptVersionToolChoice1);
2247
-
2248
- /** @internal */
2249
- export const GetPromptVersionToolChoice$inboundSchema: z.ZodType<
2250
- GetPromptVersionToolChoice,
2251
- z.ZodTypeDef,
2252
- unknown
2253
- > = z.union([
2254
- z.lazy(() => GetPromptVersionToolChoice2$inboundSchema),
2255
- GetPromptVersionToolChoice1$inboundSchema,
2256
- ]);
2257
-
2258
- export function getPromptVersionToolChoiceFromJSON(
2259
- jsonString: string,
2260
- ): SafeParseResult<GetPromptVersionToolChoice, SDKValidationError> {
2261
- return safeParse(
2262
- jsonString,
2263
- (x) => GetPromptVersionToolChoice$inboundSchema.parse(JSON.parse(x)),
2264
- `Failed to parse 'GetPromptVersionToolChoice' from JSON`,
2265
- );
2266
- }
2267
-
2268
- /** @internal */
2269
- export const GetPromptVersionModalities$inboundSchema: z.ZodNativeEnum<
2270
- typeof GetPromptVersionModalities
2271
- > = z.nativeEnum(GetPromptVersionModalities);
2272
-
2273
- /** @internal */
2274
- export const GetPromptVersionId1$inboundSchema: z.ZodNativeEnum<
2275
- typeof GetPromptVersionId1
2276
- > = z.nativeEnum(GetPromptVersionId1);
2277
-
2278
- /** @internal */
2279
- export const GetPromptVersionId$inboundSchema: z.ZodType<
2280
- GetPromptVersionId,
2281
- z.ZodTypeDef,
2282
- unknown
2283
- > = z.union([GetPromptVersionId1$inboundSchema, z.string()]);
2284
-
2285
- export function getPromptVersionIdFromJSON(
2286
- jsonString: string,
2287
- ): SafeParseResult<GetPromptVersionId, SDKValidationError> {
2288
- return safeParse(
2289
- jsonString,
2290
- (x) => GetPromptVersionId$inboundSchema.parse(JSON.parse(x)),
2291
- `Failed to parse 'GetPromptVersionId' from JSON`,
2292
- );
2293
- }
2294
-
2295
- /** @internal */
2296
- export const GetPromptVersionExecuteOn$inboundSchema: z.ZodNativeEnum<
2297
- typeof GetPromptVersionExecuteOn
2298
- > = z.nativeEnum(GetPromptVersionExecuteOn);
2299
-
2300
- /** @internal */
2301
- export const GetPromptVersionGuardrails$inboundSchema: z.ZodType<
2302
- GetPromptVersionGuardrails,
2303
- z.ZodTypeDef,
2304
- unknown
2305
- > = z.object({
2306
- id: z.union([GetPromptVersionId1$inboundSchema, z.string()]),
2307
- execute_on: GetPromptVersionExecuteOn$inboundSchema,
2308
- }).transform((v) => {
2309
- return remap$(v, {
2310
- "execute_on": "executeOn",
2311
- });
2312
- });
2313
-
2314
- export function getPromptVersionGuardrailsFromJSON(
2315
- jsonString: string,
2316
- ): SafeParseResult<GetPromptVersionGuardrails, SDKValidationError> {
2317
- return safeParse(
2318
- jsonString,
2319
- (x) => GetPromptVersionGuardrails$inboundSchema.parse(JSON.parse(x)),
2320
- `Failed to parse 'GetPromptVersionGuardrails' from JSON`,
2321
- );
2322
- }
2323
-
2324
- /** @internal */
2325
- export const GetPromptVersionFallbacks$inboundSchema: z.ZodType<
2326
- GetPromptVersionFallbacks,
2327
- z.ZodTypeDef,
2328
- unknown
2329
- > = z.object({
2330
- model: z.string(),
2331
- });
2332
-
2333
- export function getPromptVersionFallbacksFromJSON(
2334
- jsonString: string,
2335
- ): SafeParseResult<GetPromptVersionFallbacks, SDKValidationError> {
2336
- return safeParse(
2337
- jsonString,
2338
- (x) => GetPromptVersionFallbacks$inboundSchema.parse(JSON.parse(x)),
2339
- `Failed to parse 'GetPromptVersionFallbacks' from JSON`,
2340
- );
2341
- }
2342
-
2343
- /** @internal */
2344
- export const GetPromptVersionRetry$inboundSchema: z.ZodType<
2345
- GetPromptVersionRetry,
2346
- z.ZodTypeDef,
2347
- unknown
2348
- > = z.object({
2349
- count: z.number().default(3),
2350
- on_codes: z.array(z.number()).optional(),
2351
- }).transform((v) => {
2352
- return remap$(v, {
2353
- "on_codes": "onCodes",
2354
- });
2355
- });
2356
-
2357
- export function getPromptVersionRetryFromJSON(
2358
- jsonString: string,
2359
- ): SafeParseResult<GetPromptVersionRetry, SDKValidationError> {
2360
- return safeParse(
2361
- jsonString,
2362
- (x) => GetPromptVersionRetry$inboundSchema.parse(JSON.parse(x)),
2363
- `Failed to parse 'GetPromptVersionRetry' from JSON`,
2364
- );
2365
- }
2366
-
2367
- /** @internal */
2368
- export const GetPromptVersionType$inboundSchema: z.ZodNativeEnum<
2369
- typeof GetPromptVersionType
2370
- > = z.nativeEnum(GetPromptVersionType);
2371
-
2372
- /** @internal */
2373
- export const GetPromptVersionCache$inboundSchema: z.ZodType<
2374
- GetPromptVersionCache,
2375
- z.ZodTypeDef,
2376
- unknown
2377
- > = z.object({
2378
- ttl: z.number().default(1800),
2379
- type: GetPromptVersionType$inboundSchema,
2380
- });
2381
-
2382
- export function getPromptVersionCacheFromJSON(
2383
- jsonString: string,
2384
- ): SafeParseResult<GetPromptVersionCache, SDKValidationError> {
2385
- return safeParse(
2386
- jsonString,
2387
- (x) => GetPromptVersionCache$inboundSchema.parse(JSON.parse(x)),
2388
- `Failed to parse 'GetPromptVersionCache' from JSON`,
2389
- );
2390
- }
2391
-
2392
- /** @internal */
2393
- export const GetPromptVersionLoadBalancerType$inboundSchema: z.ZodNativeEnum<
2394
- typeof GetPromptVersionLoadBalancerType
2395
- > = z.nativeEnum(GetPromptVersionLoadBalancerType);
2396
-
2397
- /** @internal */
2398
- export const GetPromptVersionLoadBalancerModels$inboundSchema: z.ZodType<
2399
- GetPromptVersionLoadBalancerModels,
2400
- z.ZodTypeDef,
2401
- unknown
2402
- > = z.object({
2403
- model: z.string(),
2404
- weight: z.number().default(0.5),
2405
- });
2406
-
2407
- export function getPromptVersionLoadBalancerModelsFromJSON(
2408
- jsonString: string,
2409
- ): SafeParseResult<GetPromptVersionLoadBalancerModels, SDKValidationError> {
2410
- return safeParse(
2411
- jsonString,
2412
- (x) =>
2413
- GetPromptVersionLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
2414
- `Failed to parse 'GetPromptVersionLoadBalancerModels' from JSON`,
2415
- );
2416
- }
2417
-
2418
- /** @internal */
2419
- export const GetPromptVersionLoadBalancer1$inboundSchema: z.ZodType<
2420
- GetPromptVersionLoadBalancer1,
2421
- z.ZodTypeDef,
2422
- unknown
2423
- > = z.object({
2424
- type: GetPromptVersionLoadBalancerType$inboundSchema,
2425
- models: z.array(
2426
- z.lazy(() => GetPromptVersionLoadBalancerModels$inboundSchema),
2427
- ),
2428
- });
2429
-
2430
- export function getPromptVersionLoadBalancer1FromJSON(
2431
- jsonString: string,
2432
- ): SafeParseResult<GetPromptVersionLoadBalancer1, SDKValidationError> {
2433
- return safeParse(
2434
- jsonString,
2435
- (x) => GetPromptVersionLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
2436
- `Failed to parse 'GetPromptVersionLoadBalancer1' from JSON`,
2437
- );
2438
- }
2439
-
2440
- /** @internal */
2441
- export const GetPromptVersionLoadBalancer$inboundSchema: z.ZodType<
2442
- GetPromptVersionLoadBalancer,
2443
- z.ZodTypeDef,
2444
- unknown
2445
- > = z.lazy(() => GetPromptVersionLoadBalancer1$inboundSchema);
2446
-
2447
- export function getPromptVersionLoadBalancerFromJSON(
2448
- jsonString: string,
2449
- ): SafeParseResult<GetPromptVersionLoadBalancer, SDKValidationError> {
2450
- return safeParse(
2451
- jsonString,
2452
- (x) => GetPromptVersionLoadBalancer$inboundSchema.parse(JSON.parse(x)),
2453
- `Failed to parse 'GetPromptVersionLoadBalancer' from JSON`,
2454
- );
2455
- }
2456
-
2457
- /** @internal */
2458
- export const GetPromptVersionTimeout$inboundSchema: z.ZodType<
2459
- GetPromptVersionTimeout,
2460
- z.ZodTypeDef,
2461
- unknown
2462
- > = z.object({
2463
- call_timeout: z.number(),
2464
- }).transform((v) => {
2465
- return remap$(v, {
2466
- "call_timeout": "callTimeout",
2467
- });
2468
- });
2469
-
2470
- export function getPromptVersionTimeoutFromJSON(
2471
- jsonString: string,
2472
- ): SafeParseResult<GetPromptVersionTimeout, SDKValidationError> {
2473
- return safeParse(
2474
- jsonString,
2475
- (x) => GetPromptVersionTimeout$inboundSchema.parse(JSON.parse(x)),
2476
- `Failed to parse 'GetPromptVersionTimeout' from JSON`,
2477
- );
2478
- }
2479
-
2480
- /** @internal */
2481
- export const GetPromptVersionContentPromptsResponse2002$inboundSchema:
2482
- z.ZodType<GetPromptVersionContentPromptsResponse2002, z.ZodTypeDef, unknown> =
2483
- components.TextContentPartSchema$inboundSchema;
2484
-
2485
- export function getPromptVersionContentPromptsResponse2002FromJSON(
2486
- jsonString: string,
2487
- ): SafeParseResult<
2488
- GetPromptVersionContentPromptsResponse2002,
2489
- SDKValidationError
2490
- > {
2491
- return safeParse(
2492
- jsonString,
2493
- (x) =>
2494
- GetPromptVersionContentPromptsResponse2002$inboundSchema.parse(
2495
- JSON.parse(x),
2496
- ),
2497
- `Failed to parse 'GetPromptVersionContentPromptsResponse2002' from JSON`,
2498
- );
2499
- }
2500
-
2501
- /** @internal */
2502
- export const GetPromptVersionMessagesPromptsResponse200Content$inboundSchema:
2503
- z.ZodType<
2504
- GetPromptVersionMessagesPromptsResponse200Content,
2505
- z.ZodTypeDef,
2506
- unknown
2507
- > = z.union([
2508
- z.string(),
2509
- z.array(components.TextContentPartSchema$inboundSchema),
2510
- ]);
2511
-
2512
- export function getPromptVersionMessagesPromptsResponse200ContentFromJSON(
2513
- jsonString: string,
2514
- ): SafeParseResult<
2515
- GetPromptVersionMessagesPromptsResponse200Content,
2516
- SDKValidationError
2517
- > {
2518
- return safeParse(
2519
- jsonString,
2520
- (x) =>
2521
- GetPromptVersionMessagesPromptsResponse200Content$inboundSchema.parse(
2522
- JSON.parse(x),
2523
- ),
2524
- `Failed to parse 'GetPromptVersionMessagesPromptsResponse200Content' from JSON`,
2525
- );
2526
- }
2527
-
2528
- /** @internal */
2529
- export const GetPromptVersionMessagesPromptsType$inboundSchema: z.ZodNativeEnum<
2530
- typeof GetPromptVersionMessagesPromptsType
2531
- > = z.nativeEnum(GetPromptVersionMessagesPromptsType);
2532
-
2533
- /** @internal */
2534
- export const GetPromptVersionMessagesTtl$inboundSchema: z.ZodNativeEnum<
2535
- typeof GetPromptVersionMessagesTtl
2536
- > = z.nativeEnum(GetPromptVersionMessagesTtl);
2537
-
2538
- /** @internal */
2539
- export const GetPromptVersionMessagesCacheControl$inboundSchema: z.ZodType<
2540
- GetPromptVersionMessagesCacheControl,
2541
- z.ZodTypeDef,
2542
- unknown
2543
- > = z.object({
2544
- type: GetPromptVersionMessagesPromptsType$inboundSchema,
2545
- ttl: GetPromptVersionMessagesTtl$inboundSchema.default("5m"),
2546
- });
2547
-
2548
- export function getPromptVersionMessagesCacheControlFromJSON(
2549
- jsonString: string,
2550
- ): SafeParseResult<GetPromptVersionMessagesCacheControl, SDKValidationError> {
2551
- return safeParse(
2552
- jsonString,
2553
- (x) =>
2554
- GetPromptVersionMessagesCacheControl$inboundSchema.parse(JSON.parse(x)),
2555
- `Failed to parse 'GetPromptVersionMessagesCacheControl' from JSON`,
2556
- );
2557
- }
2558
-
2559
- /** @internal */
2560
- export const GetPromptVersionMessagesToolMessage$inboundSchema: z.ZodType<
2561
- GetPromptVersionMessagesToolMessage,
2562
- z.ZodTypeDef,
2563
- unknown
2564
- > = z.object({
2565
- role: z.literal("tool"),
2566
- content: z.union([
2567
- z.string(),
2568
- z.array(components.TextContentPartSchema$inboundSchema),
2569
- ]),
2570
- tool_call_id: z.nullable(z.string()),
2571
- cache_control: z.lazy(() =>
2572
- GetPromptVersionMessagesCacheControl$inboundSchema
2573
- ).optional(),
2574
- }).transform((v) => {
2575
- return remap$(v, {
2576
- "tool_call_id": "toolCallId",
2577
- "cache_control": "cacheControl",
2578
- });
2579
- });
2580
-
2581
- export function getPromptVersionMessagesToolMessageFromJSON(
2582
- jsonString: string,
2583
- ): SafeParseResult<GetPromptVersionMessagesToolMessage, SDKValidationError> {
2584
- return safeParse(
2585
- jsonString,
2586
- (x) =>
2587
- GetPromptVersionMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
2588
- `Failed to parse 'GetPromptVersionMessagesToolMessage' from JSON`,
2589
- );
2590
- }
2591
-
2592
- /** @internal */
2593
- export const GetPromptVersionContentPromptsResponse2$inboundSchema: z.ZodType<
2594
- GetPromptVersionContentPromptsResponse2,
2595
- z.ZodTypeDef,
2596
- unknown
2597
- > = z.union([
2598
- components.TextContentPartSchema$inboundSchema.and(
2599
- z.object({ type: z.literal("text") }),
2600
- ),
2601
- components.RefusalPartSchema$inboundSchema,
2602
- components.ReasoningPartSchema$inboundSchema,
2603
- components.RedactedReasoningPartSchema$inboundSchema,
2604
- ]);
2605
-
2606
- export function getPromptVersionContentPromptsResponse2FromJSON(
2607
- jsonString: string,
2608
- ): SafeParseResult<
2609
- GetPromptVersionContentPromptsResponse2,
2610
- SDKValidationError
2611
- > {
2612
- return safeParse(
2613
- jsonString,
2614
- (x) =>
2615
- GetPromptVersionContentPromptsResponse2$inboundSchema.parse(
2616
- JSON.parse(x),
2617
- ),
2618
- `Failed to parse 'GetPromptVersionContentPromptsResponse2' from JSON`,
2619
- );
2620
- }
2621
-
2622
- /** @internal */
2623
- export const GetPromptVersionMessagesPromptsResponseContent$inboundSchema:
2624
- z.ZodType<
2625
- GetPromptVersionMessagesPromptsResponseContent,
2626
- z.ZodTypeDef,
2627
- unknown
2628
- > = z.union([
2629
- z.string(),
2630
- z.array(
2631
- z.union([
2632
- components.TextContentPartSchema$inboundSchema.and(
2633
- z.object({ type: z.literal("text") }),
2634
- ),
2635
- components.RefusalPartSchema$inboundSchema,
2636
- components.ReasoningPartSchema$inboundSchema,
2637
- components.RedactedReasoningPartSchema$inboundSchema,
2638
- ]),
2639
- ),
2640
- ]);
2641
-
2642
- export function getPromptVersionMessagesPromptsResponseContentFromJSON(
2643
- jsonString: string,
2644
- ): SafeParseResult<
2645
- GetPromptVersionMessagesPromptsResponseContent,
2646
- SDKValidationError
2647
- > {
2648
- return safeParse(
2649
- jsonString,
2650
- (x) =>
2651
- GetPromptVersionMessagesPromptsResponseContent$inboundSchema.parse(
2652
- JSON.parse(x),
2653
- ),
2654
- `Failed to parse 'GetPromptVersionMessagesPromptsResponseContent' from JSON`,
2655
- );
2656
- }
2657
-
2658
- /** @internal */
2659
- export const GetPromptVersionMessagesAudio$inboundSchema: z.ZodType<
2660
- GetPromptVersionMessagesAudio,
2661
- z.ZodTypeDef,
2662
- unknown
2663
- > = z.object({
2664
- id: z.string(),
2665
- });
2666
-
2667
- export function getPromptVersionMessagesAudioFromJSON(
2668
- jsonString: string,
2669
- ): SafeParseResult<GetPromptVersionMessagesAudio, SDKValidationError> {
2670
- return safeParse(
2671
- jsonString,
2672
- (x) => GetPromptVersionMessagesAudio$inboundSchema.parse(JSON.parse(x)),
2673
- `Failed to parse 'GetPromptVersionMessagesAudio' from JSON`,
2674
- );
2675
- }
2676
-
2677
- /** @internal */
2678
- export const GetPromptVersionMessagesType$inboundSchema: z.ZodNativeEnum<
2679
- typeof GetPromptVersionMessagesType
2680
- > = z.nativeEnum(GetPromptVersionMessagesType);
2681
-
2682
- /** @internal */
2683
- export const GetPromptVersionMessagesFunction$inboundSchema: z.ZodType<
2684
- GetPromptVersionMessagesFunction,
2685
- z.ZodTypeDef,
2686
- unknown
2687
- > = z.object({
2688
- name: z.string().optional(),
2689
- arguments: z.string().optional(),
2690
- });
2691
-
2692
- export function getPromptVersionMessagesFunctionFromJSON(
2693
- jsonString: string,
2694
- ): SafeParseResult<GetPromptVersionMessagesFunction, SDKValidationError> {
2695
- return safeParse(
2696
- jsonString,
2697
- (x) => GetPromptVersionMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2698
- `Failed to parse 'GetPromptVersionMessagesFunction' from JSON`,
2699
- );
2700
- }
2701
-
2702
- /** @internal */
2703
- export const GetPromptVersionMessagesToolCalls$inboundSchema: z.ZodType<
2704
- GetPromptVersionMessagesToolCalls,
2705
- z.ZodTypeDef,
2706
- unknown
2707
- > = z.object({
2708
- id: z.string(),
2709
- type: GetPromptVersionMessagesType$inboundSchema,
2710
- function: z.lazy(() => GetPromptVersionMessagesFunction$inboundSchema),
2711
- thought_signature: z.string().optional(),
2712
- }).transform((v) => {
2713
- return remap$(v, {
2714
- "thought_signature": "thoughtSignature",
2715
- });
2716
- });
2717
-
2718
- export function getPromptVersionMessagesToolCallsFromJSON(
2719
- jsonString: string,
2720
- ): SafeParseResult<GetPromptVersionMessagesToolCalls, SDKValidationError> {
2721
- return safeParse(
2722
- jsonString,
2723
- (x) => GetPromptVersionMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2724
- `Failed to parse 'GetPromptVersionMessagesToolCalls' from JSON`,
2725
- );
2726
- }
2727
-
2728
- /** @internal */
2729
- export const GetPromptVersionMessagesAssistantMessage$inboundSchema: z.ZodType<
2730
- GetPromptVersionMessagesAssistantMessage,
2731
- z.ZodTypeDef,
2732
- unknown
2733
- > = z.object({
2734
- content: z.nullable(
2735
- z.union([
2736
- z.string(),
2737
- z.array(
2738
- z.union([
2739
- components.TextContentPartSchema$inboundSchema.and(
2740
- z.object({ type: z.literal("text") }),
2741
- ),
2742
- components.RefusalPartSchema$inboundSchema,
2743
- components.ReasoningPartSchema$inboundSchema,
2744
- components.RedactedReasoningPartSchema$inboundSchema,
2745
- ]),
2746
- ),
2747
- ]),
2748
- ).optional(),
2749
- refusal: z.nullable(z.string()).optional(),
2750
- role: z.literal("assistant"),
2751
- name: z.string().optional(),
2752
- audio: z.nullable(z.lazy(() => GetPromptVersionMessagesAudio$inboundSchema))
2753
- .optional(),
2754
- tool_calls: z.array(
2755
- z.lazy(() => GetPromptVersionMessagesToolCalls$inboundSchema),
2756
- ).optional(),
2757
- }).transform((v) => {
2758
- return remap$(v, {
2759
- "tool_calls": "toolCalls",
2760
- });
2761
- });
2762
-
2763
- export function getPromptVersionMessagesAssistantMessageFromJSON(
2764
- jsonString: string,
2765
- ): SafeParseResult<
2766
- GetPromptVersionMessagesAssistantMessage,
2767
- SDKValidationError
2768
- > {
2769
- return safeParse(
2770
- jsonString,
2771
- (x) =>
2772
- GetPromptVersionMessagesAssistantMessage$inboundSchema.parse(
2773
- JSON.parse(x),
2774
- ),
2775
- `Failed to parse 'GetPromptVersionMessagesAssistantMessage' from JSON`,
2776
- );
2777
- }
2778
-
2779
- /** @internal */
2780
- export const GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema:
2781
- z.ZodNativeEnum<
2782
- typeof GetPromptVersion2PromptsResponse200ApplicationJSONType
2783
- > = z.nativeEnum(GetPromptVersion2PromptsResponse200ApplicationJSONType);
2784
-
2785
- /** @internal */
2786
- export const GetPromptVersion2Ttl$inboundSchema: z.ZodNativeEnum<
2787
- typeof GetPromptVersion2Ttl
2788
- > = z.nativeEnum(GetPromptVersion2Ttl);
2789
-
2790
- /** @internal */
2791
- export const GetPromptVersion2CacheControl$inboundSchema: z.ZodType<
2792
- GetPromptVersion2CacheControl,
2793
- z.ZodTypeDef,
2794
- unknown
2795
- > = z.object({
2796
- type: GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema,
2797
- ttl: GetPromptVersion2Ttl$inboundSchema.default("5m"),
2798
- });
2799
-
2800
- export function getPromptVersion2CacheControlFromJSON(
2801
- jsonString: string,
2802
- ): SafeParseResult<GetPromptVersion2CacheControl, SDKValidationError> {
2803
- return safeParse(
2804
- jsonString,
2805
- (x) => GetPromptVersion2CacheControl$inboundSchema.parse(JSON.parse(x)),
2806
- `Failed to parse 'GetPromptVersion2CacheControl' from JSON`,
2807
- );
2808
- }
2809
-
2810
- /** @internal */
2811
- export const GetPromptVersion24$inboundSchema: z.ZodType<
2812
- GetPromptVersion24,
2813
- z.ZodTypeDef,
2814
- unknown
2815
- > = z.object({
2816
- type: z.literal("file"),
2817
- cache_control: z.lazy(() => GetPromptVersion2CacheControl$inboundSchema)
2818
- .optional(),
2819
- file: components.FileContentPartSchema$inboundSchema,
2820
- }).transform((v) => {
2821
- return remap$(v, {
2822
- "cache_control": "cacheControl",
2823
- });
2824
- });
2825
-
2826
- export function getPromptVersion24FromJSON(
2827
- jsonString: string,
2828
- ): SafeParseResult<GetPromptVersion24, SDKValidationError> {
2829
- return safeParse(
2830
- jsonString,
2831
- (x) => GetPromptVersion24$inboundSchema.parse(JSON.parse(x)),
2832
- `Failed to parse 'GetPromptVersion24' from JSON`,
2833
- );
2834
- }
2835
-
2836
- /** @internal */
2837
- export const GetPromptVersionContentPrompts2$inboundSchema: z.ZodType<
2838
- GetPromptVersionContentPrompts2,
2839
- z.ZodTypeDef,
2840
- unknown
2841
- > = z.union([
2842
- components.TextContentPartSchema$inboundSchema.and(
2843
- z.object({ type: z.literal("text") }),
2844
- ),
2845
- components.ImageContentPartSchema$inboundSchema,
2846
- components.AudioContentPartSchema$inboundSchema,
2847
- z.lazy(() => GetPromptVersion24$inboundSchema),
2848
- ]);
2849
-
2850
- export function getPromptVersionContentPrompts2FromJSON(
2851
- jsonString: string,
2852
- ): SafeParseResult<GetPromptVersionContentPrompts2, SDKValidationError> {
2853
- return safeParse(
2854
- jsonString,
2855
- (x) => GetPromptVersionContentPrompts2$inboundSchema.parse(JSON.parse(x)),
2856
- `Failed to parse 'GetPromptVersionContentPrompts2' from JSON`,
2857
- );
2858
- }
2859
-
2860
- /** @internal */
2861
- export const GetPromptVersionMessagesPromptsContent$inboundSchema: z.ZodType<
2862
- GetPromptVersionMessagesPromptsContent,
2863
- z.ZodTypeDef,
2864
- unknown
2865
- > = z.union([
2866
- z.string(),
2867
- z.array(
2868
- z.union([
2869
- components.TextContentPartSchema$inboundSchema.and(
2870
- z.object({ type: z.literal("text") }),
2871
- ),
2872
- components.ImageContentPartSchema$inboundSchema,
2873
- components.AudioContentPartSchema$inboundSchema,
2874
- z.lazy(() => GetPromptVersion24$inboundSchema),
2875
- ]),
2876
- ),
2877
- ]);
2878
-
2879
- export function getPromptVersionMessagesPromptsContentFromJSON(
2880
- jsonString: string,
2881
- ): SafeParseResult<GetPromptVersionMessagesPromptsContent, SDKValidationError> {
2882
- return safeParse(
2883
- jsonString,
2884
- (x) =>
2885
- GetPromptVersionMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)),
2886
- `Failed to parse 'GetPromptVersionMessagesPromptsContent' from JSON`,
2887
- );
2888
- }
2889
-
2890
- /** @internal */
2891
- export const GetPromptVersionMessagesUserMessage$inboundSchema: z.ZodType<
2892
- GetPromptVersionMessagesUserMessage,
2893
- z.ZodTypeDef,
2894
- unknown
2895
- > = z.object({
2896
- role: z.literal("user"),
2897
- name: z.string().optional(),
2898
- content: z.union([
2899
- z.string(),
2900
- z.array(
2901
- z.union([
2902
- components.TextContentPartSchema$inboundSchema.and(
2903
- z.object({ type: z.literal("text") }),
2904
- ),
2905
- components.ImageContentPartSchema$inboundSchema,
2906
- components.AudioContentPartSchema$inboundSchema,
2907
- z.lazy(() => GetPromptVersion24$inboundSchema),
2908
- ]),
2909
- ),
2910
- ]),
2911
- });
2912
-
2913
- export function getPromptVersionMessagesUserMessageFromJSON(
2914
- jsonString: string,
2915
- ): SafeParseResult<GetPromptVersionMessagesUserMessage, SDKValidationError> {
2916
- return safeParse(
2917
- jsonString,
2918
- (x) =>
2919
- GetPromptVersionMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
2920
- `Failed to parse 'GetPromptVersionMessagesUserMessage' from JSON`,
2921
- );
2922
- }
2923
-
2924
- /** @internal */
2925
- export const GetPromptVersionMessagesContent$inboundSchema: z.ZodType<
2926
- GetPromptVersionMessagesContent,
2927
- z.ZodTypeDef,
2928
- unknown
2929
- > = z.union([
2930
- z.string(),
2931
- z.array(components.TextContentPartSchema$inboundSchema),
2932
- ]);
2933
-
2934
- export function getPromptVersionMessagesContentFromJSON(
2935
- jsonString: string,
2936
- ): SafeParseResult<GetPromptVersionMessagesContent, SDKValidationError> {
2937
- return safeParse(
2938
- jsonString,
2939
- (x) => GetPromptVersionMessagesContent$inboundSchema.parse(JSON.parse(x)),
2940
- `Failed to parse 'GetPromptVersionMessagesContent' from JSON`,
2941
- );
2942
- }
2943
-
2944
- /** @internal */
2945
- export const GetPromptVersionMessagesSystemMessage$inboundSchema: z.ZodType<
2946
- GetPromptVersionMessagesSystemMessage,
2947
- z.ZodTypeDef,
2948
- unknown
2949
- > = z.object({
2950
- role: z.literal("system"),
2951
- content: z.union([
2952
- z.string(),
2953
- z.array(components.TextContentPartSchema$inboundSchema),
2954
- ]),
2955
- name: z.string().optional(),
2956
- });
2957
-
2958
- export function getPromptVersionMessagesSystemMessageFromJSON(
2959
- jsonString: string,
2960
- ): SafeParseResult<GetPromptVersionMessagesSystemMessage, SDKValidationError> {
2961
- return safeParse(
2962
- jsonString,
2963
- (x) =>
2964
- GetPromptVersionMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
2965
- `Failed to parse 'GetPromptVersionMessagesSystemMessage' from JSON`,
2966
- );
2967
- }
2968
-
2969
- /** @internal */
2970
- export const GetPromptVersionPromptsMessages$inboundSchema: z.ZodType<
2971
- GetPromptVersionPromptsMessages,
2972
- z.ZodTypeDef,
2973
- unknown
2974
- > = z.union([
2975
- z.lazy(() => GetPromptVersionMessagesSystemMessage$inboundSchema),
2976
- z.lazy(() => GetPromptVersionMessagesUserMessage$inboundSchema),
2977
- z.lazy(() => GetPromptVersionMessagesAssistantMessage$inboundSchema),
2978
- z.lazy(() => GetPromptVersionMessagesToolMessage$inboundSchema),
2979
- ]);
2980
-
2981
- export function getPromptVersionPromptsMessagesFromJSON(
2982
- jsonString: string,
2983
- ): SafeParseResult<GetPromptVersionPromptsMessages, SDKValidationError> {
2984
- return safeParse(
2985
- jsonString,
2986
- (x) => GetPromptVersionPromptsMessages$inboundSchema.parse(JSON.parse(x)),
2987
- `Failed to parse 'GetPromptVersionPromptsMessages' from JSON`,
2988
- );
2989
- }
2990
-
2991
- /** @internal */
2992
- export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
2993
- GetPromptVersionPromptField,
2994
- z.ZodTypeDef,
2995
- unknown
2996
- > = z.object({
2997
- name: z.string().optional(),
2998
- audio: z.nullable(z.lazy(() => GetPromptVersionAudio$inboundSchema))
2999
- .optional(),
3000
- frequency_penalty: z.nullable(z.number()).optional(),
3001
- max_tokens: z.nullable(z.number().int()).optional(),
3002
- max_completion_tokens: z.nullable(z.number().int()).optional(),
3003
- logprobs: z.nullable(z.boolean()).optional(),
3004
- top_logprobs: z.nullable(z.number().int()).optional(),
3005
- n: z.nullable(z.number().int()).optional(),
3006
- presence_penalty: z.nullable(z.number()).optional(),
3007
- response_format: z.union([
3008
- z.lazy(() => GetPromptVersionResponseFormatText$inboundSchema),
3009
- z.lazy(() => GetPromptVersionResponseFormatJSONObject$inboundSchema),
3010
- z.lazy(() => GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
3011
- ]).optional(),
3012
- reasoning_effort: GetPromptVersionReasoningEffort$inboundSchema.optional(),
3013
- verbosity: z.string().optional(),
3014
- seed: z.nullable(z.number()).optional(),
3015
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3016
- stream_options: z.nullable(
3017
- z.lazy(() => GetPromptVersionStreamOptions$inboundSchema),
3018
- ).optional(),
3019
- thinking: z.union([
3020
- components.ThinkingConfigDisabledSchema$inboundSchema,
3021
- components.ThinkingConfigEnabledSchema$inboundSchema,
3022
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
3023
- ]).optional(),
3024
- temperature: z.nullable(z.number()).optional(),
3025
- top_p: z.nullable(z.number()).optional(),
3026
- top_k: z.nullable(z.number()).optional(),
3027
- tool_choice: z.union([
3028
- z.lazy(() => GetPromptVersionToolChoice2$inboundSchema),
3029
- GetPromptVersionToolChoice1$inboundSchema,
3030
- ]).optional(),
3031
- parallel_tool_calls: z.boolean().optional(),
3032
- modalities: z.nullable(z.array(GetPromptVersionModalities$inboundSchema))
3033
- .optional(),
3034
- guardrails: z.array(z.lazy(() => GetPromptVersionGuardrails$inboundSchema))
3035
- .optional(),
3036
- fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
3037
- .optional(),
3038
- retry: z.lazy(() => GetPromptVersionRetry$inboundSchema).optional(),
3039
- cache: z.lazy(() => GetPromptVersionCache$inboundSchema).optional(),
3040
- load_balancer: z.lazy(() => GetPromptVersionLoadBalancer1$inboundSchema)
3041
- .optional(),
3042
- timeout: z.lazy(() => GetPromptVersionTimeout$inboundSchema).optional(),
3043
- messages: z.array(
3044
- z.union([
3045
- z.lazy(() => GetPromptVersionMessagesSystemMessage$inboundSchema),
3046
- z.lazy(() => GetPromptVersionMessagesUserMessage$inboundSchema),
3047
- z.lazy(() => GetPromptVersionMessagesAssistantMessage$inboundSchema),
3048
- z.lazy(() => GetPromptVersionMessagesToolMessage$inboundSchema),
3049
- ]),
3050
- ).optional(),
3051
- model: z.nullable(z.string()).optional(),
3052
- version: z.string().optional(),
3053
- }).transform((v) => {
3054
- return remap$(v, {
3055
- "frequency_penalty": "frequencyPenalty",
3056
- "max_tokens": "maxTokens",
3057
- "max_completion_tokens": "maxCompletionTokens",
3058
- "top_logprobs": "topLogprobs",
3059
- "presence_penalty": "presencePenalty",
3060
- "response_format": "responseFormat",
3061
- "reasoning_effort": "reasoningEffort",
3062
- "stream_options": "streamOptions",
3063
- "top_p": "topP",
3064
- "top_k": "topK",
3065
- "tool_choice": "toolChoice",
3066
- "parallel_tool_calls": "parallelToolCalls",
3067
- "load_balancer": "loadBalancer",
3068
- });
3069
- });
3070
-
3071
- export function getPromptVersionPromptFieldFromJSON(
3072
- jsonString: string,
3073
- ): SafeParseResult<GetPromptVersionPromptField, SDKValidationError> {
3074
- return safeParse(
3075
- jsonString,
3076
- (x) => GetPromptVersionPromptField$inboundSchema.parse(JSON.parse(x)),
3077
- `Failed to parse 'GetPromptVersionPromptField' from JSON`,
3078
- );
3079
- }
3080
-
3081
- /** @internal */
3082
- export const GetPromptVersionUseCases$inboundSchema: z.ZodNativeEnum<
3083
- typeof GetPromptVersionUseCases
3084
- > = z.nativeEnum(GetPromptVersionUseCases);
3085
-
3086
- /** @internal */
3087
- export const GetPromptVersionLanguage$inboundSchema: z.ZodNativeEnum<
3088
- typeof GetPromptVersionLanguage
3089
- > = z.nativeEnum(GetPromptVersionLanguage);
3090
-
3091
- /** @internal */
3092
- export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
3093
- GetPromptVersionMetadata,
3094
- z.ZodTypeDef,
3095
- unknown
3096
- > = z.object({
3097
- use_cases: z.array(GetPromptVersionUseCases$inboundSchema).optional(),
3098
- language: z.nullable(GetPromptVersionLanguage$inboundSchema).optional(),
3099
- }).transform((v) => {
3100
- return remap$(v, {
3101
- "use_cases": "useCases",
3102
- });
3103
- });
3104
-
3105
- export function getPromptVersionMetadataFromJSON(
3106
- jsonString: string,
3107
- ): SafeParseResult<GetPromptVersionMetadata, SDKValidationError> {
3108
- return safeParse(
3109
- jsonString,
3110
- (x) => GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)),
3111
- `Failed to parse 'GetPromptVersionMetadata' from JSON`,
3112
- );
3113
- }
3114
-
3115
- /** @internal */
3116
- export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
3117
- GetPromptVersionResponseBody,
3118
- z.ZodTypeDef,
3119
- unknown
3120
- > = z.object({
3121
- _id: z.string(),
3122
- created_by_id: z.nullable(z.string()).optional(),
3123
- updated_by_id: z.nullable(z.string()).optional(),
3124
- description: z.nullable(z.string()).optional(),
3125
- prompt_config: z.lazy(() => GetPromptVersionPromptConfig$inboundSchema)
3126
- .optional(),
3127
- prompt: z.lazy(() => GetPromptVersionPromptField$inboundSchema),
3128
- metadata: z.lazy(() => GetPromptVersionMetadata$inboundSchema).optional(),
3129
- timestamp: z.string(),
3130
- }).transform((v) => {
3131
- return remap$(v, {
3132
- "_id": "id",
3133
- "created_by_id": "createdById",
3134
- "updated_by_id": "updatedById",
3135
- "prompt_config": "promptConfig",
3136
- });
3137
- });
3138
-
3139
- export function getPromptVersionResponseBodyFromJSON(
3140
- jsonString: string,
3141
- ): SafeParseResult<GetPromptVersionResponseBody, SDKValidationError> {
3142
- return safeParse(
3143
- jsonString,
3144
- (x) => GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)),
3145
- `Failed to parse 'GetPromptVersionResponseBody' from JSON`,
3146
- );
3147
- }