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

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