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