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