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

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