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