@orq-ai/node 4.1.4 → 4.2.0-rc.11

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 (559) hide show
  1. package/README.md +18 -0
  2. package/bin/mcp-server.js +835 -380
  3. package/bin/mcp-server.js.map +61 -58
  4. package/examples/package-lock.json +4 -7
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/components/conversationresponse.js +2 -2
  14. package/models/components/invokedeploymentrequest.d.ts +1 -1
  15. package/models/components/partdoneevent.js +2 -2
  16. package/models/components/reasoningpart.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createconversation.js +2 -2
  19. package/models/operations/createdataset.js +2 -2
  20. package/models/operations/createdatasetitem.js +8 -8
  21. package/models/operations/createdatasource.js +2 -2
  22. package/models/operations/createeval.js +28 -28
  23. package/models/operations/createtool.js +12 -12
  24. package/models/operations/deploymentgetconfig.d.ts +1 -1
  25. package/models/operations/deploymentstream.d.ts +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/generateconversationname.js +2 -2
  30. package/models/operations/getalltools.js +12 -12
  31. package/models/operations/getevals.js +28 -28
  32. package/models/operations/listcontacts.js +2 -2
  33. package/models/operations/listdatasetdatapoints.js +8 -8
  34. package/models/operations/listdatasets.js +2 -2
  35. package/models/operations/listdatasources.js +2 -2
  36. package/models/operations/retrievecontact.js +2 -2
  37. package/models/operations/retrieveconversation.js +2 -2
  38. package/models/operations/retrievedatapoint.js +8 -8
  39. package/models/operations/retrievedataset.js +2 -2
  40. package/models/operations/retrievedatasource.js +2 -2
  41. package/models/operations/retrievetool.js +12 -12
  42. package/models/operations/runagent.js +2 -2
  43. package/models/operations/streamrunagent.js +2 -2
  44. package/models/operations/updatecontact.js +2 -2
  45. package/models/operations/updateconversation.js +2 -2
  46. package/models/operations/updatedatapoint.js +8 -8
  47. package/models/operations/updatedataset.js +2 -2
  48. package/models/operations/updatedatasource.js +2 -2
  49. package/models/operations/updateeval.js +28 -28
  50. package/models/operations/updatetool.js +14 -14
  51. package/package.json +4 -3
  52. package/src/lib/config.ts +3 -3
  53. package/src/mcp-server/mcp-server.ts +1 -1
  54. package/src/mcp-server/server.ts +1 -1
  55. package/src/models/components/conversationresponse.ts +2 -2
  56. package/src/models/components/invokedeploymentrequest.ts +1 -1
  57. package/src/models/components/partdoneevent.ts +2 -2
  58. package/src/models/components/reasoningpart.ts +2 -2
  59. package/src/models/operations/createcontact.ts +2 -2
  60. package/src/models/operations/createconversation.ts +2 -2
  61. package/src/models/operations/createdataset.ts +2 -2
  62. package/src/models/operations/createdatasetitem.ts +8 -8
  63. package/src/models/operations/createdatasource.ts +2 -2
  64. package/src/models/operations/createeval.ts +28 -28
  65. package/src/models/operations/createtool.ts +12 -12
  66. package/src/models/operations/deploymentgetconfig.ts +1 -1
  67. package/src/models/operations/deploymentstream.ts +1 -1
  68. package/src/models/operations/fileget.ts +2 -2
  69. package/src/models/operations/filelist.ts +2 -2
  70. package/src/models/operations/fileupload.ts +2 -2
  71. package/src/models/operations/generateconversationname.ts +2 -2
  72. package/src/models/operations/getalltools.ts +12 -12
  73. package/src/models/operations/getevals.ts +28 -28
  74. package/src/models/operations/listcontacts.ts +2 -2
  75. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  76. package/src/models/operations/listdatasets.ts +2 -2
  77. package/src/models/operations/listdatasources.ts +2 -2
  78. package/src/models/operations/retrievecontact.ts +2 -2
  79. package/src/models/operations/retrieveconversation.ts +2 -2
  80. package/src/models/operations/retrievedatapoint.ts +8 -8
  81. package/src/models/operations/retrievedataset.ts +2 -2
  82. package/src/models/operations/retrievedatasource.ts +2 -2
  83. package/src/models/operations/retrievetool.ts +12 -12
  84. package/src/models/operations/runagent.ts +2 -2
  85. package/src/models/operations/streamrunagent.ts +2 -2
  86. package/src/models/operations/updatecontact.ts +2 -2
  87. package/src/models/operations/updateconversation.ts +2 -2
  88. package/src/models/operations/updatedatapoint.ts +8 -8
  89. package/src/models/operations/updatedataset.ts +2 -2
  90. package/src/models/operations/updatedatasource.ts +2 -2
  91. package/src/models/operations/updateeval.ts +28 -28
  92. package/src/models/operations/updatetool.ts +14 -14
  93. package/_speakeasy/.github/action-inputs-config.json +0 -53
  94. package/_speakeasy/.github/action-security-config.json +0 -88
  95. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  96. package/packages/orq-rc/examples/package-lock.json +0 -619
  97. package/packages/orq-rc/examples/package.json +0 -18
  98. package/packages/orq-rc/jsr.json +0 -28
  99. package/packages/orq-rc/package-lock.json +0 -3552
  100. package/packages/orq-rc/package.json +0 -40
  101. package/packages/orq-rc/src/core.ts +0 -13
  102. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -170
  103. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  104. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  105. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  106. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  107. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  108. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  109. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  110. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  111. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  112. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  113. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  114. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  115. package/packages/orq-rc/src/funcs/contactsList.ts +0 -170
  116. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  117. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  118. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  119. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  120. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  121. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -181
  122. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -180
  123. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  124. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  125. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  126. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  127. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  128. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  129. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  130. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  131. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  132. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  133. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  134. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  135. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  136. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  137. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  138. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  139. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  140. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  141. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  142. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  143. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  144. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  145. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  146. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -190
  147. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  148. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  149. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  150. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  151. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  152. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  153. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  154. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  155. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  156. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  157. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  158. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  159. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  160. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  161. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  162. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  163. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  164. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  165. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  166. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  167. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  168. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  169. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  170. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  171. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  172. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  173. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  174. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  175. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  176. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  177. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  178. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -183
  179. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  180. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  181. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  182. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  183. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  184. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  185. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  186. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  187. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  188. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  189. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  190. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  191. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  192. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  193. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  194. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  195. package/packages/orq-rc/src/funcs/routerChatCompletions.ts +0 -172
  196. package/packages/orq-rc/src/funcs/routerImagesGenerate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
  198. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  199. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  200. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  201. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  202. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  203. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  204. package/packages/orq-rc/src/hooks/global.ts +0 -44
  205. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  206. package/packages/orq-rc/src/hooks/index.ts +0 -6
  207. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  208. package/packages/orq-rc/src/hooks/types.ts +0 -112
  209. package/packages/orq-rc/src/index.ts +0 -9
  210. package/packages/orq-rc/src/lib/base64.ts +0 -37
  211. package/packages/orq-rc/src/lib/config.ts +0 -74
  212. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  213. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  214. package/packages/orq-rc/src/lib/env.ts +0 -89
  215. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  216. package/packages/orq-rc/src/lib/files.ts +0 -82
  217. package/packages/orq-rc/src/lib/http.ts +0 -323
  218. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  219. package/packages/orq-rc/src/lib/logger.ts +0 -9
  220. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  221. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  222. package/packages/orq-rc/src/lib/retries.ts +0 -218
  223. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  224. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  225. package/packages/orq-rc/src/lib/security.ts +0 -264
  226. package/packages/orq-rc/src/lib/url.ts +0 -33
  227. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  228. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  229. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  230. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  231. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  232. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  233. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -121
  234. package/packages/orq-rc/src/mcp-server/resources.ts +0 -176
  235. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  236. package/packages/orq-rc/src/mcp-server/server.ts +0 -267
  237. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  238. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  239. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  240. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
  241. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
  242. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -40
  243. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  245. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
  246. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -40
  248. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/conversationsCreate.ts +0 -37
  255. package/packages/orq-rc/src/mcp-server/tools/conversationsDelete.ts +0 -35
  256. package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +0 -40
  257. package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +0 -41
  258. package/packages/orq-rc/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/conversationsUpdate.ts +0 -40
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  277. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  278. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
  280. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -39
  282. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
  283. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  284. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  287. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  323. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  324. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  325. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  330. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  331. package/packages/orq-rc/src/mcp-server/tools/routerChatCompletions.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/routerImagesGenerate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  335. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersions.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -39
  337. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  339. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  340. package/packages/orq-rc/src/mcp-server/tools.ts +0 -133
  341. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -173
  342. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -309
  343. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -125
  344. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -150
  345. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -125
  346. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -801
  347. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -305
  348. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -185
  349. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -822
  350. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -1399
  351. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  352. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -194
  353. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -340
  354. package/packages/orq-rc/src/models/components/datapart.ts +0 -58
  355. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -112
  356. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -125
  357. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -105
  358. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -113
  359. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  360. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  361. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  362. package/packages/orq-rc/src/models/components/index.ts +0 -55
  363. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -5271
  364. package/packages/orq-rc/src/models/components/partdelta.ts +0 -80
  365. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -120
  366. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -216
  367. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -99
  368. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -90
  369. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  370. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  371. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  372. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -526
  373. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -118
  374. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -124
  375. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -148
  376. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -27
  377. package/packages/orq-rc/src/models/components/security.ts +0 -56
  378. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  379. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  380. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  381. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  382. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -108
  383. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -83
  384. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -121
  385. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -392
  386. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -360
  387. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -336
  388. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -123
  389. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  390. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -130
  391. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -141
  392. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -132
  393. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  394. package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
  395. package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
  396. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
  397. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
  398. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -67
  399. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
  400. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -132
  401. package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
  402. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
  403. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -67
  404. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
  405. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -67
  406. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -69
  407. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
  408. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  409. package/packages/orq-rc/src/models/errors/index.ts +0 -35
  410. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -128
  411. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  412. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  413. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
  414. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
  415. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -67
  416. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  417. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
  418. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
  419. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
  420. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
  421. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -67
  422. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
  423. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
  424. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
  425. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
  426. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8610
  427. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -770
  428. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -8948
  429. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
  430. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
  431. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -314
  432. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
  433. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -4044
  434. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -662
  435. package/packages/orq-rc/src/models/operations/createeval.ts +0 -5397
  436. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
  437. package/packages/orq-rc/src/models/operations/createimage.ts +0 -966
  438. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
  439. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -241
  440. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -245
  441. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
  442. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5320
  443. package/packages/orq-rc/src/models/operations/createtool.ts +0 -3791
  444. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
  445. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
  446. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
  447. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
  448. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -63
  449. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
  450. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
  451. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
  452. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
  453. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
  454. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
  455. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
  456. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
  457. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
  458. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
  459. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -3596
  460. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -7042
  461. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1136
  462. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2005
  463. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -7134
  464. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
  465. package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
  466. package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
  467. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
  468. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -319
  469. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -280
  470. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -305
  471. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
  472. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1991
  473. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2214
  474. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
  475. package/packages/orq-rc/src/models/operations/getevals.ts +0 -4268
  476. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
  477. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
  478. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1875
  479. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1892
  480. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -274
  481. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
  482. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -276
  483. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -194
  484. package/packages/orq-rc/src/models/operations/index.ts +0 -106
  485. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -957
  486. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1878
  487. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3811
  488. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
  489. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
  490. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -420
  491. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -151
  492. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2486
  493. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
  494. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
  495. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1048
  496. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
  497. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1989
  498. package/packages/orq-rc/src/models/operations/parse.ts +0 -945
  499. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
  500. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3956
  501. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
  502. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -262
  503. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2334
  504. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
  505. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
  506. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -183
  507. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -192
  508. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
  509. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2262
  510. package/packages/orq-rc/src/models/operations/runagent.ts +0 -6502
  511. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
  512. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -838
  513. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -6833
  514. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -9054
  515. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
  516. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
  517. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -377
  518. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -4058
  519. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
  520. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
  521. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -5776
  522. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
  523. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -250
  524. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -254
  525. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -375
  526. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5618
  527. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4114
  528. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  529. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  530. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  531. package/packages/orq-rc/src/sdk/conversations.ts +0 -125
  532. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  533. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  534. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  535. package/packages/orq-rc/src/sdk/evaluators.ts +0 -45
  536. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  537. package/packages/orq-rc/src/sdk/files.ts +0 -78
  538. package/packages/orq-rc/src/sdk/index.ts +0 -5
  539. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  540. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  541. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  542. package/packages/orq-rc/src/sdk/models.ts +0 -25
  543. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  544. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  545. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  546. package/packages/orq-rc/src/sdk/router.ts +0 -52
  547. package/packages/orq-rc/src/sdk/sdk.ts +0 -109
  548. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  549. package/packages/orq-rc/src/types/async.ts +0 -68
  550. package/packages/orq-rc/src/types/blobs.ts +0 -32
  551. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  552. package/packages/orq-rc/src/types/enums.ts +0 -45
  553. package/packages/orq-rc/src/types/fp.ts +0 -50
  554. package/packages/orq-rc/src/types/index.ts +0 -11
  555. package/packages/orq-rc/src/types/operations.ts +0 -105
  556. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  557. package/packages/orq-rc/src/types/streams.ts +0 -21
  558. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  559. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,2005 +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
