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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/examples/package-lock.json +4 -7
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/lib/config.js.map +1 -1
  6. package/models/components/conversationresponse.js +1 -1
  7. package/models/components/conversationwithmessagesresponse.js +1 -1
  8. package/models/components/partdoneevent.js +1 -1
  9. package/models/components/reasoningpart.js +1 -1
  10. package/models/operations/createcontact.js +1 -1
  11. package/models/operations/createconversation.js +1 -1
  12. package/models/operations/createconversationresponse.js +2 -2
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +4 -4
  15. package/models/operations/createdatasource.js +1 -1
  16. package/models/operations/createeval.js +14 -14
  17. package/models/operations/createidentity.js +1 -1
  18. package/models/operations/createtool.js +6 -6
  19. package/models/operations/fileget.js +1 -1
  20. package/models/operations/filelist.js +1 -1
  21. package/models/operations/fileupload.js +1 -1
  22. package/models/operations/generateconversationname.js +1 -1
  23. package/models/operations/getalltools.js +6 -6
  24. package/models/operations/getevals.js +14 -14
  25. package/models/operations/listdatasetdatapoints.js +4 -4
  26. package/models/operations/listdatasets.js +1 -1
  27. package/models/operations/listdatasources.js +1 -1
  28. package/models/operations/listidentities.js +1 -1
  29. package/models/operations/retrievedatapoint.js +4 -4
  30. package/models/operations/retrievedataset.js +1 -1
  31. package/models/operations/retrievedatasource.js +1 -1
  32. package/models/operations/retrieveidentity.js +1 -1
  33. package/models/operations/retrievetool.js +6 -6
  34. package/models/operations/runagent.js +1 -1
  35. package/models/operations/streamrunagent.js +1 -1
  36. package/models/operations/updateconversation.js +1 -1
  37. package/models/operations/updatedatapoint.js +4 -4
  38. package/models/operations/updatedataset.js +1 -1
  39. package/models/operations/updatedatasource.js +1 -1
  40. package/models/operations/updateeval.js +14 -14
  41. package/models/operations/updateidentity.js +1 -1
  42. package/models/operations/updatetool.js +7 -7
  43. package/package.json +4 -3
  44. package/src/lib/config.ts +2 -2
  45. package/src/models/components/conversationresponse.ts +1 -1
  46. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  47. package/src/models/components/partdoneevent.ts +1 -1
  48. package/src/models/components/reasoningpart.ts +1 -1
  49. package/src/models/operations/createcontact.ts +1 -1
  50. package/src/models/operations/createconversation.ts +1 -1
  51. package/src/models/operations/createconversationresponse.ts +2 -2
  52. package/src/models/operations/createdataset.ts +1 -1
  53. package/src/models/operations/createdatasetitem.ts +4 -4
  54. package/src/models/operations/createdatasource.ts +1 -1
  55. package/src/models/operations/createeval.ts +14 -14
  56. package/src/models/operations/createidentity.ts +1 -1
  57. package/src/models/operations/createtool.ts +6 -6
  58. package/src/models/operations/fileget.ts +1 -1
  59. package/src/models/operations/filelist.ts +1 -1
  60. package/src/models/operations/fileupload.ts +1 -1
  61. package/src/models/operations/generateconversationname.ts +1 -1
  62. package/src/models/operations/getalltools.ts +6 -6
  63. package/src/models/operations/getevals.ts +14 -14
  64. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  65. package/src/models/operations/listdatasets.ts +1 -1
  66. package/src/models/operations/listdatasources.ts +1 -1
  67. package/src/models/operations/listidentities.ts +1 -1
  68. package/src/models/operations/retrievedatapoint.ts +4 -4
  69. package/src/models/operations/retrievedataset.ts +1 -1
  70. package/src/models/operations/retrievedatasource.ts +1 -1
  71. package/src/models/operations/retrieveidentity.ts +1 -1
  72. package/src/models/operations/retrievetool.ts +6 -6
  73. package/src/models/operations/runagent.ts +1 -1
  74. package/src/models/operations/streamrunagent.ts +1 -1
  75. package/src/models/operations/updateconversation.ts +1 -1
  76. package/src/models/operations/updatedatapoint.ts +4 -4
  77. package/src/models/operations/updatedataset.ts +1 -1
  78. package/src/models/operations/updatedatasource.ts +1 -1
  79. package/src/models/operations/updateeval.ts +14 -14
  80. package/src/models/operations/updateidentity.ts +1 -1
  81. package/src/models/operations/updatetool.ts +7 -7
  82. package/_speakeasy/.github/action-inputs-config.json +0 -53
  83. package/_speakeasy/.github/action-security-config.json +0 -88
  84. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  85. package/packages/orq-rc/examples/package-lock.json +0 -610
  86. package/packages/orq-rc/examples/package.json +0 -18
  87. package/packages/orq-rc/jsr.json +0 -28
  88. package/packages/orq-rc/package-lock.json +0 -1740
  89. package/packages/orq-rc/package.json +0 -30
  90. package/packages/orq-rc/src/core.ts +0 -13
  91. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
  92. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  93. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  94. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  95. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  96. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  97. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  98. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  99. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  100. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  101. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  102. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
  103. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  104. package/packages/orq-rc/src/funcs/conversationsCreateConversationResponse.ts +0 -186
  105. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  106. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  107. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -186
  108. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -181
  109. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  110. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  111. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  112. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  113. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  114. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  115. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  116. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  117. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  118. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  119. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  120. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  121. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  122. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  123. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  124. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  125. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  126. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  127. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  128. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  129. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
  130. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  131. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  132. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  133. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  134. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  135. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  136. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  137. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
  138. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
  139. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
  140. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
  141. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
  142. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  143. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  144. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  145. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  146. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  147. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  148. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  149. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  150. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  151. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  152. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  153. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  154. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  155. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  156. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  157. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  158. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  159. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  160. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  161. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  162. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
  163. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  164. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  165. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
  166. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
  167. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  168. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
  169. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  170. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  171. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
  172. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
  173. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  174. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
  175. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
  176. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  177. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  178. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
  179. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  180. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  181. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  182. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  183. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  184. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  185. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
  186. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -262
  187. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -252
  188. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
  189. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
  190. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
  191. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
  192. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
  193. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
  194. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
  195. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
  196. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
  198. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  199. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  200. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  201. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  202. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  203. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  204. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  205. package/packages/orq-rc/src/hooks/global.ts +0 -44
  206. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  207. package/packages/orq-rc/src/hooks/index.ts +0 -6
  208. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  209. package/packages/orq-rc/src/hooks/types.ts +0 -112
  210. package/packages/orq-rc/src/index.ts +0 -9
  211. package/packages/orq-rc/src/lib/base64.ts +0 -37
  212. package/packages/orq-rc/src/lib/config.ts +0 -74
  213. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  214. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  215. package/packages/orq-rc/src/lib/env.ts +0 -89
  216. package/packages/orq-rc/src/lib/event-streams.ts +0 -152
  217. package/packages/orq-rc/src/lib/files.ts +0 -82
  218. package/packages/orq-rc/src/lib/http.ts +0 -323
  219. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  220. package/packages/orq-rc/src/lib/logger.ts +0 -9
  221. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  222. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  223. package/packages/orq-rc/src/lib/retries.ts +0 -218
  224. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  225. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  226. package/packages/orq-rc/src/lib/security.ts +0 -264
  227. package/packages/orq-rc/src/lib/url.ts +0 -33
  228. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  229. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  230. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  231. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  232. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  233. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  234. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  235. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  236. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -503
  237. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  238. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  239. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -132
  240. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +0 -149
  241. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -299
  242. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  243. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  244. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  245. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  246. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  247. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  248. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  249. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  250. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  251. package/packages/orq-rc/src/models/components/index.ts +0 -60
  252. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
  253. package/packages/orq-rc/src/models/components/messageresponse.ts +0 -127
  254. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  255. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  256. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
  257. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  258. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  259. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  260. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  261. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  262. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  263. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -318
  264. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  265. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -91
  266. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  267. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  268. package/packages/orq-rc/src/models/components/security.ts +0 -32
  269. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  270. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  271. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  272. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  273. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  274. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  275. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  276. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
  277. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
  278. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
  279. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  280. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  281. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  282. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  283. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  284. package/packages/orq-rc/src/models/components/usermessagerequest.ts +0 -136
  285. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  286. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  287. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  288. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  289. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  290. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  291. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -51
  292. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  293. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  294. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  295. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -99
  296. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  297. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  298. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  299. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  300. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  301. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  302. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  303. package/packages/orq-rc/src/models/errors/index.ts +0 -37
  304. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  305. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  306. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  307. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  308. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -51
  309. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
  310. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  311. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  312. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  313. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  314. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -51
  315. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  316. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  317. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  318. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  319. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  320. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -7093
  321. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -609
  322. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6381
  323. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  324. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3413
  325. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  326. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -227
  327. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +0 -498
  328. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  329. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
  330. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  331. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
  332. package/packages/orq-rc/src/models/operations/createeval.ts +0 -3128
  333. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
  334. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  335. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
  336. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  337. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  338. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
  339. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  340. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  341. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  342. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  343. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5400
  344. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  345. package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3294
  346. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  347. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
  348. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  349. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  350. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  351. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  352. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  353. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -39
  354. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  355. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  356. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  357. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  358. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  359. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  360. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  361. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  362. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  363. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  364. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  365. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  366. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
  367. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -689
  368. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1267
  369. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4613
  370. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
  371. package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
  372. package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
  373. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
  374. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -207
  375. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  376. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  377. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  378. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3163
  379. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
  380. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  381. package/packages/orq-rc/src/models/operations/getevals.ts +0 -2330
  382. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  383. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  384. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3088
  385. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3133
  386. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  387. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  388. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  389. package/packages/orq-rc/src/models/operations/index.ts +0 -118
  390. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -733
  391. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1129
  392. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3018
  393. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  394. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  395. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -104
  396. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  397. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  398. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  399. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  400. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  401. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
  402. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3208
  403. package/packages/orq-rc/src/models/operations/parse.ts +0 -777
  404. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  405. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  406. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3104
  407. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -41
  408. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  409. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  410. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  411. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
  412. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  413. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  414. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  415. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
  416. package/packages/orq-rc/src/models/operations/runagent.ts +0 -5351
  417. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  418. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -629
  419. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5546
  420. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -7447
  421. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  422. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -252
  423. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  424. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  425. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  426. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3303
  427. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  428. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  429. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  430. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  431. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -245
  432. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5471
  433. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2696
  434. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  435. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  436. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  437. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  438. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  439. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  440. package/packages/orq-rc/src/sdk/conversations.ts +0 -147
  441. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  442. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  443. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  444. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  445. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  446. package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
  447. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  448. package/packages/orq-rc/src/sdk/files.ts +0 -78
  449. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  450. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  451. package/packages/orq-rc/src/sdk/images.ts +0 -25
  452. package/packages/orq-rc/src/sdk/index.ts +0 -5
  453. package/packages/orq-rc/src/sdk/internal.ts +0 -28
  454. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  455. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  456. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  457. package/packages/orq-rc/src/sdk/models.ts +0 -25
  458. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  459. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  460. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
  461. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  462. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  463. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  464. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  465. package/packages/orq-rc/src/sdk/router.ts +0 -72
  466. package/packages/orq-rc/src/sdk/sdk.ts +0 -121
  467. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  468. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  469. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  470. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  471. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  472. package/packages/orq-rc/src/types/async.ts +0 -68
  473. package/packages/orq-rc/src/types/blobs.ts +0 -32
  474. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  475. package/packages/orq-rc/src/types/enums.ts +0 -45
  476. package/packages/orq-rc/src/types/fp.ts +0 -50
  477. package/packages/orq-rc/src/types/index.ts +0 -11
  478. package/packages/orq-rc/src/types/operations.ts +0 -105
  479. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  480. package/packages/orq-rc/src/types/streams.ts +0 -21
  481. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  482. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,1267 +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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type DeploymentsRequest = {
13
- /**
14
- * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
15
- */
16
- limit?: number | undefined;
17
- /**
18
- * 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.
19
- */
20
- startingAfter?: string | undefined;
21
- /**
22
- * 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.
23
- */
24
- endingBefore?: string | undefined;
25
- };
26
-
27
- export const DeploymentsObject = {
28
- List: "list",
29
- } as const;
30
- export type DeploymentsObject = ClosedEnum<typeof DeploymentsObject>;
31
-
32
- /**
33
- * The type of the tool. Currently, only `function` is supported.
34
- */
35
- export const DeploymentsType = {
36
- Function: "function",
37
- } as const;
38
- /**
39
- * The type of the tool. Currently, only `function` is supported.
40
- */
41
- export type DeploymentsType = ClosedEnum<typeof DeploymentsType>;
42
-
43
- export const DeploymentsDeploymentsResponseType = {
44
- Object: "object",
45
- } as const;
46
- export type DeploymentsDeploymentsResponseType = ClosedEnum<
47
- typeof DeploymentsDeploymentsResponseType
48
- >;
49
-
50
- /**
51
- * The parameters the functions accepts, described as a JSON Schema object.
52
- *
53
- * @remarks
54
- *
55
- * Omitting `parameters` defines a function with an empty parameter list.
56
- */
57
- export type DeploymentsParameters = {
58
- type: DeploymentsDeploymentsResponseType;
59
- properties: { [k: string]: any };
60
- required?: Array<string> | undefined;
61
- additionalProperties?: boolean | undefined;
62
- };
63
-
64
- export type DeploymentsFunction = {
65
- /**
66
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
67
- */
68
- name: string;
69
- /**
70
- * A description of what the function does, used by the model to choose when and how to call the function.
71
- */
72
- description?: string | undefined;
73
- strict?: boolean | undefined;
74
- /**
75
- * The parameters the functions accepts, described as a JSON Schema object.
76
- *
77
- * @remarks
78
- *
79
- * Omitting `parameters` defines a function with an empty parameter list.
80
- */
81
- parameters: DeploymentsParameters;
82
- };
83
-
84
- export type DeploymentsTools = {
85
- displayName?: string | undefined;
86
- /**
87
- * The type of the tool. Currently, only `function` is supported.
88
- */
89
- type: DeploymentsType;
90
- function: DeploymentsFunction;
91
- id?: number | undefined;
92
- };
93
-
94
- /**
95
- * The modality of the model
96
- */
97
- export const DeploymentsModelType = {
98
- Chat: "chat",
99
- Completion: "completion",
100
- Embedding: "embedding",
101
- Image: "image",
102
- Tts: "tts",
103
- Stt: "stt",
104
- Rerank: "rerank",
105
- Ocr: "ocr",
106
- Moderation: "moderation",
107
- Vision: "vision",
108
- } as const;
109
- /**
110
- * The modality of the model
111
- */
112
- export type DeploymentsModelType = ClosedEnum<typeof DeploymentsModelType>;
113
-
114
- /**
115
- * Only supported on `image` models.
116
- */
117
- export const DeploymentsFormat = {
118
- Url: "url",
119
- B64Json: "b64_json",
120
- Text: "text",
121
- JsonObject: "json_object",
122
- } as const;
123
- /**
124
- * Only supported on `image` models.
125
- */
126
- export type DeploymentsFormat = ClosedEnum<typeof DeploymentsFormat>;
127
-
128
- export const DeploymentsResponseFormat6 = {
129
- Json: "json",
130
- Text: "text",
131
- Srt: "srt",
132
- VerboseJson: "verbose_json",
133
- Vtt: "vtt",
134
- } as const;
135
- export type DeploymentsResponseFormat6 = ClosedEnum<
136
- typeof DeploymentsResponseFormat6
137
- >;
138
-
139
- export const DeploymentsResponseFormat5 = {
140
- Url: "url",
141
- Base64Json: "base64_json",
142
- } as const;
143
- export type DeploymentsResponseFormat5 = ClosedEnum<
144
- typeof DeploymentsResponseFormat5
145
- >;
146
-
147
- export const DeploymentsResponseFormat4 = {
148
- Mp3: "mp3",
149
- Opus: "opus",
150
- Aac: "aac",
151
- Flac: "flac",
152
- Wav: "wav",
153
- Pcm: "pcm",
154
- } as const;
155
- export type DeploymentsResponseFormat4 = ClosedEnum<
156
- typeof DeploymentsResponseFormat4
157
- >;
158
-
159
- export const DeploymentsResponseFormatDeploymentsType = {
160
- Text: "text",
161
- } as const;
162
- export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
163
- typeof DeploymentsResponseFormatDeploymentsType
164
- >;
165
-
166
- export type DeploymentsResponseFormat3 = {
167
- type: DeploymentsResponseFormatDeploymentsType;
168
- };
169
-
170
- export const DeploymentsResponseFormatType = {
171
- JsonObject: "json_object",
172
- } as const;
173
- export type DeploymentsResponseFormatType = ClosedEnum<
174
- typeof DeploymentsResponseFormatType
175
- >;
176
-
177
- export type DeploymentsResponseFormat2 = {
178
- type: DeploymentsResponseFormatType;
179
- };
180
-
181
- export const DeploymentsResponseFormatDeploymentsResponseType = {
182
- JsonSchema: "json_schema",
183
- } as const;
184
- export type DeploymentsResponseFormatDeploymentsResponseType = ClosedEnum<
185
- typeof DeploymentsResponseFormatDeploymentsResponseType
186
- >;
187
-
188
- export type DeploymentsResponseFormatJsonSchema = {
189
- name: string;
190
- description?: string | undefined;
191
- strict?: boolean | undefined;
192
- schema: { [k: string]: any };
193
- };
194
-
195
- export type DeploymentsResponseFormat1 = {
196
- type: DeploymentsResponseFormatDeploymentsResponseType;
197
- displayName?: string | undefined;
198
- jsonSchema: DeploymentsResponseFormatJsonSchema;
199
- };
200
-
201
- /**
202
- * An object specifying the format that the model must output.
203
- *
204
- * @remarks
205
- *
206
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
207
- *
208
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
209
- *
210
- * 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.
211
- */
212
- export type DeploymentsResponseFormat =
213
- | DeploymentsResponseFormat1
214
- | DeploymentsResponseFormat2
215
- | DeploymentsResponseFormat3
216
- | DeploymentsResponseFormat4
217
- | DeploymentsResponseFormat5
218
- | DeploymentsResponseFormat6;
219
-
220
- /**
221
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
222
- */
223
- export const DeploymentsPhotoRealVersion = {
224
- V1: "v1",
225
- V2: "v2",
226
- } as const;
227
- /**
228
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
229
- */
230
- export type DeploymentsPhotoRealVersion = ClosedEnum<
231
- typeof DeploymentsPhotoRealVersion
232
- >;
233
-
234
- /**
235
- * The format to return the embeddings
236
- */
237
- export const DeploymentsEncodingFormat = {
238
- Float: "float",
239
- Base64: "base64",
240
- } as const;
241
- /**
242
- * The format to return the embeddings
243
- */
244
- export type DeploymentsEncodingFormat = ClosedEnum<
245
- typeof DeploymentsEncodingFormat
246
- >;
247
-
248
- /**
249
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
250
- */
251
- export const DeploymentsReasoningEffort = {
252
- None: "none",
253
- Disable: "disable",
254
- Minimal: "minimal",
255
- Low: "low",
256
- Medium: "medium",
257
- High: "high",
258
- } as const;
259
- /**
260
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
261
- */
262
- export type DeploymentsReasoningEffort = ClosedEnum<
263
- typeof DeploymentsReasoningEffort
264
- >;
265
-
266
- /**
267
- * Controls the verbosity of the model output.
268
- */
269
- export const DeploymentsVerbosity = {
270
- Low: "low",
271
- Medium: "medium",
272
- High: "high",
273
- } as const;
274
- /**
275
- * Controls the verbosity of the model output.
276
- */
277
- export type DeploymentsVerbosity = ClosedEnum<typeof DeploymentsVerbosity>;
278
-
279
- /**
280
- * The level of thinking to use for the model. Only supported by `Google AI`
281
- */
282
- export const DeploymentsThinkingLevel = {
283
- Low: "low",
284
- High: "high",
285
- } as const;
286
- /**
287
- * The level of thinking to use for the model. Only supported by `Google AI`
288
- */
289
- export type DeploymentsThinkingLevel = ClosedEnum<
290
- typeof DeploymentsThinkingLevel
291
- >;
292
-
293
- /**
294
- * Model Parameters: Not all parameters apply to every model
295
- */
296
- export type DeploymentsModelParameters = {
297
- /**
298
- * Only supported on `chat` and `completion` models.
299
- */
300
- temperature?: number | undefined;
301
- /**
302
- * Only supported on `chat` and `completion` models.
303
- */
304
- maxTokens?: number | undefined;
305
- /**
306
- * Only supported on `chat` and `completion` models.
307
- */
308
- topK?: number | undefined;
309
- /**
310
- * Only supported on `chat` and `completion` models.
311
- */
312
- topP?: number | undefined;
313
- /**
314
- * Only supported on `chat` and `completion` models.
315
- */
316
- frequencyPenalty?: number | undefined;
317
- /**
318
- * Only supported on `chat` and `completion` models.
319
- */
320
- presencePenalty?: number | undefined;
321
- /**
322
- * Only supported on `image` models.
323
- */
324
- numImages?: number | undefined;
325
- /**
326
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
327
- */
328
- seed?: number | undefined;
329
- /**
330
- * Only supported on `image` models.
331
- */
332
- format?: DeploymentsFormat | undefined;
333
- /**
334
- * Only supported on `image` models.
335
- */
336
- dimensions?: string | undefined;
337
- /**
338
- * Only supported on `image` models.
339
- */
340
- quality?: string | undefined;
341
- /**
342
- * Only supported on `image` models.
343
- */
344
- style?: string | undefined;
345
- /**
346
- * An object specifying the format that the model must output.
347
- *
348
- * @remarks
349
- *
350
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
351
- *
352
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
353
- *
354
- * 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.
355
- */
356
- responseFormat?:
357
- | DeploymentsResponseFormat1
358
- | DeploymentsResponseFormat2
359
- | DeploymentsResponseFormat3
360
- | DeploymentsResponseFormat4
361
- | DeploymentsResponseFormat5
362
- | DeploymentsResponseFormat6
363
- | null
364
- | undefined;
365
- /**
366
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
367
- */
368
- photoRealVersion?: DeploymentsPhotoRealVersion | undefined;
369
- /**
370
- * The format to return the embeddings
371
- */
372
- encodingFormat?: DeploymentsEncodingFormat | undefined;
373
- /**
374
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
375
- */
376
- reasoningEffort?: DeploymentsReasoningEffort | undefined;
377
- /**
378
- * 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`
379
- */
380
- budgetTokens?: number | undefined;
381
- /**
382
- * Controls the verbosity of the model output.
383
- */
384
- verbosity?: DeploymentsVerbosity | undefined;
385
- /**
386
- * The level of thinking to use for the model. Only supported by `Google AI`
387
- */
388
- thinkingLevel?: DeploymentsThinkingLevel | undefined;
389
- };
390
-
391
- export const DeploymentsProvider = {
392
- Openai: "openai",
393
- Groq: "groq",
394
- Cohere: "cohere",
395
- Azure: "azure",
396
- Aws: "aws",
397
- Google: "google",
398
- GoogleAi: "google-ai",
399
- Huggingface: "huggingface",
400
- Togetherai: "togetherai",
401
- Perplexity: "perplexity",
402
- Anthropic: "anthropic",
403
- Leonardoai: "leonardoai",
404
- Fal: "fal",
405
- Nvidia: "nvidia",
406
- Jina: "jina",
407
- Elevenlabs: "elevenlabs",
408
- Litellm: "litellm",
409
- Cerebras: "cerebras",
410
- Openailike: "openailike",
411
- Bytedance: "bytedance",
412
- Mistral: "mistral",
413
- Deepseek: "deepseek",
414
- Contextualai: "contextualai",
415
- Moonshotai: "moonshotai",
416
- Zai: "zai",
417
- Minimax: "minimax",
418
- Slack: "slack",
419
- } as const;
420
- export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
421
-
422
- /**
423
- * The role of the prompt message
424
- */
425
- export const DeploymentsRole = {
426
- System: "system",
427
- Assistant: "assistant",
428
- User: "user",
429
- Exception: "exception",
430
- Tool: "tool",
431
- Prompt: "prompt",
432
- Correction: "correction",
433
- ExpectedOutput: "expected_output",
434
- } as const;
435
- /**
436
- * The role of the prompt message
437
- */
438
- export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
439
-
440
- export type Deployments2File = {
441
- /**
442
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
443
- */
444
- fileData?: string | undefined;
445
- /**
446
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
447
- */
448
- uri?: string | undefined;
449
- /**
450
- * MIME type of the file (e.g., application/pdf, image/png)
451
- */
452
- mimeType?: string | undefined;
453
- /**
454
- * The name of the file, used when passing the file to the model as a string.
455
- */
456
- filename?: string | undefined;
457
- };
458
-
459
- export type Deployments23 = {
460
- /**
461
- * The type of the content part. Always `file`.
462
- */
463
- type: "file";
464
- file: Deployments2File;
465
- };
466
-
467
- export type Deployments2ImageUrl = {
468
- /**
469
- * The orq.ai id of the image
470
- */
471
- id?: string | undefined;
472
- /**
473
- * Either a URL of the image or the base64 encoded data URI.
474
- */
475
- url: string;
476
- /**
477
- * Specifies the detail level of the image. Currently only supported with OpenAI models
478
- */
479
- detail?: string | undefined;
480
- };
481
-
482
- /**
483
- * The image part of the prompt message. Only supported with vision models.
484
- */
485
- export type Deployments22 = {
486
- type: "image_url";
487
- imageUrl: Deployments2ImageUrl;
488
- };
489
-
490
- /**
491
- * Text content part of a prompt message
492
- */
493
- export type Deployments21 = {
494
- type: "text";
495
- text: string;
496
- };
497
-
498
- export type DeploymentsContent2 = Deployments21 | Deployments22 | Deployments23;
499
-
500
- /**
501
- * 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.
502
- */
503
- export type DeploymentsContent =
504
- | string
505
- | Array<Deployments21 | Deployments22 | Deployments23>;
506
-
507
- export const DeploymentsDeploymentsType = {
508
- Function: "function",
509
- } as const;
510
- export type DeploymentsDeploymentsType = ClosedEnum<
511
- typeof DeploymentsDeploymentsType
512
- >;
513
-
514
- export type DeploymentsDeploymentsFunction = {
515
- name: string;
516
- /**
517
- * JSON string arguments for the functions
518
- */
519
- arguments: string;
520
- };
521
-
522
- export type DeploymentsToolCalls = {
523
- id?: string | undefined;
524
- index?: number | undefined;
525
- type: DeploymentsDeploymentsType;
526
- function: DeploymentsDeploymentsFunction;
527
- };
528
-
529
- export type DeploymentsMessages = {
530
- /**
531
- * The role of the prompt message
532
- */
533
- role: DeploymentsRole;
534
- /**
535
- * 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.
536
- */
537
- content: string | Array<Deployments21 | Deployments22 | Deployments23> | null;
538
- toolCalls?: Array<DeploymentsToolCalls> | undefined;
539
- toolCallId?: string | null | undefined;
540
- };
541
-
542
- export type DeploymentsPromptConfig = {
543
- tools: Array<DeploymentsTools>;
544
- model: string;
545
- /**
546
- * The modality of the model
547
- */
548
- modelType: DeploymentsModelType;
549
- /**
550
- * Model Parameters: Not all parameters apply to every model
551
- */
552
- modelParameters: DeploymentsModelParameters;
553
- provider: DeploymentsProvider;
554
- messages: Array<DeploymentsMessages>;
555
- };
556
-
557
- export type DeploymentsData = {
558
- /**
559
- * Unique identifier for the object.
560
- */
561
- id: string;
562
- /**
563
- * Date in ISO 8601 format at which the object was created.
564
- */
565
- created: string;
566
- /**
567
- * Date in ISO 8601 format at which the object was last updated.
568
- */
569
- updated: string;
570
- /**
571
- * The deployment unique key
572
- */
573
- key: string;
574
- /**
575
- * An arbitrary string attached to the object. Often useful for displaying to users.
576
- */
577
- description: string;
578
- promptConfig: DeploymentsPromptConfig;
579
- /**
580
- * THe version of the deployment
581
- */
582
- version: string;
583
- };
584
-
585
- /**
586
- * List all deployments
587
- */
588
- export type DeploymentsResponseBody = {
589
- object: DeploymentsObject;
590
- data: Array<DeploymentsData>;
591
- hasMore: boolean;
592
- };
593
-
594
- /** @internal */
595
- export type DeploymentsRequest$Outbound = {
596
- limit: number;
597
- starting_after?: string | undefined;
598
- ending_before?: string | undefined;
599
- };
600
-
601
- /** @internal */
602
- export const DeploymentsRequest$outboundSchema: z.ZodType<
603
- DeploymentsRequest$Outbound,
604
- z.ZodTypeDef,
605
- DeploymentsRequest
606
- > = z.object({
607
- limit: z.number().int().default(10),
608
- startingAfter: z.string().optional(),
609
- endingBefore: z.string().optional(),
610
- }).transform((v) => {
611
- return remap$(v, {
612
- startingAfter: "starting_after",
613
- endingBefore: "ending_before",
614
- });
615
- });
616
-
617
- export function deploymentsRequestToJSON(
618
- deploymentsRequest: DeploymentsRequest,
619
- ): string {
620
- return JSON.stringify(
621
- DeploymentsRequest$outboundSchema.parse(deploymentsRequest),
622
- );
623
- }
624
-
625
- /** @internal */
626
- export const DeploymentsObject$inboundSchema: z.ZodNativeEnum<
627
- typeof DeploymentsObject
628
- > = z.nativeEnum(DeploymentsObject);
629
-
630
- /** @internal */
631
- export const DeploymentsType$inboundSchema: z.ZodNativeEnum<
632
- typeof DeploymentsType
633
- > = z.nativeEnum(DeploymentsType);
634
-
635
- /** @internal */
636
- export const DeploymentsDeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
637
- typeof DeploymentsDeploymentsResponseType
638
- > = z.nativeEnum(DeploymentsDeploymentsResponseType);
639
-
640
- /** @internal */
641
- export const DeploymentsParameters$inboundSchema: z.ZodType<
642
- DeploymentsParameters,
643
- z.ZodTypeDef,
644
- unknown
645
- > = z.object({
646
- type: DeploymentsDeploymentsResponseType$inboundSchema,
647
- properties: z.record(z.any()),
648
- required: z.array(z.string()).optional(),
649
- additionalProperties: z.boolean().optional(),
650
- });
651
-
652
- export function deploymentsParametersFromJSON(
653
- jsonString: string,
654
- ): SafeParseResult<DeploymentsParameters, SDKValidationError> {
655
- return safeParse(
656
- jsonString,
657
- (x) => DeploymentsParameters$inboundSchema.parse(JSON.parse(x)),
658
- `Failed to parse 'DeploymentsParameters' from JSON`,
659
- );
660
- }
661
-
662
- /** @internal */
663
- export const DeploymentsFunction$inboundSchema: z.ZodType<
664
- DeploymentsFunction,
665
- z.ZodTypeDef,
666
- unknown
667
- > = z.object({
668
- name: z.string(),
669
- description: z.string().optional(),
670
- strict: z.boolean().optional(),
671
- parameters: z.lazy(() => DeploymentsParameters$inboundSchema),
672
- });
673
-
674
- export function deploymentsFunctionFromJSON(
675
- jsonString: string,
676
- ): SafeParseResult<DeploymentsFunction, SDKValidationError> {
677
- return safeParse(
678
- jsonString,
679
- (x) => DeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
680
- `Failed to parse 'DeploymentsFunction' from JSON`,
681
- );
682
- }
683
-
684
- /** @internal */
685
- export const DeploymentsTools$inboundSchema: z.ZodType<
686
- DeploymentsTools,
687
- z.ZodTypeDef,
688
- unknown
689
- > = z.object({
690
- display_name: z.string().optional(),
691
- type: DeploymentsType$inboundSchema,
692
- function: z.lazy(() => DeploymentsFunction$inboundSchema),
693
- id: z.number().optional(),
694
- }).transform((v) => {
695
- return remap$(v, {
696
- "display_name": "displayName",
697
- });
698
- });
699
-
700
- export function deploymentsToolsFromJSON(
701
- jsonString: string,
702
- ): SafeParseResult<DeploymentsTools, SDKValidationError> {
703
- return safeParse(
704
- jsonString,
705
- (x) => DeploymentsTools$inboundSchema.parse(JSON.parse(x)),
706
- `Failed to parse 'DeploymentsTools' from JSON`,
707
- );
708
- }
709
-
710
- /** @internal */
711
- export const DeploymentsModelType$inboundSchema: z.ZodNativeEnum<
712
- typeof DeploymentsModelType
713
- > = z.nativeEnum(DeploymentsModelType);
714
-
715
- /** @internal */
716
- export const DeploymentsFormat$inboundSchema: z.ZodNativeEnum<
717
- typeof DeploymentsFormat
718
- > = z.nativeEnum(DeploymentsFormat);
719
-
720
- /** @internal */
721
- export const DeploymentsResponseFormat6$inboundSchema: z.ZodNativeEnum<
722
- typeof DeploymentsResponseFormat6
723
- > = z.nativeEnum(DeploymentsResponseFormat6);
724
-
725
- /** @internal */
726
- export const DeploymentsResponseFormat5$inboundSchema: z.ZodNativeEnum<
727
- typeof DeploymentsResponseFormat5
728
- > = z.nativeEnum(DeploymentsResponseFormat5);
729
-
730
- /** @internal */
731
- export const DeploymentsResponseFormat4$inboundSchema: z.ZodNativeEnum<
732
- typeof DeploymentsResponseFormat4
733
- > = z.nativeEnum(DeploymentsResponseFormat4);
734
-
735
- /** @internal */
736
- export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
737
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
738
- .nativeEnum(DeploymentsResponseFormatDeploymentsType);
739
-
740
- /** @internal */
741
- export const DeploymentsResponseFormat3$inboundSchema: z.ZodType<
742
- DeploymentsResponseFormat3,
743
- z.ZodTypeDef,
744
- unknown
745
- > = z.object({
746
- type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
747
- });
748
-
749
- export function deploymentsResponseFormat3FromJSON(
750
- jsonString: string,
751
- ): SafeParseResult<DeploymentsResponseFormat3, SDKValidationError> {
752
- return safeParse(
753
- jsonString,
754
- (x) => DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
755
- `Failed to parse 'DeploymentsResponseFormat3' from JSON`,
756
- );
757
- }
758
-
759
- /** @internal */
760
- export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
761
- typeof DeploymentsResponseFormatType
762
- > = z.nativeEnum(DeploymentsResponseFormatType);
763
-
764
- /** @internal */
765
- export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
766
- DeploymentsResponseFormat2,
767
- z.ZodTypeDef,
768
- unknown
769
- > = z.object({
770
- type: DeploymentsResponseFormatType$inboundSchema,
771
- });
772
-
773
- export function deploymentsResponseFormat2FromJSON(
774
- jsonString: string,
775
- ): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
776
- return safeParse(
777
- jsonString,
778
- (x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
779
- `Failed to parse 'DeploymentsResponseFormat2' from JSON`,
780
- );
781
- }
782
-
783
- /** @internal */
784
- export const DeploymentsResponseFormatDeploymentsResponseType$inboundSchema:
785
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> = z
786
- .nativeEnum(DeploymentsResponseFormatDeploymentsResponseType);
787
-
788
- /** @internal */
789
- export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
790
- DeploymentsResponseFormatJsonSchema,
791
- z.ZodTypeDef,
792
- unknown
793
- > = z.object({
794
- name: z.string(),
795
- description: z.string().optional(),
796
- strict: z.boolean().optional(),
797
- schema: z.record(z.any()),
798
- });
799
-
800
- export function deploymentsResponseFormatJsonSchemaFromJSON(
801
- jsonString: string,
802
- ): SafeParseResult<DeploymentsResponseFormatJsonSchema, SDKValidationError> {
803
- return safeParse(
804
- jsonString,
805
- (x) =>
806
- DeploymentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
807
- `Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`,
808
- );
809
- }
810
-
811
- /** @internal */
812
- export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
813
- DeploymentsResponseFormat1,
814
- z.ZodTypeDef,
815
- unknown
816
- > = z.object({
817
- type: DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
818
- display_name: z.string().optional(),
819
- json_schema: z.lazy(() => DeploymentsResponseFormatJsonSchema$inboundSchema),
820
- }).transform((v) => {
821
- return remap$(v, {
822
- "display_name": "displayName",
823
- "json_schema": "jsonSchema",
824
- });
825
- });
826
-
827
- export function deploymentsResponseFormat1FromJSON(
828
- jsonString: string,
829
- ): SafeParseResult<DeploymentsResponseFormat1, SDKValidationError> {
830
- return safeParse(
831
- jsonString,
832
- (x) => DeploymentsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
833
- `Failed to parse 'DeploymentsResponseFormat1' from JSON`,
834
- );
835
- }
836
-
837
- /** @internal */
838
- export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
839
- DeploymentsResponseFormat,
840
- z.ZodTypeDef,
841
- unknown
842
- > = z.union([
843
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
844
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
845
- z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
846
- DeploymentsResponseFormat4$inboundSchema,
847
- DeploymentsResponseFormat5$inboundSchema,
848
- DeploymentsResponseFormat6$inboundSchema,
849
- ]);
850
-
851
- export function deploymentsResponseFormatFromJSON(
852
- jsonString: string,
853
- ): SafeParseResult<DeploymentsResponseFormat, SDKValidationError> {
854
- return safeParse(
855
- jsonString,
856
- (x) => DeploymentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
857
- `Failed to parse 'DeploymentsResponseFormat' from JSON`,
858
- );
859
- }
860
-
861
- /** @internal */
862
- export const DeploymentsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
863
- typeof DeploymentsPhotoRealVersion
864
- > = z.nativeEnum(DeploymentsPhotoRealVersion);
865
-
866
- /** @internal */
867
- export const DeploymentsEncodingFormat$inboundSchema: z.ZodNativeEnum<
868
- typeof DeploymentsEncodingFormat
869
- > = z.nativeEnum(DeploymentsEncodingFormat);
870
-
871
- /** @internal */
872
- export const DeploymentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
873
- typeof DeploymentsReasoningEffort
874
- > = z.nativeEnum(DeploymentsReasoningEffort);
875
-
876
- /** @internal */
877
- export const DeploymentsVerbosity$inboundSchema: z.ZodNativeEnum<
878
- typeof DeploymentsVerbosity
879
- > = z.nativeEnum(DeploymentsVerbosity);
880
-
881
- /** @internal */
882
- export const DeploymentsThinkingLevel$inboundSchema: z.ZodNativeEnum<
883
- typeof DeploymentsThinkingLevel
884
- > = z.nativeEnum(DeploymentsThinkingLevel);
885
-
886
- /** @internal */
887
- export const DeploymentsModelParameters$inboundSchema: z.ZodType<
888
- DeploymentsModelParameters,
889
- z.ZodTypeDef,
890
- unknown
891
- > = z.object({
892
- temperature: z.number().optional(),
893
- maxTokens: z.number().optional(),
894
- topK: z.number().optional(),
895
- topP: z.number().optional(),
896
- frequencyPenalty: z.number().optional(),
897
- presencePenalty: z.number().optional(),
898
- numImages: z.number().optional(),
899
- seed: z.number().optional(),
900
- format: DeploymentsFormat$inboundSchema.optional(),
901
- dimensions: z.string().optional(),
902
- quality: z.string().optional(),
903
- style: z.string().optional(),
904
- responseFormat: z.nullable(
905
- z.union([
906
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
907
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
908
- z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
909
- DeploymentsResponseFormat4$inboundSchema,
910
- DeploymentsResponseFormat5$inboundSchema,
911
- DeploymentsResponseFormat6$inboundSchema,
912
- ]),
913
- ).optional(),
914
- photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
915
- encoding_format: DeploymentsEncodingFormat$inboundSchema.optional(),
916
- reasoningEffort: DeploymentsReasoningEffort$inboundSchema.optional(),
917
- budgetTokens: z.number().optional(),
918
- verbosity: DeploymentsVerbosity$inboundSchema.optional(),
919
- thinkingLevel: DeploymentsThinkingLevel$inboundSchema.optional(),
920
- }).transform((v) => {
921
- return remap$(v, {
922
- "encoding_format": "encodingFormat",
923
- });
924
- });
925
-
926
- export function deploymentsModelParametersFromJSON(
927
- jsonString: string,
928
- ): SafeParseResult<DeploymentsModelParameters, SDKValidationError> {
929
- return safeParse(
930
- jsonString,
931
- (x) => DeploymentsModelParameters$inboundSchema.parse(JSON.parse(x)),
932
- `Failed to parse 'DeploymentsModelParameters' from JSON`,
933
- );
934
- }
935
-
936
- /** @internal */
937
- export const DeploymentsProvider$inboundSchema: z.ZodNativeEnum<
938
- typeof DeploymentsProvider
939
- > = z.nativeEnum(DeploymentsProvider);
940
-
941
- /** @internal */
942
- export const DeploymentsRole$inboundSchema: z.ZodNativeEnum<
943
- typeof DeploymentsRole
944
- > = z.nativeEnum(DeploymentsRole);
945
-
946
- /** @internal */
947
- export const Deployments2File$inboundSchema: z.ZodType<
948
- Deployments2File,
949
- z.ZodTypeDef,
950
- unknown
951
- > = z.object({
952
- file_data: z.string().optional(),
953
- uri: z.string().optional(),
954
- mimeType: z.string().optional(),
955
- filename: z.string().optional(),
956
- }).transform((v) => {
957
- return remap$(v, {
958
- "file_data": "fileData",
959
- });
960
- });
961
-
962
- export function deployments2FileFromJSON(
963
- jsonString: string,
964
- ): SafeParseResult<Deployments2File, SDKValidationError> {
965
- return safeParse(
966
- jsonString,
967
- (x) => Deployments2File$inboundSchema.parse(JSON.parse(x)),
968
- `Failed to parse 'Deployments2File' from JSON`,
969
- );
970
- }
971
-
972
- /** @internal */
973
- export const Deployments23$inboundSchema: z.ZodType<
974
- Deployments23,
975
- z.ZodTypeDef,
976
- unknown
977
- > = z.object({
978
- type: z.literal("file"),
979
- file: z.lazy(() => Deployments2File$inboundSchema),
980
- });
981
-
982
- export function deployments23FromJSON(
983
- jsonString: string,
984
- ): SafeParseResult<Deployments23, SDKValidationError> {
985
- return safeParse(
986
- jsonString,
987
- (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
988
- `Failed to parse 'Deployments23' from JSON`,
989
- );
990
- }
991
-
992
- /** @internal */
993
- export const Deployments2ImageUrl$inboundSchema: z.ZodType<
994
- Deployments2ImageUrl,
995
- z.ZodTypeDef,
996
- unknown
997
- > = z.object({
998
- id: z.string().optional(),
999
- url: z.string(),
1000
- detail: z.string().optional(),
1001
- });
1002
-
1003
- export function deployments2ImageUrlFromJSON(
1004
- jsonString: string,
1005
- ): SafeParseResult<Deployments2ImageUrl, SDKValidationError> {
1006
- return safeParse(
1007
- jsonString,
1008
- (x) => Deployments2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1009
- `Failed to parse 'Deployments2ImageUrl' from JSON`,
1010
- );
1011
- }
1012
-
1013
- /** @internal */
1014
- export const Deployments22$inboundSchema: z.ZodType<
1015
- Deployments22,
1016
- z.ZodTypeDef,
1017
- unknown
1018
- > = z.object({
1019
- type: z.literal("image_url"),
1020
- image_url: z.lazy(() => Deployments2ImageUrl$inboundSchema),
1021
- }).transform((v) => {
1022
- return remap$(v, {
1023
- "image_url": "imageUrl",
1024
- });
1025
- });
1026
-
1027
- export function deployments22FromJSON(
1028
- jsonString: string,
1029
- ): SafeParseResult<Deployments22, SDKValidationError> {
1030
- return safeParse(
1031
- jsonString,
1032
- (x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
1033
- `Failed to parse 'Deployments22' from JSON`,
1034
- );
1035
- }
1036
-
1037
- /** @internal */
1038
- export const Deployments21$inboundSchema: z.ZodType<
1039
- Deployments21,
1040
- z.ZodTypeDef,
1041
- unknown
1042
- > = z.object({
1043
- type: z.literal("text"),
1044
- text: z.string(),
1045
- });
1046
-
1047
- export function deployments21FromJSON(
1048
- jsonString: string,
1049
- ): SafeParseResult<Deployments21, SDKValidationError> {
1050
- return safeParse(
1051
- jsonString,
1052
- (x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
1053
- `Failed to parse 'Deployments21' from JSON`,
1054
- );
1055
- }
1056
-
1057
- /** @internal */
1058
- export const DeploymentsContent2$inboundSchema: z.ZodType<
1059
- DeploymentsContent2,
1060
- z.ZodTypeDef,
1061
- unknown
1062
- > = z.union([
1063
- z.lazy(() => Deployments21$inboundSchema),
1064
- z.lazy(() => Deployments22$inboundSchema),
1065
- z.lazy(() => Deployments23$inboundSchema),
1066
- ]);
1067
-
1068
- export function deploymentsContent2FromJSON(
1069
- jsonString: string,
1070
- ): SafeParseResult<DeploymentsContent2, SDKValidationError> {
1071
- return safeParse(
1072
- jsonString,
1073
- (x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
1074
- `Failed to parse 'DeploymentsContent2' from JSON`,
1075
- );
1076
- }
1077
-
1078
- /** @internal */
1079
- export const DeploymentsContent$inboundSchema: z.ZodType<
1080
- DeploymentsContent,
1081
- z.ZodTypeDef,
1082
- unknown
1083
- > = z.union([
1084
- z.string(),
1085
- z.array(z.union([
1086
- z.lazy(() => Deployments21$inboundSchema),
1087
- z.lazy(() => Deployments22$inboundSchema),
1088
- z.lazy(() => Deployments23$inboundSchema),
1089
- ])),
1090
- ]);
1091
-
1092
- export function deploymentsContentFromJSON(
1093
- jsonString: string,
1094
- ): SafeParseResult<DeploymentsContent, SDKValidationError> {
1095
- return safeParse(
1096
- jsonString,
1097
- (x) => DeploymentsContent$inboundSchema.parse(JSON.parse(x)),
1098
- `Failed to parse 'DeploymentsContent' from JSON`,
1099
- );
1100
- }
1101
-
1102
- /** @internal */
1103
- export const DeploymentsDeploymentsType$inboundSchema: z.ZodNativeEnum<
1104
- typeof DeploymentsDeploymentsType
1105
- > = z.nativeEnum(DeploymentsDeploymentsType);
1106
-
1107
- /** @internal */
1108
- export const DeploymentsDeploymentsFunction$inboundSchema: z.ZodType<
1109
- DeploymentsDeploymentsFunction,
1110
- z.ZodTypeDef,
1111
- unknown
1112
- > = z.object({
1113
- name: z.string(),
1114
- arguments: z.string(),
1115
- });
1116
-
1117
- export function deploymentsDeploymentsFunctionFromJSON(
1118
- jsonString: string,
1119
- ): SafeParseResult<DeploymentsDeploymentsFunction, SDKValidationError> {
1120
- return safeParse(
1121
- jsonString,
1122
- (x) => DeploymentsDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
1123
- `Failed to parse 'DeploymentsDeploymentsFunction' from JSON`,
1124
- );
1125
- }
1126
-
1127
- /** @internal */
1128
- export const DeploymentsToolCalls$inboundSchema: z.ZodType<
1129
- DeploymentsToolCalls,
1130
- z.ZodTypeDef,
1131
- unknown
1132
- > = z.object({
1133
- id: z.string().optional(),
1134
- index: z.number().optional(),
1135
- type: DeploymentsDeploymentsType$inboundSchema,
1136
- function: z.lazy(() => DeploymentsDeploymentsFunction$inboundSchema),
1137
- });
1138
-
1139
- export function deploymentsToolCallsFromJSON(
1140
- jsonString: string,
1141
- ): SafeParseResult<DeploymentsToolCalls, SDKValidationError> {
1142
- return safeParse(
1143
- jsonString,
1144
- (x) => DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)),
1145
- `Failed to parse 'DeploymentsToolCalls' from JSON`,
1146
- );
1147
- }
1148
-
1149
- /** @internal */
1150
- export const DeploymentsMessages$inboundSchema: z.ZodType<
1151
- DeploymentsMessages,
1152
- z.ZodTypeDef,
1153
- unknown
1154
- > = z.object({
1155
- role: DeploymentsRole$inboundSchema,
1156
- content: z.nullable(
1157
- z.union([
1158
- z.string(),
1159
- z.array(z.union([
1160
- z.lazy(() => Deployments21$inboundSchema),
1161
- z.lazy(() => Deployments22$inboundSchema),
1162
- z.lazy(() => Deployments23$inboundSchema),
1163
- ])),
1164
- ]),
1165
- ),
1166
- tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
1167
- .optional(),
1168
- tool_call_id: z.nullable(z.string()).optional(),
1169
- }).transform((v) => {
1170
- return remap$(v, {
1171
- "tool_calls": "toolCalls",
1172
- "tool_call_id": "toolCallId",
1173
- });
1174
- });
1175
-
1176
- export function deploymentsMessagesFromJSON(
1177
- jsonString: string,
1178
- ): SafeParseResult<DeploymentsMessages, SDKValidationError> {
1179
- return safeParse(
1180
- jsonString,
1181
- (x) => DeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
1182
- `Failed to parse 'DeploymentsMessages' from JSON`,
1183
- );
1184
- }
1185
-
1186
- /** @internal */
1187
- export const DeploymentsPromptConfig$inboundSchema: z.ZodType<
1188
- DeploymentsPromptConfig,
1189
- z.ZodTypeDef,
1190
- unknown
1191
- > = z.object({
1192
- tools: z.array(z.lazy(() => DeploymentsTools$inboundSchema)),
1193
- model: z.string(),
1194
- model_type: DeploymentsModelType$inboundSchema,
1195
- model_parameters: z.lazy(() => DeploymentsModelParameters$inboundSchema),
1196
- provider: DeploymentsProvider$inboundSchema,
1197
- messages: z.array(z.lazy(() => DeploymentsMessages$inboundSchema)),
1198
- }).transform((v) => {
1199
- return remap$(v, {
1200
- "model_type": "modelType",
1201
- "model_parameters": "modelParameters",
1202
- });
1203
- });
1204
-
1205
- export function deploymentsPromptConfigFromJSON(
1206
- jsonString: string,
1207
- ): SafeParseResult<DeploymentsPromptConfig, SDKValidationError> {
1208
- return safeParse(
1209
- jsonString,
1210
- (x) => DeploymentsPromptConfig$inboundSchema.parse(JSON.parse(x)),
1211
- `Failed to parse 'DeploymentsPromptConfig' from JSON`,
1212
- );
1213
- }
1214
-
1215
- /** @internal */
1216
- export const DeploymentsData$inboundSchema: z.ZodType<
1217
- DeploymentsData,
1218
- z.ZodTypeDef,
1219
- unknown
1220
- > = z.object({
1221
- id: z.string(),
1222
- created: z.string(),
1223
- updated: z.string(),
1224
- key: z.string(),
1225
- description: z.string(),
1226
- prompt_config: z.lazy(() => DeploymentsPromptConfig$inboundSchema),
1227
- version: z.string(),
1228
- }).transform((v) => {
1229
- return remap$(v, {
1230
- "prompt_config": "promptConfig",
1231
- });
1232
- });
1233
-
1234
- export function deploymentsDataFromJSON(
1235
- jsonString: string,
1236
- ): SafeParseResult<DeploymentsData, SDKValidationError> {
1237
- return safeParse(
1238
- jsonString,
1239
- (x) => DeploymentsData$inboundSchema.parse(JSON.parse(x)),
1240
- `Failed to parse 'DeploymentsData' from JSON`,
1241
- );
1242
- }
1243
-
1244
- /** @internal */
1245
- export const DeploymentsResponseBody$inboundSchema: z.ZodType<
1246
- DeploymentsResponseBody,
1247
- z.ZodTypeDef,
1248
- unknown
1249
- > = z.object({
1250
- object: DeploymentsObject$inboundSchema,
1251
- data: z.array(z.lazy(() => DeploymentsData$inboundSchema)),
1252
- has_more: z.boolean(),
1253
- }).transform((v) => {
1254
- return remap$(v, {
1255
- "has_more": "hasMore",
1256
- });
1257
- });
1258
-
1259
- export function deploymentsResponseBodyFromJSON(
1260
- jsonString: string,
1261
- ): SafeParseResult<DeploymentsResponseBody, SDKValidationError> {
1262
- return safeParse(
1263
- jsonString,
1264
- (x) => DeploymentsResponseBody$inboundSchema.parse(JSON.parse(x)),
1265
- `Failed to parse 'DeploymentsResponseBody' from JSON`,
1266
- );
1267
- }