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

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