@orq-ai/node 4.5.3 → 4.6.0-rc.2

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