- Moderation: "moderation",
106
- Vision: "vision",
107
- } as const;
108
- /**
109
- * The modality of the model
110
- */
111
- export type DeploymentsModelType = ClosedEnum<typeof DeploymentsModelType>;
112
-
113
- /**
114
- * Only supported on `image` models.
115
- */
116
- export const DeploymentsFormat = {
117
- Url: "url",
118
- B64Json: "b64_json",
119
- Text: "text",
120
- JsonObject: "json_object",
121
- } as const;
122
- /**
123
- * Only supported on `image` models.
124
- */
125
- export type DeploymentsFormat = ClosedEnum<typeof DeploymentsFormat>;
126
-
127
- export const DeploymentsResponseFormat6 = {
128
- Json: "json",
129
- Text: "text",
130
- Srt: "srt",
131
- VerboseJson: "verbose_json",
132
- Vtt: "vtt",
133
- } as const;
134
- export type DeploymentsResponseFormat6 = ClosedEnum<
135
- typeof DeploymentsResponseFormat6
136
- >;
137
-
138
- export const DeploymentsResponseFormat5 = {
139
- Url: "url",
140
- Base64Json: "base64_json",
141
- } as const;
142
- export type DeploymentsResponseFormat5 = ClosedEnum<
143
- typeof DeploymentsResponseFormat5
144
- >;
145
-
146
- export const DeploymentsResponseFormat4 = {
147
- Mp3: "mp3",
148
- Opus: "opus",
149
- Aac: "aac",
150
- Flac: "flac",
151
- Wav: "wav",
152
- Pcm: "pcm",
153
- } as const;
154
- export type DeploymentsResponseFormat4 = ClosedEnum<
155
- typeof DeploymentsResponseFormat4
156
- >;
157
-
158
- export const DeploymentsResponseFormatDeploymentsType = {
159
- Text: "text",
160
- } as const;
161
- export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
162
- typeof DeploymentsResponseFormatDeploymentsType
163
- >;
164
-
165
- export type DeploymentsResponseFormat3 = {
166
- type: DeploymentsResponseFormatDeploymentsType;
167
- };
168
-
169
- export const DeploymentsResponseFormatType = {
170
- JsonObject: "json_object",
171
- } as const;
172
- export type DeploymentsResponseFormatType = ClosedEnum<
173
- typeof DeploymentsResponseFormatType
174
- >;
175
-
176
- export type DeploymentsResponseFormat2 = {
177
- type: DeploymentsResponseFormatType;
178
- };
179
-
180
- export const DeploymentsResponseFormatDeploymentsResponseType = {
181
- JsonSchema: "json_schema",
182
- } as const;
183
- export type DeploymentsResponseFormatDeploymentsResponseType = ClosedEnum<
184
- typeof DeploymentsResponseFormatDeploymentsResponseType
185
- >;
186
-
187
- export type DeploymentsResponseFormatJsonSchema = {
188
- name: string;
189
- description?: string | undefined;
190
- strict?: boolean | undefined;
191
- schema: { [k: string]: any };
192
- };
193
-
194
- export type DeploymentsResponseFormat1 = {
195
- type: DeploymentsResponseFormatDeploymentsResponseType;
196
- displayName?: string | undefined;
197
- jsonSchema: DeploymentsResponseFormatJsonSchema;
198
- };
199
-
200
- /**
201
- * An object specifying the format that the model must output.
202
- *
203
- * @remarks
204
- *
205
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
206
- *
207
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
208
- *
209
- * 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.
210
- */
211
- export type DeploymentsResponseFormat =
212
- | DeploymentsResponseFormat1
213
- | DeploymentsResponseFormat2
214
- | DeploymentsResponseFormat3
215
- | DeploymentsResponseFormat4
216
- | DeploymentsResponseFormat5
217
- | DeploymentsResponseFormat6;
218
-
219
- /**
220
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
221
- */
222
- export const DeploymentsPhotoRealVersion = {
223
- V1: "v1",
224
- V2: "v2",
225
- } as const;
226
- /**
227
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
228
- */
229
- export type DeploymentsPhotoRealVersion = ClosedEnum<
230
- typeof DeploymentsPhotoRealVersion
231
- >;
232
-
233
- /**
234
- * The format to return the embeddings
235
- */
236
- export const DeploymentsEncodingFormat = {
237
- Float: "float",
238
- Base64: "base64",
239
- } as const;
240
- /**
241
- * The format to return the embeddings
242
- */
243
- export type DeploymentsEncodingFormat = ClosedEnum<
244
- typeof DeploymentsEncodingFormat
245
- >;
246
-
247
- /**
248
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
249
- */
250
- export const DeploymentsReasoningEffort = {
251
- None: "none",
252
- Disable: "disable",
253
- Minimal: "minimal",
254
- Low: "low",
255
- Medium: "medium",
256
- High: "high",
257
- } as const;
258
- /**
259
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
260
- */
261
- export type DeploymentsReasoningEffort = ClosedEnum<
262
- typeof DeploymentsReasoningEffort
263
- >;
264
-
265
- /**
266
- * Controls the verbosity of the model output.
267
- */
268
- export const DeploymentsVerbosity = {
269
- Low: "low",
270
- Medium: "medium",
271
- High: "high",
272
- } as const;
273
- /**
274
- * Controls the verbosity of the model output.
275
- */
276
- export type DeploymentsVerbosity = ClosedEnum<typeof DeploymentsVerbosity>;
277
-
278
- /**
279
- * The level of thinking to use for the model. Only supported by `Google AI`
280
- */
281
- export const DeploymentsThinkingLevel = {
282
- Low: "low",
283
- High: "high",
284
- } as const;
285
- /**
286
- * The level of thinking to use for the model. Only supported by `Google AI`
287
- */
288
- export type DeploymentsThinkingLevel = ClosedEnum<
289
- typeof DeploymentsThinkingLevel
290
- >;
291
-
292
- /**
293
- * Model Parameters: Not all parameters apply to every model
294
- */
295
- export type DeploymentsModelParameters = {
296
- /**
297
- * Only supported on `chat` and `completion` models.
298
- */
299
- temperature?: number | undefined;
300
- /**
301
- * Only supported on `chat` and `completion` models.
302
- */
303
- maxTokens?: number | undefined;
304
- /**
305
- * Only supported on `chat` and `completion` models.
306
- */
307
- topK?: number | undefined;
308
- /**
309
- * Only supported on `chat` and `completion` models.
310
- */
311
- topP?: number | undefined;
312
- /**
313
- * Only supported on `chat` and `completion` models.
314
- */
315
- frequencyPenalty?: number | undefined;
316
- /**
317
- * Only supported on `chat` and `completion` models.
318
- */
319
- presencePenalty?: number | undefined;
320
- /**
321
- * Only supported on `image` models.
322
- */
323
- numImages?: number | undefined;
324
- /**
325
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
326
- */
327
- seed?: number | undefined;
328
- /**
329
- * Only supported on `image` models.
330
- */
331
- format?: DeploymentsFormat | undefined;
332
- /**
333
- * Only supported on `image` models.
334
- */
335
- dimensions?: string | undefined;
336
- /**
337
- * Only supported on `image` models.
338
- */
339
- quality?: string | undefined;
340
- /**
341
- * Only supported on `image` models.
342
- */
343
- style?: string | undefined;
344
- /**
345
- * An object specifying the format that the model must output.
346
- *
347
- * @remarks
348
- *
349
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
350
- *
351
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
352
- *
353
- * 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.
354
- */
355
- responseFormat?:
356
- | DeploymentsResponseFormat1
357
- | DeploymentsResponseFormat2
358
- | DeploymentsResponseFormat3
359
- | DeploymentsResponseFormat4
360
- | DeploymentsResponseFormat5
361
- | DeploymentsResponseFormat6
362
- | null
363
- | undefined;
364
- /**
365
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
366
- */
367
- photoRealVersion?: DeploymentsPhotoRealVersion | undefined;
368
- /**
369
- * The format to return the embeddings
370
- */
371
- encodingFormat?: DeploymentsEncodingFormat | undefined;
372
- /**
373
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
374
- */
375
- reasoningEffort?: DeploymentsReasoningEffort | undefined;
376
- /**
377
- * 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`
378
- */
379
- budgetTokens?: number | undefined;
380
- /**
381
- * Controls the verbosity of the model output.
382
- */
383
- verbosity?: DeploymentsVerbosity | undefined;
384
- /**
385
- * The level of thinking to use for the model. Only supported by `Google AI`
386
- */
387
- thinkingLevel?: DeploymentsThinkingLevel | undefined;
388
- };
389
-
390
- export const DeploymentsProvider = {
391
- Openai: "openai",
392
- Groq: "groq",
393
- Cohere: "cohere",
394
- Azure: "azure",
395
- Aws: "aws",
396
- Google: "google",
397
- GoogleAi: "google-ai",
398
- Huggingface: "huggingface",
399
- Togetherai: "togetherai",
400
- Perplexity: "perplexity",
401
- Anthropic: "anthropic",
402
- Leonardoai: "leonardoai",
403
- Fal: "fal",
404
- Nvidia: "nvidia",
405
- Jina: "jina",
406
- Elevenlabs: "elevenlabs",
407
- Litellm: "litellm",
408
- Cerebras: "cerebras",
409
- Openailike: "openailike",
410
- Bytedance: "bytedance",
411
- Mistral: "mistral",
412
- Deepseek: "deepseek",
413
- Contextualai: "contextualai",
414
- Moonshotai: "moonshotai",
415
- Zai: "zai",
416
- Slack: "slack",
417
- } as const;
418
- export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
419
-
420
- /**
421
- * The role of the prompt message
422
- */
423
- export const DeploymentsRole = {
424
- System: "system",
425
- Assistant: "assistant",
426
- User: "user",
427
- Exception: "exception",
428
- Tool: "tool",
429
- Prompt: "prompt",
430
- Correction: "correction",
431
- ExpectedOutput: "expected_output",
432
- } as const;
433
- /**
434
- * The role of the prompt message
435
- */
436
- export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
437
-
438
- export type Deployments2File = {
439
- /**
440
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
441
- */
442
- fileData?: string | undefined;
443
- /**
444
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
445
- */
446
- uri?: string | undefined;
447
- /**
448
- * MIME type of the file (e.g., application/pdf, image/png)
449
- */
450
- mimeType?: string | undefined;
451
- /**
452
- * The name of the file, used when passing the file to the model as a string.
453
- */
454
- filename?: string | undefined;
455
- };
456
-
457
- export type Deployments23 = {
458
- /**
459
- * The type of the content part. Always `file`.
460
- */
461
- type: "file";
462
- file: Deployments2File;
463
- };
464
-
465
- export type Deployments2ImageUrl = {
466
- /**
467
- * The orq.ai id of the image
468
- */
469
- id?: string | undefined;
470
- /**
471
- * Either a URL of the image or the base64 encoded data URI.
472
- */
473
- url: string;
474
- /**
475
- * Specifies the detail level of the image. Currently only supported with OpenAI models
476
- */
477
- detail?: string | undefined;
478
- };
479
-
480
- /**
481
- * The image part of the prompt message. Only supported with vision models.
482
- */
483
- export type Deployments22 = {
484
- type: "image_url";
485
- imageUrl: Deployments2ImageUrl;
486
- };
487
-
488
- /**
489
- * Text content part of a prompt message
490
- */
491
- export type Deployments21 = {
492
- type: "text";
493
- text: string;
494
- };
495
-
496
- export type DeploymentsContent2 = Deployments21 | Deployments22 | Deployments23;
497
-
498
- /**
499
- * 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.
500
- */
501
- export type DeploymentsContent =
502
- | string
503
- | Array<Deployments21 | Deployments22 | Deployments23>;
504
-
505
- export const DeploymentsDeploymentsType = {
506
- Function: "function",
507
- } as const;
508
- export type DeploymentsDeploymentsType = ClosedEnum<
509
- typeof DeploymentsDeploymentsType
510
- >;
511
-
512
- export type DeploymentsDeploymentsFunction = {
513
- name: string;
514
- /**
515
- * JSON string arguments for the functions
516
- */
517
- arguments: string;
518
- };
519
-
520
- export type DeploymentsToolCalls = {
521
- id?: string | undefined;
522
- index?: number | undefined;
523
- type: DeploymentsDeploymentsType;
524
- function: DeploymentsDeploymentsFunction;
525
- };
526
-
527
- export type DeploymentsMessages = {
528
- /**
529
- * The role of the prompt message
530
- */
531
- role: DeploymentsRole;
532
- /**
533
- * 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.
534
- */
535
- content: string | Array<Deployments21 | Deployments22 | Deployments23> | null;
536
- toolCalls?: Array<DeploymentsToolCalls> | undefined;
537
- toolCallId?: string | null | undefined;
538
- };
539
-
540
- export type DeploymentsPromptConfig = {
541
- tools: Array<DeploymentsTools>;
542
- model: string;
543
- /**
544
- * The modality of the model
545
- */
546
- modelType: DeploymentsModelType;
547
- /**
548
- * Model Parameters: Not all parameters apply to every model
549
- */
550
- modelParameters: DeploymentsModelParameters;
551
- provider: DeploymentsProvider;
552
- messages: Array<DeploymentsMessages>;
553
- };
554
-
555
- export type DeploymentsData = {
556
- /**
557
- * Unique identifier for the object.
558
- */
559
- id: string;
560
- /**
561
- * Date in ISO 8601 format at which the object was created.
562
- */
563
- created: string;
564
- /**
565
- * Date in ISO 8601 format at which the object was last updated.
566
- */
567
- updated: string;
568
- /**
569
- * The deployment unique key
570
- */
571
- key: string;
572
- /**
573
- * An arbitrary string attached to the object. Often useful for displaying to users.
574
- */
575
- description: string;
576
- promptConfig: DeploymentsPromptConfig;
577
- /**
578
- * THe version of the deployment
579
- */
580
- version: string;
581
- };
582
-
583
- /**
584
- * List all deployments
585
- */
586
- export type DeploymentsResponseBody = {
587
- object: DeploymentsObject;
588
- data: Array<DeploymentsData>;
589
- hasMore: boolean;
590
- };
591
-
592
- /** @internal */
593
- export const DeploymentsRequest$inboundSchema: z.ZodType<
594
- DeploymentsRequest,
595
- z.ZodTypeDef,
596
- unknown
597
- > = z.object({
598
- limit: z.number().default(10),
599
- starting_after: z.string().optional(),
600
- ending_before: z.string().optional(),
601
- }).transform((v) => {
602
- return remap$(v, {
603
- "starting_after": "startingAfter",
604
- "ending_before": "endingBefore",
605
- });
606
- });
607
- /** @internal */
608
- export type DeploymentsRequest$Outbound = {
609
- limit: number;
610
- starting_after?: string | undefined;
611
- ending_before?: string | undefined;
612
- };
613
-
614
- /** @internal */
615
- export const DeploymentsRequest$outboundSchema: z.ZodType<
616
- DeploymentsRequest$Outbound,
617
- z.ZodTypeDef,
618
- DeploymentsRequest
619
- > = z.object({
620
- limit: z.number().default(10),
621
- startingAfter: z.string().optional(),
622
- endingBefore: z.string().optional(),
623
- }).transform((v) => {
624
- return remap$(v, {
625
- startingAfter: "starting_after",
626
- endingBefore: "ending_before",
627
- });
628
- });
629
-
630
- export function deploymentsRequestToJSON(
631
- deploymentsRequest: DeploymentsRequest,
632
- ): string {
633
- return JSON.stringify(
634
- DeploymentsRequest$outboundSchema.parse(deploymentsRequest),
635
- );
636
- }
637
- export function deploymentsRequestFromJSON(
638
- jsonString: string,
639
- ): SafeParseResult<DeploymentsRequest, SDKValidationError> {
640
- return safeParse(
641
- jsonString,
642
- (x) => DeploymentsRequest$inboundSchema.parse(JSON.parse(x)),
643
- `Failed to parse 'DeploymentsRequest' from JSON`,
644
- );
645
- }
646
-
647
- /** @internal */
648
- export const DeploymentsObject$inboundSchema: z.ZodNativeEnum<
649
- typeof DeploymentsObject
650
- > = z.nativeEnum(DeploymentsObject);
651
- /** @internal */
652
- export const DeploymentsObject$outboundSchema: z.ZodNativeEnum<
653
- typeof DeploymentsObject
654
- > = DeploymentsObject$inboundSchema;
655
-
656
- /** @internal */
657
- export const DeploymentsType$inboundSchema: z.ZodNativeEnum<
658
- typeof DeploymentsType
659
- > = z.nativeEnum(DeploymentsType);
660
- /** @internal */
661
- export const DeploymentsType$outboundSchema: z.ZodNativeEnum<
662
- typeof DeploymentsType
663
- > = DeploymentsType$inboundSchema;
664
-
665
- /** @internal */
666
- export const DeploymentsDeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
667
- typeof DeploymentsDeploymentsResponseType
668
- > = z.nativeEnum(DeploymentsDeploymentsResponseType);
669
- /** @internal */
670
- export const DeploymentsDeploymentsResponseType$outboundSchema: z.ZodNativeEnum<
671
- typeof DeploymentsDeploymentsResponseType
672
- > = DeploymentsDeploymentsResponseType$inboundSchema;
673
-
674
- /** @internal */
675
- export const DeploymentsParameters$inboundSchema: z.ZodType<
676
- DeploymentsParameters,
677
- z.ZodTypeDef,
678
- unknown
679
- > = z.object({
680
- type: DeploymentsDeploymentsResponseType$inboundSchema,
681
- properties: z.record(z.any()),
682
- required: z.array(z.string()).optional(),
683
- additionalProperties: z.boolean().optional(),
684
- });
685
- /** @internal */
686
- export type DeploymentsParameters$Outbound = {
687
- type: string;
688
- properties: { [k: string]: any };
689
- required?: Array<string> | undefined;
690
- additionalProperties?: boolean | undefined;
691
- };
692
-
693
- /** @internal */
694
- export const DeploymentsParameters$outboundSchema: z.ZodType<
695
- DeploymentsParameters$Outbound,
696
- z.ZodTypeDef,
697
- DeploymentsParameters
698
- > = z.object({
699
- type: DeploymentsDeploymentsResponseType$outboundSchema,
700
- properties: z.record(z.any()),
701
- required: z.array(z.string()).optional(),
702
- additionalProperties: z.boolean().optional(),
703
- });
704
-
705
- export function deploymentsParametersToJSON(
706
- deploymentsParameters: DeploymentsParameters,
707
- ): string {
708
- return JSON.stringify(
709
- DeploymentsParameters$outboundSchema.parse(deploymentsParameters),
710
- );
711
- }
712
- export function deploymentsParametersFromJSON(
713
- jsonString: string,
714
- ): SafeParseResult<DeploymentsParameters, SDKValidationError> {
715
- return safeParse(
716
- jsonString,
717
- (x) => DeploymentsParameters$inboundSchema.parse(JSON.parse(x)),
718
- `Failed to parse 'DeploymentsParameters' from JSON`,
719
- );
720
- }
721
-
722
- /** @internal */
723
- export const DeploymentsFunction$inboundSchema: z.ZodType<
724
- DeploymentsFunction,
725
- z.ZodTypeDef,
726
- unknown
727
- > = z.object({
728
- name: z.string(),
729
- description: z.string().optional(),
730
- strict: z.boolean().optional(),
731
- parameters: z.lazy(() => DeploymentsParameters$inboundSchema),
732
- });
733
- /** @internal */
734
- export type DeploymentsFunction$Outbound = {
735
- name: string;
736
- description?: string | undefined;
737
- strict?: boolean | undefined;
738
- parameters: DeploymentsParameters$Outbound;
739
- };
740
-
741
- /** @internal */
742
- export const DeploymentsFunction$outboundSchema: z.ZodType<
743
- DeploymentsFunction$Outbound,
744
- z.ZodTypeDef,
745
- DeploymentsFunction
746
- > = z.object({
747
- name: z.string(),
748
- description: z.string().optional(),
749
- strict: z.boolean().optional(),
750
- parameters: z.lazy(() => DeploymentsParameters$outboundSchema),
751
- });
752
-
753
- export function deploymentsFunctionToJSON(
754
- deploymentsFunction: DeploymentsFunction,
755
- ): string {
756
- return JSON.stringify(
757
- DeploymentsFunction$outboundSchema.parse(deploymentsFunction),
758
- );
759
- }
760
- export function deploymentsFunctionFromJSON(
761
- jsonString: string,
762
- ): SafeParseResult<DeploymentsFunction, SDKValidationError> {
763
- return safeParse(
764
- jsonString,
765
- (x) => DeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
766
- `Failed to parse 'DeploymentsFunction' from JSON`,
767
- );
768
- }
769
-
770
- /** @internal */
771
- export const DeploymentsTools$inboundSchema: z.ZodType<
772
- DeploymentsTools,
773
- z.ZodTypeDef,
774
- unknown
775
- > = z.object({
776
- display_name: z.string().optional(),
777
- type: DeploymentsType$inboundSchema,
778
- function: z.lazy(() => DeploymentsFunction$inboundSchema),
779
- id: z.number().optional(),
780
- }).transform((v) => {
781
- return remap$(v, {
782
- "display_name": "displayName",
783
- });
784
- });
785
- /** @internal */
786
- export type DeploymentsTools$Outbound = {
787
- display_name?: string | undefined;
788
- type: string;
789
- function: DeploymentsFunction$Outbound;
790
- id?: number | undefined;
791
- };
792
-
793
- /** @internal */
794
- export const DeploymentsTools$outboundSchema: z.ZodType<
795
- DeploymentsTools$Outbound,
796
- z.ZodTypeDef,
797
- DeploymentsTools
798
- > = z.object({
799
- displayName: z.string().optional(),
800
- type: DeploymentsType$outboundSchema,
801
- function: z.lazy(() => DeploymentsFunction$outboundSchema),
802
- id: z.number().optional(),
803
- }).transform((v) => {
804
- return remap$(v, {
805
- displayName: "display_name",
806
- });
807
- });
808
-
809
- export function deploymentsToolsToJSON(
810
- deploymentsTools: DeploymentsTools,
811
- ): string {
812
- return JSON.stringify(
813
- DeploymentsTools$outboundSchema.parse(deploymentsTools),
814
- );
815
- }
816
- export function deploymentsToolsFromJSON(
817
- jsonString: string,
818
- ): SafeParseResult<DeploymentsTools, SDKValidationError> {
819
- return safeParse(
820
- jsonString,
821
- (x) => DeploymentsTools$inboundSchema.parse(JSON.parse(x)),
822
- `Failed to parse 'DeploymentsTools' from JSON`,
823
- );
824
- }
825
-
826
- /** @internal */
827
- export const DeploymentsModelType$inboundSchema: z.ZodNativeEnum<
828
- typeof DeploymentsModelType
829
- > = z.nativeEnum(DeploymentsModelType);
830
- /** @internal */
831
- export const DeploymentsModelType$outboundSchema: z.ZodNativeEnum<
832
- typeof DeploymentsModelType
833
- > = DeploymentsModelType$inboundSchema;
834
-
835
- /** @internal */
836
- export const DeploymentsFormat$inboundSchema: z.ZodNativeEnum<
837
- typeof DeploymentsFormat
838
- > = z.nativeEnum(DeploymentsFormat);
839
- /** @internal */
840
- export const DeploymentsFormat$outboundSchema: z.ZodNativeEnum<
841
- typeof DeploymentsFormat
842
- > = DeploymentsFormat$inboundSchema;
843
-
844
- /** @internal */
845
- export const DeploymentsResponseFormat6$inboundSchema: z.ZodNativeEnum<
846
- typeof DeploymentsResponseFormat6
847
- > = z.nativeEnum(DeploymentsResponseFormat6);
848
- /** @internal */
849
- export const DeploymentsResponseFormat6$outboundSchema: z.ZodNativeEnum<
850
- typeof DeploymentsResponseFormat6
851
- > = DeploymentsResponseFormat6$inboundSchema;
852
-
853
- /** @internal */
854
- export const DeploymentsResponseFormat5$inboundSchema: z.ZodNativeEnum<
855
- typeof DeploymentsResponseFormat5
856
- > = z.nativeEnum(DeploymentsResponseFormat5);
857
- /** @internal */
858
- export const DeploymentsResponseFormat5$outboundSchema: z.ZodNativeEnum<
859
- typeof DeploymentsResponseFormat5
860
- > = DeploymentsResponseFormat5$inboundSchema;
861
-
862
- /** @internal */
863
- export const DeploymentsResponseFormat4$inboundSchema: z.ZodNativeEnum<
864
- typeof DeploymentsResponseFormat4
865
- > = z.nativeEnum(DeploymentsResponseFormat4);
866
- /** @internal */
867
- export const DeploymentsResponseFormat4$outboundSchema: z.ZodNativeEnum<
868
- typeof DeploymentsResponseFormat4
869
- > = DeploymentsResponseFormat4$inboundSchema;
870
-
871
- /** @internal */
872
- export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
873
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
874
- .nativeEnum(DeploymentsResponseFormatDeploymentsType);
875
- /** @internal */
876
- export const DeploymentsResponseFormatDeploymentsType$outboundSchema:
877
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> =
878
- DeploymentsResponseFormatDeploymentsType$inboundSchema;
879
-
880
- /** @internal */
881
- export const DeploymentsResponseFormat3$inboundSchema: z.ZodType<
882
- DeploymentsResponseFormat3,
883
- z.ZodTypeDef,
884
- unknown
885
- > = z.object({
886
- type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
887
- });
888
- /** @internal */
889
- export type DeploymentsResponseFormat3$Outbound = {
890
- type: string;
891
- };
892
-
893
- /** @internal */
894
- export const DeploymentsResponseFormat3$outboundSchema: z.ZodType<
895
- DeploymentsResponseFormat3$Outbound,
896
- z.ZodTypeDef,
897
- DeploymentsResponseFormat3
898
- > = z.object({
899
- type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
900
- });
901
-
902
- export function deploymentsResponseFormat3ToJSON(
903
- deploymentsResponseFormat3: DeploymentsResponseFormat3,
904
- ): string {
905
- return JSON.stringify(
906
- DeploymentsResponseFormat3$outboundSchema.parse(deploymentsResponseFormat3),
907
- );
908
- }
909
- export function deploymentsResponseFormat3FromJSON(
910
- jsonString: string,
911
- ): SafeParseResult<DeploymentsResponseFormat3, SDKValidationError> {
912
- return safeParse(
913
- jsonString,
914
- (x) => DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
915
- `Failed to parse 'DeploymentsResponseFormat3' from JSON`,
916
- );
917
- }
918
-
919
- /** @internal */
920
- export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
921
- typeof DeploymentsResponseFormatType
922
- > = z.nativeEnum(DeploymentsResponseFormatType);
923
- /** @internal */
924
- export const DeploymentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
925
- typeof DeploymentsResponseFormatType
926
- > = DeploymentsResponseFormatType$inboundSchema;
927
-
928
- /** @internal */
929
- export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
930
- DeploymentsResponseFormat2,
931
- z.ZodTypeDef,
932
- unknown
933
- > = z.object({
934
- type: DeploymentsResponseFormatType$inboundSchema,
935
- });
936
- /** @internal */
937
- export type DeploymentsResponseFormat2$Outbound = {
938
- type: string;
939
- };
940
-
941
- /** @internal */
942
- export const DeploymentsResponseFormat2$outboundSchema: z.ZodType<
943
- DeploymentsResponseFormat2$Outbound,
944
- z.ZodTypeDef,
945
- DeploymentsResponseFormat2
946
- > = z.object({
947
- type: DeploymentsResponseFormatType$outboundSchema,
948
- });
949
-
950
- export function deploymentsResponseFormat2ToJSON(
951
- deploymentsResponseFormat2: DeploymentsResponseFormat2,
952
- ): string {
953
- return JSON.stringify(
954
- DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2),
955
- );
956
- }
957
- export function deploymentsResponseFormat2FromJSON(
958
- jsonString: string,
959
- ): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
960
- return safeParse(
961
- jsonString,
962
- (x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
963
- `Failed to parse 'DeploymentsResponseFormat2' from JSON`,
964
- );
965
- }
966
-
967
- /** @internal */
968
- export const DeploymentsResponseFormatDeploymentsResponseType$inboundSchema:
969
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> = z
970
- .nativeEnum(DeploymentsResponseFormatDeploymentsResponseType);
971
- /** @internal */
972
- export const DeploymentsResponseFormatDeploymentsResponseType$outboundSchema:
973
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> =
974
- DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
975
-
976
- /** @internal */
977
- export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
978
- DeploymentsResponseFormatJsonSchema,
979
- z.ZodTypeDef,
980
- unknown
981
- > = z.object({
982
- name: z.string(),
983
- description: z.string().optional(),
984
- strict: z.boolean().optional(),
985
- schema: z.record(z.any()),
986
- });
987
- /** @internal */
988
- export type DeploymentsResponseFormatJsonSchema$Outbound = {
989
- name: string;
990
- description?: string | undefined;
991
- strict?: boolean | undefined;
992
- schema: { [k: string]: any };
993
- };
994
-
995
- /** @internal */
996
- export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
997
- DeploymentsResponseFormatJsonSchema$Outbound,
998
- z.ZodTypeDef,
999
- DeploymentsResponseFormatJsonSchema
1000
- > = z.object({
1001
- name: z.string(),
1002
- description: z.string().optional(),
1003
- strict: z.boolean().optional(),
1004
- schema: z.record(z.any()),
1005
- });
1006
-
1007
- export function deploymentsResponseFormatJsonSchemaToJSON(
1008
- deploymentsResponseFormatJsonSchema: DeploymentsResponseFormatJsonSchema,
1009
- ): string {
1010
- return JSON.stringify(
1011
- DeploymentsResponseFormatJsonSchema$outboundSchema.parse(
1012
- deploymentsResponseFormatJsonSchema,
1013
- ),
1014
- );
1015
- }
1016
- export function deploymentsResponseFormatJsonSchemaFromJSON(
1017
- jsonString: string,
1018
- ): SafeParseResult<DeploymentsResponseFormatJsonSchema, SDKValidationError> {
1019
- return safeParse(
1020
- jsonString,
1021
- (x) =>
1022
- DeploymentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1023
- `Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`,
1024
- );
1025
- }
1026
-
1027
- /** @internal */
1028
- export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
1029
- DeploymentsResponseFormat1,
1030
- z.ZodTypeDef,
1031
- unknown
1032
- > = z.object({
1033
- type: DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
1034
- display_name: z.string().optional(),
1035
- json_schema: z.lazy(() => DeploymentsResponseFormatJsonSchema$inboundSchema),
1036
- }).transform((v) => {
1037
- return remap$(v, {
1038
- "display_name": "displayName",
1039
- "json_schema": "jsonSchema",
1040
- });
1041
- });
1042
- /** @internal */
1043
- export type DeploymentsResponseFormat1$Outbound = {
1044
- type: string;
1045
- display_name?: string | undefined;
1046
- json_schema: DeploymentsResponseFormatJsonSchema$Outbound;
1047
- };
1048
-
1049
- /** @internal */
1050
- export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
1051
- DeploymentsResponseFormat1$Outbound,
1052
- z.ZodTypeDef,
1053
- DeploymentsResponseFormat1
1054
- > = z.object({
1055
- type: DeploymentsResponseFormatDeploymentsResponseType$outboundSchema,
1056
- displayName: z.string().optional(),
1057
- jsonSchema: z.lazy(() => DeploymentsResponseFormatJsonSchema$outboundSchema),
1058
- }).transform((v) => {
1059
- return remap$(v, {
1060
- displayName: "display_name",
1061
- jsonSchema: "json_schema",
1062
- });
1063
- });
1064
-
1065
- export function deploymentsResponseFormat1ToJSON(
1066
- deploymentsResponseFormat1: DeploymentsResponseFormat1,
1067
- ): string {
1068
- return JSON.stringify(
1069
- DeploymentsResponseFormat1$outboundSchema.parse(deploymentsResponseFormat1),
1070
- );
1071
- }
1072
- export function deploymentsResponseFormat1FromJSON(
1073
- jsonString: string,
1074
- ): SafeParseResult<DeploymentsResponseFormat1, SDKValidationError> {
1075
- return safeParse(
1076
- jsonString,
1077
- (x) => DeploymentsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1078
- `Failed to parse 'DeploymentsResponseFormat1' from JSON`,
1079
- );
1080
- }
1081
-
1082
- /** @internal */
1083
- export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
1084
- DeploymentsResponseFormat,
1085
- z.ZodTypeDef,
1086
- unknown
1087
- > = z.union([
1088
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1089
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1090
- z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1091
- DeploymentsResponseFormat4$inboundSchema,
1092
- DeploymentsResponseFormat5$inboundSchema,
1093
- DeploymentsResponseFormat6$inboundSchema,
1094
- ]);
1095
- /** @internal */
1096
- export type DeploymentsResponseFormat$Outbound =
1097
- | DeploymentsResponseFormat1$Outbound
1098
- | DeploymentsResponseFormat2$Outbound
1099
- | DeploymentsResponseFormat3$Outbound
1100
- | string
1101
- | string
1102
- | string;
1103
-
1104
- /** @internal */
1105
- export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
1106
- DeploymentsResponseFormat$Outbound,
1107
- z.ZodTypeDef,
1108
- DeploymentsResponseFormat
1109
- > = z.union([
1110
- z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1111
- z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1112
- z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1113
- DeploymentsResponseFormat4$outboundSchema,
1114
- DeploymentsResponseFormat5$outboundSchema,
1115
- DeploymentsResponseFormat6$outboundSchema,
1116
- ]);
1117
-
1118
- export function deploymentsResponseFormatToJSON(
1119
- deploymentsResponseFormat: DeploymentsResponseFormat,
1120
- ): string {
1121
- return JSON.stringify(
1122
- DeploymentsResponseFormat$outboundSchema.parse(deploymentsResponseFormat),
1123
- );
1124
- }
1125
- export function deploymentsResponseFormatFromJSON(
1126
- jsonString: string,
1127
- ): SafeParseResult<DeploymentsResponseFormat, SDKValidationError> {
1128
- return safeParse(
1129
- jsonString,
1130
- (x) => DeploymentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1131
- `Failed to parse 'DeploymentsResponseFormat' from JSON`,
1132
- );
1133
- }
1134
-
1135
- /** @internal */
1136
- export const DeploymentsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1137
- typeof DeploymentsPhotoRealVersion
1138
- > = z.nativeEnum(DeploymentsPhotoRealVersion);
1139
- /** @internal */
1140
- export const DeploymentsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1141
- typeof DeploymentsPhotoRealVersion
1142
- > = DeploymentsPhotoRealVersion$inboundSchema;
1143
-
1144
- /** @internal */
1145
- export const DeploymentsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1146
- typeof DeploymentsEncodingFormat
1147
- > = z.nativeEnum(DeploymentsEncodingFormat);
1148
- /** @internal */
1149
- export const DeploymentsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1150
- typeof DeploymentsEncodingFormat
1151
- > = DeploymentsEncodingFormat$inboundSchema;
1152
-
1153
- /** @internal */
1154
- export const DeploymentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1155
- typeof DeploymentsReasoningEffort
1156
- > = z.nativeEnum(DeploymentsReasoningEffort);
1157
- /** @internal */
1158
- export const DeploymentsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1159
- typeof DeploymentsReasoningEffort
1160
- > = DeploymentsReasoningEffort$inboundSchema;
1161
-
1162
- /** @internal */
1163
- export const DeploymentsVerbosity$inboundSchema: z.ZodNativeEnum<
1164
- typeof DeploymentsVerbosity
1165
- > = z.nativeEnum(DeploymentsVerbosity);
1166
- /** @internal */
1167
- export const DeploymentsVerbosity$outboundSchema: z.ZodNativeEnum<
1168
- typeof DeploymentsVerbosity
1169
- > = DeploymentsVerbosity$inboundSchema;
1170
-
1171
- /** @internal */
1172
- export const DeploymentsThinkingLevel$inboundSchema: z.ZodNativeEnum<
1173
- typeof DeploymentsThinkingLevel
1174
- > = z.nativeEnum(DeploymentsThinkingLevel);
1175
- /** @internal */
1176
- export const DeploymentsThinkingLevel$outboundSchema: z.ZodNativeEnum<
1177
- typeof DeploymentsThinkingLevel
1178
- > = DeploymentsThinkingLevel$inboundSchema;
1179
-
1180
- /** @internal */
1181
- export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1182
- DeploymentsModelParameters,
1183
- z.ZodTypeDef,
1184
- unknown
1185
- > = z.object({
1186
- temperature: z.number().optional(),
1187
- maxTokens: z.number().optional(),
1188
- topK: z.number().optional(),
1189
- topP: z.number().optional(),
1190
- frequencyPenalty: z.number().optional(),
1191
- presencePenalty: z.number().optional(),
1192
- numImages: z.number().optional(),
1193
- seed: z.number().optional(),
1194
- format: DeploymentsFormat$inboundSchema.optional(),
1195
- dimensions: z.string().optional(),
1196
- quality: z.string().optional(),
1197
- style: z.string().optional(),
1198
- responseFormat: z.nullable(
1199
- z.union([
1200
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1201
- z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1202
- z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1203
- DeploymentsResponseFormat4$inboundSchema,
1204
- DeploymentsResponseFormat5$inboundSchema,
1205
- DeploymentsResponseFormat6$inboundSchema,
1206
- ]),
1207
- ).optional(),
1208
- photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
1209
- encoding_format: DeploymentsEncodingFormat$inboundSchema.optional(),
1210
- reasoningEffort: DeploymentsReasoningEffort$inboundSchema.optional(),
1211
- budgetTokens: z.number().optional(),
1212
- verbosity: DeploymentsVerbosity$inboundSchema.optional(),
1213
- thinkingLevel: DeploymentsThinkingLevel$inboundSchema.optional(),
1214
- }).transform((v) => {
1215
- return remap$(v, {
1216
- "encoding_format": "encodingFormat",
1217
- });
1218
- });
1219
- /** @internal */
1220
- export type DeploymentsModelParameters$Outbound = {
1221
- temperature?: number | undefined;
1222
- maxTokens?: number | undefined;
1223
- topK?: number | undefined;
1224
- topP?: number | undefined;
1225
- frequencyPenalty?: number | undefined;
1226
- presencePenalty?: number | undefined;
1227
- numImages?: number | undefined;
1228
- seed?: number | undefined;
1229
- format?: string | undefined;
1230
- dimensions?: string | undefined;
1231
- quality?: string | undefined;
1232
- style?: string | undefined;
1233
- responseFormat?:
1234
- | DeploymentsResponseFormat1$Outbound
1235
- | DeploymentsResponseFormat2$Outbound
1236
- | DeploymentsResponseFormat3$Outbound
1237
- | string
1238
- | string
1239
- | string
1240
- | null
1241
- | undefined;
1242
- photoRealVersion?: string | undefined;
1243
- encoding_format?: string | undefined;
1244
- reasoningEffort?: string | undefined;
1245
- budgetTokens?: number | undefined;
1246
- verbosity?: string | undefined;
1247
- thinkingLevel?: string | undefined;
1248
- };
1249
-
1250
- /** @internal */
1251
- export const DeploymentsModelParameters$outboundSchema: z.ZodType<
1252
- DeploymentsModelParameters$Outbound,
1253
- z.ZodTypeDef,
1254
- DeploymentsModelParameters
1255
- > = z.object({
1256
- temperature: z.number().optional(),
1257
- maxTokens: z.number().optional(),
1258
- topK: z.number().optional(),
1259
- topP: z.number().optional(),
1260
- frequencyPenalty: z.number().optional(),
1261
- presencePenalty: z.number().optional(),
1262
- numImages: z.number().optional(),
1263
- seed: z.number().optional(),
1264
- format: DeploymentsFormat$outboundSchema.optional(),
1265
- dimensions: z.string().optional(),
1266
- quality: z.string().optional(),
1267
- style: z.string().optional(),
1268
- responseFormat: z.nullable(
1269
- z.union([
1270
- z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1271
- z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1272
- z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1273
- DeploymentsResponseFormat4$outboundSchema,
1274
- DeploymentsResponseFormat5$outboundSchema,
1275
- DeploymentsResponseFormat6$outboundSchema,
1276
- ]),
1277
- ).optional(),
1278
- photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
1279
- encodingFormat: DeploymentsEncodingFormat$outboundSchema.optional(),
1280
- reasoningEffort: DeploymentsReasoningEffort$outboundSchema.optional(),
1281
- budgetTokens: z.number().optional(),
1282
- verbosity: DeploymentsVerbosity$outboundSchema.optional(),
1283
- thinkingLevel: DeploymentsThinkingLevel$outboundSchema.optional(),
1284
- }).transform((v) => {
1285
- return remap$(v, {
1286
- encodingFormat: "encoding_format",
1287
- });
1288
- });
1289
-
1290
- export function deploymentsModelParametersToJSON(
1291
- deploymentsModelParameters: DeploymentsModelParameters,
1292
- ): string {
1293
- return JSON.stringify(
1294
- DeploymentsModelParameters$outboundSchema.parse(deploymentsModelParameters),
1295
- );
1296
- }
1297
- export function deploymentsModelParametersFromJSON(
1298
- jsonString: string,
1299
- ): SafeParseResult<DeploymentsModelParameters, SDKValidationError> {
1300
- return safeParse(
1301
- jsonString,
1302
- (x) => DeploymentsModelParameters$inboundSchema.parse(JSON.parse(x)),
1303
- `Failed to parse 'DeploymentsModelParameters' from JSON`,
1304
- );
1305
- }
1306
-
1307
- /** @internal */
1308
- export const DeploymentsProvider$inboundSchema: z.ZodNativeEnum<
1309
- typeof DeploymentsProvider
1310
- > = z.nativeEnum(DeploymentsProvider);
1311
- /** @internal */
1312
- export const DeploymentsProvider$outboundSchema: z.ZodNativeEnum<
1313
- typeof DeploymentsProvider
1314
- > = DeploymentsProvider$inboundSchema;
1315
-
1316
- /** @internal */
1317
- export const DeploymentsRole$inboundSchema: z.ZodNativeEnum<
1318
- typeof DeploymentsRole
1319
- > = z.nativeEnum(DeploymentsRole);
1320
- /** @internal */
1321
- export const DeploymentsRole$outboundSchema: z.ZodNativeEnum<
1322
- typeof DeploymentsRole
1323
- > = DeploymentsRole$inboundSchema;
1324
-
1325
- /** @internal */
1326
- export const Deployments2File$inboundSchema: z.ZodType<
1327
- Deployments2File,
1328
- z.ZodTypeDef,
1329
- unknown
1330
- > = z.object({
1331
- file_data: z.string().optional(),
1332
- uri: z.string().optional(),
1333
- mimeType: z.string().optional(),
1334
- filename: z.string().optional(),
1335
- }).transform((v) => {
1336
- return remap$(v, {
1337
- "file_data": "fileData",
1338
- });
1339
- });
1340
- /** @internal */
1341
- export type Deployments2File$Outbound = {
1342
- file_data?: string | undefined;
1343
- uri?: string | undefined;
1344
- mimeType?: string | undefined;
1345
- filename?: string | undefined;
1346
- };
1347
-
1348
- /** @internal */
1349
- export const Deployments2File$outboundSchema: z.ZodType<
1350
- Deployments2File$Outbound,
1351
- z.ZodTypeDef,
1352
- Deployments2File
1353
- > = z.object({
1354
- fileData: z.string().optional(),
1355
- uri: z.string().optional(),
1356
- mimeType: z.string().optional(),
1357
- filename: z.string().optional(),
1358
- }).transform((v) => {
1359
- return remap$(v, {
1360
- fileData: "file_data",
1361
- });
1362
- });
1363
-
1364
- export function deployments2FileToJSON(
1365
- deployments2File: Deployments2File,
1366
- ): string {
1367
- return JSON.stringify(
1368
- Deployments2File$outboundSchema.parse(deployments2File),
1369
- );
1370
- }
1371
- export function deployments2FileFromJSON(
1372
- jsonString: string,
1373
- ): SafeParseResult<Deployments2File, SDKValidationError> {
1374
- return safeParse(
1375
- jsonString,
1376
- (x) => Deployments2File$inboundSchema.parse(JSON.parse(x)),
1377
- `Failed to parse 'Deployments2File' from JSON`,
1378
- );
1379
- }
1380
-
1381
- /** @internal */
1382
- export const Deployments23$inboundSchema: z.ZodType<
1383
- Deployments23,
1384
- z.ZodTypeDef,
1385
- unknown
1386
- > = z.object({
1387
- type: z.literal("file"),
1388
- file: z.lazy(() => Deployments2File$inboundSchema),
1389
- });
1390
- /** @internal */
1391
- export type Deployments23$Outbound = {
1392
- type: "file";
1393
- file: Deployments2File$Outbound;
1394
- };
1395
-
1396
- /** @internal */
1397
- export const Deployments23$outboundSchema: z.ZodType<
1398
- Deployments23$Outbound,
1399
- z.ZodTypeDef,
1400
- Deployments23
1401
- > = z.object({
1402
- type: z.literal("file"),
1403
- file: z.lazy(() => Deployments2File$outboundSchema),
1404
- });
1405
-
1406
- export function deployments23ToJSON(deployments23: Deployments23): string {
1407
- return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
1408
- }
1409
- export function deployments23FromJSON(
1410
- jsonString: string,
1411
- ): SafeParseResult<Deployments23, SDKValidationError> {
1412
- return safeParse(
1413
- jsonString,
1414
- (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
1415
- `Failed to parse 'Deployments23' from JSON`,
1416
- );
1417
- }
1418
-
1419
- /** @internal */
1420
- export const Deployments2ImageUrl$inboundSchema: z.ZodType<
1421
- Deployments2ImageUrl,
1422
- z.ZodTypeDef,
1423
- unknown
1424
- > = z.object({
1425
- id: z.string().optional(),
1426
- url: z.string(),
1427
- detail: z.string().optional(),
1428
- });
1429
- /** @internal */
1430
- export type Deployments2ImageUrl$Outbound = {
1431
- id?: string | undefined;
1432
- url: string;
1433
- detail?: string | undefined;
1434
- };
1435
-
1436
- /** @internal */
1437
- export const Deployments2ImageUrl$outboundSchema: z.ZodType<
1438
- Deployments2ImageUrl$Outbound,
1439
- z.ZodTypeDef,
1440
- Deployments2ImageUrl
1441
- > = z.object({
1442
- id: z.string().optional(),
1443
- url: z.string(),
1444
- detail: z.string().optional(),
1445
- });
1446
-
1447
- export function deployments2ImageUrlToJSON(
1448
- deployments2ImageUrl: Deployments2ImageUrl,
1449
- ): string {
1450
- return JSON.stringify(
1451
- Deployments2ImageUrl$outboundSchema.parse(deployments2ImageUrl),
1452
- );
1453
- }
1454
- export function deployments2ImageUrlFromJSON(
1455
- jsonString: string,
1456
- ): SafeParseResult<Deployments2ImageUrl, SDKValidationError> {
1457
- return safeParse(
1458
- jsonString,
1459
- (x) => Deployments2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1460
- `Failed to parse 'Deployments2ImageUrl' from JSON`,
1461
- );
1462
- }
1463
-
1464
- /** @internal */
1465
- export const Deployments22$inboundSchema: z.ZodType<
1466
- Deployments22,
1467
- z.ZodTypeDef,
1468
- unknown
1469
- > = z.object({
1470
- type: z.literal("image_url"),
1471
- image_url: z.lazy(() => Deployments2ImageUrl$inboundSchema),
1472
- }).transform((v) => {
1473
- return remap$(v, {
1474
- "image_url": "imageUrl",
1475
- });
1476
- });
1477
- /** @internal */
1478
- export type Deployments22$Outbound = {
1479
- type: "image_url";
1480
- image_url: Deployments2ImageUrl$Outbound;
1481
- };
1482
-
1483
- /** @internal */
1484
- export const Deployments22$outboundSchema: z.ZodType<
1485
- Deployments22$Outbound,
1486
- z.ZodTypeDef,
1487
- Deployments22
1488
- > = z.object({
1489
- type: z.literal("image_url"),
1490
- imageUrl: z.lazy(() => Deployments2ImageUrl$outboundSchema),
1491
- }).transform((v) => {
1492
- return remap$(v, {
1493
- imageUrl: "image_url",
1494
- });
1495
- });
1496
-
1497
- export function deployments22ToJSON(deployments22: Deployments22): string {
1498
- return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
1499
- }
1500
- export function deployments22FromJSON(
1501
- jsonString: string,
1502
- ): SafeParseResult<Deployments22, SDKValidationError> {
1503
- return safeParse(
1504
- jsonString,
1505
- (x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
1506
- `Failed to parse 'Deployments22' from JSON`,
1507
- );
1508
- }
1509
-
1510
- /** @internal */
1511
- export const Deployments21$inboundSchema: z.ZodType<
1512
- Deployments21,
1513
- z.ZodTypeDef,
1514
- unknown
1515
- > = z.object({
1516
- type: z.literal("text"),
1517
- text: z.string(),
1518
- });
1519
- /** @internal */
1520
- export type Deployments21$Outbound = {
1521
- type: "text";
1522
- text: string;
1523
- };
1524
-
1525
- /** @internal */
1526
- export const Deployments21$outboundSchema: z.ZodType<
1527
- Deployments21$Outbound,
1528
- z.ZodTypeDef,
1529
- Deployments21
1530
- > = z.object({
1531
- type: z.literal("text"),
1532
- text: z.string(),
1533
- });
1534
-
1535
- export function deployments21ToJSON(deployments21: Deployments21): string {
1536
- return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
1537
- }
1538
- export function deployments21FromJSON(
1539
- jsonString: string,
1540
- ): SafeParseResult<Deployments21, SDKValidationError> {
1541
- return safeParse(
1542
- jsonString,
1543
- (x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
1544
- `Failed to parse 'Deployments21' from JSON`,
1545
- );
1546
- }
1547
-
1548
- /** @internal */
1549
- export const DeploymentsContent2$inboundSchema: z.ZodType<
1550
- DeploymentsContent2,
1551
- z.ZodTypeDef,
1552
- unknown
1553
- > = z.union([
1554
- z.lazy(() => Deployments21$inboundSchema),
1555
- z.lazy(() => Deployments22$inboundSchema),
1556
- z.lazy(() => Deployments23$inboundSchema),
1557
- ]);
1558
- /** @internal */
1559
- export type DeploymentsContent2$Outbound =
1560
- | Deployments21$Outbound
1561
- | Deployments22$Outbound
1562
- | Deployments23$Outbound;
1563
-
1564
- /** @internal */
1565
- export const DeploymentsContent2$outboundSchema: z.ZodType<
1566
- DeploymentsContent2$Outbound,
1567
- z.ZodTypeDef,
1568
- DeploymentsContent2
1569
- > = z.union([
1570
- z.lazy(() => Deployments21$outboundSchema),
1571
- z.lazy(() => Deployments22$outboundSchema),
1572
- z.lazy(() => Deployments23$outboundSchema),
1573
- ]);
1574
-
1575
- export function deploymentsContent2ToJSON(
1576
- deploymentsContent2: DeploymentsContent2,
1577
- ): string {
1578
- return JSON.stringify(
1579
- DeploymentsContent2$outboundSchema.parse(deploymentsContent2),
1580
- );
1581
- }
1582
- export function deploymentsContent2FromJSON(
1583
- jsonString: string,
1584
- ): SafeParseResult<DeploymentsContent2, SDKValidationError> {
1585
- return safeParse(
1586
- jsonString,
1587
- (x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
1588
- `Failed to parse 'DeploymentsContent2' from JSON`,
1589
- );
1590
- }
1591
-
1592
- /** @internal */
1593
- export const DeploymentsContent$inboundSchema: z.ZodType<
1594
- DeploymentsContent,
1595
- z.ZodTypeDef,
1596
- unknown
1597
- > = z.union([
1598
- z.string(),
1599
- z.array(z.union([
1600
- z.lazy(() => Deployments21$inboundSchema),
1601
- z.lazy(() => Deployments22$inboundSchema),
1602
- z.lazy(() => Deployments23$inboundSchema),
1603
- ])),
1604
- ]);
1605
- /** @internal */
1606
- export type DeploymentsContent$Outbound =
1607
- | string
1608
- | Array<
1609
- Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
1610
- >;
1611
-
1612
- /** @internal */
1613
- export const DeploymentsContent$outboundSchema: z.ZodType<
1614
- DeploymentsContent$Outbound,
1615
- z.ZodTypeDef,
1616
- DeploymentsContent
1617
- > = z.union([
1618
- z.string(),
1619
- z.array(z.union([
1620
- z.lazy(() => Deployments21$outboundSchema),
1621
- z.lazy(() => Deployments22$outboundSchema),
1622
- z.lazy(() => Deployments23$outboundSchema),
1623
- ])),
1624
- ]);
1625
-
1626
- export function deploymentsContentToJSON(
1627
- deploymentsContent: DeploymentsContent,
1628
- ): string {
1629
- return JSON.stringify(
1630
- DeploymentsContent$outboundSchema.parse(deploymentsContent),
1631
- );
1632
- }
1633
- export function deploymentsContentFromJSON(
1634
- jsonString: string,
1635
- ): SafeParseResult<DeploymentsContent, SDKValidationError> {
1636
- return safeParse(
1637
- jsonString,
1638
- (x) => DeploymentsContent$inboundSchema.parse(JSON.parse(x)),
1639
- `Failed to parse 'DeploymentsContent' from JSON`,
1640
- );
1641
- }
1642
-
1643
- /** @internal */
1644
- export const DeploymentsDeploymentsType$inboundSchema: z.ZodNativeEnum<
1645
- typeof DeploymentsDeploymentsType
1646
- > = z.nativeEnum(DeploymentsDeploymentsType);
1647
- /** @internal */
1648
- export const DeploymentsDeploymentsType$outboundSchema: z.ZodNativeEnum<
1649
- typeof DeploymentsDeploymentsType
1650
- > = DeploymentsDeploymentsType$inboundSchema;
1651
-
1652
- /** @internal */
1653
- export const DeploymentsDeploymentsFunction$inboundSchema: z.ZodType<
1654
- DeploymentsDeploymentsFunction,
1655
- z.ZodTypeDef,
1656
- unknown
1657
- > = z.object({
1658
- name: z.string(),
1659
- arguments: z.string(),
1660
- });
1661
- /** @internal */
1662
- export type DeploymentsDeploymentsFunction$Outbound = {
1663
- name: string;
1664
- arguments: string;
1665
- };
1666
-
1667
- /** @internal */
1668
- export const DeploymentsDeploymentsFunction$outboundSchema: z.ZodType<
1669
- DeploymentsDeploymentsFunction$Outbound,
1670
- z.ZodTypeDef,
1671
- DeploymentsDeploymentsFunction
1672
- > = z.object({
1673
- name: z.string(),
1674
- arguments: z.string(),
1675
- });
1676
-
1677
- export function deploymentsDeploymentsFunctionToJSON(
1678
- deploymentsDeploymentsFunction: DeploymentsDeploymentsFunction,
1679
- ): string {
1680
- return JSON.stringify(
1681
- DeploymentsDeploymentsFunction$outboundSchema.parse(
1682
- deploymentsDeploymentsFunction,
1683
- ),
1684
- );
1685
- }
1686
- export function deploymentsDeploymentsFunctionFromJSON(
1687
- jsonString: string,
1688
- ): SafeParseResult<DeploymentsDeploymentsFunction, SDKValidationError> {
1689
- return safeParse(
1690
- jsonString,
1691
- (x) => DeploymentsDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
1692
- `Failed to parse 'DeploymentsDeploymentsFunction' from JSON`,
1693
- );
1694
- }
1695
-
1696
- /** @internal */
1697
- export const DeploymentsToolCalls$inboundSchema: z.ZodType<
1698
- DeploymentsToolCalls,
1699
- z.ZodTypeDef,
1700
- unknown
1701
- > = z.object({
1702
- id: z.string().optional(),
1703
- index: z.number().optional(),
1704
- type: DeploymentsDeploymentsType$inboundSchema,
1705
- function: z.lazy(() => DeploymentsDeploymentsFunction$inboundSchema),
1706
- });
1707
- /** @internal */
1708
- export type DeploymentsToolCalls$Outbound = {
1709
- id?: string | undefined;
1710
- index?: number | undefined;
1711
- type: string;
1712
- function: DeploymentsDeploymentsFunction$Outbound;
1713
- };
1714
-
1715
- /** @internal */
1716
- export const DeploymentsToolCalls$outboundSchema: z.ZodType<
1717
- DeploymentsToolCalls$Outbound,
1718
- z.ZodTypeDef,
1719
- DeploymentsToolCalls
1720
- > = z.object({
1721
- id: z.string().optional(),
1722
- index: z.number().optional(),
1723
- type: DeploymentsDeploymentsType$outboundSchema,
1724
- function: z.lazy(() => DeploymentsDeploymentsFunction$outboundSchema),
1725
- });
1726
-
1727
- export function deploymentsToolCallsToJSON(
1728
- deploymentsToolCalls: DeploymentsToolCalls,
1729
- ): string {
1730
- return JSON.stringify(
1731
- DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls),
1732
- );
1733
- }
1734
- export function deploymentsToolCallsFromJSON(
1735
- jsonString: string,
1736
- ): SafeParseResult<DeploymentsToolCalls, SDKValidationError> {
1737
- return safeParse(
1738
- jsonString,
1739
- (x) => DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)),
1740
- `Failed to parse 'DeploymentsToolCalls' from JSON`,
1741
- );
1742
- }
1743
-
1744
- /** @internal */
1745
- export const DeploymentsMessages$inboundSchema: z.ZodType<
1746
- DeploymentsMessages,
1747
- z.ZodTypeDef,
1748
- unknown
1749
- > = z.object({
1750
- role: DeploymentsRole$inboundSchema,
1751
- content: z.nullable(
1752
- z.union([
1753
- z.string(),
1754
- z.array(z.union([
1755
- z.lazy(() => Deployments21$inboundSchema),
1756
- z.lazy(() => Deployments22$inboundSchema),
1757
- z.lazy(() => Deployments23$inboundSchema),
1758
- ])),
1759
- ]),
1760
- ),
1761
- tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
1762
- .optional(),
1763
- tool_call_id: z.nullable(z.string()).optional(),
1764
- }).transform((v) => {
1765
- return remap$(v, {
1766
- "tool_calls": "toolCalls",
1767
- "tool_call_id": "toolCallId",
1768
- });
1769
- });
1770
- /** @internal */
1771
- export type DeploymentsMessages$Outbound = {
1772
- role: string;
1773
- content:
1774
- | string
1775
- | Array<
1776
- Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
1777
- >
1778
- | null;
1779
- tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
1780
- tool_call_id?: string | null | undefined;
1781
- };
1782
-
1783
- /** @internal */
1784
- export const DeploymentsMessages$outboundSchema: z.ZodType<
1785
- DeploymentsMessages$Outbound,
1786
- z.ZodTypeDef,
1787
- DeploymentsMessages
1788
- > = z.object({
1789
- role: DeploymentsRole$outboundSchema,
1790
- content: z.nullable(
1791
- z.union([
1792
- z.string(),
1793
- z.array(z.union([
1794
- z.lazy(() => Deployments21$outboundSchema),
1795
- z.lazy(() => Deployments22$outboundSchema),
1796
- z.lazy(() => Deployments23$outboundSchema),
1797
- ])),
1798
- ]),
1799
- ),
1800
- toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))
1801
- .optional(),
1802
- toolCallId: z.nullable(z.string()).optional(),
1803
- }).transform((v) => {
1804
- return remap$(v, {
1805
- toolCalls: "tool_calls",
1806
- toolCallId: "tool_call_id",
1807
- });
1808
- });
1809
-
1810
- export function deploymentsMessagesToJSON(
1811
- deploymentsMessages: DeploymentsMessages,
1812
- ): string {
1813
- return JSON.stringify(
1814
- DeploymentsMessages$outboundSchema.parse(deploymentsMessages),
1815
- );
1816
- }
1817
- export function deploymentsMessagesFromJSON(
1818
- jsonString: string,
1819
- ): SafeParseResult<DeploymentsMessages, SDKValidationError> {
1820
- return safeParse(
1821
- jsonString,
1822
- (x) => DeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
1823
- `Failed to parse 'DeploymentsMessages' from JSON`,
1824
- );
1825
- }
1826
-
1827
- /** @internal */
1828
- export const DeploymentsPromptConfig$inboundSchema: z.ZodType<
1829
- DeploymentsPromptConfig,
1830
- z.ZodTypeDef,
1831
- unknown
1832
- > = z.object({
1833
- tools: z.array(z.lazy(() => DeploymentsTools$inboundSchema)),
1834
- model: z.string(),
1835
- model_type: DeploymentsModelType$inboundSchema,
1836
- model_parameters: z.lazy(() => DeploymentsModelParameters$inboundSchema),
1837
- provider: DeploymentsProvider$inboundSchema,
1838
- messages: z.array(z.lazy(() => DeploymentsMessages$inboundSchema)),
1839
- }).transform((v) => {
1840
- return remap$(v, {
1841
- "model_type": "modelType",
1842
- "model_parameters": "modelParameters",
1843
- });
1844
- });
1845
- /** @internal */
1846
- export type DeploymentsPromptConfig$Outbound = {
1847
- tools: Array<DeploymentsTools$Outbound>;
1848
- model: string;
1849
- model_type: string;
1850
- model_parameters: DeploymentsModelParameters$Outbound;
1851
- provider: string;
1852
- messages: Array<DeploymentsMessages$Outbound>;
1853
- };
1854
-
1855
- /** @internal */
1856
- export const DeploymentsPromptConfig$outboundSchema: z.ZodType<
1857
- DeploymentsPromptConfig$Outbound,
1858
- z.ZodTypeDef,
1859
- DeploymentsPromptConfig
1860
- > = z.object({
1861
- tools: z.array(z.lazy(() => DeploymentsTools$outboundSchema)),
1862
- model: z.string(),
1863
- modelType: DeploymentsModelType$outboundSchema,
1864
- modelParameters: z.lazy(() => DeploymentsModelParameters$outboundSchema),
1865
- provider: DeploymentsProvider$outboundSchema,
1866
- messages: z.array(z.lazy(() => DeploymentsMessages$outboundSchema)),
1867
- }).transform((v) => {
1868
- return remap$(v, {
1869
- modelType: "model_type",
1870
- modelParameters: "model_parameters",
1871
- });
1872
- });
1873
-
1874
- export function deploymentsPromptConfigToJSON(
1875
- deploymentsPromptConfig: DeploymentsPromptConfig,
1876
- ): string {
1877
- return JSON.stringify(
1878
- DeploymentsPromptConfig$outboundSchema.parse(deploymentsPromptConfig),
1879
- );
1880
- }
1881
- export function deploymentsPromptConfigFromJSON(
1882
- jsonString: string,
1883
- ): SafeParseResult<DeploymentsPromptConfig, SDKValidationError> {
1884
- return safeParse(
1885
- jsonString,
1886
- (x) => DeploymentsPromptConfig$inboundSchema.parse(JSON.parse(x)),
1887
- `Failed to parse 'DeploymentsPromptConfig' from JSON`,
1888
- );
1889
- }
1890
-
1891
- /** @internal */
1892
- export const DeploymentsData$inboundSchema: z.ZodType<
1893
- DeploymentsData,
1894
- z.ZodTypeDef,
1895
- unknown
1896
- > = z.object({
1897
- id: z.string(),
1898
- created: z.string(),
1899
- updated: z.string(),
1900
- key: z.string(),
1901
- description: z.string(),
1902
- prompt_config: z.lazy(() => DeploymentsPromptConfig$inboundSchema),
1903
- version: z.string(),
1904
- }).transform((v) => {
1905
- return remap$(v, {
1906
- "prompt_config": "promptConfig",
1907
- });
1908
- });
1909
- /** @internal */
1910
- export type DeploymentsData$Outbound = {
1911
- id: string;
1912
- created: string;
1913
- updated: string;
1914
- key: string;
1915
- description: string;
1916
- prompt_config: DeploymentsPromptConfig$Outbound;
1917
- version: string;
1918
- };
1919
-
1920
- /** @internal */
1921
- export const DeploymentsData$outboundSchema: z.ZodType<
1922
- DeploymentsData$Outbound,
1923
- z.ZodTypeDef,
1924
- DeploymentsData
1925
- > = z.object({
1926
- id: z.string(),
1927
- created: z.string(),
1928
- updated: z.string(),
1929
- key: z.string(),
1930
- description: z.string(),
1931
- promptConfig: z.lazy(() => DeploymentsPromptConfig$outboundSchema),
1932
- version: z.string(),
1933
- }).transform((v) => {
1934
- return remap$(v, {
1935
- promptConfig: "prompt_config",
1936
- });
1937
- });
1938
-
1939
- export function deploymentsDataToJSON(
1940
- deploymentsData: DeploymentsData,
1941
- ): string {
1942
- return JSON.stringify(DeploymentsData$outboundSchema.parse(deploymentsData));
1943
- }
1944
- export function deploymentsDataFromJSON(
1945
- jsonString: string,
1946
- ): SafeParseResult<DeploymentsData, SDKValidationError> {
1947
- return safeParse(
1948
- jsonString,
1949
- (x) => DeploymentsData$inboundSchema.parse(JSON.parse(x)),
1950
- `Failed to parse 'DeploymentsData' from JSON`,
1951
- );
1952
- }
1953
-
1954
- /** @internal */
1955
- export const DeploymentsResponseBody$inboundSchema: z.ZodType<
1956
- DeploymentsResponseBody,
1957
- z.ZodTypeDef,
1958
- unknown
1959
- > = z.object({
1960
- object: DeploymentsObject$inboundSchema,
1961
- data: z.array(z.lazy(() => DeploymentsData$inboundSchema)),
1962
- has_more: z.boolean(),
1963
- }).transform((v) => {
1964
- return remap$(v, {
1965
- "has_more": "hasMore",
1966
- });
1967
- });
1968
- /** @internal */
1969
- export type DeploymentsResponseBody$Outbound = {
1970
- object: string;
1971
- data: Array<DeploymentsData$Outbound>;
1972
- has_more: boolean;
1973
- };
1974
-
1975
- /** @internal */
1976
- export const DeploymentsResponseBody$outboundSchema: z.ZodType<
1977
- DeploymentsResponseBody$Outbound,
1978
- z.ZodTypeDef,
1979
- DeploymentsResponseBody
1980
- > = z.object({
1981
- object: DeploymentsObject$outboundSchema,
1982
- data: z.array(z.lazy(() => DeploymentsData$outboundSchema)),
1983
- hasMore: z.boolean(),
1984
- }).transform((v) => {
1985
- return remap$(v, {
1986
- hasMore: "has_more",
1987
- });
1988
- });
1989
-
1990
- export function deploymentsResponseBodyToJSON(
1991
- deploymentsResponseBody: DeploymentsResponseBody,
1992
- ): string {
1993
- return JSON.stringify(
1994
- DeploymentsResponseBody$outboundSchema.parse(deploymentsResponseBody),
1995
- );
1996
- }
1997
- export function deploymentsResponseBodyFromJSON(
1998
- jsonString: string,
1999
- ): SafeParseResult<DeploymentsResponseBody, SDKValidationError> {
2000
- return safeParse(
2001
- jsonString,
2002
- (x) => DeploymentsResponseBody$inboundSchema.parse(JSON.parse(x)),
2003
- `Failed to parse 'DeploymentsResponseBody' from JSON`,
2004
- );
2005
- }