@orq-ai/node 4.7.0-rc.58 → 4.7.3

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