@orq-ai/node 4.4.2 → 4.5.0-rc.1

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