@orq-ai/node 4.4.0 → 4.5.0-rc.0

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