@orq-ai/node 4.10.0-rc.88 → 4.10.0

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